diff --git a/src/app/modules/admin/member/partner/components/list.component.html b/src/app/modules/admin/member/partner/components/list.component.html
index cdf3d29..ba78492 100644
--- a/src/app/modules/admin/member/partner/components/list.component.html
+++ b/src/app/modules/admin/member/partner/components/list.component.html
@@ -30,8 +30,8 @@
-
- 0; else noPartner">
+
+ 0; else noPartner">
-
+
요율
-
- {{ partner.branchCount }}{{ partner.divisionCount }}
- {{ partner.officeCount }}{{ partner.storeCount
- }}{{ partner.memberCount }}
-
+
2 3 2 1 5
- {{ partner.signinId }}
+ {{ partner.getUsername() }}
- {{ partner.nickname }}
+ {{ partner.getNickname() }}
- {{ partner.phoneNumber }}
+ {{ partner.getMobilePhoneNumber() }}
- {{ partner.rank }}
+ {{ partner.getMemberClass()?.getName() }}
- LV{{ partner.level }}
+ LV{{ partner.getMemberLevel()?.getName() }}
- {{ partner.state }}
+ {{ partner.getState() }}
-
- {{ partner.accountHolder }}
-
+ 예금주
-
- {{ partner.calculateType }}
-
+ 정산종류
- 캐쉬{{ partner.ownCash }}
+ 캐쉬: 2,900
- 콤프{{ partner.ownComp }}P
+ 콤프: 3,000P
- 쿠폰{{ partner.ownCoupon }}
+ 쿠폰: 2,000
- 본인{{ partner.ownCharge }}
+ 본인: 2,900
- 하부{{ partner.bottomCharge }}
+ 하부 1,900
- 본인{{ partner.ownExchange }}
+ 본인: 2,900
- 하부{{ partner.bottomExchange }}
+ 하부: 2,800
- 본인{{ partner.ownRevenue }}
+ 본인: 2,900
- 하부{{ partner.bottomRevenue }}
+ 하부: 2,800
- {{ partner.registrationDate }}
+
+ {{ partner.getCreatedAt() | date: "yyyy/MM/dd" }}
@@ -176,7 +169,7 @@
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
- (click)="__onClickRegist($event)"
+ (click)="__onClickRegist($event, partner)"
>
대본등록
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 0324833..584b05c 100644
--- a/src/app/modules/admin/member/partner/components/list.component.ts
+++ b/src/app/modules/admin/member/partner/components/list.component.ts
@@ -8,23 +8,22 @@ import {
ViewChild,
ViewEncapsulation,
} from '@angular/core';
-import {
- FormBuilder,
- FormControl,
- FormGroup,
- Validators,
-} from '@angular/forms';
-import { MatCheckboxChange } from '@angular/material/checkbox';
+import { FormBuilder, FormControl } from '@angular/forms';
+
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import {
debounceTime,
+ delay,
map,
merge,
Observable,
+ of,
+ startWith,
Subject,
switchMap,
takeUntil,
+ timer,
} from 'rxjs';
import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
@@ -32,14 +31,20 @@ import { FuseConfirmationService } from '@fuse/services/confirmation';
import { Partner } from '../models/partner';
import { PartnerPagination } from '../models/partner-pagination';
import { PartnerService } from '../services/partner.service';
-import { Router } from '@angular/router';
+import { ActivatedRoute, Router } from '@angular/router';
import { RegistComposeComponent } from '../compose/regist-compose.component';
import { CashComposeComponent } from '../compose/cash-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 { MembeerService } from 'app/modules/polyglot/member/services/member.service';
+import { MemberService } from 'app/modules/polyglot/member/services/member.service';
+import { MemberModel } from 'app/modules/protobuf/models/member/member_pb';
+import {
+ ListMembersRequest,
+ ListMembersResponse,
+} from 'app/modules/protobuf/c2se/backend/member_pb';
+import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
@Component({
selector: 'partner-list',
templateUrl: './list.component.html',
@@ -78,13 +83,16 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
@ViewChild(MatSort) private _sort!: MatSort;
- partners$!: Observable
;
+ /* partners$!: Observable; */
+
+ listPartner$!: Observable;
isLoading = false;
searchInputControl = new FormControl();
selectedPartner?: Partner;
pagination?: PartnerPagination;
sites!: Site[];
+ __members: MemberModel[] = [];
private _unsubscribeAll: Subject = new Subject();
@@ -95,8 +103,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder,
+ private _activatedRoute: ActivatedRoute,
private _partnerService: PartnerService,
- private __memberService: MembeerService,
+ private __memberService: MemberService,
private _siteService: SiteService,
private router: Router,
private _matDialog: MatDialog
@@ -121,15 +130,23 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
this._changeDetectorRef.markForCheck();
});
- // Get the products
- this.partners$ = this._partnerService.partners$;
-
this._siteService
.listSites()
.then((result) => {
this.sites = result.getSitesList();
})
.catch((reson) => console.log(reson));
+ // Get the products
+
+ this._activatedRoute.data.subscribe((data) => {
+ let listMemberResult: ListMembersResponse.Result = data['listPartner'];
+ this.listPartner$ = of(listMemberResult.getMembersList());
+
+ /* console.log('dddd', listMemberResult.getMembersList()); */
+
+ // Mark for check
+ this._changeDetectorRef.markForCheck();
+ });
}
/**
@@ -145,7 +162,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
});
// Mark for check
- this._changeDetectorRef.markForCheck();
+ this._changeDetectorRef.detectChanges();
// If the partner changes the sort order...
this._sort.sortChange
@@ -160,12 +177,15 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
.pipe(
switchMap(() => {
this.isLoading = true;
- return this._partnerService.getPartners(
- this._paginator.pageIndex,
- this._paginator.pageSize,
- this._sort.active,
- this._sort.direction
- );
+
+ let req = new ListMembersRequest();
+ let paging = new Pagination();
+ paging.setPage(this._paginator.pageIndex);
+ paging.setPageSize(this._paginator.pageSize);
+
+ req.setPagination(paging);
+ req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77');
+ return of(this.__memberService.listMembers(req));
}),
map(() => {
this.isLoading = false;
@@ -218,9 +238,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
return item.id || index;
}
- __onClickRegist(event: MouseEvent): void {
+ __onClickRegist(event: MouseEvent, partner: MemberModel): void {
const dialogRef = this._matDialog.open(RegistComposeComponent, {
- data: { title: '대본', parentId: 'kgon2', sites: this.sites },
+ data: { title: '대본 등록하기', parent: partner, sites: this.sites },
});
dialogRef.afterClosed().subscribe((result) => {
diff --git a/src/app/modules/admin/member/partner/compose/regist-compose.component.html b/src/app/modules/admin/member/partner/compose/regist-compose.component.html
index d8c9e7a..bc2548e 100644
--- a/src/app/modules/admin/member/partner/compose/regist-compose.component.html
+++ b/src/app/modules/admin/member/partner/compose/regist-compose.component.html
@@ -25,25 +25,26 @@
-
+
-
+
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 6c60772..74d4491 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
@@ -10,10 +10,11 @@ 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 { MemberModel } from 'app/modules/protobuf/models/member/member_pb';
export interface RegistComposeData {
title: string;
- parentId: string;
+ parent: MemberModel;
sites: Site[];
}
export interface RegistComposeResult {
@@ -56,10 +57,7 @@ export class RegistComposeComponent implements OnInit {
private _identityService: IdentityService,
private _changeDetectorRef: ChangeDetectorRef
) {
- this.data.sites.map((v) => {
- const a = v.toObject();
- this.sites.push(a);
- });
+ this.data.sites.forEach((v) => console.log(v.getUrl()));
}
// -----------------------------------------------------------------------------------------------------
@@ -72,7 +70,7 @@ export class RegistComposeComponent implements OnInit {
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
- partnerId: [{ value: this.data.parentId, disabled: true }],
+ partnerId: [{ value: this.data.parent.getUsername(), disabled: true }],
siteName: ['', [Validators.required]],
signinId: ['', [Validators.required]],
password: ['', [Validators.required]],
@@ -114,7 +112,9 @@ export class RegistComposeComponent implements OnInit {
/**
* Send the message
*/
- send(): void {}
+ send(): void {
+ console.log(this.composeForm.value);
+ }
__checkSigninId(event: FocusEvent): void {
const signinId = this.composeForm.get('signinId')?.value;
@@ -127,7 +127,7 @@ export class RegistComposeComponent implements OnInit {
.get('signinId')
?.setErrors({ signinIdDuplicate: true });
}
- this._changeDetectorRef.markForCheck();
+ // this._changeDetectorRef.markForCheck();
});
}
@@ -142,23 +142,7 @@ export class RegistComposeComponent implements OnInit {
.get('nickname')
?.setErrors({ nicknameDuplicate: true });
}
- this._changeDetectorRef.markForCheck();
+ // this._changeDetectorRef.markForCheck();
});
}
-
- // checkSameName(): ValidatorFn {
- // return (control: AbstractControl): { [key: string]: any } | null => {
- // if (
- // !control ||
- // !control.value ||
- // !this.groupList ||
- // 0 === this.groupList.length
- // ) {
- // return null;
- // }
- // const v = (control.value as string).trim();
- // const ban = -1 < this.groupList.findIndex((g) => g.name === v);
- // return ban ? { groupNameSamed: { value: control.value } } : null;
- // };
- // }
}
diff --git a/src/app/modules/admin/member/partner/partner.module.ts b/src/app/modules/admin/member/partner/partner.module.ts
index 2c56246..6a10331 100644
--- a/src/app/modules/admin/member/partner/partner.module.ts
+++ b/src/app/modules/admin/member/partner/partner.module.ts
@@ -25,6 +25,7 @@ import { COMPONENTS } from './components';
import { COMPOSE } from './compose';
import { partnerRoutes } from './partner.routing';
+import { MatDialogModule } from '@angular/material/dialog';
@NgModule({
declarations: [COMPONENTS, COMPOSE],
@@ -36,6 +37,7 @@ import { partnerRoutes } from './partner.routing';
ReactiveFormsModule,
FormsModule,
+ MatDialogModule,
MatButtonModule,
MatFormFieldModule,
MatIconModule,
diff --git a/src/app/modules/admin/member/partner/partner.routing.ts b/src/app/modules/admin/member/partner/partner.routing.ts
index f8a5c46..8b586e2 100644
--- a/src/app/modules/admin/member/partner/partner.routing.ts
+++ b/src/app/modules/admin/member/partner/partner.routing.ts
@@ -2,7 +2,10 @@ import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
-import { PartnersResolver } from './resolvers/partner.resolver';
+import {
+ PartnerListResolver,
+ PartnersResolver,
+} from './resolvers/partner.resolver';
export const partnerRoutes: Route[] = [
// {
@@ -14,7 +17,7 @@ export const partnerRoutes: Route[] = [
path: 'all',
component: ListComponent,
resolve: {
- Partners: PartnersResolver,
+ listPartner: PartnerListResolver,
},
},
{
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 26b00c2..be8fc94 100644
--- a/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts
+++ b/src/app/modules/admin/member/partner/resolvers/partner.resolver.ts
@@ -5,6 +5,12 @@ import {
Router,
RouterStateSnapshot,
} from '@angular/router';
+import { MemberService } from 'app/modules/polyglot/member/services/member.service';
+import {
+ ListMembersRequest,
+ ListMembersResponse,
+} from 'app/modules/protobuf/c2se/backend/member_pb';
+import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
import { catchError, Observable, throwError } from 'rxjs';
import { Partner } from '../models/partner';
@@ -87,3 +93,37 @@ export class PartnersResolver implements Resolve {
return this._partnerService.getPartners();
}
}
+
+@Injectable({
+ providedIn: 'root',
+})
+export class PartnerListResolver implements Resolve {
+ /**
+ * Constructor
+ */
+ constructor(private __memberService: MemberService) {}
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Public methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * Resolver
+ *
+ * @param route
+ * @param state
+ */
+ resolve(
+ route: ActivatedRouteSnapshot,
+ state: RouterStateSnapshot
+ ):
+ | Observable
+ | Promise
+ | ListMembersResponse.Result {
+ let req = new ListMembersRequest();
+
+ req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77');
+
+ return this.__memberService.listMembers(req);
+ }
+}
diff --git a/src/app/modules/admin/member/user/components/view.component.html b/src/app/modules/admin/member/user/components/view.component.html
index de42052..6eb5c6b 100644
--- a/src/app/modules/admin/member/user/components/view.component.html
+++ b/src/app/modules/admin/member/user/components/view.component.html
@@ -51,7 +51,9 @@
가입일자
•
- {{ selectedUser?.registrationDate }}
+ {{
+ selectedUser?.getCreatedAt() | date: "yyyy/MM/dd HH:mm"
+ }}
하부회원수
@@ -61,17 +63,17 @@
총입금
•
- {{ selectedUser?.totalDeposit }}
+ 2,000
총출금
•
- {{ selectedUser?.totalWithdraw }}
+ 2,000
총입금-총출금
•
- {{ selectedUser?.balance }}
+ 2,000
최근30일 배팅금액
@@ -97,10 +99,7 @@
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 d144df3..f4aee34 100644
--- a/src/app/modules/admin/member/user/components/view.component.ts
+++ b/src/app/modules/admin/member/user/components/view.component.ts
@@ -31,6 +31,10 @@ 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 { MemberService } from 'app/modules/polyglot/member/services/member.service';
@Component({
selector: 'user-view',
@@ -65,8 +69,9 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
isLoading = false;
searchInputControl = new FormControl();
- selectedProductForm!: FormGroup;
- selectedUser?: User;
+ memberViewForm!: FormGroup;
+ /* selectedUser?: User; */
+ selectedUser?: MemberModel;
private _unsubscribeAll: Subject
= new Subject();
@@ -74,10 +79,12 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
* Constructor
*/
constructor(
+ private _activatedRoute: ActivatedRoute,
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder,
- private _userService: UserService
+ private _userService: UserService,
+ private _memberService: MemberService
) {}
// -----------------------------------------------------------------------------------------------------
@@ -88,7 +95,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
* On init
*/
ngOnInit(): void {
- this.selectedProductForm = this._formBuilder.group({
+ this.memberViewForm = this._formBuilder.group({
id: [''],
signinId: [{ value: '', disabled: true }],
signinPw: [{ value: '' }],
@@ -121,7 +128,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
});
// Get the User
- this._userService.user$
+ /* this._userService.user$
.pipe(takeUntil(this._unsubscribeAll))
.subscribe((user: User | undefined) => {
if (!user) {
@@ -129,12 +136,31 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
}
this.selectedUser = user;
- this.selectedProductForm.patchValue(user);
+ this.memberViewForm.patchValue(user);
// Mark for check
this._changeDetectorRef.markForCheck();
- });
+ }); */
/* this.user$ = this._userService.user$; */
+
+ this._activatedRoute.data.subscribe((data) => {
+ let member: GetMemberResponse.Result = data['member'];
+
+ this.selectedUser = member.getMember();
+
+ /* console.log('dddd', listMemberResult.getMembersList()); */
+ this.memberViewForm.patchValue({
+ signinId: this.selectedUser?.getUsername(),
+ signinPw: '1234',
+ exchangePw: '1234',
+ phoneNumber: this.selectedUser?.getMobilePhoneNumber(),
+ level: this.selectedUser?.getMemberLevel()?.getName(),
+ status: this.selectedUser?.getState(),
+ nickname: this.selectedUser?.getNickname(),
+ });
+ // Mark for check
+ this._changeDetectorRef.markForCheck();
+ });
}
/**
@@ -180,4 +206,16 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
__trackByFn(index: number, item: any): any {
return item.id || index;
}
+
+ __modifyMember(): void {
+ const valueForm = this.memberViewForm.value;
+ console.log('v: ', valueForm);
+ this._memberService.updateMember(
+ this.selectedUser!.getId(),
+ this.selectedUser!.getSite()!.getId(),
+ this.selectedUser!.getMemberLevel()!.getId(),
+ 'beteran',
+ valueForm.phoneNumber
+ );
+ }
}
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 24d00f4..578c6b8 100644
--- a/src/app/modules/admin/member/user/resolvers/user.resolver.ts
+++ b/src/app/modules/admin/member/user/resolvers/user.resolver.ts
@@ -5,6 +5,8 @@ import {
Router,
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 { catchError, Observable, throwError } from 'rxjs';
import { User } from '../models/user';
@@ -82,3 +84,38 @@ export class UsersResolver implements Resolve {
return this._userService.getUsers();
}
}
+
+@Injectable({
+ providedIn: 'root',
+})
+export class MemberResolver implements Resolve {
+ /**
+ * Constructor
+ */
+ constructor(private _router: Router, private _memberService: MemberService) {}
+
+ // -----------------------------------------------------------------------------------------------------
+ // @ Public methods
+ // -----------------------------------------------------------------------------------------------------
+
+ /**
+ * Resolver
+ *
+ * @param route
+ * @param state
+ */
+
+ resolve(
+ route: ActivatedRouteSnapshot,
+ state: RouterStateSnapshot
+ ):
+ | Observable
+ | Promise
+ | GetMemberResponse.Result {
+ let memberId = route.paramMap.get('id');
+ if (!memberId) {
+ console.error('user.resolver memberId is null');
+ }
+ return this._memberService.getMember(memberId!);
+ }
+}
diff --git a/src/app/modules/admin/member/user/user.routing.ts b/src/app/modules/admin/member/user/user.routing.ts
index d7a2dc1..7069bdf 100644
--- a/src/app/modules/admin/member/user/user.routing.ts
+++ b/src/app/modules/admin/member/user/user.routing.ts
@@ -3,7 +3,11 @@ import { Route } from '@angular/router';
import { ListComponent } from 'app/modules/admin/member/user/components/list.component';
import { ViewComponent } from 'app/modules/admin/member/user/components/view.component';
-import { UsersResolver, UserResolver } from './resolvers/user.resolver';
+import {
+ UsersResolver,
+ UserResolver,
+ MemberResolver,
+} from './resolvers/user.resolver';
export const userRoutes: Route[] = [
{
@@ -17,7 +21,7 @@ export const userRoutes: Route[] = [
path: ':id',
component: ViewComponent,
resolve: {
- user: UserResolver,
+ member: MemberResolver,
},
},
];
diff --git a/src/app/modules/polyglot/member/services/index.ts b/src/app/modules/polyglot/member/services/index.ts
index 654ad70..35f890a 100644
--- a/src/app/modules/polyglot/member/services/index.ts
+++ b/src/app/modules/polyglot/member/services/index.ts
@@ -1,6 +1,6 @@
import { Type } from '@angular/core';
import { IdentityService } from './identity.service';
-import { MembeerService } from './member.service';
+import { MemberService } from './member.service';
-export const SERVICES: Type[] = [IdentityService, MembeerService];
+export const SERVICES: Type[] = [IdentityService, MemberService];
diff --git a/src/app/modules/polyglot/member/services/member.service.ts b/src/app/modules/polyglot/member/services/member.service.ts
index e91988a..a694a0a 100644
--- a/src/app/modules/polyglot/member/services/member.service.ts
+++ b/src/app/modules/polyglot/member/services/member.service.ts
@@ -14,12 +14,16 @@ import {
SUBJECT_LIST_MEMBERS,
SUBJECT_GET_MEMBER,
SUBJECT_GET_MEMBER_BY_USERNAME,
+ UpdateMemberRequest,
+ UpdateMemberResponse,
+ SUBJECT_UPDATE_MEMBER,
} from 'app/modules/protobuf/c2se/backend/member_pb';
+import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
@Injectable({
providedIn: 'root',
})
-export class MembeerService {
+export class MemberService {
/**
* Constructor
*/
@@ -33,9 +37,19 @@ export class MembeerService {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
- listMembers(): Promise {
+ listMembers(req?: ListMembersRequest): Promise {
return new Promise((resolve, reject) => {
- let req = new ListMembersRequest();
+ if (!req) {
+ req = new ListMembersRequest();
+ }
+
+ if (!req.hasPagination()) {
+ let paging = new Pagination();
+ paging.setPageSize(10);
+ paging.setPage(0);
+
+ req.setPagination(paging);
+ }
this.__natsService
.request(
@@ -97,4 +111,92 @@ export class MembeerService {
}
);
}
+
+ updateMember(
+ id: string,
+ siteId: string,
+ memberLevelId: string,
+ password: string,
+ mobilePhoneNumber: string
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ let req = new UpdateMemberRequest();
+ req.setId(id);
+
+ if (!!siteId) {
+ req.setSiteId(siteId);
+ }
+ if (!!memberLevelId) {
+ req.setMemberLevelId(memberLevelId);
+ }
+ if (!!password) {
+ req.setPassword(password);
+ }
+ if (!!mobilePhoneNumber) {
+ req.setMobilePhoneNumber(mobilePhoneNumber);
+ }
+
+ this.__natsService
+ .request(
+ SUBJECT_UPDATE_MEMBER,
+ req.serializeBinary(),
+ UpdateMemberResponse.deserializeBinary
+ )
+ .then((result) => {
+ console.log('updateMember Result: ', result);
+ resolve(result);
+ })
+ .catch((e: Error) => {
+ console.log('failed', e);
+ reject(e);
+ });
+ });
+ }
+
+ // siteId: 8429a7ab-b9de-400b-a209-28ff46e22bec
+ // classId: 4b014ef5-3bab-4413-aaf9-b0040a70ec77
+ // levelId: c56231ac-2120-4a81-a30a-5d41fafb6c57
+
+ // createMember(
+ // siteId: string = '8429a7ab-b9de-400b-a209-28ff46e22bec',
+ // memberLevelId: string = 'c56231ac-2120-4a81-a30a-5d41fafb6c57',
+ // classId: string = '4b014ef5-3bab-4413-aaf9-b0040a70ec77',
+ // signinId: string,
+ // nickname: string,
+ // password: string,
+ // mobilePhoneNumber: string
+ // ): Promise {
+ // return new Promise((resolve, reject) => {
+ // let req = new UpdateMemberRequest();
+ // req.setId(id);
+
+ // if (!!siteId) {
+ // req.setSiteId(siteId);
+ // }
+ // if (!!memberLevelId) {
+ // req.setMemberLevelId(memberLevelId);
+ // }
+ // if (!!password) {
+ // req.setPassword(password);
+ // }
+ // if (!!mobilePhoneNumber) {
+ // req.setMobilePhoneNumber(mobilePhoneNumber);
+ // }
+
+ // this.__natsService
+ // .request(
+ // SUBJECT_UPDATE_MEMBER,
+ // req.serializeBinary(),
+ // UpdateMemberResponse.deserializeBinary
+ // )
+ // .then((result) => {
+ // console.log('updateMember Result: ', result);
+ // resolve(result);
+ // })
+ // .catch((e: Error) => {
+ // console.log('failed', e);
+ // reject(e);
+ // });
+ // });
+ // }
}
diff --git a/src/app/modules/protobuf/c2se/backend/account_pb.d.ts b/src/app/modules/protobuf/c2se/backend/account_pb.d.ts
new file mode 100644
index 0000000..93cfc3b
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/backend/account_pb.d.ts
@@ -0,0 +1,9 @@
+// package:
+// file: c2se/backend/account.proto
+
+import * as jspb from 'google-protobuf';
+
+export const SUBJECT_CREATE_BANK: string;
+export const SUBJECT_LIST_BANKS: string;
+export const SUBJECT_UPDATE_BANK: string;
+export const SUBJECT_DELETE_BANK: string;
diff --git a/src/app/modules/protobuf/c2se/backend/account_pb.js b/src/app/modules/protobuf/c2se/backend/account_pb.js
new file mode 100644
index 0000000..018e75b
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/backend/account_pb.js
@@ -0,0 +1,33 @@
+// 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/member_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts
index 5d7c8f9..e36e401 100644
--- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts
+++ b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts
@@ -8,11 +8,12 @@ import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search
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 ListMembersRequest extends jspb.Message {
hasPagination(): boolean;
@@ -199,6 +200,140 @@ export namespace ListMembersResponse {
}
}
+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;
+
+ 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;
+ 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 GetMemberRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
@@ -398,3 +533,228 @@ export namespace GetMemberByUsernameResponse {
};
}
}
+
+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
index e9a1173..a0f5116 100644
--- a/src/app/modules/protobuf/c2se/backend/member_pb.js
+++ b/src/app/modules/protobuf/c2se/backend/member_pb.js
@@ -27,6 +27,36 @@ 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,
@@ -72,13 +102,34 @@ goog.exportSymbol(
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.
@@ -174,6 +225,87 @@ if (goog.DEBUG && !COMPILED) {
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.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
@@ -331,6 +463,168 @@ if (goog.DEBUG && !COMPILED) {
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";
+}
/**
* List of repeated fields within this message type.
@@ -1546,6 +1840,779 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.hasResult =
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.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, ""),
+ referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""),
+ username: jspb.Message.getFieldWithDefault(msg, 5, ""),
+ nickname: jspb.Message.getFieldWithDefault(msg, 6, ""),
+ mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 7, ""),
+ state: 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.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.setReferrerMemberId(value);
+ break;
+ case 5:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setUsername(value);
+ break;
+ case 6:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setNickname(value);
+ break;
+ case 7:
+ var value = /** @type {string} */ (reader.readString());
+ msg.setMobilePhoneNumber(value);
+ break;
+ case 8:
+ 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.getNickname();
+ if (f.length > 0) {
+ writer.writeString(6, f);
+ }
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
+ if (f != null) {
+ writer.writeString(7, f);
+ }
+ f = message.getState();
+ if (f !== 0.0) {
+ writer.writeEnum(8, 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_id = 4;
+ * @return {string}
+ */
+proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getReferrerMemberId =
+ 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.setReferrerMemberId =
+ 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.clearReferrerMemberId =
+ function () {
+ return jspb.Message.setField(this, 4, undefined);
+ };
+
+/**
+ * Returns whether this field is set.
+ * @return {boolean}
+ */
+proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasReferrerMemberId =
+ 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 nickname = 6;
+ * @return {string}
+ */
+proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getNickname =
+ 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.setNickname =
+ function (value) {
+ return jspb.Message.setProto3StringField(this, 6, value);
+ };
+
+/**
+ * optional string mobile_phone_number = 7;
+ * @return {string}
+ */
+proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMobilePhoneNumber =
+ 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.setMobilePhoneNumber =
+ function (value) {
+ return jspb.Message.setField(this, 7, 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, 7, undefined);
+ };
+
+/**
+ * Returns whether this field is set.
+ * @return {boolean}
+ */
+proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasMobilePhoneNumber =
+ function () {
+ return jspb.Message.getField(this, 7) != null;
+ };
+
+/**
+ * optional bet.beteran.member.MemberState state = 8;
+ * @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, 8, 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, 8, 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;
+ };
+
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
@@ -2617,4 +3684,1249 @@ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.hasR
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/common/bank_pb.d.ts b/src/app/modules/protobuf/c2se/common/bank_pb.d.ts
new file mode 100644
index 0000000..ff00368
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/common/bank_pb.d.ts
@@ -0,0 +1,487 @@
+// 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
new file mode 100644
index 0000000..bf92396
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/common/bank_pb.js
@@ -0,0 +1,3171 @@
+// 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/frontend/account_pb.d.ts b/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts
new file mode 100644
index 0000000..ebfe3d2
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts
@@ -0,0 +1,6 @@
+// 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/account_pb.js b/src/app/modules/protobuf/c2se/frontend/account_pb.js
new file mode 100644
index 0000000..2c09b38
--- /dev/null
+++ b/src/app/modules/protobuf/c2se/frontend/account_pb.js
@@ -0,0 +1,27 @@
+// source: c2se/frontend/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.frontend.bank", null, global);
+
+bet.beteran.c2se.frontend.bank = {};
+
+bet.beteran.c2se.frontend.bank.SUBJECT_LIST_BANKS =
+ "bet.beteran.c2se.core.network.ListBanks";
+
+goog.object.extend(exports, bet.beteran.c2se.frontend.bank);
diff --git a/src/app/modules/protobuf/models/account/bank_pb.d.ts b/src/app/modules/protobuf/models/account/bank_pb.d.ts
new file mode 100644
index 0000000..7f49c78
--- /dev/null
+++ b/src/app/modules/protobuf/models/account/bank_pb.d.ts
@@ -0,0 +1,58 @@
+// package: bet.beteran.account
+// file: models/account/bank.proto
+
+import * as jspb from 'google-protobuf';
+
+export class Bank extends jspb.Message {
+ getId(): string;
+ setId(value: string): void;
+
+ getName(): string;
+ setName(value: string): void;
+
+ getShow(): boolean;
+ setShow(value: boolean): void;
+
+ getCanUse(): boolean;
+ setCanUse(value: boolean): void;
+
+ hasMemo(): boolean;
+ clearMemo(): void;
+ getMemo(): string;
+ setMemo(value: string): void;
+
+ getCreatedAt(): number;
+ setCreatedAt(value: number): void;
+
+ getUpdatedAt(): number;
+ setUpdatedAt(value: number): void;
+
+ serializeBinary(): Uint8Array;
+ toObject(includeInstance?: boolean): Bank.AsObject;
+ static toObject(includeInstance: boolean, msg: Bank): Bank.AsObject;
+ static extensions: { [key: number]: jspb.ExtensionFieldInfo };
+ static extensionsBinary: {
+ [key: number]: jspb.ExtensionFieldBinaryInfo;
+ };
+ static serializeBinaryToWriter(
+ message: Bank,
+ writer: jspb.BinaryWriter
+ ): void;
+ static deserializeBinary(bytes: Uint8Array): Bank;
+ static deserializeBinaryFromReader(
+ message: Bank,
+ reader: jspb.BinaryReader
+ ): Bank;
+}
+
+export namespace Bank {
+ export type AsObject = {
+ id: string;
+ name: string;
+ show: boolean;
+ canUse: boolean;
+ memo: string;
+ createdAt: number;
+ updatedAt: number;
+ };
+}
diff --git a/src/app/modules/protobuf/models/account/bank_pb.js b/src/app/modules/protobuf/models/account/bank_pb.js
new file mode 100644
index 0000000..ecc2cbf
--- /dev/null
+++ b/src/app/modules/protobuf/models/account/bank_pb.js
@@ -0,0 +1,345 @@
+// 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);