From 09be02ab5205d45d6e33f3cdf49ddfa9f03942dd Mon Sep 17 00:00:00 2001 From: JUNG YI DAM Date: Fri, 19 Aug 2022 05:39:24 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=EC=B6=94=EC=B2=9C=EC=9D=B8=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=EC=B6=94=EA=B0=80=20=EB=8B=A4=EC=9D=B4=EC=96=BC?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/list.component.html | 14 ++- .../components/list.component.ts | 16 ++++ .../compose/add-compose.component.html | 38 ++++++++ .../compose/add-compose.component.ts | 94 +++++++++++++++++++ .../compose/delete-compose.component.html | 38 ++++++++ .../compose/delete-compose.component.ts | 94 +++++++++++++++++++ .../partner-recommendation/compose/index.ts | 8 +- .../partner-recommendation.module.ts | 2 - 8 files changed, 299 insertions(+), 5 deletions(-) create mode 100644 src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.html create mode 100644 src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.ts create mode 100644 src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.html create mode 100644 src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.ts diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.html b/src/app/modules/admin/member/partner-recommendation/components/list.component.html index 5c226da..5e8aaec 100644 --- a/src/app/modules/admin/member/partner-recommendation/components/list.component.html +++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.html @@ -149,7 +149,12 @@
-
@@ -295,7 +300,12 @@
-
diff --git a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts index 51da2e6..b2549a0 100644 --- a/src/app/modules/admin/member/partner-recommendation/components/list.component.ts +++ b/src/app/modules/admin/member/partner-recommendation/components/list.component.ts @@ -37,6 +37,8 @@ import { Router } from '@angular/router'; import { MatDialog } from '@angular/material/dialog'; import { RegistComposeComponent } from '../compose/regist-compose.component'; +import { AddComposeComponent } from '../compose/add-compose.component'; +import { DeleteComposeComponent } from '../compose/delete-compose.component'; @Component({ selector: 'partner-recommendation-list', templateUrl: './list.component.html', @@ -219,6 +221,20 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { __onClickRegist(event: MouseEvent): void { const dialogRef = this._matDialog.open(RegistComposeComponent); + dialogRef.afterClosed().subscribe((result) => { + console.log('Compose dialog was closed!'); + }); + } + __onClickAdd(event: MouseEvent): void { + const dialogRef = this._matDialog.open(AddComposeComponent); + + dialogRef.afterClosed().subscribe((result) => { + console.log('Compose dialog was closed!'); + }); + } + __onClickDelete(event: MouseEvent): void { + const dialogRef = this._matDialog.open(DeleteComposeComponent); + dialogRef.afterClosed().subscribe((result) => { console.log('Compose dialog was closed!'); }); diff --git a/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.html b/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.html new file mode 100644 index 0000000..8f0872a --- /dev/null +++ b/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.html @@ -0,0 +1,38 @@ +
+ +
+
알림
+ +
+ + +
+
+ 추천인으로 추가하시겠습니까? +
+
+
+ + + + +
+
+
+
diff --git a/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.ts b/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.ts new file mode 100644 index 0000000..e10f63e --- /dev/null +++ b/src/app/modules/admin/member/partner-recommendation/compose/add-compose.component.ts @@ -0,0 +1,94 @@ +import { + ChangeDetectorRef, + Component, + Inject, + OnInit, + ViewEncapsulation, +} from '@angular/core'; +import { FormBuilder, FormGroup, Validators } from '@angular/forms'; +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; +import { Site } from 'app/modules/proto/models/site_pb'; + +export interface AddComposeData { + price: string; + memo: string; +} +export interface AddComposeResult { + price: string; + memo: string; +} + +@Component({ + selector: 'app-add-compose', + templateUrl: './add-compose.component.html', + encapsulation: ViewEncapsulation.None, +}) +export class AddComposeComponent implements OnInit { + composeForm!: FormGroup; + sites: any[] = []; + // quillModules: any = { + // toolbar: [ + // ['bold', 'italic', 'underline'], + // [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }], + // ['clean'], + // ], + // }; + + /** + * Constructor + */ + constructor( + public matDialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) public data: AddComposeData, + private _formBuilder: FormBuilder, + private _identityService: IdentityService, + private _changeDetectorRef: ChangeDetectorRef + ) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Lifecycle hooks + // ----------------------------------------------------------------------------------------------------- + + /** + * On init + */ + ngOnInit(): void { + // Create the form + this.composeForm = this._formBuilder.group({ + price: ['', [Validators.required]], + memo: ['', [Validators.required]], + }); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Save and close + */ + saveAndClose(): void { + // Save the message as a draft + this.saveAsDraft(); + + // Close the dialog + this.matDialogRef.close(); + } + + /** + * Discard the message + */ + discard(): void {} + + /** + * Save the message as a draft + */ + saveAsDraft(): void {} + + /** + * Send the message + */ + send(): void {} +} diff --git a/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.html b/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.html new file mode 100644 index 0000000..da265cc --- /dev/null +++ b/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.html @@ -0,0 +1,38 @@ +
+ +
+
알림
+ +
+ + +
+
+ 삭제하시겠습니까? +
+
+
+ + + + +
+
+
+
diff --git a/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.ts b/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.ts new file mode 100644 index 0000000..549f127 --- /dev/null +++ b/src/app/modules/admin/member/partner-recommendation/compose/delete-compose.component.ts @@ -0,0 +1,94 @@ +import { + ChangeDetectorRef, + Component, + Inject, + OnInit, + ViewEncapsulation, +} from '@angular/core'; +import { FormBuilder, FormGroup, Validators } from '@angular/forms'; +import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { SiteService } from 'app/modules/polyglot/site/services/site.service'; +import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service'; +import { Site } from 'app/modules/proto/models/site_pb'; + +export interface DeleteComposeData { + price: string; + memo: string; +} +export interface DeleteComposeResult { + price: string; + memo: string; +} + +@Component({ + selector: 'app-delete-compose', + templateUrl: './delete-compose.component.html', + encapsulation: ViewEncapsulation.None, +}) +export class DeleteComposeComponent implements OnInit { + composeForm!: FormGroup; + sites: any[] = []; + // quillModules: any = { + // toolbar: [ + // ['bold', 'italic', 'underline'], + // [{ align: [] }, { list: 'ordered' }, { list: 'bullet' }], + // ['clean'], + // ], + // }; + + /** + * Constructor + */ + constructor( + public matDialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) public data: DeleteComposeData, + private _formBuilder: FormBuilder, + private _identityService: IdentityService, + private _changeDetectorRef: ChangeDetectorRef + ) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Lifecycle hooks + // ----------------------------------------------------------------------------------------------------- + + /** + * On init + */ + ngOnInit(): void { + // Create the form + this.composeForm = this._formBuilder.group({ + price: ['', [Validators.required]], + memo: ['', [Validators.required]], + }); + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Save and close + */ + saveAndClose(): void { + // Save the message as a draft + this.saveAsDraft(); + + // Close the dialog + this.matDialogRef.close(); + } + + /** + * Discard the message + */ + discard(): void {} + + /** + * Save the message as a draft + */ + saveAsDraft(): void {} + + /** + * Send the message + */ + send(): void {} +} diff --git a/src/app/modules/admin/member/partner-recommendation/compose/index.ts b/src/app/modules/admin/member/partner-recommendation/compose/index.ts index 593e5ce..2198b77 100644 --- a/src/app/modules/admin/member/partner-recommendation/compose/index.ts +++ b/src/app/modules/admin/member/partner-recommendation/compose/index.ts @@ -1,3 +1,9 @@ import { RegistComposeComponent } from './regist-compose.component'; +import { AddComposeComponent } from './add-compose.component'; +import { DeleteComposeComponent } from './delete-compose.component'; -export const COMPOSE = [RegistComposeComponent]; +export const COMPOSE = [ + RegistComposeComponent, + AddComposeComponent, + DeleteComposeComponent, +]; diff --git a/src/app/modules/admin/member/partner-recommendation/partner-recommendation.module.ts b/src/app/modules/admin/member/partner-recommendation/partner-recommendation.module.ts index 3729997..6e3bed1 100644 --- a/src/app/modules/admin/member/partner-recommendation/partner-recommendation.module.ts +++ b/src/app/modules/admin/member/partner-recommendation/partner-recommendation.module.ts @@ -12,7 +12,6 @@ import { MatSortModule } from '@angular/material/sort'; import { MatSelectModule } from '@angular/material/select'; import { MatTooltipModule } from '@angular/material/tooltip'; import { MatGridListModule } from '@angular/material/grid-list'; -import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatRadioModule } from '@angular/material/radio'; import { MatCheckboxModule } from '@angular/material/checkbox'; @@ -43,7 +42,6 @@ import { partnerRecommendationRoutes } from './partner-recommendation.routing'; MatSelectModule, MatTooltipModule, MatGridListModule, - MatSlideToggleModule, MatRadioModule, MatCheckboxModule, ], From b9f739f44e5843399bb6d479c1923dbff3a5d22d Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 19 Aug 2022 05:52:56 +0000 Subject: [PATCH 2/3] proto is changed --- .../partner/components/list.component.ts | 8 +- .../polyglot/api/services/game.service.ts | 52 + .../modules/polyglot/api/services/index.ts | 5 +- .../{api.service.ts => vendor.service.ts} | 4 +- src/app/modules/proto/c2se/api/game_pb.d.ts | 182 + src/app/modules/proto/c2se/api/game_pb.js | 1220 ++++++ .../proto/c2se/backend/api/game_pb.d.ts | 6 + .../modules/proto/c2se/backend/api/game_pb.js | 27 + src/app/modules/proto/c2se/member_pb.d.ts | 10 +- src/app/modules/proto/c2se/member_pb.js | 14 +- .../proto/c2se/member_referrer_pb.d.ts | 582 +++ .../modules/proto/c2se/member_referrer_pb.js | 3685 +++++++++++++++++ src/app/modules/proto/models/api/game_pb.d.ts | 70 + src/app/modules/proto/models/api/game_pb.js | 413 ++ src/app/modules/proto/models/member_pb.d.ts | 32 +- src/app/modules/proto/models/member_pb.js | 70 +- .../proto/models/member_referrer_pb.d.ts | 113 + .../proto/models/member_referrer_pb.js | 702 ++++ 18 files changed, 7124 insertions(+), 71 deletions(-) create mode 100644 src/app/modules/polyglot/api/services/game.service.ts rename src/app/modules/polyglot/api/services/{api.service.ts => vendor.service.ts} (94%) create mode 100644 src/app/modules/proto/c2se/api/game_pb.d.ts create mode 100644 src/app/modules/proto/c2se/api/game_pb.js create mode 100644 src/app/modules/proto/c2se/backend/api/game_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/api/game_pb.js create mode 100644 src/app/modules/proto/c2se/member_referrer_pb.d.ts create mode 100644 src/app/modules/proto/c2se/member_referrer_pb.js create mode 100644 src/app/modules/proto/models/api/game_pb.d.ts create mode 100644 src/app/modules/proto/models/api/game_pb.js create mode 100644 src/app/modules/proto/models/member_referrer_pb.d.ts create mode 100644 src/app/modules/proto/models/member_referrer_pb.js 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 a10a95b..350e642 100644 --- a/src/app/modules/admin/member/partner/components/list.component.ts +++ b/src/app/modules/admin/member/partner/components/list.component.ts @@ -54,7 +54,7 @@ import { ListMembersResponse, } from 'app/modules/proto/c2se/member_pb'; import { Pagination } from 'app/modules/proto/protobuf/pagination_pb'; -import { ApiService } from 'app/modules/polyglot/api/services/api.service'; +import { VendorService } from 'app/modules/polyglot/api/services/vendor.service'; @Component({ selector: 'partner-list', templateUrl: './list.component.html', @@ -120,7 +120,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { private _activatedRoute: ActivatedRoute, private _partnerService: PartnerService, private __memberService: MemberService, - private __apiService: ApiService, + private __vendorService: VendorService, private router: Router, private _matDialog: MatDialog @@ -193,8 +193,8 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { this._changeDetectorRef.markForCheck(); }); - this.__apiService - .listBanks() + this.__vendorService + .listVendors() .then((l) => { console.log('list', l.getVendorsList()); }) diff --git a/src/app/modules/polyglot/api/services/game.service.ts b/src/app/modules/polyglot/api/services/game.service.ts new file mode 100644 index 0000000..1d53ab1 --- /dev/null +++ b/src/app/modules/polyglot/api/services/game.service.ts @@ -0,0 +1,52 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListGamesRequest, + ListGamesResponse, +} from 'app/modules/proto/c2se/api/game_pb'; +import { SUBJECT_LIST_GAMES } from 'app/modules/proto/c2se/backend/api/game_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class GameService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + listGames(vendorId: number): Promise { + return new Promise((resolve, reject) => { + let search = new ListGamesRequest.Search(); + search.setVendorId(vendorId); + let req = new ListGamesRequest(); + req.setSearch(search); + + this.__natsService + .request( + SUBJECT_LIST_GAMES, + req.serializeBinary(), + ListGamesResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result, result.getGamesList()); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/api/services/index.ts b/src/app/modules/polyglot/api/services/index.ts index 23dfd5a..14c2eae 100644 --- a/src/app/modules/polyglot/api/services/index.ts +++ b/src/app/modules/polyglot/api/services/index.ts @@ -1,5 +1,6 @@ import { Type } from '@angular/core'; -import { ApiService } from './api.service'; +import { VendorService } from './vendor.service'; +import { GameService } from './game.service'; -export const SERVICES: Type[] = [ApiService]; +export const SERVICES: Type[] = [VendorService, GameService]; diff --git a/src/app/modules/polyglot/api/services/api.service.ts b/src/app/modules/polyglot/api/services/vendor.service.ts similarity index 94% rename from src/app/modules/polyglot/api/services/api.service.ts rename to src/app/modules/polyglot/api/services/vendor.service.ts index 98bfe59..c3a3224 100644 --- a/src/app/modules/polyglot/api/services/api.service.ts +++ b/src/app/modules/polyglot/api/services/vendor.service.ts @@ -12,7 +12,7 @@ import { SUBJECT_LIST_VENDORS } from 'app/modules/proto/c2se/backend/api/vendor_ @Injectable({ providedIn: 'root', }) -export class ApiService { +export class VendorService { /** * Constructor */ @@ -26,7 +26,7 @@ export class ApiService { // @ Public methods // ----------------------------------------------------------------------------------------------------- - listBanks(): Promise { + listVendors(): Promise { return new Promise((resolve, reject) => { let req = new ListVendorsRequest(); diff --git a/src/app/modules/proto/c2se/api/game_pb.d.ts b/src/app/modules/proto/c2se/api/game_pb.d.ts new file mode 100644 index 0000000..1149d93 --- /dev/null +++ b/src/app/modules/proto/c2se/api/game_pb.d.ts @@ -0,0 +1,182 @@ +// package: bet.beteran.c2se.api.game +// file: c2se/api/game.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../../protobuf/pagination_pb'; +import * as models_core_network_pb from '../../models/core/network_pb'; +import * as models_api_game_pb from '../../models/api/game_pb'; + +export class ListGamesRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListGamesRequest.Search | undefined; + setSearch(value?: ListGamesRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListGamesRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListGamesRequest + ): ListGamesRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListGamesRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListGamesRequest; + static deserializeBinaryFromReader( + message: ListGamesRequest, + reader: jspb.BinaryReader + ): ListGamesRequest; +} + +export namespace ListGamesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListGamesRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasVendorId(): boolean; + clearVendorId(): void; + getVendorId(): number; + setVendorId(value: number): void; + + hasKeyLike(): boolean; + clearKeyLike(): void; + getKeyLike(): string; + setKeyLike(value: string): void; + + hasPlatformLike(): boolean; + clearPlatformLike(): void; + getPlatformLike(): string; + setPlatformLike(value: string): void; + + hasCategoryLike(): boolean; + clearCategoryLike(): void; + getCategoryLike(): string; + setCategoryLike(value: string): void; + + hasGameTypeLike(): boolean; + clearGameTypeLike(): void; + getGameTypeLike(): string; + setGameTypeLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + vendorId: number; + keyLike: string; + platformLike: string; + categoryLike: string; + gameTypeLike: string; + }; + } +} + +export class ListGamesResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListGamesResponse.Result | undefined; + setResult(value?: ListGamesResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListGamesResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListGamesResponse + ): ListGamesResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListGamesResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListGamesResponse; + static deserializeBinaryFromReader( + message: ListGamesResponse, + reader: jspb.BinaryReader + ): ListGamesResponse; +} + +export namespace ListGamesResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListGamesResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearGamesList(): void; + getGamesList(): Array; + setGamesList(value: Array): void; + addGames( + value?: models_api_game_pb.Game, + index?: number + ): models_api_game_pb.Game; + + 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 = { + gamesList: Array; + }; + } +} diff --git a/src/app/modules/proto/c2se/api/game_pb.js b/src/app/modules/proto/c2se/api/game_pb.js new file mode 100644 index 0000000..99218ba --- /dev/null +++ b/src/app/modules/proto/c2se/api/game_pb.js @@ -0,0 +1,1220 @@ +// source: c2se/api/game.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_core_network_pb = require("../../models/core/network_pb.js"); +goog.object.extend(proto, models_core_network_pb); +var models_api_game_pb = require("../../models/api/game_pb.js"); +goog.object.extend(proto, models_api_game_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.game.ListGamesRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.game.ListGamesRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.game.ListGamesResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.game.ListGamesResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.game.ListGamesRequest.repeatedFields_, + null + ); +}; +goog.inherits(proto.bet.beteran.c2se.api.game.ListGamesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.displayName = + "proto.bet.beteran.c2se.api.game.ListGamesRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.displayName = + "proto.bet.beteran.c2se.api.game.ListGamesRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.c2se.api.game.ListGamesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.displayName = + "proto.bet.beteran.c2se.api.game.ListGamesResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.displayName = + "proto.bet.beteran.c2se.api.game.ListGamesResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.repeatedFields_ = [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.game.ListGamesRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.game.ListGamesRequest(); + return proto.bet.beteran.c2se.api.game.ListGamesRequest.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.api.game.ListGamesRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search + .deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.game.ListGamesRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + vendorId: jspb.Message.getFieldWithDefault(msg, 1, 0), + keyLike: jspb.Message.getFieldWithDefault(msg, 2, ""), + platformLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + categoryLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + gameTypeLike: 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.api.game.ListGamesRequest.Search} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.game.ListGamesRequest.Search(); + return proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyLike(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPlatformLike(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCategoryLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setGameTypeLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + }; + +/** + * optional uint64 vendor_id = 1; + * @return {number} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setVendorId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearVendorId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasVendorId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional string key_like = 2; + * @return {string} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getKeyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setKeyLike = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearKeyLike = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasKeyLike = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string platform_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getPlatformLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setPlatformLike = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearPlatformLike = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasPlatformLike = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string category_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getCategoryLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setCategoryLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearCategoryLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasCategoryLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string game_type_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getGameTypeLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setGameTypeLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearGameTypeLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasGameTypeLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.addSorts = function ( + opt_value, + opt_index +) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); +}; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.game.ListGamesRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.game.ListGamesRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.game.ListGamesResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.game.ListGamesResponse(); + return proto.bet.beteran.c2se.api.game.ListGamesResponse.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.api.game.ListGamesResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.game.ListGamesResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.repeatedFields_ = [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + gamesList: jspb.Message.toObjectList( + msg.getGamesList(), + models_api_game_pb.Game.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.game.ListGamesResponse.Result(); + return proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_api_game_pb.Game(); + reader.readMessage( + value, + models_api_game_pb.Game.deserializeBinaryFromReader + ); + msg.addGames(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getGamesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_api_game_pb.Game.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.api.game.Game games = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.getGamesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_api_game_pb.Game, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.setGamesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.api.game.Game=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.api.game.Game} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.addGames = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.api.game.Game, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.Result.prototype.clearGamesList = + function () { + return this.setGamesList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.api.game.ListGamesResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.game.ListGamesResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.game.ListGamesResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.game.ListGamesResponse} returns this + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.game.ListGamesResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.api.game); diff --git a/src/app/modules/proto/c2se/backend/api/game_pb.d.ts b/src/app/modules/proto/c2se/backend/api/game_pb.d.ts new file mode 100644 index 0000000..addf9b7 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/game_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.backend.api.game +// file: c2se/backend/api/game.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_GAMES: string; diff --git a/src/app/modules/proto/c2se/backend/api/game_pb.js b/src/app/modules/proto/c2se/backend/api/game_pb.js new file mode 100644 index 0000000..e1c9e98 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/game_pb.js @@ -0,0 +1,27 @@ +// source: c2se/backend/api/game.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.api.game", null, global); + +proto.bet.beteran.c2se.backend.api.game = {}; + +proto.bet.beteran.c2se.backend.api.game.SUBJECT_LIST_GAMES = + "bet.beteran.c2se.backend.api.game.ListGames"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.game); diff --git a/src/app/modules/proto/c2se/member_pb.d.ts b/src/app/modules/proto/c2se/member_pb.d.ts index 785df79..9aac663 100644 --- a/src/app/modules/proto/c2se/member_pb.d.ts +++ b/src/app/modules/proto/c2se/member_pb.d.ts @@ -250,10 +250,10 @@ export namespace ListMembersRequest { getMemberLevelId(): string; setMemberLevelId(value: string): void; - hasReferrerMemberId(): boolean; - clearReferrerMemberId(): void; - getReferrerMemberId(): string; - setReferrerMemberId(value: string): void; + hasParentMemberId(): boolean; + clearParentMemberId(): void; + getParentMemberId(): string; + setParentMemberId(value: string): void; hasUsernameLike(): boolean; clearUsernameLike(): void; @@ -310,7 +310,7 @@ export namespace ListMembersRequest { siteId: string; memberClassId: string; memberLevelId: string; - referrerMemberId: string; + parentMemberId: string; usernameLike: string; nicknameLike: string; mobilePhoneNumberLike: string; diff --git a/src/app/modules/proto/c2se/member_pb.js b/src/app/modules/proto/c2se/member_pb.js index 19c7a68..29765d1 100644 --- a/src/app/modules/proto/c2se/member_pb.js +++ b/src/app/modules/proto/c2se/member_pb.js @@ -2031,7 +2031,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { siteId: jspb.Message.getFieldWithDefault(msg, 1, ""), memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), - referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), + parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""), mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""), @@ -2091,7 +2091,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromRea break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setReferrerMemberId(value); + msg.setParentMemberId(value); break; case 5: var value = /** @type {string} */ (reader.readString()); @@ -2310,10 +2310,10 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMemberLevel }; /** - * optional string referrer_member_id = 4; + * optional string parent_member_id = 4; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMemberId = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getParentMemberId = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 4, "") @@ -2324,7 +2324,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMem * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMemberId = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setParentMemberId = function (value) { return jspb.Message.setField(this, 4, value); }; @@ -2333,7 +2333,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMem * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerMemberId = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearParentMemberId = function () { return jspb.Message.setField(this, 4, undefined); }; @@ -2342,7 +2342,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerM * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasReferrerMemberId = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasParentMemberId = function () { return jspb.Message.getField(this, 4) != null; }; diff --git a/src/app/modules/proto/c2se/member_referrer_pb.d.ts b/src/app/modules/proto/c2se/member_referrer_pb.d.ts new file mode 100644 index 0000000..441e5dd --- /dev/null +++ b/src/app/modules/proto/c2se/member_referrer_pb.d.ts @@ -0,0 +1,582 @@ +// package: bet.beteran.c2se.member_referrer +// file: c2se/member_referrer.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../protobuf/pagination_pb'; +import * as models_member_referrer_pb from '../models/member_referrer_pb'; + +export class CreateMemberReferrerRequest extends jspb.Message { + getMemberId(): string; + setMemberId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberReferrerRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberReferrerRequest + ): CreateMemberReferrerRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberReferrerRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerRequest; + static deserializeBinaryFromReader( + message: CreateMemberReferrerRequest, + reader: jspb.BinaryReader + ): CreateMemberReferrerRequest; +} + +export namespace CreateMemberReferrerRequest { + export type AsObject = { + memberId: string; + }; +} + +export class CreateMemberReferrerResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberReferrerResponse.Result | undefined; + setResult(value?: CreateMemberReferrerResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberReferrerResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberReferrerResponse + ): CreateMemberReferrerResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberReferrerResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerResponse; + static deserializeBinaryFromReader( + message: CreateMemberReferrerResponse, + reader: jspb.BinaryReader + ): CreateMemberReferrerResponse; +} + +export namespace CreateMemberReferrerResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: CreateMemberReferrerResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberReferrer(): boolean; + clearMemberReferrer(): void; + getMemberReferrer(): models_member_referrer_pb.MemberReferrer | undefined; + setMemberReferrer(value?: models_member_referrer_pb.MemberReferrer): 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 = { + memberReferrer?: models_member_referrer_pb.MemberReferrer.AsObject; + }; + } +} + +export class ListMemberReferrersRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListMemberReferrersRequest.Search | undefined; + setSearch(value?: ListMemberReferrersRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberReferrersRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberReferrersRequest + ): ListMemberReferrersRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberReferrersRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberReferrersRequest; + static deserializeBinaryFromReader( + message: ListMemberReferrersRequest, + reader: jspb.BinaryReader + ): ListMemberReferrersRequest; +} + +export namespace ListMemberReferrersRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListMemberReferrersRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(value: string): void; + + hasCanUse(): boolean; + clearCanUse(): void; + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + memberId: string; + canUse: boolean; + memoLike: string; + }; + } +} + +export class ListMemberReferrersResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListMemberReferrersResponse.Result | undefined; + setResult(value?: ListMemberReferrersResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberReferrersResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberReferrersResponse + ): ListMemberReferrersResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberReferrersResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberReferrersResponse; + static deserializeBinaryFromReader( + message: ListMemberReferrersResponse, + reader: jspb.BinaryReader + ): ListMemberReferrersResponse; +} + +export namespace ListMemberReferrersResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListMemberReferrersResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMemberReferrersList(): void; + getMemberReferrersList(): Array; + setMemberReferrersList( + value: Array + ): void; + addMemberReferrers( + value?: models_member_referrer_pb.MemberReferrerModel, + index?: number + ): models_member_referrer_pb.MemberReferrerModel; + + 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 = { + memberReferrersList: Array; + }; + } +} + +export class GetMemberReferrerRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberReferrerRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberReferrerRequest + ): GetMemberReferrerRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberReferrerRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberReferrerRequest; + static deserializeBinaryFromReader( + message: GetMemberReferrerRequest, + reader: jspb.BinaryReader + ): GetMemberReferrerRequest; +} + +export namespace GetMemberReferrerRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberReferrerResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberReferrerResponse.Result | undefined; + setResult(value?: GetMemberReferrerResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberReferrerResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberReferrerResponse + ): GetMemberReferrerResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberReferrerResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberReferrerResponse; + static deserializeBinaryFromReader( + message: GetMemberReferrerResponse, + reader: jspb.BinaryReader + ): GetMemberReferrerResponse; +} + +export namespace GetMemberReferrerResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberReferrerResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberReferrer(): boolean; + clearMemberReferrer(): void; + getMemberReferrer(): + | models_member_referrer_pb.MemberReferrerModel + | undefined; + setMemberReferrer( + value?: models_member_referrer_pb.MemberReferrerModel + ): 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 = { + memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject; + }; + } +} + +export class UpdateMemberReferrerRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberReferrerRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberReferrerRequest + ): UpdateMemberReferrerRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberReferrerRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerRequest; + static deserializeBinaryFromReader( + message: UpdateMemberReferrerRequest, + reader: jspb.BinaryReader + ): UpdateMemberReferrerRequest; +} + +export namespace UpdateMemberReferrerRequest { + export type AsObject = { + id: string; + canUse: boolean; + memo: string; + }; +} + +export class UpdateMemberReferrerResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): UpdateMemberReferrerResponse.Result | undefined; + setResult(value?: UpdateMemberReferrerResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberReferrerResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberReferrerResponse + ): UpdateMemberReferrerResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberReferrerResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerResponse; + static deserializeBinaryFromReader( + message: UpdateMemberReferrerResponse, + reader: jspb.BinaryReader + ): UpdateMemberReferrerResponse; +} + +export namespace UpdateMemberReferrerResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: UpdateMemberReferrerResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberReferrer(): boolean; + clearMemberReferrer(): void; + getMemberReferrer(): + | models_member_referrer_pb.MemberReferrerModel + | undefined; + setMemberReferrer( + value?: models_member_referrer_pb.MemberReferrerModel + ): 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 = { + memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject; + }; + } +} + +export class DeleteMemberReferrerRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberReferrerRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberReferrerRequest + ): DeleteMemberReferrerRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberReferrerRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerRequest; + static deserializeBinaryFromReader( + message: DeleteMemberReferrerRequest, + reader: jspb.BinaryReader + ): DeleteMemberReferrerRequest; +} + +export namespace DeleteMemberReferrerRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberReferrerResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberReferrerResponse.Result | undefined; + setResult(value?: DeleteMemberReferrerResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberReferrerResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberReferrerResponse + ): DeleteMemberReferrerResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberReferrerResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerResponse; + static deserializeBinaryFromReader( + message: DeleteMemberReferrerResponse, + reader: jspb.BinaryReader + ): DeleteMemberReferrerResponse; +} + +export namespace DeleteMemberReferrerResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: DeleteMemberReferrerResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = {}; + } +} diff --git a/src/app/modules/proto/c2se/member_referrer_pb.js b/src/app/modules/proto/c2se/member_referrer_pb.js new file mode 100644 index 0000000..d86b443 --- /dev/null +++ b/src/app/modules/proto/c2se/member_referrer_pb.js @@ -0,0 +1,3685 @@ +// source: c2se/member_referrer.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_member_referrer_pb = require("../models/member_referrer_pb.js"); +goog.object.extend(proto, models_member_referrer_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.displayName = + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerRequest.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse + .Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse + .Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrer: + (f = msg.getMemberReferrer()) && + models_member_referrer_pb.MemberReferrer.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.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_referrer_pb.MemberReferrer(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrer.deserializeBinaryFromReader + ); + msg.setMemberReferrer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrer(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_referrer_pb.MemberReferrer.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_referrer.MemberReferrer member_referrer = 1; + * @return {?proto.bet.beteran.member_referrer.MemberReferrer} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.getMemberReferrer = + function () { + return /** @type{?proto.bet.beteran.member_referrer.MemberReferrer} */ ( + jspb.Message.getWrapperField( + this, + models_member_referrer_pb.MemberReferrer, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_referrer.MemberReferrer|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.setMemberReferrer = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.clearMemberReferrer = + function () { + return this.setMemberReferrer(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.prototype.hasMemberReferrer = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.repeatedFields_ = + [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest(); + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest + .Search.deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + memoLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search(); + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.setMemberId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.clearMemberId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.hasMemberId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bool can_use = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 2, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.setCanUse = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.clearCanUse = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.hasCanUse = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string memo_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.getMemoLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.setMemoLike = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.clearMemoLike = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search.prototype.hasMemoLike = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest + .Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse(); + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse + .Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse + .Result.serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.repeatedFields_ = + [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrersList: jspb.Message.toObjectList( + msg.getMemberReferrersList(), + models_member_referrer_pb.MemberReferrerModel.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.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_referrer_pb.MemberReferrerModel(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrerModel + .deserializeBinaryFromReader + ); + msg.addMemberReferrers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_referrer_pb.MemberReferrerModel.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.getMemberReferrersList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_referrer_pb.MemberReferrerModel, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.setMemberReferrersList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member_referrer.MemberReferrerModel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.addMemberReferrers = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member_referrer.MemberReferrerModel, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result.prototype.clearMemberReferrersList = + function () { + return this.setMemberReferrersList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.ListMemberReferrersResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse + .Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrer: + (f = msg.getMemberReferrer()) && + models_member_referrer_pb.MemberReferrerModel.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.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_referrer_pb.MemberReferrerModel(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrerModel + .deserializeBinaryFromReader + ); + msg.setMemberReferrer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrer(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_referrer_pb.MemberReferrerModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1; + * @return {?proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.getMemberReferrer = + function () { + return /** @type{?proto.bet.beteran.member_referrer.MemberReferrerModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_referrer_pb.MemberReferrerModel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_referrer.MemberReferrerModel|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.setMemberReferrer = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.clearMemberReferrer = + function () { + return this.setMemberReferrer(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.prototype.hasMemberReferrer = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + memo: jspb.Message.getFieldWithDefault(msg, 3, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest(); + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.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 {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional bool can_use = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 2, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 2, value); + }; + +/** + * optional string memo = 3; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerRequest.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse(); + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse + .Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse + .Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrer: + (f = msg.getMemberReferrer()) && + models_member_referrer_pb.MemberReferrerModel.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.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_referrer_pb.MemberReferrerModel(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrerModel + .deserializeBinaryFromReader + ); + msg.setMemberReferrer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrer(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_referrer_pb.MemberReferrerModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1; + * @return {?proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.getMemberReferrer = + function () { + return /** @type{?proto.bet.beteran.member_referrer.MemberReferrerModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_referrer_pb.MemberReferrerModel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_referrer.MemberReferrerModel|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.setMemberReferrer = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.clearMemberReferrer = + function () { + return this.setMemberReferrer(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result.prototype.hasMemberReferrer = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.UpdateMemberReferrerResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse + .Result.deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse + .Result.serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = {}; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.member_referrer); diff --git a/src/app/modules/proto/models/api/game_pb.d.ts b/src/app/modules/proto/models/api/game_pb.d.ts new file mode 100644 index 0000000..068676a --- /dev/null +++ b/src/app/modules/proto/models/api/game_pb.d.ts @@ -0,0 +1,70 @@ +// package: bet.beteran.api.game +// file: models/api/game.proto + +import * as jspb from 'google-protobuf'; + +export class Game extends jspb.Message { + getId(): number; + setId(value: number): void; + + getVendorId(): number; + setVendorId(value: number): void; + + getKey(): string; + setKey(value: string): void; + + getNames(): string; + setNames(value: string): void; + + getPlatform(): string; + setPlatform(value: string): void; + + getCategory(): string; + setCategory(value: string): void; + + getGameType(): string; + setGameType(value: string): void; + + hasImage(): boolean; + clearImage(): void; + getImage(): string; + setImage(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Game.AsObject; + static toObject(includeInstance: boolean, msg: Game): Game.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Game, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Game; + static deserializeBinaryFromReader( + message: Game, + reader: jspb.BinaryReader + ): Game; +} + +export namespace Game { + export type AsObject = { + id: number; + vendorId: number; + key: string; + names: string; + platform: string; + category: string; + gameType: string; + image: string; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/api/game_pb.js b/src/app/modules/proto/models/api/game_pb.js new file mode 100644 index 0000000..53c8135 --- /dev/null +++ b/src/app/modules/proto/models/api/game_pb.js @@ -0,0 +1,413 @@ +// source: models/api/game.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.api.game.Game", null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.api.game.Game = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.api.game.Game, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.api.game.Game.displayName = + "proto.bet.beteran.api.game.Game"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.api.game.Game.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.api.game.Game.toObject(opt_includeInstance, this); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.api.game.Game} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.api.game.Game.toObject = function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + key: jspb.Message.getFieldWithDefault(msg, 3, ""), + names: jspb.Message.getFieldWithDefault(msg, 4, ""), + platform: jspb.Message.getFieldWithDefault(msg, 5, ""), + category: jspb.Message.getFieldWithDefault(msg, 6, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 7, ""), + image: jspb.Message.getFieldWithDefault(msg, 8, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 9, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 10, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.api.game.Game} + */ +proto.bet.beteran.api.game.Game.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.api.game.Game(); + return proto.bet.beteran.api.game.Game.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.api.game.Game} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.api.game.Game} + */ +proto.bet.beteran.api.game.Game.deserializeBinaryFromReader = function ( + msg, + reader +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNames(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPlatform(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setImage(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.api.game.Game.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.api.game.Game.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.api.game.Game} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.api.game.Game.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64(1, f); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(2, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getNames(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getPlatform(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getGameType(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(9, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(10, f); + } +}; + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.bet.beteran.api.game.Game.prototype.getId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.api.game.Game.prototype.getVendorId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setVendorId = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + +/** + * optional string key = 3; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getKey = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setKey = function (value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + +/** + * optional string names = 4; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getNames = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setNames = function (value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + +/** + * optional string platform = 5; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getPlatform = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setPlatform = function (value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + +/** + * optional string category = 6; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getCategory = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setCategory = function (value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + +/** + * optional string game_type = 7; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getGameType = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setGameType = function (value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + +/** + * optional string image = 8; + * @return {string} + */ +proto.bet.beteran.api.game.Game.prototype.getImage = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setImage = function (value) { + return jspb.Message.setField(this, 8, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.clearImage = function () { + return jspb.Message.setField(this, 8, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.game.Game.prototype.hasImage = function () { + return jspb.Message.getField(this, 8) != null; +}; + +/** + * optional uint64 created_at = 9; + * @return {number} + */ +proto.bet.beteran.api.game.Game.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + +/** + * optional uint64 updated_at = 10; + * @return {number} + */ +proto.bet.beteran.api.game.Game.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.game.Game} returns this + */ +proto.bet.beteran.api.game.Game.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + +goog.object.extend(exports, proto.bet.beteran.api.game); diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts index 98b2528..5917cd4 100644 --- a/src/app/modules/proto/models/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -20,13 +20,13 @@ export class Member extends jspb.Message { getMemberLevelId(): string; setMemberLevelId(value: string): void; - hasReferrerMemberId(): boolean; - clearReferrerMemberId(): void; - getReferrerMemberId(): string; - setReferrerMemberId(value: string): void; + hasParentMemberId(): boolean; + clearParentMemberId(): void; + getParentMemberId(): string; + setParentMemberId(value: string): void; - getReferredCount(): number; - setReferredCount(value: number): void; + getChildMemberCount(): number; + setChildMemberCount(value: number): void; getUsername(): string; setUsername(value: string): void; @@ -92,8 +92,8 @@ export namespace Member { siteId: string; memberClassId: string; memberLevelId: string; - referrerMemberId: string; - referredCount: number; + parentMemberId: string; + childMemberCount: number; username: string; nickname: string; mobilePhoneNumber: string; @@ -135,13 +135,13 @@ export class MemberModel extends jspb.Message { value?: models_member_bank_account_pb.MemberBankAccountModel ): void; - hasReferrerMember(): boolean; - clearReferrerMember(): void; - getReferrerMember(): Member | undefined; - setReferrerMember(value?: Member): void; + hasParentMember(): boolean; + clearParentMember(): void; + getParentMember(): Member | undefined; + setParentMember(value?: Member): void; - getReferredCount(): number; - setReferredCount(value: number): void; + getChildMemberCount(): number; + setChildMemberCount(value: number): void; getUsername(): string; setUsername(value: string): void; @@ -211,8 +211,8 @@ export namespace MemberModel { memberClass?: models_member_class_pb.MemberClass.AsObject; memberLevel?: models_member_level_pb.MemberLevel.AsObject; bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; - referrerMember?: Member.AsObject; - referredCount: number; + parentMember?: Member.AsObject; + childMemberCount: number; username: string; nickname: string; mobilePhoneNumber: string; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js index a02c0e7..f449e84 100644 --- a/src/app/modules/proto/models/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -108,8 +108,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { siteId: jspb.Message.getFieldWithDefault(msg, 2, ""), memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""), memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""), - referrerMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""), - referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + parentMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""), + childMemberCount: jspb.Message.getFieldWithDefault(msg, 6, 0), username: jspb.Message.getFieldWithDefault(msg, 7, ""), nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""), @@ -178,11 +178,11 @@ proto.bet.beteran.member.Member.deserializeBinaryFromReader = function ( break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setReferrerMemberId(value); + msg.setParentMemberId(value); break; case 6: var value = /** @type {number} */ (reader.readUint64()); - msg.setReferredCount(value); + msg.setChildMemberCount(value); break; case 7: var value = /** @type {string} */ (reader.readString()); @@ -276,7 +276,7 @@ proto.bet.beteran.member.Member.serializeBinaryToWriter = function ( if (f != null) { writer.writeString(5, f); } - f = message.getReferredCount(); + f = message.getChildMemberCount(); if (f !== 0) { writer.writeUint64(6, f); } @@ -387,10 +387,10 @@ proto.bet.beteran.member.Member.prototype.setMemberLevelId = function (value) { }; /** - * optional string referrer_member_id = 5; + * optional string parent_member_id = 5; * @return {string} */ -proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () { +proto.bet.beteran.member.Member.prototype.getParentMemberId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -398,9 +398,7 @@ proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () { * @param {string} value * @return {!proto.bet.beteran.member.Member} returns this */ -proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function ( - value -) { +proto.bet.beteran.member.Member.prototype.setParentMemberId = function (value) { return jspb.Message.setField(this, 5, value); }; @@ -408,7 +406,7 @@ proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function ( * Clears the field making it undefined. * @return {!proto.bet.beteran.member.Member} returns this */ -proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () { +proto.bet.beteran.member.Member.prototype.clearParentMemberId = function () { return jspb.Message.setField(this, 5, undefined); }; @@ -416,15 +414,15 @@ proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () { * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.Member.prototype.hasReferrerMemberId = function () { +proto.bet.beteran.member.Member.prototype.hasParentMemberId = function () { return jspb.Message.getField(this, 5) != null; }; /** - * optional uint64 referred_count = 6; + * optional uint64 child_member_count = 6; * @return {number} */ -proto.bet.beteran.member.Member.prototype.getReferredCount = function () { +proto.bet.beteran.member.Member.prototype.getChildMemberCount = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; @@ -432,7 +430,9 @@ proto.bet.beteran.member.Member.prototype.getReferredCount = function () { * @param {number} value * @return {!proto.bet.beteran.member.Member} returns this */ -proto.bet.beteran.member.Member.prototype.setReferredCount = function (value) { +proto.bet.beteran.member.Member.prototype.setChildMemberCount = function ( + value +) { return jspb.Message.setProto3IntField(this, 6, value); }; @@ -733,10 +733,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) { includeInstance, f ), - referrerMember: - (f = msg.getReferrerMember()) && + parentMember: + (f = msg.getParentMember()) && proto.bet.beteran.member.Member.toObject(includeInstance, f), - referredCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0), username: jspb.Message.getFieldWithDefault(msg, 8, ""), nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""), @@ -830,11 +830,11 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( value, proto.bet.beteran.member.Member.deserializeBinaryFromReader ); - msg.setReferrerMember(value); + msg.setParentMember(value); break; case 7: var value = /** @type {number} */ (reader.readUint64()); - msg.setReferredCount(value); + msg.setChildMemberCount(value); break; case 8: var value = /** @type {string} */ (reader.readString()); @@ -941,7 +941,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( .serializeBinaryToWriter ); } - f = message.getReferrerMember(); + f = message.getParentMember(); if (f != null) { writer.writeMessage( 6, @@ -949,7 +949,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( proto.bet.beteran.member.Member.serializeBinaryToWriter ); } - f = message.getReferredCount(); + f = message.getChildMemberCount(); if (f !== 0) { writer.writeUint64(7, f); } @@ -1158,10 +1158,10 @@ proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () { }; /** - * optional Member referrer_member = 6; + * optional Member parent_member = 6; * @return {?proto.bet.beteran.member.Member} */ -proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () { +proto.bet.beteran.member.MemberModel.prototype.getParentMember = function () { return /** @type{?proto.bet.beteran.member.Member} */ ( jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6) ); @@ -1171,7 +1171,7 @@ proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () { * @param {?proto.bet.beteran.member.Member|undefined} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function ( +proto.bet.beteran.member.MemberModel.prototype.setParentMember = function ( value ) { return jspb.Message.setWrapperField(this, 6, value); @@ -1181,32 +1181,32 @@ proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function ( * Clears the message field making it undefined. * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.clearReferrerMember = - function () { - return this.setReferrerMember(undefined); - }; +proto.bet.beteran.member.MemberModel.prototype.clearParentMember = function () { + return this.setParentMember(undefined); +}; /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function () { +proto.bet.beteran.member.MemberModel.prototype.hasParentMember = function () { return jspb.Message.getField(this, 6) != null; }; /** - * optional uint64 referred_count = 7; + * optional uint64 child_member_count = 7; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; +proto.bet.beteran.member.MemberModel.prototype.getChildMemberCount = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + }; /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function ( +proto.bet.beteran.member.MemberModel.prototype.setChildMemberCount = function ( value ) { return jspb.Message.setProto3IntField(this, 7, value); diff --git a/src/app/modules/proto/models/member_referrer_pb.d.ts b/src/app/modules/proto/models/member_referrer_pb.d.ts new file mode 100644 index 0000000..b8e802c --- /dev/null +++ b/src/app/modules/proto/models/member_referrer_pb.d.ts @@ -0,0 +1,113 @@ +// package: bet.beteran.member_referrer +// file: models/member_referrer.proto + +import * as jspb from 'google-protobuf'; +import * as models_member_pb from '../models/member_pb'; + +export class MemberReferrer extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): 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): MemberReferrer.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberReferrer + ): MemberReferrer.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberReferrer, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberReferrer; + static deserializeBinaryFromReader( + message: MemberReferrer, + reader: jspb.BinaryReader + ): MemberReferrer; +} + +export namespace MemberReferrer { + export type AsObject = { + id: string; + memberId: string; + canUse: boolean; + memo: string; + createdAt: number; + updatedAt: number; + }; +} + +export class MemberReferrerModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.Member | undefined; + setMember(value?: models_member_pb.Member): void; + + 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): MemberReferrerModel.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberReferrerModel + ): MemberReferrerModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberReferrerModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberReferrerModel; + static deserializeBinaryFromReader( + message: MemberReferrerModel, + reader: jspb.BinaryReader + ): MemberReferrerModel; +} + +export namespace MemberReferrerModel { + export type AsObject = { + id: string; + member?: models_member_pb.Member.AsObject; + canUse: boolean; + memo: string; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/member_referrer_pb.js b/src/app/modules/proto/models/member_referrer_pb.js new file mode 100644 index 0000000..4df63dc --- /dev/null +++ b/src/app/modules/proto/models/member_referrer_pb.js @@ -0,0 +1,702 @@ +// source: models/member_referrer.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var models_member_pb = require("../models/member_pb.js"); +goog.object.extend(proto, models_member_pb); +goog.exportSymbol( + "proto.bet.beteran.member_referrer.MemberReferrer", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.member_referrer.MemberReferrerModel", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_referrer.MemberReferrer = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_referrer.MemberReferrer, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_referrer.MemberReferrer.displayName = + "proto.bet.beteran.member_referrer.MemberReferrer"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member_referrer.MemberReferrerModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.member_referrer.MemberReferrerModel, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_referrer.MemberReferrerModel.displayName = + "proto.bet.beteran.member_referrer.MemberReferrerModel"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member_referrer.MemberReferrer.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.member_referrer.MemberReferrer.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_referrer.MemberReferrer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member_referrer.MemberReferrer.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + memo: jspb.Message.getFieldWithDefault(msg, 4, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} + */ +proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_referrer.MemberReferrer(); + return proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_referrer.MemberReferrer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} + */ +proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 3: + var value = /** @type {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.setCreatedAt(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_referrer.MemberReferrer.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_referrer.MemberReferrer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_referrer.MemberReferrer.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMemberId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(5, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(6, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional bool can_use = 3; + * @return {boolean} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +/** + * optional string memo = 4; + * @return {string} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemo = function ( + value +) { + return jspb.Message.setField(this, 4, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional uint64 created_at = 5; + * @return {number} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCreatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 5, value); + }; + +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.getUpdatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrer.prototype.setUpdatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 6, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.member_referrer.MemberReferrerModel.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member_referrer.MemberReferrerModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + member: + (f = msg.getMember()) && + models_member_pb.Member.toObject(includeInstance, f), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + memo: jspb.Message.getFieldWithDefault(msg, 4, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_referrer.MemberReferrerModel(); + return proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_member_pb.Member(); + reader.readMessage( + value, + models_member_pb.Member.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + case 3: + var value = /** @type {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.setCreatedAt(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_referrer.MemberReferrerModel.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 2, + f, + models_member_pb.Member.serializeBinaryToWriter + ); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(5, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(6, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional bet.beteran.member.Member member = 2; + * @return {?proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.Member} */ ( + jspb.Message.getWrapperField(this, models_member_pb.Member, 2) + ); + }; + +/** + * @param {?proto.bet.beteran.member.Member|undefined} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMember = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional bool can_use = 3; + * @return {boolean} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +/** + * optional string memo = 4; + * @return {string} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional uint64 created_at = 5; + * @return {number} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCreatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 5, value); + }; + +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getUpdatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this + */ +proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setUpdatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 6, value); + }; + +goog.object.extend(exports, proto.bet.beteran.member_referrer); From 55359efa1b6796f1a6e563b8c0d036c74f5656e5 Mon Sep 17 00:00:00 2001 From: JUNG YI DAM Date: Fri, 19 Aug 2022 05:54:21 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=EC=9E=85=EA=B8=88=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deposit/components/list.component.html | 40 ++++++++----------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/src/app/modules/admin/bank/deposit/components/list.component.html b/src/app/modules/admin/bank/deposit/components/list.component.html index e4c9d58..4e6a8db 100644 --- a/src/app/modules/admin/bank/deposit/components/list.component.html +++ b/src/app/modules/admin/bank/deposit/components/list.component.html @@ -25,31 +25,25 @@
-
- - - - -
+ + + + +
+
-
- -
-
- -
+ +
+
+