diff --git a/src/app/modules/proto/c2se/api/betting_pb.d.ts b/src/app/modules/proto/c2se/api/betting_pb.d.ts new file mode 100644 index 0000000..f449b22 --- /dev/null +++ b/src/app/modules/proto/c2se/api/betting_pb.d.ts @@ -0,0 +1,346 @@ +// package: bet.beteran.c2se.api.betting +// file: c2se/api/betting.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../../protobuf/pagination_pb'; +import * as models_core_network_pb from '../../models/core/network_pb'; +import * as models_api_betting_pb from '../../models/api/betting_pb'; + +export class ListBettingHistoryRequest 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(): ListBettingHistoryRequest.Search | undefined; + setSearch(value?: ListBettingHistoryRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBettingHistoryRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListBettingHistoryRequest + ): ListBettingHistoryRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListBettingHistoryRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListBettingHistoryRequest; + static deserializeBinaryFromReader( + message: ListBettingHistoryRequest, + reader: jspb.BinaryReader + ): ListBettingHistoryRequest; +} + +export namespace ListBettingHistoryRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListBettingHistoryRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasMemberId(): boolean; + clearMemberId(): void; + getMemberId(): string; + setMemberId(value: string): void; + + hasVendorId(): boolean; + clearVendorId(): void; + getVendorId(): number; + setVendorId(value: number): void; + + clearVendorIdsList(): void; + getVendorIdsList(): Array; + setVendorIdsList(value: Array): void; + addVendorIds(value: number, index?: number): number; + + hasVendorName(): boolean; + clearVendorName(): void; + getVendorName(): string; + setVendorName(value: string): void; + + hasVendorNameLike(): boolean; + clearVendorNameLike(): void; + getVendorNameLike(): string; + setVendorNameLike(value: string): void; + + hasGameId(): boolean; + clearGameId(): void; + getGameId(): number; + setGameId(value: number): void; + + clearGameIdsList(): void; + getGameIdsList(): Array; + setGameIdsList(value: Array): void; + addGameIds(value: number, index?: number): number; + + hasGameName(): boolean; + clearGameName(): void; + getGameName(): string; + setGameName(value: string): void; + + hasGameNameLike(): boolean; + clearGameNameLike(): void; + getGameNameLike(): string; + setGameNameLike(value: string): void; + + hasGameCategory(): boolean; + clearGameCategory(): void; + getGameCategory(): string; + setGameCategory(value: string): void; + + hasGameCategoryLike(): boolean; + clearGameCategoryLike(): void; + getGameCategoryLike(): string; + setGameCategoryLike(value: string): void; + + hasGameType(): boolean; + clearGameType(): void; + getGameType(): string; + setGameType(value: string): void; + + hasGameTypeLike(): boolean; + clearGameTypeLike(): void; + getGameTypeLike(): string; + setGameTypeLike(value: string): void; + + hasCurrency(): boolean; + clearCurrency(): void; + getCurrency(): string; + setCurrency(value: string): void; + + hasCurrencyLike(): boolean; + clearCurrencyLike(): void; + getCurrencyLike(): string; + setCurrencyLike(value: string): void; + + hasKey(): boolean; + clearKey(): void; + getKey(): string; + setKey(value: string): void; + + hasKeyLike(): boolean; + clearKeyLike(): void; + getKeyLike(): string; + setKeyLike(value: string): void; + + hasRefId(): boolean; + clearRefId(): void; + getRefId(): string; + setRefId(value: string): void; + + hasRefIdLike(): boolean; + clearRefIdLike(): void; + getRefIdLike(): string; + setRefIdLike(value: string): void; + + hasORefId(): boolean; + clearORefId(): void; + getORefId(): string; + setORefId(value: string): void; + + hasORefIdLike(): boolean; + clearORefIdLike(): void; + getORefIdLike(): string; + setORefIdLike(value: string): void; + + hasGroupKey(): boolean; + clearGroupKey(): void; + getGroupKey(): string; + setGroupKey(value: string): void; + + hasGroupKeyLike(): boolean; + clearGroupKeyLike(): void; + getGroupKeyLike(): string; + setGroupKeyLike(value: string): void; + + hasIsBonus(): boolean; + clearIsBonus(): void; + getIsBonus(): boolean; + setIsBonus(value: boolean): void; + + hasIsPromo(): boolean; + clearIsPromo(): void; + getIsPromo(): boolean; + setIsPromo(value: boolean): void; + + hasIsJackpot(): boolean; + clearIsJackpot(): void; + getIsJackpot(): boolean; + setIsJackpot(value: boolean): void; + + hasSiteUsername(): boolean; + clearSiteUsername(): void; + getSiteUsername(): string; + setSiteUsername(value: string): void; + + hasSiteUsernameLike(): boolean; + clearSiteUsernameLike(): void; + getSiteUsernameLike(): string; + setSiteUsernameLike(value: string): void; + + hasBettingType(): boolean; + clearBettingType(): void; + getBettingType(): string; + setBettingType(value: string): void; + + hasBettingTypeLike(): boolean; + clearBettingTypeLike(): void; + getBettingTypeLike(): string; + setBettingTypeLike(value: string): void; + + hasCategory(): boolean; + clearCategory(): void; + getCategory(): string; + setCategory(value: string): void; + + hasCategoryLike(): boolean; + clearCategoryLike(): void; + getCategoryLike(): string; + setCategoryLike(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; + vendorId: number; + vendorIdsList: Array; + vendorName: string; + vendorNameLike: string; + gameId: number; + gameIdsList: Array; + gameName: string; + gameNameLike: string; + gameCategory: string; + gameCategoryLike: string; + gameType: string; + gameTypeLike: string; + currency: string; + currencyLike: string; + key: string; + keyLike: string; + refId: string; + refIdLike: string; + oRefId: string; + oRefIdLike: string; + groupKey: string; + groupKeyLike: string; + isBonus: boolean; + isPromo: boolean; + isJackpot: boolean; + siteUsername: string; + siteUsernameLike: string; + bettingType: string; + bettingTypeLike: string; + category: string; + categoryLike: string; + }; + } +} + +export class ListBettingHistoryResponse 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(): ListBettingHistoryResponse.Result | undefined; + setResult(value?: ListBettingHistoryResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBettingHistoryResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListBettingHistoryResponse + ): ListBettingHistoryResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListBettingHistoryResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListBettingHistoryResponse; + static deserializeBinaryFromReader( + message: ListBettingHistoryResponse, + reader: jspb.BinaryReader + ): ListBettingHistoryResponse; +} + +export namespace ListBettingHistoryResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListBettingHistoryResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearBettingHistoryList(): void; + getBettingHistoryList(): Array; + setBettingHistoryList( + value: Array + ): void; + addBettingHistory( + value?: models_api_betting_pb.BettingHistoryModel, + index?: number + ): models_api_betting_pb.BettingHistoryModel; + + 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 = { + bettingHistoryList: Array; + }; + } +} diff --git a/src/app/modules/proto/c2se/api/betting_pb.js b/src/app/modules/proto/c2se/api/betting_pb.js new file mode 100644 index 0000000..58b0957 --- /dev/null +++ b/src/app/modules/proto/c2se/api/betting_pb.js @@ -0,0 +1,2534 @@ +// source: c2se/api/betting.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_pb = require("../../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_core_network_pb = require("../../models/core/network_pb.js"); +goog.object.extend(proto, models_core_network_pb); +var models_api_betting_pb = require("../../models/api/betting_pb.js"); +goog.object.extend(proto, models_api_betting_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.displayName = + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.displayName = + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.displayName = + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.displayName = + "proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.repeatedFields_ = [ + 2, +]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest(); + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search + .deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.repeatedFields_ = + [3, 7]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + vendorIdsList: + (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + vendorName: jspb.Message.getFieldWithDefault(msg, 4, ""), + vendorNameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + gameId: jspb.Message.getFieldWithDefault(msg, 6, 0), + gameIdsList: + (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + gameName: jspb.Message.getFieldWithDefault(msg, 8, ""), + gameNameLike: jspb.Message.getFieldWithDefault(msg, 9, ""), + gameCategory: jspb.Message.getFieldWithDefault(msg, 10, ""), + gameCategoryLike: jspb.Message.getFieldWithDefault(msg, 11, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 12, ""), + gameTypeLike: jspb.Message.getFieldWithDefault(msg, 13, ""), + currency: jspb.Message.getFieldWithDefault(msg, 14, ""), + currencyLike: jspb.Message.getFieldWithDefault(msg, 15, ""), + key: jspb.Message.getFieldWithDefault(msg, 16, ""), + keyLike: jspb.Message.getFieldWithDefault(msg, 17, ""), + refId: jspb.Message.getFieldWithDefault(msg, 18, ""), + refIdLike: jspb.Message.getFieldWithDefault(msg, 19, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 20, ""), + oRefIdLike: jspb.Message.getFieldWithDefault(msg, 21, ""), + groupKey: jspb.Message.getFieldWithDefault(msg, 22, ""), + groupKeyLike: jspb.Message.getFieldWithDefault(msg, 23, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 26, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 27, ""), + siteUsernameLike: jspb.Message.getFieldWithDefault(msg, 28, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 29, ""), + bettingTypeLike: jspb.Message.getFieldWithDefault(msg, 30, ""), + category: jspb.Message.getFieldWithDefault(msg, 31, ""), + categoryLike: jspb.Message.getFieldWithDefault(msg, 32, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search(); + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 3: + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ); + for (var i = 0; i < values.length; i++) { + msg.addVendorIds(values[i]); + } + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorName(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorNameLike(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGameId(value); + break; + case 7: + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ); + for (var i = 0; i < values.length; i++) { + msg.addGameIds(values[i]); + } + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setGameName(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setGameNameLike(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategory(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategoryLike(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setGameTypeLike(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrency(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrencyLike(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyLike(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setRefIdLike(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setORefId(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setORefIdLike(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKey(value); + break; + case 23: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKeyLike(value); + break; + case 24: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBonus(value); + break; + case 25: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPromo(value); + break; + case 26: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsJackpot(value); + break; + case 27: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsername(value); + break; + case 28: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsernameLike(value); + break; + case 29: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingType(value); + break; + case 30: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingTypeLike(value); + break; + case 31: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 32: + var value = /** @type {string} */ (reader.readString()); + msg.setCategoryLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64(2, f); + } + f = message.getVendorIdsList(); + if (f.length > 0) { + writer.writePackedUint64(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint64(6, f); + } + f = message.getGameIdsList(); + if (f.length > 0) { + writer.writePackedUint64(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeString(11, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeString(12, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeString(13, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeString(14, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeString(15, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeString(16, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeString(17, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 18)); + if (f != null) { + writer.writeString(18, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeString(19, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 20)); + if (f != null) { + writer.writeString(20, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 21)); + if (f != null) { + writer.writeString(21, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 22)); + if (f != null) { + writer.writeString(22, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 23)); + if (f != null) { + writer.writeString(23, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 24)); + if (f != null) { + writer.writeBool(24, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 25)); + if (f != null) { + writer.writeBool(25, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 26)); + if (f != null) { + writer.writeBool(26, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 27)); + if (f != null) { + writer.writeString(27, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 28)); + if (f != null) { + writer.writeString(28, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 29)); + if (f != null) { + writer.writeString(29, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 30)); + if (f != null) { + writer.writeString(30, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 31)); + if (f != null) { + writer.writeString(31, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 32)); + if (f != null) { + writer.writeString(32, f); + } + }; + +/** + * optional string member_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setMemberId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearMemberId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasMemberId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setVendorId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearVendorId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasVendorId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * repeated uint64 vendor_ids = 3; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 3) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setVendorIdsList = + function (value) { + return jspb.Message.setField(this, 3, value || []); + }; + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.addVendorIds = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearVendorIdsList = + function () { + return this.setVendorIdsList([]); + }; + +/** + * optional string vendor_name = 4; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setVendorName = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearVendorName = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasVendorName = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string vendor_name_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setVendorNameLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearVendorNameLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasVendorNameLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional uint64 game_id = 6; + * @return {number} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameId = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameId = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameId = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * repeated uint64 game_ids = 7; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 7) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameIdsList = + function (value) { + return jspb.Message.setField(this, 7, value || []); + }; + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.addGameIds = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameIdsList = + function () { + return this.setGameIdsList([]); + }; + +/** + * optional string game_name = 8; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameName = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameName = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameName = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional string game_name_like = 9; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 9, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameNameLike = + function (value) { + return jspb.Message.setField(this, 9, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameNameLike = + function () { + return jspb.Message.setField(this, 9, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameNameLike = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +/** + * optional string game_category = 10; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameCategory = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameCategory = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameCategory = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional string game_category_like = 11; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameCategoryLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 11, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameCategoryLike = + function (value) { + return jspb.Message.setField(this, 11, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameCategoryLike = + function () { + return jspb.Message.setField(this, 11, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameCategoryLike = + function () { + return jspb.Message.getField(this, 11) != null; + }; + +/** + * optional string game_type = 12; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 12, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameType = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameType = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameType = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional string game_type_like = 13; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameTypeLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 13, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGameTypeLike = + function (value) { + return jspb.Message.setField(this, 13, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGameTypeLike = + function () { + return jspb.Message.setField(this, 13, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGameTypeLike = + function () { + return jspb.Message.getField(this, 13) != null; + }; + +/** + * optional string currency = 14; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCurrency = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 14, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setCurrency = + function (value) { + return jspb.Message.setField(this, 14, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearCurrency = + function () { + return jspb.Message.setField(this, 14, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasCurrency = + function () { + return jspb.Message.getField(this, 14) != null; + }; + +/** + * optional string currency_like = 15; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCurrencyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 15, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setCurrencyLike = + function (value) { + return jspb.Message.setField(this, 15, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearCurrencyLike = + function () { + return jspb.Message.setField(this, 15, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasCurrencyLike = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional string key = 16; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 16, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setKey = + function (value) { + return jspb.Message.setField(this, 16, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearKey = + function () { + return jspb.Message.setField(this, 16, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasKey = + function () { + return jspb.Message.getField(this, 16) != null; + }; + +/** + * optional string key_like = 17; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getKeyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 17, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setKeyLike = + function (value) { + return jspb.Message.setField(this, 17, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearKeyLike = + function () { + return jspb.Message.setField(this, 17, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasKeyLike = + function () { + return jspb.Message.getField(this, 17) != null; + }; + +/** + * optional string ref_id = 18; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getRefId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 18, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setRefId = + function (value) { + return jspb.Message.setField(this, 18, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearRefId = + function () { + return jspb.Message.setField(this, 18, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasRefId = + function () { + return jspb.Message.getField(this, 18) != null; + }; + +/** + * optional string ref_id_like = 19; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getRefIdLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 19, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setRefIdLike = + function (value) { + return jspb.Message.setField(this, 19, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearRefIdLike = + function () { + return jspb.Message.setField(this, 19, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasRefIdLike = + function () { + return jspb.Message.getField(this, 19) != null; + }; + +/** + * optional string o_ref_id = 20; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getORefId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 20, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setORefId = + function (value) { + return jspb.Message.setField(this, 20, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearORefId = + function () { + return jspb.Message.setField(this, 20, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasORefId = + function () { + return jspb.Message.getField(this, 20) != null; + }; + +/** + * optional string o_ref_id_like = 21; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getORefIdLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 21, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setORefIdLike = + function (value) { + return jspb.Message.setField(this, 21, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearORefIdLike = + function () { + return jspb.Message.setField(this, 21, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasORefIdLike = + function () { + return jspb.Message.getField(this, 21) != null; + }; + +/** + * optional string group_key = 22; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGroupKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 22, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGroupKey = + function (value) { + return jspb.Message.setField(this, 22, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGroupKey = + function () { + return jspb.Message.setField(this, 22, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGroupKey = + function () { + return jspb.Message.getField(this, 22) != null; + }; + +/** + * optional string group_key_like = 23; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGroupKeyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 23, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setGroupKeyLike = + function (value) { + return jspb.Message.setField(this, 23, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearGroupKeyLike = + function () { + return jspb.Message.setField(this, 23, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasGroupKeyLike = + function () { + return jspb.Message.getField(this, 23) != null; + }; + +/** + * optional bool is_bonus = 24; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsBonus = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 24, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setIsBonus = + function (value) { + return jspb.Message.setField(this, 24, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearIsBonus = + function () { + return jspb.Message.setField(this, 24, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasIsBonus = + function () { + return jspb.Message.getField(this, 24) != null; + }; + +/** + * optional bool is_promo = 25; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsPromo = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 25, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setIsPromo = + function (value) { + return jspb.Message.setField(this, 25, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearIsPromo = + function () { + return jspb.Message.setField(this, 25, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasIsPromo = + function () { + return jspb.Message.getField(this, 25) != null; + }; + +/** + * optional bool is_jackpot = 26; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsJackpot = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 26, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setIsJackpot = + function (value) { + return jspb.Message.setField(this, 26, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearIsJackpot = + function () { + return jspb.Message.setField(this, 26, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasIsJackpot = + function () { + return jspb.Message.getField(this, 26) != null; + }; + +/** + * optional string site_username = 27; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getSiteUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 27, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setSiteUsername = + function (value) { + return jspb.Message.setField(this, 27, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearSiteUsername = + function () { + return jspb.Message.setField(this, 27, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasSiteUsername = + function () { + return jspb.Message.getField(this, 27) != null; + }; + +/** + * optional string site_username_like = 28; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getSiteUsernameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 28, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setSiteUsernameLike = + function (value) { + return jspb.Message.setField(this, 28, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearSiteUsernameLike = + function () { + return jspb.Message.setField(this, 28, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasSiteUsernameLike = + function () { + return jspb.Message.getField(this, 28) != null; + }; + +/** + * optional string betting_type = 29; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getBettingType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 29, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setBettingType = + function (value) { + return jspb.Message.setField(this, 29, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearBettingType = + function () { + return jspb.Message.setField(this, 29, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasBettingType = + function () { + return jspb.Message.getField(this, 29) != null; + }; + +/** + * optional string betting_type_like = 30; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getBettingTypeLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 30, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setBettingTypeLike = + function (value) { + return jspb.Message.setField(this, 30, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearBettingTypeLike = + function () { + return jspb.Message.setField(this, 30, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasBettingTypeLike = + function () { + return jspb.Message.getField(this, 30) != null; + }; + +/** + * optional string category = 31; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 31, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setCategory = + function (value) { + return jspb.Message.setField(this, 31, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearCategory = + function () { + return jspb.Message.setField(this, 31, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasCategory = + function () { + return jspb.Message.getField(this, 31) != null; + }; + +/** + * optional string category_like = 32; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCategoryLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 32, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.setCategoryLike = + function (value) { + return jspb.Message.setField(this, 32, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.clearCategoryLike = + function () { + return jspb.Message.setField(this, 32, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.hasCategoryLike = + function () { + return jspb.Message.getField(this, 32) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse(); + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.repeatedFields_ = + [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + bettingHistoryList: jspb.Message.toObjectList( + msg.getBettingHistoryList(), + models_api_betting_pb.BettingHistoryModel.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result(); + return proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_api_betting_pb.BettingHistoryModel(); + reader.readMessage( + value, + models_api_betting_pb.BettingHistoryModel + .deserializeBinaryFromReader + ); + msg.addBettingHistory(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getBettingHistoryList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_api_betting_pb.BettingHistoryModel.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.api.betting.BettingHistoryModel betting_history = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.getBettingHistoryList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_api_betting_pb.BettingHistoryModel, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.setBettingHistoryList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.api.betting.BettingHistoryModel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.addBettingHistory = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.api.betting.BettingHistoryModel, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result.prototype.clearBettingHistoryList = + function () { + return this.setBettingHistoryList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse} returns this + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.api.betting); diff --git a/src/app/modules/proto/c2se/member_pb.d.ts b/src/app/modules/proto/c2se/member_pb.d.ts index 78494fe..d79c8ea 100644 --- a/src/app/modules/proto/c2se/member_pb.d.ts +++ b/src/app/modules/proto/c2se/member_pb.d.ts @@ -436,11 +436,31 @@ export namespace ListMembersRequest { getParentMemberId(): string; setParentMemberId(value: string): void; + hasUsername(): boolean; + clearUsername(): void; + getUsername(): string; + setUsername(value: string): void; + + clearUsernamesList(): void; + getUsernamesList(): Array; + setUsernamesList(value: Array): void; + addUsernames(value: string, index?: number): string; + hasUsernameLike(): boolean; clearUsernameLike(): void; getUsernameLike(): string; setUsernameLike(value: string): void; + hasNickname(): boolean; + clearNickname(): void; + getNickname(): string; + setNickname(value: string): void; + + clearNicknamesList(): void; + getNicknamesList(): Array; + setNicknamesList(value: Array): void; + addNicknames(value: string, index?: number): string; + hasNicknameLike(): boolean; clearNicknameLike(): void; getNicknameLike(): string; @@ -492,7 +512,11 @@ export namespace ListMembersRequest { memberClassId: string; memberLevelId: string; parentMemberId: string; + username: string; + usernamesList: Array; usernameLike: string; + nickname: string; + nicknamesList: Array; nicknameLike: string; mobilePhoneNumberLike: string; lastSigninedIp: string; diff --git a/src/app/modules/proto/c2se/member_pb.js b/src/app/modules/proto/c2se/member_pb.js index 8866fb6..f6e24f5 100644 --- a/src/app/modules/proto/c2se/member_pb.js +++ b/src/app/modules/proto/c2se/member_pb.js @@ -372,7 +372,14 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.bet.beteran.c2se.member.ListMembersRequest.Search = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member.ListMembersRequest.Search.repeatedFields_, + null + ); }; goog.inherits( proto.bet.beteran.c2se.member.ListMembersRequest.Search, @@ -3448,6 +3455,15 @@ proto.bet.beteran.c2se.member.ListMembersRequest.serializeBinaryToWriter = } }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.repeatedFields_ = [ + 6, 9, +]; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -3488,12 +3504,18 @@ if (jspb.Message.GENERATE_TO_OBJECT) { memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), - usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), - nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""), - mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""), - lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 8, ""), - state: jspb.Message.getFieldWithDefault(msg, 9, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 10, 0), + username: jspb.Message.getFieldWithDefault(msg, 5, ""), + usernamesList: + (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + usernameLike: jspb.Message.getFieldWithDefault(msg, 7, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), + nicknamesList: + (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + nicknameLike: jspb.Message.getFieldWithDefault(msg, 10, ""), + mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 11, ""), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 12, ""), + state: jspb.Message.getFieldWithDefault(msg, 13, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 14, 0), }; if (includeInstance) { @@ -3551,27 +3573,43 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromRea break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setUsernameLike(value); + msg.setUsername(value); break; case 6: var value = /** @type {string} */ (reader.readString()); - msg.setNicknameLike(value); + msg.addUsernames(value); break; case 7: var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumberLike(value); + msg.setUsernameLike(value); break; case 8: var value = /** @type {string} */ (reader.readString()); - msg.setLastSigninedIp(value); + msg.setNickname(value); break; case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addNicknames(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setNicknameLike(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumberLike(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 13: var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( reader.readEnum() ); msg.setState(value); break; - case 10: + case 14: var value = /** @type {number} */ (reader.readUint64()); msg.setDeletedAt(value); break; @@ -3627,9 +3665,9 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter if (f != null) { writer.writeString(5, f); } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString(6, f); + f = message.getUsernamesList(); + if (f.length > 0) { + writer.writeRepeatedString(6, f); } f = /** @type {string} */ (jspb.Message.getField(message, 7)); if (f != null) { @@ -3639,15 +3677,31 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter if (f != null) { writer.writeString(8, f); } + f = message.getNicknamesList(); + if (f.length > 0) { + writer.writeRepeatedString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeString(11, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeString(12, f); + } f = /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getField(message, 9) + jspb.Message.getField(message, 13) ); if (f != null) { - writer.writeEnum(9, f); + writer.writeEnum(13, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 10)); + f = /** @type {number} */ (jspb.Message.getField(message, 14)); if (f != null) { - writer.writeUint64(10, f); + writer.writeUint64(14, f); } }; @@ -3804,10 +3858,10 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasParentMembe }; /** - * optional string username_like = 5; + * optional string username = 5; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsername = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 5, "") @@ -3818,7 +3872,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLik * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsername = function (value) { return jspb.Message.setField(this, 5, value); }; @@ -3827,7 +3881,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLik * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsername = function () { return jspb.Message.setField(this, 5, undefined); }; @@ -3836,54 +3890,55 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameL * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsername = function () { return jspb.Message.getField(this, 5) != null; }; /** - * optional string nickname_like = 6; - * @return {string} + * repeated string usernames = 6; + * @return {!Array} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernamesList = function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 6) ); }; /** - * @param {string} value + * @param {!Array} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernamesList = function (value) { - return jspb.Message.setField(this, 6, value); + return jspb.Message.setField(this, 6, value || []); }; /** - * Clears the field making it undefined. + * @param {string} value + * @param {number=} opt_index * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknameLike = - function () { - return jspb.Message.setField(this, 6, undefined); +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.addUsernames = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernamesList = function () { - return jspb.Message.getField(this, 6) != null; + return this.setUsernamesList([]); }; /** - * optional string mobile_phone_number_like = 7; + * optional string username_like = 7; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLike = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 7, "") @@ -3894,7 +3949,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhone * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLike = function (value) { return jspb.Message.setField(this, 7, value); }; @@ -3903,7 +3958,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhone * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameLike = function () { return jspb.Message.setField(this, 7, undefined); }; @@ -3912,16 +3967,16 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePho * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsernameLike = function () { return jspb.Message.getField(this, 7) != null; }; /** - * optional string last_signined_ip = 8; + * optional string nickname = 8; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNickname = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 8, "") @@ -3932,7 +3987,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSignine * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNickname = function (value) { return jspb.Message.setField(this, 8, value); }; @@ -3941,7 +3996,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSignine * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNickname = function () { return jspb.Message.setField(this, 8, undefined); }; @@ -3950,19 +4005,172 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigni * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNickname = function () { return jspb.Message.getField(this, 8) != null; }; /** - * optional bet.beteran.member.MemberState state = 9; + * repeated string nicknames = 9; + * @return {!Array} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknamesList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 9) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknamesList = + function (value) { + return jspb.Message.setField(this, 9, value || []); + }; + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.addNicknames = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknamesList = + function () { + return this.setNicknamesList([]); + }; + +/** + * optional string nickname_like = 10; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknameLike = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknameLike = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNicknameLike = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional string mobile_phone_number_like = 11; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhoneNumberLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 11, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhoneNumberLike = + function (value) { + return jspb.Message.setField(this, 11, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePhoneNumberLike = + function () { + return jspb.Message.setField(this, 11, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMobilePhoneNumberLike = + function () { + return jspb.Message.getField(this, 11) != null; + }; + +/** + * optional string last_signined_ip = 12; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 12, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 13; * @return {!proto.bet.beteran.member.MemberState} */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getState = function () { return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 9, 0) + jspb.Message.getFieldWithDefault(this, 13, 0) ); }; @@ -3972,7 +4180,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setState = function (value) { - return jspb.Message.setField(this, 9, value); + return jspb.Message.setField(this, 13, value); }; /** @@ -3981,7 +4189,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearState = function () { - return jspb.Message.setField(this, 9, undefined); + return jspb.Message.setField(this, 13, undefined); }; /** @@ -3990,17 +4198,17 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasState = function () { - return jspb.Message.getField(this, 9) != null; + return jspb.Message.getField(this, 13) != null; }; /** - * optional uint64 deleted_at = 10; + * optional uint64 deleted_at = 14; * @return {number} */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getDeletedAt = function () { return /** @type {number} */ ( - jspb.Message.getFieldWithDefault(this, 10, 0) + jspb.Message.getFieldWithDefault(this, 14, 0) ); }; @@ -4010,7 +4218,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getDeletedAt = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 10, value); + return jspb.Message.setField(this, 14, value); }; /** @@ -4019,7 +4227,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setDeletedAt = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 10, undefined); + return jspb.Message.setField(this, 14, undefined); }; /** @@ -4028,7 +4236,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearDeletedAt */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 14) != null; }; /** diff --git a/src/app/modules/proto/models/api/betting_pb.d.ts b/src/app/modules/proto/models/api/betting_pb.d.ts new file mode 100644 index 0000000..16ea3ef --- /dev/null +++ b/src/app/modules/proto/models/api/betting_pb.d.ts @@ -0,0 +1,253 @@ +// package: bet.beteran.api.betting +// file: models/api/betting.proto + +import * as jspb from 'google-protobuf'; +import * as models_member_pb from '../../models/member_pb'; + +export class BettingHistory extends jspb.Message { + getId(): string; + setId(value: string): void; + + getVendorId(): number; + setVendorId(value: number): void; + + getVendorName(): string; + setVendorName(value: string): void; + + getGameId(): number; + setGameId(value: number): void; + + getGameName(): string; + setGameName(value: string): void; + + getGameCategory(): string; + setGameCategory(value: string): void; + + getGameType(): string; + setGameType(value: string): void; + + getCurrency(): string; + setCurrency(value: string): void; + + getCash(): number; + setCash(value: number): void; + + getBeforeCash(): number; + setBeforeCash(value: number): void; + + getAfterCash(): number; + setAfterCash(value: number): void; + + getKey(): string; + setKey(value: string): void; + + getRefId(): string; + setRefId(value: string): void; + + getORefId(): string; + setORefId(value: string): void; + + hasGroupKey(): boolean; + clearGroupKey(): void; + getGroupKey(): string; + setGroupKey(value: string): void; + + getIsBonus(): boolean; + setIsBonus(value: boolean): void; + + getIsPromo(): boolean; + setIsPromo(value: boolean): void; + + getIsJackpot(): boolean; + setIsJackpot(value: boolean): void; + + getSiteUsername(): string; + setSiteUsername(value: string): void; + + getBettingType(): string; + setBettingType(value: string): void; + + getCategory(): string; + setCategory(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUtcCreatedAt(): number; + setUtcCreatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BettingHistory.AsObject; + static toObject( + includeInstance: boolean, + msg: BettingHistory + ): BettingHistory.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: BettingHistory, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): BettingHistory; + static deserializeBinaryFromReader( + message: BettingHistory, + reader: jspb.BinaryReader + ): BettingHistory; +} + +export namespace BettingHistory { + export type AsObject = { + id: string; + vendorId: number; + vendorName: string; + gameId: number; + gameName: string; + gameCategory: string; + gameType: string; + currency: string; + cash: number; + beforeCash: number; + afterCash: number; + key: string; + refId: string; + oRefId: string; + groupKey: string; + isBonus: boolean; + isPromo: boolean; + isJackpot: boolean; + siteUsername: string; + bettingType: string; + category: string; + createdAt: number; + utcCreatedAt: number; + }; +} + +export class BettingHistoryModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + getVendorId(): number; + setVendorId(value: number): void; + + getVendorName(): string; + setVendorName(value: string): void; + + getGameId(): number; + setGameId(value: number): void; + + getGameName(): string; + setGameName(value: string): void; + + getGameCategory(): string; + setGameCategory(value: string): void; + + getGameType(): string; + setGameType(value: string): void; + + getCurrency(): string; + setCurrency(value: string): void; + + getCash(): number; + setCash(value: number): void; + + getBeforeCash(): number; + setBeforeCash(value: number): void; + + getAfterCash(): number; + setAfterCash(value: number): void; + + getKey(): string; + setKey(value: string): void; + + getRefId(): string; + setRefId(value: string): void; + + getORefId(): string; + setORefId(value: string): void; + + hasGroupKey(): boolean; + clearGroupKey(): void; + getGroupKey(): string; + setGroupKey(value: string): void; + + getIsBonus(): boolean; + setIsBonus(value: boolean): void; + + getIsPromo(): boolean; + setIsPromo(value: boolean): void; + + getIsJackpot(): boolean; + setIsJackpot(value: boolean): void; + + getSiteUsername(): string; + setSiteUsername(value: string): void; + + getBettingType(): string; + setBettingType(value: string): void; + + getCategory(): string; + setCategory(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUtcCreatedAt(): number; + setUtcCreatedAt(value: number): void; + + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BettingHistoryModel.AsObject; + static toObject( + includeInstance: boolean, + msg: BettingHistoryModel + ): BettingHistoryModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: BettingHistoryModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): BettingHistoryModel; + static deserializeBinaryFromReader( + message: BettingHistoryModel, + reader: jspb.BinaryReader + ): BettingHistoryModel; +} + +export namespace BettingHistoryModel { + export type AsObject = { + id: string; + vendorId: number; + vendorName: string; + gameId: number; + gameName: string; + gameCategory: string; + gameType: string; + currency: string; + cash: number; + beforeCash: number; + afterCash: number; + key: string; + refId: string; + oRefId: string; + groupKey: string; + isBonus: boolean; + isPromo: boolean; + isJackpot: boolean; + siteUsername: string; + bettingType: string; + category: string; + createdAt: number; + utcCreatedAt: number; + member?: models_member_pb.MemberModel.AsObject; + }; +} diff --git a/src/app/modules/proto/models/api/betting_pb.js b/src/app/modules/proto/models/api/betting_pb.js new file mode 100644 index 0000000..c583e81 --- /dev/null +++ b/src/app/modules/proto/models/api/betting_pb.js @@ -0,0 +1,1719 @@ +// source: models/api/betting.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var models_member_pb = require("../../models/member_pb.js"); +goog.object.extend(proto, models_member_pb); +goog.exportSymbol("proto.bet.beteran.api.betting.BettingHistory", null, global); +goog.exportSymbol( + "proto.bet.beteran.api.betting.BettingHistoryModel", + null, + global +); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.api.betting.BettingHistory = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.api.betting.BettingHistory, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.api.betting.BettingHistory.displayName = + "proto.bet.beteran.api.betting.BettingHistory"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.api.betting.BettingHistoryModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.api.betting.BettingHistoryModel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.api.betting.BettingHistoryModel.displayName = + "proto.bet.beteran.api.betting.BettingHistoryModel"; +} + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.api.betting.BettingHistory.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.api.betting.BettingHistory.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.api.betting.BettingHistory} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.api.betting.BettingHistory.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + vendorName: jspb.Message.getFieldWithDefault(msg, 3, ""), + gameId: jspb.Message.getFieldWithDefault(msg, 4, 0), + gameName: jspb.Message.getFieldWithDefault(msg, 5, ""), + gameCategory: jspb.Message.getFieldWithDefault(msg, 6, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 7, ""), + currency: jspb.Message.getFieldWithDefault(msg, 8, ""), + cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), + beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), + afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + key: jspb.Message.getFieldWithDefault(msg, 12, ""), + refId: jspb.Message.getFieldWithDefault(msg, 13, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 14, ""), + groupKey: jspb.Message.getFieldWithDefault(msg, 15, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 19, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 20, ""), + category: jspb.Message.getFieldWithDefault(msg, 21, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 22, 0), + utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.api.betting.BettingHistory} + */ +proto.bet.beteran.api.betting.BettingHistory.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.api.betting.BettingHistory(); + return proto.bet.beteran.api.betting.BettingHistory.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.api.betting.BettingHistory} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.api.betting.BettingHistory} + */ +proto.bet.beteran.api.betting.BettingHistory.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.readUint64()); + msg.setVendorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorName(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGameId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setGameName(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategory(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrency(value); + break; + case 9: + var value = /** @type {number} */ (reader.readDouble()); + msg.setCash(value); + break; + case 10: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBeforeCash(value); + break; + case 11: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAfterCash(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setORefId(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKey(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBonus(value); + break; + case 17: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPromo(value); + break; + case 18: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsJackpot(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsername(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingType(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 22: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUtcCreatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.api.betting.BettingHistory.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.api.betting.BettingHistory} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.api.betting.BettingHistory.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(2, f); + } + f = message.getVendorName(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getGameId(); + if (f !== 0) { + writer.writeUint64(4, f); + } + f = message.getGameName(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getGameCategory(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getGameType(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = message.getCurrency(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getCash(); + if (f !== 0.0) { + writer.writeDouble(9, f); + } + f = message.getBeforeCash(); + if (f !== 0.0) { + writer.writeDouble(10, f); + } + f = message.getAfterCash(); + if (f !== 0.0) { + writer.writeDouble(11, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(12, f); + } + f = message.getRefId(); + if (f.length > 0) { + writer.writeString(13, f); + } + f = message.getORefId(); + if (f.length > 0) { + writer.writeString(14, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeString(15, f); + } + f = message.getIsBonus(); + if (f) { + writer.writeBool(16, f); + } + f = message.getIsPromo(); + if (f) { + writer.writeBool(17, f); + } + f = message.getIsJackpot(); + if (f) { + writer.writeBool(18, f); + } + f = message.getSiteUsername(); + if (f.length > 0) { + writer.writeString(19, f); + } + f = message.getBettingType(); + if (f.length > 0) { + writer.writeString(20, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(21, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(22, f); + } + f = message.getUtcCreatedAt(); + if (f !== 0) { + writer.writeUint64(23, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setVendorId = function ( + value +) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + +/** + * optional string vendor_name = 3; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getVendorName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setVendorName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional uint64 game_id = 4; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getGameId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setGameId = function ( + value +) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + +/** + * optional string game_name = 5; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getGameName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setGameName = function ( + value +) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + +/** + * optional string game_category = 6; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getGameCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setGameCategory = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string game_type = 7; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getGameType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setGameType = function ( + value +) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + +/** + * optional string currency = 8; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getCurrency = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setCurrency = function ( + value +) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional double cash = 9; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getCash = function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0) + ); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setCash = function ( + value +) { + return jspb.Message.setProto3FloatField(this, 9, value); +}; + +/** + * optional double before_cash = 10; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getBeforeCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setBeforeCash = + function (value) { + return jspb.Message.setProto3FloatField(this, 10, value); + }; + +/** + * optional double after_cash = 11; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getAfterCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setAfterCash = function ( + value +) { + return jspb.Message.setProto3FloatField(this, 11, value); +}; + +/** + * optional string key = 12; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getKey = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setKey = function ( + value +) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + +/** + * optional string ref_id = 13; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getRefId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setRefId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + +/** + * optional string o_ref_id = 14; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getORefId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setORefId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + +/** + * optional string group_key = 15; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getGroupKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 15, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setGroupKey = function ( + value +) { + return jspb.Message.setField(this, 15, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.clearGroupKey = + function () { + return jspb.Message.setField(this, 15, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.hasGroupKey = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional bool is_bonus = 16; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getIsBonus = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 16, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setIsBonus = function ( + value +) { + return jspb.Message.setProto3BooleanField(this, 16, value); +}; + +/** + * optional bool is_promo = 17; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getIsPromo = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 17, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setIsPromo = function ( + value +) { + return jspb.Message.setProto3BooleanField(this, 17, value); +}; + +/** + * optional bool is_jackpot = 18; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getIsJackpot = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 18, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setIsJackpot = function ( + value +) { + return jspb.Message.setProto3BooleanField(this, 18, value); +}; + +/** + * optional string site_username = 19; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getSiteUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 19, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setSiteUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 19, value); + }; + +/** + * optional string betting_type = 20; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getBettingType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 20, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setBettingType = + function (value) { + return jspb.Message.setProto3StringField(this, 20, value); + }; + +/** + * optional string category = 21; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 21, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setCategory = function ( + value +) { + return jspb.Message.setProto3StringField(this, 21, value); +}; + +/** + * optional uint64 created_at = 22; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 22, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setCreatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 22, value); +}; + +/** + * optional uint64 utc_created_at = 23; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.getUtcCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 23, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this + */ +proto.bet.beteran.api.betting.BettingHistory.prototype.setUtcCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 23, 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.api.betting.BettingHistoryModel.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.api.betting.BettingHistoryModel.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.api.betting.BettingHistoryModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + vendorName: jspb.Message.getFieldWithDefault(msg, 3, ""), + gameId: jspb.Message.getFieldWithDefault(msg, 4, 0), + gameName: jspb.Message.getFieldWithDefault(msg, 5, ""), + gameCategory: jspb.Message.getFieldWithDefault(msg, 6, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 7, ""), + currency: jspb.Message.getFieldWithDefault(msg, 8, ""), + cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), + beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), + afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + key: jspb.Message.getFieldWithDefault(msg, 12, ""), + refId: jspb.Message.getFieldWithDefault(msg, 13, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 14, ""), + groupKey: jspb.Message.getFieldWithDefault(msg, 15, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 19, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 20, ""), + category: jspb.Message.getFieldWithDefault(msg, 21, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 22, 0), + utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + member: + (f = msg.getMember()) && + models_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.api.betting.BettingHistoryModel(); + return proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.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.readUint64()); + msg.setVendorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorName(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGameId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setGameName(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategory(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrency(value); + break; + case 9: + var value = /** @type {number} */ (reader.readDouble()); + msg.setCash(value); + break; + case 10: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBeforeCash(value); + break; + case 11: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAfterCash(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setORefId(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKey(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBonus(value); + break; + case 17: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPromo(value); + break; + case 18: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsJackpot(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsername(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingType(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 22: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUtcCreatedAt(value); + break; + case 24: + var value = new models_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(2, f); + } + f = message.getVendorName(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = message.getGameId(); + if (f !== 0) { + writer.writeUint64(4, f); + } + f = message.getGameName(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getGameCategory(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getGameType(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = message.getCurrency(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getCash(); + if (f !== 0.0) { + writer.writeDouble(9, f); + } + f = message.getBeforeCash(); + if (f !== 0.0) { + writer.writeDouble(10, f); + } + f = message.getAfterCash(); + if (f !== 0.0) { + writer.writeDouble(11, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(12, f); + } + f = message.getRefId(); + if (f.length > 0) { + writer.writeString(13, f); + } + f = message.getORefId(); + if (f.length > 0) { + writer.writeString(14, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeString(15, f); + } + f = message.getIsBonus(); + if (f) { + writer.writeBool(16, f); + } + f = message.getIsPromo(); + if (f) { + writer.writeBool(17, f); + } + f = message.getIsJackpot(); + if (f) { + writer.writeBool(18, f); + } + f = message.getSiteUsername(); + if (f.length > 0) { + writer.writeString(19, f); + } + f = message.getBettingType(); + if (f.length > 0) { + writer.writeString(20, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(21, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(22, f); + } + f = message.getUtcCreatedAt(); + if (f !== 0) { + writer.writeUint64(23, f); + } + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 24, + f, + models_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setId = function ( + value +) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setVendorId = + function (value) { + return jspb.Message.setProto3IntField(this, 2, value); + }; + +/** + * optional string vendor_name = 3; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setVendorName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional uint64 game_id = 4; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameId = + function (value) { + return jspb.Message.setProto3IntField(this, 4, value); + }; + +/** + * optional string game_name = 5; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameName = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string game_category = 6; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameCategory = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string game_type = 7; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameType = + function (value) { + return jspb.Message.setProto3StringField(this, 7, value); + }; + +/** + * optional string currency = 8; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCurrency = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCurrency = + function (value) { + return jspb.Message.setProto3StringField(this, 8, value); + }; + +/** + * optional double cash = 9; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCash = function ( + value +) { + return jspb.Message.setProto3FloatField(this, 9, value); +}; + +/** + * optional double before_cash = 10; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBeforeCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setBeforeCash = + function (value) { + return jspb.Message.setProto3FloatField(this, 10, value); + }; + +/** + * optional double after_cash = 11; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getAfterCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setAfterCash = + function (value) { + return jspb.Message.setProto3FloatField(this, 11, value); + }; + +/** + * optional string key = 12; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 12, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setKey = function ( + value +) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + +/** + * optional string ref_id = 13; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 13, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setRefId = + function (value) { + return jspb.Message.setProto3StringField(this, 13, value); + }; + +/** + * optional string o_ref_id = 14; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getORefId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 14, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setORefId = + function (value) { + return jspb.Message.setProto3StringField(this, 14, value); + }; + +/** + * optional string group_key = 15; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGroupKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 15, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGroupKey = + function (value) { + return jspb.Message.setField(this, 15, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearGroupKey = + function () { + return jspb.Message.setField(this, 15, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasGroupKey = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional bool is_bonus = 16; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsBonus = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 16, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsBonus = + function (value) { + return jspb.Message.setProto3BooleanField(this, 16, value); + }; + +/** + * optional bool is_promo = 17; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsPromo = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 17, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsPromo = + function (value) { + return jspb.Message.setProto3BooleanField(this, 17, value); + }; + +/** + * optional bool is_jackpot = 18; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsJackpot = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 18, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsJackpot = + function (value) { + return jspb.Message.setProto3BooleanField(this, 18, value); + }; + +/** + * optional string site_username = 19; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getSiteUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 19, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setSiteUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 19, value); + }; + +/** + * optional string betting_type = 20; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBettingType = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 20, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setBettingType = + function (value) { + return jspb.Message.setProto3StringField(this, 20, value); + }; + +/** + * optional string category = 21; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 21, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCategory = + function (value) { + return jspb.Message.setProto3StringField(this, 21, value); + }; + +/** + * optional uint64 created_at = 22; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 22, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 22, value); + }; + +/** + * optional uint64 utc_created_at = 23; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getUtcCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 23, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setUtcCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 23, value); + }; + +/** + * optional bet.beteran.member.MemberModel member = 24; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 24) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 24, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasMember = + function () { + return jspb.Message.getField(this, 24) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.api.betting); diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts index 02acec5..387305c 100644 --- a/src/app/modules/proto/models/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -109,6 +109,145 @@ export namespace Member { }; } +export class ParentMemberModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + hasBankAccount(): boolean; + clearBankAccount(): void; + getBankAccount(): + | models_member_bank_account_pb.MemberBankAccountModel + | undefined; + setBankAccount( + value?: models_member_bank_account_pb.MemberBankAccountModel + ): void; + + hasParentMemberId(): boolean; + clearParentMemberId(): void; + getParentMemberId(): string; + setParentMemberId(value: string): void; + + getChildMemberCount(): number; + setChildMemberCount(value: number): void; + + getUsername(): string; + setUsername(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + getState(): MemberStateMap[keyof MemberStateMap]; + setState(value: MemberStateMap[keyof MemberStateMap]): void; + + hasStateChangedAt(): boolean; + clearStateChangedAt(): void; + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + hasMemberGameSetting(): boolean; + clearMemberGameSetting(): void; + getMemberGameSetting(): + | models_member_game_setting_pb.MemberGameSetting + | undefined; + setMemberGameSetting( + value?: models_member_game_setting_pb.MemberGameSetting + ): void; + + hasMemberSettlementSetting(): boolean; + clearMemberSettlementSetting(): void; + getMemberSettlementSetting(): + | models_member_settlement_setting_pb.MemberSettlementSetting + | undefined; + setMemberSettlementSetting( + value?: models_member_settlement_setting_pb.MemberSettlementSetting + ): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasLastSigninedAt(): boolean; + clearLastSigninedAt(): void; + getLastSigninedAt(): number; + setLastSigninedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ParentMemberModel.AsObject; + static toObject( + includeInstance: boolean, + msg: ParentMemberModel + ): ParentMemberModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ParentMemberModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ParentMemberModel; + static deserializeBinaryFromReader( + message: ParentMemberModel, + reader: jspb.BinaryReader + ): ParentMemberModel; +} + +export namespace ParentMemberModel { + export type AsObject = { + id: string; + site?: models_site_pb.Site.AsObject; + memberClass?: models_member_class_pb.MemberClass.AsObject; + memberLevel?: models_member_level_pb.MemberLevel.AsObject; + bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; + parentMemberId: string; + childMemberCount: number; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: MemberStateMap[keyof MemberStateMap]; + stateChangedAt: number; + memberGameSetting?: models_member_game_setting_pb.MemberGameSetting.AsObject; + memberSettlementSetting?: models_member_settlement_setting_pb.MemberSettlementSetting.AsObject; + lastSigninedIp: string; + lastSigninedAt: number; + createdAt: number; + updatedAt: number; + deletedAt: number; + }; +} + export class MemberModel extends jspb.Message { getId(): string; setId(value: string): void; @@ -139,8 +278,8 @@ export class MemberModel extends jspb.Message { hasParentMember(): boolean; clearParentMember(): void; - getParentMember(): Member | undefined; - setParentMember(value?: Member): void; + getParentMember(): ParentMemberModel | undefined; + setParentMember(value?: ParentMemberModel): void; getChildMemberCount(): number; setChildMemberCount(value: number): void; @@ -231,7 +370,7 @@ export namespace MemberModel { memberClass?: models_member_class_pb.MemberClass.AsObject; memberLevel?: models_member_level_pb.MemberLevel.AsObject; bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; - parentMember?: Member.AsObject; + parentMember?: ParentMemberModel.AsObject; childMemberCount: number; username: string; nickname: string; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js index 58be159..f52418a 100644 --- a/src/app/modules/proto/models/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -32,6 +32,7 @@ goog.object.extend(proto, models_member_settlement_setting_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); +goog.exportSymbol("proto.bet.beteran.member.ParentMemberModel", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -54,6 +55,28 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.member.Member.displayName = "proto.bet.beteran.member.Member"; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member.ParentMemberModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member.ParentMemberModel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member.ParentMemberModel.displayName = + "proto.bet.beteran.member.ParentMemberModel"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -684,6 +707,966 @@ proto.bet.beteran.member.Member.prototype.hasDeletedAt = function () { return jspb.Message.getField(this, 16) != null; }; +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.member.ParentMemberModel.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member.ParentMemberModel.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {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.ParentMemberModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member.ParentMemberModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + site: + (f = msg.getSite()) && + models_site_pb.Site.toObject(includeInstance, f), + memberClass: + (f = msg.getMemberClass()) && + models_member_class_pb.MemberClass.toObject(includeInstance, f), + memberLevel: + (f = msg.getMemberLevel()) && + models_member_level_pb.MemberLevel.toObject(includeInstance, f), + bankAccount: + (f = msg.getBankAccount()) && + models_member_bank_account_pb.MemberBankAccountModel.toObject( + includeInstance, + f + ), + parentMemberId: jspb.Message.getFieldWithDefault(msg, 6, ""), + childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + username: jspb.Message.getFieldWithDefault(msg, 8, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""), + state: jspb.Message.getFieldWithDefault(msg, 11, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 12, 0), + memberGameSetting: + (f = msg.getMemberGameSetting()) && + models_member_game_setting_pb.MemberGameSetting.toObject( + includeInstance, + f + ), + memberSettlementSetting: + (f = msg.getMemberSettlementSetting()) && + models_member_settlement_setting_pb.MemberSettlementSetting.toObject( + includeInstance, + f + ), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 15, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 16, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 17, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 18, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 19, 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.ParentMemberModel} + */ +proto.bet.beteran.member.ParentMemberModel.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member.ParentMemberModel(); + return proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member.ParentMemberModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member.ParentMemberModel} + */ +proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_site_pb.Site(); + reader.readMessage( + value, + models_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(value); + break; + case 3: + var value = new models_member_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_class_pb.MemberClass.deserializeBinaryFromReader + ); + msg.setMemberClass(value); + break; + case 4: + var value = new models_member_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_level_pb.MemberLevel.deserializeBinaryFromReader + ); + msg.setMemberLevel(value); + break; + case 5: + var value = + new models_member_bank_account_pb.MemberBankAccountModel(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccountModel + .deserializeBinaryFromReader + ); + msg.setBankAccount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setParentMemberId(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setChildMemberCount(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 11: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 13: + var value = new models_member_game_setting_pb.MemberGameSetting(); + reader.readMessage( + value, + models_member_game_setting_pb.MemberGameSetting + .deserializeBinaryFromReader + ); + msg.setMemberGameSetting(value); + break; + case 14: + var value = + new models_member_settlement_setting_pb.MemberSettlementSetting(); + reader.readMessage( + value, + models_member_settlement_setting_pb.MemberSettlementSetting + .deserializeBinaryFromReader + ); + msg.setMemberSettlementSetting(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastSigninedAt(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter( + this, + 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.ParentMemberModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getSite(); + if (f != null) { + writer.writeMessage(2, f, models_site_pb.Site.serializeBinaryToWriter); + } + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 3, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 4, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + f = message.getBankAccount(); + if (f != null) { + writer.writeMessage( + 5, + f, + models_member_bank_account_pb.MemberBankAccountModel + .serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = message.getChildMemberCount(); + if (f !== 0) { + writer.writeUint64(7, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(11, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeUint64(12, f); + } + f = message.getMemberGameSetting(); + if (f != null) { + writer.writeMessage( + 13, + f, + models_member_game_setting_pb.MemberGameSetting.serializeBinaryToWriter + ); + } + f = message.getMemberSettlementSetting(); + if (f != null) { + writer.writeMessage( + 14, + f, + models_member_settlement_setting_pb.MemberSettlementSetting + .serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeString(15, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeUint64(16, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(17, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(18, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeUint64(19, f); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional bet.beteran.site.Site site = 2; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getSite = function () { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 2) + ); +}; + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setSite = function ( + value +) { + return jspb.Message.setWrapperField(this, 2, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearSite = function () { + return this.setSite(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasSite = function () { + return jspb.Message.getField(this, 2) != null; +}; + +/** + * optional bet.beteran.member_class.MemberClass member_class = 3; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberClass = + function () { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 3) + ); + }; + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberClass = function ( + value +) { + return jspb.Message.setWrapperField(this, 3, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberClass = + function () { + return this.setMemberClass(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberClass = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 4; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberLevel = + function () { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 4) + ); + }; + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberLevel = function ( + value +) { + return jspb.Message.setWrapperField(this, 4, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberLevel = + function () { + return this.setMemberLevel(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberLevel = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccountModel} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getBankAccount = + function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccountModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccountModel, + 5 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccountModel|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setBankAccount = function ( + value +) { + return jspb.Message.setWrapperField(this, 5, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearBankAccount = + function () { + return this.setBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasBankAccount = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string parent_member_id = 6; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getParentMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setParentMemberId = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearParentMemberId = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasParentMemberId = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional uint64 child_member_count = 7; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getChildMemberCount = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setChildMemberCount = + function (value) { + return jspb.Message.setProto3IntField(this, 7, value); + }; + +/** + * optional string username = 8; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getUsername = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setUsername = function ( + value +) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional string nickname = 9; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getNickname = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setNickname = function ( + value +) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + +/** + * optional string mobile_phone_number = 10; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional MemberState state = 11; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getState = function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 11, 0) + ); +}; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setState = function ( + value +) { + return jspb.Message.setProto3EnumField(this, 11, value); +}; + +/** + * optional uint64 state_changed_at = 12; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getStateChangedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 12, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setStateChangedAt = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearStateChangedAt = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasStateChangedAt = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional bet.beteran.member_game_setting.MemberGameSetting member_game_setting = 13; + * @return {?proto.bet.beteran.member_game_setting.MemberGameSetting} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberGameSetting = + function () { + return /** @type{?proto.bet.beteran.member_game_setting.MemberGameSetting} */ ( + jspb.Message.getWrapperField( + this, + models_member_game_setting_pb.MemberGameSetting, + 13 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_game_setting.MemberGameSetting|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberGameSetting = + function (value) { + return jspb.Message.setWrapperField(this, 13, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberGameSetting = + function () { + return this.setMemberGameSetting(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberGameSetting = + function () { + return jspb.Message.getField(this, 13) != null; + }; + +/** + * optional bet.beteran.member_settlement_setting.MemberSettlementSetting member_settlement_setting = 14; + * @return {?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberSettlementSetting = + function () { + return /** @type{?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting} */ ( + jspb.Message.getWrapperField( + this, + models_member_settlement_setting_pb.MemberSettlementSetting, + 14 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberSettlementSetting = + function (value) { + return jspb.Message.setWrapperField(this, 14, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberSettlementSetting = + function () { + return this.setMemberSettlementSetting(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberSettlementSetting = + function () { + return jspb.Message.getField(this, 14) != null; + }; + +/** + * optional string last_signined_ip = 15; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 15, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 15, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 15, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional uint64 last_signined_at = 16; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getLastSigninedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 16, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setLastSigninedAt = + function (value) { + return jspb.Message.setField(this, 16, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearLastSigninedAt = + function () { + return jspb.Message.setField(this, 16, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasLastSigninedAt = + function () { + return jspb.Message.getField(this, 16) != null; + }; + +/** + * optional uint64 created_at = 17; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 17, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setCreatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 17, value); +}; + +/** + * optional uint64 updated_at = 18; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getUpdatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 18, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setUpdatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 18, value); +}; + +/** + * optional uint64 deleted_at = 19; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getDeletedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 19, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setDeletedAt = function ( + value +) { + return jspb.Message.setField(this, 19, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearDeletedAt = + function () { + return jspb.Message.setField(this, 19, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasDeletedAt = + function () { + return jspb.Message.getField(this, 19) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -739,7 +1722,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) { ), parentMember: (f = msg.getParentMember()) && - proto.bet.beteran.member.Member.toObject(includeInstance, f), + proto.bet.beteran.member.ParentMemberModel.toObject( + includeInstance, + f + ), childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0), username: jspb.Message.getFieldWithDefault(msg, 8, ""), nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), @@ -841,10 +1827,10 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( msg.setBankAccount(value); break; case 6: - var value = new proto.bet.beteran.member.Member(); + var value = new proto.bet.beteran.member.ParentMemberModel(); reader.readMessage( value, - proto.bet.beteran.member.Member.deserializeBinaryFromReader + proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader ); msg.setParentMember(value); break; @@ -981,7 +1967,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( writer.writeMessage( 6, f, - proto.bet.beteran.member.Member.serializeBinaryToWriter + proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter ); } f = message.getChildMemberCount(); @@ -1210,17 +2196,21 @@ proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () { }; /** - * optional Member parent_member = 6; - * @return {?proto.bet.beteran.member.Member} + * optional ParentMemberModel parent_member = 6; + * @return {?proto.bet.beteran.member.ParentMemberModel} */ proto.bet.beteran.member.MemberModel.prototype.getParentMember = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6) + return /** @type{?proto.bet.beteran.member.ParentMemberModel} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.member.ParentMemberModel, + 6 + ) ); }; /** - * @param {?proto.bet.beteran.member.Member|undefined} value + * @param {?proto.bet.beteran.member.ParentMemberModel|undefined} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.setParentMember = function (