diff --git a/src/app/modules/proto/c2se/frontend/member_balance_pb.d.ts b/src/app/modules/proto/c2se/frontend/member_balance_pb.d.ts new file mode 100644 index 0000000..898d500 --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/member_balance_pb.d.ts @@ -0,0 +1,8 @@ +// package: bet.beteran.c2se.frontend.member_balance +// file: c2se/frontend/member_balance.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_MEMBER_BALANCE: string; +export const SUBJECT_GET_MEMBER_BALANCE: string; +export const SUBJECT_UPDATE_MEMBER_BALANCE: string; diff --git a/src/app/modules/proto/c2se/frontend/member_balance_pb.js b/src/app/modules/proto/c2se/frontend/member_balance_pb.js new file mode 100644 index 0000000..4f95f11 --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/member_balance_pb.js @@ -0,0 +1,37 @@ +// source: c2se/frontend/member_balance.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol( + "proto.bet.beteran.c2se.frontend.member_balance", + null, + global +); + +proto.bet.beteran.c2se.frontend.member_balance = {}; + +proto.bet.beteran.c2se.frontend.member_balance.SUBJECT_CREATE_MEMBER_BALANCE = + "bet.beteran.c2se.frontend.member_balance.CreateMemberBankAccount"; +proto.bet.beteran.c2se.frontend.member_balance.SUBJECT_GET_MEMBER_BALANCE = + "bet.beteran.c2se.frontend.member_balance.GetMemberBankAccount"; +proto.bet.beteran.c2se.frontend.member_balance.SUBJECT_UPDATE_MEMBER_BALANCE = + "bet.beteran.c2se.frontend.member_balance.UpdateMemberBankAccount"; +proto.bet.beteran.c2se.frontend.member_balance.SUBJECT_UPDATE_MEMBER_BALANCE_FOR_EXCHANGE_PASSWORD = + "bet.beteran.c2se.frontend.member_balance.UpdateMemberBankAccountForExchangePassword"; + +goog.object.extend(exports, proto.bet.beteran.c2se.frontend.member_balance); diff --git a/src/app/modules/proto/c2se/member_balance_pb.d.ts b/src/app/modules/proto/c2se/member_balance_pb.d.ts new file mode 100644 index 0000000..17463f9 --- /dev/null +++ b/src/app/modules/proto/c2se/member_balance_pb.d.ts @@ -0,0 +1,568 @@ +// package: bet.beteran.c2se.member_balance +// file: c2se/member_balance.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_balance_pb from '../models/member_balance_pb'; + +export class CreateMemberBalanceRequest extends jspb.Message { + getMemberId(): string; + setMemberId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBalanceRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberBalanceRequest + ): CreateMemberBalanceRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberBalanceRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBalanceRequest; + static deserializeBinaryFromReader( + message: CreateMemberBalanceRequest, + reader: jspb.BinaryReader + ): CreateMemberBalanceRequest; +} + +export namespace CreateMemberBalanceRequest { + export type AsObject = { + memberId: string; + }; +} + +export class CreateMemberBalanceResponse 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(): CreateMemberBalanceResponse.Result | undefined; + setResult(value?: CreateMemberBalanceResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberBalanceResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberBalanceResponse + ): CreateMemberBalanceResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberBalanceResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberBalanceResponse; + static deserializeBinaryFromReader( + message: CreateMemberBalanceResponse, + reader: jspb.BinaryReader + ): CreateMemberBalanceResponse; +} + +export namespace CreateMemberBalanceResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: CreateMemberBalanceResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBalance(): boolean; + clearMemberBalance(): void; + getMemberBalance(): models_member_balance_pb.MemberBalance | undefined; + setMemberBalance(value?: models_member_balance_pb.MemberBalance): 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 = { + memberBalance?: models_member_balance_pb.MemberBalance.AsObject; + }; + } +} + +export class ListMemberBalancesRequest 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(): ListMemberBalancesRequest.Search | undefined; + setSearch(value?: ListMemberBalancesRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBalancesRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberBalancesRequest + ): ListMemberBalancesRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberBalancesRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBalancesRequest; + static deserializeBinaryFromReader( + message: ListMemberBalancesRequest, + reader: jspb.BinaryReader + ): ListMemberBalancesRequest; +} + +export namespace ListMemberBalancesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListMemberBalancesRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(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; + }; + } +} + +export class ListMemberBalancesResponse 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(): ListMemberBalancesResponse.Result | undefined; + setResult(value?: ListMemberBalancesResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberBalancesResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberBalancesResponse + ): ListMemberBalancesResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberBalancesResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberBalancesResponse; + static deserializeBinaryFromReader( + message: ListMemberBalancesResponse, + reader: jspb.BinaryReader + ): ListMemberBalancesResponse; +} + +export namespace ListMemberBalancesResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListMemberBalancesResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + getTotalCount(): number; + setTotalCount(value: number): void; + + clearMemberBalancesList(): void; + getMemberBalancesList(): Array; + setMemberBalancesList( + value: Array + ): void; + addMemberBalances( + value?: models_member_balance_pb.MemberBalance, + index?: number + ): models_member_balance_pb.MemberBalance; + + 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 = { + totalCount: number; + memberBalancesList: Array; + }; + } +} + +export class GetMemberBalanceRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBalanceRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberBalanceRequest + ): GetMemberBalanceRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberBalanceRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBalanceRequest; + static deserializeBinaryFromReader( + message: GetMemberBalanceRequest, + reader: jspb.BinaryReader + ): GetMemberBalanceRequest; +} + +export namespace GetMemberBalanceRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberBalanceResponse 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(): GetMemberBalanceResponse.Result | undefined; + setResult(value?: GetMemberBalanceResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberBalanceResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberBalanceResponse + ): GetMemberBalanceResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberBalanceResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberBalanceResponse; + static deserializeBinaryFromReader( + message: GetMemberBalanceResponse, + reader: jspb.BinaryReader + ): GetMemberBalanceResponse; +} + +export namespace GetMemberBalanceResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberBalanceResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBalance(): boolean; + clearMemberBalance(): void; + getMemberBalance(): models_member_balance_pb.MemberBalance | undefined; + setMemberBalance(value?: models_member_balance_pb.MemberBalance): 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 = { + memberBalance?: models_member_balance_pb.MemberBalance.AsObject; + }; + } +} + +export class UpdateMemberBalanceRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getBalance(): number; + setBalance(value: number): void; + + getBalanceBota(): number; + setBalanceBota(value: number): void; + + getBalanceSum(): number; + setBalanceSum(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBalanceRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberBalanceRequest + ): UpdateMemberBalanceRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberBalanceRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBalanceRequest; + static deserializeBinaryFromReader( + message: UpdateMemberBalanceRequest, + reader: jspb.BinaryReader + ): UpdateMemberBalanceRequest; +} + +export namespace UpdateMemberBalanceRequest { + export type AsObject = { + id: string; + balance: number; + balanceBota: number; + balanceSum: number; + }; +} + +export class UpdateMemberBalanceResponse 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(): UpdateMemberBalanceResponse.Result | undefined; + setResult(value?: UpdateMemberBalanceResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberBalanceResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberBalanceResponse + ): UpdateMemberBalanceResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberBalanceResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberBalanceResponse; + static deserializeBinaryFromReader( + message: UpdateMemberBalanceResponse, + reader: jspb.BinaryReader + ): UpdateMemberBalanceResponse; +} + +export namespace UpdateMemberBalanceResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: UpdateMemberBalanceResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberBalance(): boolean; + clearMemberBalance(): void; + getMemberBalance(): models_member_balance_pb.MemberBalance | undefined; + setMemberBalance(value?: models_member_balance_pb.MemberBalance): 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 = { + memberBalance?: models_member_balance_pb.MemberBalance.AsObject; + }; + } +} + +export class DeleteMemberBalanceRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBalanceRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberBalanceRequest + ): DeleteMemberBalanceRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberBalanceRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBalanceRequest; + static deserializeBinaryFromReader( + message: DeleteMemberBalanceRequest, + reader: jspb.BinaryReader + ): DeleteMemberBalanceRequest; +} + +export namespace DeleteMemberBalanceRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberBalanceResponse 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(): DeleteMemberBalanceResponse.Result | undefined; + setResult(value?: DeleteMemberBalanceResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberBalanceResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberBalanceResponse + ): DeleteMemberBalanceResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberBalanceResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberBalanceResponse; + static deserializeBinaryFromReader( + message: DeleteMemberBalanceResponse, + reader: jspb.BinaryReader + ): DeleteMemberBalanceResponse; +} + +export namespace DeleteMemberBalanceResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: DeleteMemberBalanceResponse.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_balance_pb.js b/src/app/modules/proto/c2se/member_balance_pb.js new file mode 100644 index 0000000..15a292d --- /dev/null +++ b/src/app/modules/proto/c2se/member_balance_pb.js @@ -0,0 +1,3623 @@ +// source: c2se/member_balance.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_balance_pb = require("../models/member_balance_pb.js"); +goog.object.extend(proto, models_member_balance_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.CreateMemberBalanceRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.displayName = + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.CreateMemberBalanceResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.displayName = + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.CreateMemberBalanceResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.displayName = + "proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.ListMemberBalancesRequest = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.displayName = + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.ListMemberBalancesRequest.Search = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.displayName = + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.displayName = + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.ListMemberBalancesResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.displayName = + "proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.GetMemberBalanceRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.displayName = + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.GetMemberBalanceResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.displayName = + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.GetMemberBalanceResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.displayName = + "proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.UpdateMemberBalanceRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.displayName = + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.UpdateMemberBalanceResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.displayName = + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.UpdateMemberBalanceResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.displayName = + "proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.DeleteMemberBalanceRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.displayName = + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.DeleteMemberBalanceResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.displayName = + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is 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_balance.DeleteMemberBalanceResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result.displayName = + "proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.CreateMemberBalanceRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.CreateMemberBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.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_balance.CreateMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest(); + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.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_balance.CreateMemberBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.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_balance.CreateMemberBalanceRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.serializeBinaryToWriter( + this, + writer + ); + 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_balance.CreateMemberBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.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_balance.CreateMemberBalanceRequest.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceRequest.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_balance.CreateMemberBalanceResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.CreateMemberBalanceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse(); + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse + .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_balance.CreateMemberBalanceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.serializeBinaryToWriter( + this, + writer + ); + 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_balance.CreateMemberBalanceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBalance: + (f = msg.getMemberBalance()) && + models_member_balance_pb.MemberBalance.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_balance.CreateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result(); + return proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance_pb.MemberBalance(); + reader.readMessage( + value, + models_member_balance_pb.MemberBalance.deserializeBinaryFromReader + ); + msg.setMemberBalance(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_balance.CreateMemberBalanceResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBalance(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_balance_pb.MemberBalance.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_balance.MemberBalance member_balance = 1; + * @return {?proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.prototype.getMemberBalance = + function () { + return /** @type{?proto.bet.beteran.member_balance.MemberBalance} */ ( + jspb.Message.getWrapperField( + this, + models_member_balance_pb.MemberBalance, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_balance.MemberBalance|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.prototype.setMemberBalance = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.prototype.clearMemberBalance = + function () { + return this.setMemberBalance(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result.prototype.hasMemberBalance = + 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_balance.CreateMemberBalanceResponse.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_balance.CreateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.CreateMemberBalanceResponse.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_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.ListMemberBalancesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest(); + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest + .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_balance.ListMemberBalancesRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.serializeBinaryToWriter( + this, + writer + ); + 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_balance.ListMemberBalancesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.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_balance.ListMemberBalancesRequest.Search} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search(); + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.prototype.setMemberId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.prototype.clearMemberId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search.prototype.hasMemberId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesRequest.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_balance.ListMemberBalancesResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.ListMemberBalancesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse(); + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse + .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_balance.ListMemberBalancesResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.serializeBinaryToWriter( + this, + writer + ); + 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_balance.ListMemberBalancesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.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_balance.ListMemberBalancesResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + totalCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + memberBalancesList: jspb.Message.toObjectList( + msg.getMemberBalancesList(), + models_member_balance_pb.MemberBalance.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_balance.ListMemberBalancesResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result(); + return proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.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.setTotalCount(value); + break; + case 2: + var value = new models_member_balance_pb.MemberBalance(); + reader.readMessage( + value, + models_member_balance_pb.MemberBalance.deserializeBinaryFromReader + ); + msg.addMemberBalances(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_balance.ListMemberBalancesResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getTotalCount(); + if (f !== 0) { + writer.writeUint64(1, f); + } + f = message.getMemberBalancesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + models_member_balance_pb.MemberBalance.serializeBinaryToWriter + ); + } + }; + +/** + * optional uint64 total_count = 1; + * @return {number} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.getTotalCount = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.setTotalCount = + function (value) { + return jspb.Message.setProto3IntField(this, 1, value); + }; + +/** + * repeated bet.beteran.member_balance.MemberBalance member_balances = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.getMemberBalancesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_balance_pb.MemberBalance, + 2 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.setMemberBalancesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.beteran.member_balance.MemberBalance=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.addMemberBalances = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.beteran.member_balance.MemberBalance, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result.prototype.clearMemberBalancesList = + function () { + return this.setMemberBalancesList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.ListMemberBalancesResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.ListMemberBalancesResponse.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_balance.GetMemberBalanceRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.GetMemberBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.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_balance.GetMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest(); + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.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_balance.GetMemberBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.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_balance.GetMemberBalanceRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.serializeBinaryToWriter( + this, + writer + ); + 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_balance.GetMemberBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.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_balance.GetMemberBalanceRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceRequest.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_balance.GetMemberBalanceResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.GetMemberBalanceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse(); + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse + .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_balance.GetMemberBalanceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.serializeBinaryToWriter( + this, + writer + ); + 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_balance.GetMemberBalanceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBalance: + (f = msg.getMemberBalance()) && + models_member_balance_pb.MemberBalance.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_balance.GetMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result(); + return proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance_pb.MemberBalance(); + reader.readMessage( + value, + models_member_balance_pb.MemberBalance.deserializeBinaryFromReader + ); + msg.setMemberBalance(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_balance.GetMemberBalanceResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBalance(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_balance_pb.MemberBalance.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_balance.MemberBalance member_balance = 1; + * @return {?proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.prototype.getMemberBalance = + function () { + return /** @type{?proto.bet.beteran.member_balance.MemberBalance} */ ( + jspb.Message.getWrapperField( + this, + models_member_balance_pb.MemberBalance, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_balance.MemberBalance|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.prototype.setMemberBalance = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.prototype.clearMemberBalance = + function () { + return this.setMemberBalance(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result.prototype.hasMemberBalance = + 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_balance.GetMemberBalanceResponse.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_balance.GetMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.GetMemberBalanceResponse.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_balance.UpdateMemberBalanceRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.UpdateMemberBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + balance: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + balanceBota: jspb.Message.getFloatingPointFieldWithDefault( + msg, + 3, + 0.0 + ), + balanceSum: jspb.Message.getFloatingPointFieldWithDefault( + msg, + 4, + 0.0 + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest(); + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.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_balance.UpdateMemberBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.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 {number} */ (reader.readDouble()); + msg.setBalance(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBalanceBota(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBalanceSum(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_balance.UpdateMemberBalanceRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.serializeBinaryToWriter( + this, + writer + ); + 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_balance.UpdateMemberBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getBalance(); + if (f !== 0.0) { + writer.writeDouble(2, f); + } + f = message.getBalanceBota(); + if (f !== 0.0) { + writer.writeDouble(3, f); + } + f = message.getBalanceSum(); + if (f !== 0.0) { + writer.writeDouble(4, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional double balance = 2; + * @return {number} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.getBalance = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.setBalance = + function (value) { + return jspb.Message.setProto3FloatField(this, 2, value); + }; + +/** + * optional double balance_bota = 3; + * @return {number} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.getBalanceBota = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.setBalanceBota = + function (value) { + return jspb.Message.setProto3FloatField(this, 3, value); + }; + +/** + * optional double balance_sum = 4; + * @return {number} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.getBalanceSum = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceRequest.prototype.setBalanceSum = + function (value) { + return jspb.Message.setProto3FloatField(this, 4, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.UpdateMemberBalanceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse(); + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse + .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_balance.UpdateMemberBalanceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.serializeBinaryToWriter( + this, + writer + ); + 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_balance.UpdateMemberBalanceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberBalance: + (f = msg.getMemberBalance()) && + models_member_balance_pb.MemberBalance.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_balance.UpdateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result(); + return proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance_pb.MemberBalance(); + reader.readMessage( + value, + models_member_balance_pb.MemberBalance.deserializeBinaryFromReader + ); + msg.setMemberBalance(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_balance.UpdateMemberBalanceResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberBalance(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_balance_pb.MemberBalance.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_balance.MemberBalance member_balance = 1; + * @return {?proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.prototype.getMemberBalance = + function () { + return /** @type{?proto.bet.beteran.member_balance.MemberBalance} */ ( + jspb.Message.getWrapperField( + this, + models_member_balance_pb.MemberBalance, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_balance.MemberBalance|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.prototype.setMemberBalance = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.prototype.clearMemberBalance = + function () { + return this.setMemberBalance(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result.prototype.hasMemberBalance = + 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_balance.UpdateMemberBalanceResponse.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_balance.UpdateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.UpdateMemberBalanceResponse.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_balance.DeleteMemberBalanceRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.DeleteMemberBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.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_balance.DeleteMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest(); + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.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_balance.DeleteMemberBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.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_balance.DeleteMemberBalanceRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.serializeBinaryToWriter( + this, + writer + ); + 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_balance.DeleteMemberBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.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_balance.DeleteMemberBalanceRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest} returns this + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceRequest.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_balance.DeleteMemberBalanceResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|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_balance.DeleteMemberBalanceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse(); + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse + .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_balance.DeleteMemberBalanceResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.serializeBinaryToWriter( + this, + writer + ); + 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_balance.DeleteMemberBalanceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result(); + return proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse.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_balance.DeleteMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse} returns this + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_balance.DeleteMemberBalanceResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.member_balance); diff --git a/src/app/modules/proto/models/member_balance_pb.d.ts b/src/app/modules/proto/models/member_balance_pb.d.ts new file mode 100644 index 0000000..a5c2629 --- /dev/null +++ b/src/app/modules/proto/models/member_balance_pb.d.ts @@ -0,0 +1,59 @@ +// package: bet.beteran.member_balance +// file: models/member_balance.proto + +import * as jspb from 'google-protobuf'; + +export class MemberBalance extends jspb.Message { + getId(): string; + setId(value: string): void; + + getMemberId(): string; + setMemberId(value: string): void; + + getBalance(): number; + setBalance(value: number): void; + + getBalanceBota(): number; + setBalanceBota(value: number): void; + + getBalanceSum(): number; + setBalanceSum(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemberBalance.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberBalance + ): MemberBalance.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberBalance, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberBalance; + static deserializeBinaryFromReader( + message: MemberBalance, + reader: jspb.BinaryReader + ): MemberBalance; +} + +export namespace MemberBalance { + export type AsObject = { + id: string; + memberId: string; + balance: number; + balanceBota: number; + balanceSum: number; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/member_balance_pb.js b/src/app/modules/proto/models/member_balance_pb.js new file mode 100644 index 0000000..3de379d --- /dev/null +++ b/src/app/modules/proto/models/member_balance_pb.js @@ -0,0 +1,357 @@ +// source: models/member_balance.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol( + "proto.bet.beteran.member_balance.MemberBalance", + 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_balance.MemberBalance = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member_balance.MemberBalance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member_balance.MemberBalance.displayName = + "proto.bet.beteran.member_balance.MemberBalance"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} 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_balance.MemberBalance.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member_balance.MemberBalance.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {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_balance.MemberBalance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member_balance.MemberBalance.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberId: jspb.Message.getFieldWithDefault(msg, 2, ""), + balance: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + balanceBota: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + balanceSum: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.member_balance.MemberBalance.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member_balance.MemberBalance(); + return proto.bet.beteran.member_balance.MemberBalance.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member_balance.MemberBalance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.member_balance.MemberBalance.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 {number} */ (reader.readDouble()); + msg.setBalance(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBalanceBota(value); + break; + case 5: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBalanceSum(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member_balance.MemberBalance.serializeBinaryToWriter( + this, + 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_balance.MemberBalance} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member_balance.MemberBalance.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.getBalance(); + if (f !== 0.0) { + writer.writeDouble(3, f); + } + f = message.getBalanceBota(); + if (f !== 0.0) { + writer.writeDouble(4, f); + } + f = message.getBalanceSum(); + if (f !== 0.0) { + writer.writeDouble(5, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(6, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(7, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional string member_id = 2; + * @return {string} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setMemberId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional double balance = 3; + * @return {number} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getBalance = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setBalance = function ( + value +) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + +/** + * optional double balance_bota = 4; + * @return {number} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getBalanceBota = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setBalanceBota = + function (value) { + return jspb.Message.setProto3FloatField(this, 4, value); + }; + +/** + * optional double balance_sum = 5; + * @return {number} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getBalanceSum = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setBalanceSum = + function (value) { + return jspb.Message.setProto3FloatField(this, 5, value); + }; + +/** + * optional uint64 created_at = 6; + * @return {number} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getCreatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 6, value); + }; + +/** + * optional uint64 updated_at = 7; + * @return {number} + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.getUpdatedAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_balance.MemberBalance} returns this + */ +proto.bet.beteran.member_balance.MemberBalance.prototype.setUpdatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 7, value); + }; + +goog.object.extend(exports, proto.bet.beteran.member_balance); diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts index fcd9a3f..ce3c9ea 100644 --- a/src/app/modules/proto/models/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -8,6 +8,7 @@ import * as models_member_class_pb from '../models/member_class_pb'; import * as models_member_level_pb from '../models/member_level_pb'; import * as models_member_game_setting_pb from '../models/member_game_setting_pb'; import * as models_member_settlement_setting_pb from '../models/member_settlement_setting_pb'; +import * as models_member_balance_pb from '../models/member_balance_pb'; export class Member extends jspb.Message { getId(): string; @@ -187,6 +188,11 @@ export class MemberModel extends jspb.Message { value?: models_member_settlement_setting_pb.MemberSettlementSetting ): void; + hasMemberBalance(): boolean; + clearMemberBalance(): void; + getMemberBalance(): models_member_balance_pb.MemberBalance | undefined; + setMemberBalance(value?: models_member_balance_pb.MemberBalance): void; + hasLastSigninedIp(): boolean; clearLastSigninedIp(): void; getLastSigninedIp(): string; @@ -246,6 +252,7 @@ export namespace MemberModel { stateChangedAt: number; memberGameSetting?: models_member_game_setting_pb.MemberGameSetting.AsObject; memberSettlementSetting?: models_member_settlement_setting_pb.MemberSettlementSetting.AsObject; + memberBalance?: models_member_balance_pb.MemberBalance.AsObject; lastSigninedIp: string; lastSigninedAt: number; createdAt: number; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js index c0dc1cb..0bc8f68 100644 --- a/src/app/modules/proto/models/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -29,6 +29,8 @@ var models_member_game_setting_pb = require("../models/member_game_setting_pb.js goog.object.extend(proto, models_member_game_setting_pb); var models_member_settlement_setting_pb = require("../models/member_settlement_setting_pb.js"); goog.object.extend(proto, models_member_settlement_setting_pb); +var models_member_balance_pb = require("../models/member_balance_pb.js"); +goog.object.extend(proto, models_member_balance_pb); goog.exportSymbol("proto.bet.beteran.member.Member", null, global); goog.exportSymbol("proto.bet.beteran.member.MemberModel", null, global); goog.exportSymbol("proto.bet.beteran.member.MemberState", null, global); @@ -774,11 +776,14 @@ if (jspb.Message.GENERATE_TO_OBJECT) { includeInstance, f ), - lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 16, ""), - lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 17, 0), - createdAt: jspb.Message.getFieldWithDefault(msg, 18, 0), - updatedAt: jspb.Message.getFieldWithDefault(msg, 19, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 20, 0), + memberBalance: + (f = msg.getMemberBalance()) && + models_member_balance_pb.MemberBalance.toObject(includeInstance, f), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 17, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 18, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 19, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 20, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 21, 0), }; if (includeInstance) { @@ -920,22 +925,30 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( msg.setMemberSettlementSetting(value); break; case 16: + var value = new models_member_balance_pb.MemberBalance(); + reader.readMessage( + value, + models_member_balance_pb.MemberBalance.deserializeBinaryFromReader + ); + msg.setMemberBalance(value); + break; + case 17: var value = /** @type {string} */ (reader.readString()); msg.setLastSigninedIp(value); break; - case 17: + case 18: var value = /** @type {number} */ (reader.readUint64()); msg.setLastSigninedAt(value); break; - case 18: + case 19: var value = /** @type {number} */ (reader.readUint64()); msg.setCreatedAt(value); break; - case 19: + case 20: var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; - case 20: + case 21: var value = /** @type {number} */ (reader.readUint64()); msg.setDeletedAt(value); break; @@ -1055,26 +1068,34 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( .serializeBinaryToWriter ); } - f = /** @type {string} */ (jspb.Message.getField(message, 16)); + f = message.getMemberBalance(); if (f != null) { - writer.writeString(16, f); + writer.writeMessage( + 16, + f, + models_member_balance_pb.MemberBalance.serializeBinaryToWriter + ); } - f = /** @type {number} */ (jspb.Message.getField(message, 17)); + f = /** @type {string} */ (jspb.Message.getField(message, 17)); if (f != null) { - writer.writeUint64(17, f); + writer.writeString(17, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 18)); + if (f != null) { + writer.writeUint64(18, f); } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(18, f); + writer.writeUint64(19, f); } f = message.getUpdatedAt(); if (f !== 0) { - writer.writeUint64(19, f); - } - f = /** @type {number} */ (jspb.Message.getField(message, 20)); - if (f != null) { writer.writeUint64(20, f); } + f = /** @type {number} */ (jspb.Message.getField(message, 21)); + if (f != null) { + writer.writeUint64(21, f); + } }; /** @@ -1546,11 +1567,52 @@ proto.bet.beteran.member.MemberModel.prototype.hasMemberSettlementSetting = }; /** - * optional string last_signined_ip = 16; + * optional bet.beteran.member_balance.MemberBalance member_balance = 16; + * @return {?proto.bet.beteran.member_balance.MemberBalance} + */ +proto.bet.beteran.member.MemberModel.prototype.getMemberBalance = function () { + return /** @type{?proto.bet.beteran.member_balance.MemberBalance} */ ( + jspb.Message.getWrapperField( + this, + models_member_balance_pb.MemberBalance, + 16 + ) + ); +}; + +/** + * @param {?proto.bet.beteran.member_balance.MemberBalance|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMemberBalance = function ( + value +) { + return jspb.Message.setWrapperField(this, 16, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMemberBalance = + function () { + return this.setMemberBalance(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMemberBalance = function () { + return jspb.Message.getField(this, 16) != null; +}; + +/** + * optional string last_signined_ip = 17; * @return {string} */ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; /** @@ -1560,7 +1622,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( value ) { - return jspb.Message.setField(this, 16, value); + return jspb.Message.setField(this, 17, value); }; /** @@ -1569,7 +1631,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = function () { - return jspb.Message.setField(this, 16, undefined); + return jspb.Message.setField(this, 17, undefined); }; /** @@ -1577,15 +1639,15 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () { - return jspb.Message.getField(this, 16) != null; + return jspb.Message.getField(this, 17) != null; }; /** - * optional uint64 last_signined_at = 17; + * optional uint64 last_signined_at = 18; * @return {number} */ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; /** @@ -1595,7 +1657,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( value ) { - return jspb.Message.setField(this, 17, value); + return jspb.Message.setField(this, 18, value); }; /** @@ -1604,7 +1666,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = function () { - return jspb.Message.setField(this, 17, undefined); + return jspb.Message.setField(this, 18, undefined); }; /** @@ -1612,30 +1674,14 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () { - return jspb.Message.getField(this, 17) != null; + return jspb.Message.getField(this, 18) != null; }; /** - * optional uint64 created_at = 18; + * optional uint64 created_at = 19; * @return {number} */ proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberModel} returns this - */ -proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 18, value); -}; - -/** - * optional uint64 updated_at = 19; - * @return {number} - */ -proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); }; @@ -1643,24 +1689,40 @@ proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) { return jspb.Message.setProto3IntField(this, 19, value); }; /** - * optional uint64 deleted_at = 20; + * optional uint64 updated_at = 20; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); }; +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + +/** + * optional uint64 deleted_at = 21; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); +}; + /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 20, value); + return jspb.Message.setField(this, 21, value); }; /** @@ -1668,7 +1730,7 @@ proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) { * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 20, undefined); + return jspb.Message.setField(this, 21, undefined); }; /** @@ -1676,7 +1738,7 @@ proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 20) != null; + return jspb.Message.getField(this, 21) != null; }; /**