diff --git a/src/app/modules/polyglot/api/services/betting.service.ts b/src/app/modules/polyglot/api/services/betting.service.ts new file mode 100644 index 0000000..2c3d3e8 --- /dev/null +++ b/src/app/modules/polyglot/api/services/betting.service.ts @@ -0,0 +1,49 @@ +import { Injectable } from '@angular/core'; +import { NatsService } from 'app/core/nats/services/nats.service'; + +import { Error } from 'app/modules/proto/protobuf/rpc_pb'; + +import { + ListBettingHistoryRequest, + ListBettingHistoryResponse, +} from 'app/modules/proto/c2se/api/betting_pb'; +import { SUBJECT_LIST_BETTING_HISTORY } from 'app/modules/proto/c2se/backend/api/betting_pb'; + +@Injectable({ + providedIn: 'root', +}) +export class BettingService { + /** + * Constructor + */ + constructor(private __natsService: NatsService) {} + + // ----------------------------------------------------------------------------------------------------- + // @ Accessors + // ----------------------------------------------------------------------------------------------------- + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + listVendors( + req: ListBettingHistoryRequest + ): Promise { + return new Promise((resolve, reject) => { + this.__natsService + .request( + SUBJECT_LIST_BETTING_HISTORY, + req.serializeBinary(), + ListBettingHistoryResponse.deserializeBinary + ) + .then((result) => { + console.log('success', result); + return resolve(result); + }) + .catch((e: Error) => { + console.log('failed', e); + reject(e); + }); + }); + } +} diff --git a/src/app/modules/polyglot/api/services/index.ts b/src/app/modules/polyglot/api/services/index.ts index 14c2eae..10c1c43 100644 --- a/src/app/modules/polyglot/api/services/index.ts +++ b/src/app/modules/polyglot/api/services/index.ts @@ -2,5 +2,10 @@ import { Type } from '@angular/core'; import { VendorService } from './vendor.service'; import { GameService } from './game.service'; +import { BettingService } from './betting.service'; -export const SERVICES: Type[] = [VendorService, GameService]; +export const SERVICES: Type[] = [ + VendorService, + GameService, + BettingService, +]; 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..06c958f --- /dev/null +++ b/src/app/modules/proto/c2se/api/betting_pb.d.ts @@ -0,0 +1,334 @@ +// 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; + + 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; + + 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; + vendorName: string; + vendorNameLike: string; + gameId: number; + 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..cad671b --- /dev/null +++ b/src/app/modules/proto/c2se/api/betting_pb.js @@ -0,0 +1,2408 @@ +// 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, null, 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 + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_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), + vendorName: jspb.Message.getFieldWithDefault(msg, 3, ""), + vendorNameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + gameId: jspb.Message.getFieldWithDefault(msg, 5, 0), + gameName: jspb.Message.getFieldWithDefault(msg, 6, ""), + gameNameLike: jspb.Message.getFieldWithDefault(msg, 7, ""), + gameCategory: jspb.Message.getFieldWithDefault(msg, 8, ""), + gameCategoryLike: jspb.Message.getFieldWithDefault(msg, 9, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 10, ""), + gameTypeLike: jspb.Message.getFieldWithDefault(msg, 11, ""), + currency: jspb.Message.getFieldWithDefault(msg, 12, ""), + currencyLike: jspb.Message.getFieldWithDefault(msg, 13, ""), + key: jspb.Message.getFieldWithDefault(msg, 14, ""), + keyLike: jspb.Message.getFieldWithDefault(msg, 15, ""), + refId: jspb.Message.getFieldWithDefault(msg, 16, ""), + refIdLike: jspb.Message.getFieldWithDefault(msg, 17, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 18, ""), + oRefIdLike: jspb.Message.getFieldWithDefault(msg, 19, ""), + groupKey: jspb.Message.getFieldWithDefault(msg, 20, ""), + groupKeyLike: jspb.Message.getFieldWithDefault(msg, 21, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 25, ""), + siteUsernameLike: jspb.Message.getFieldWithDefault(msg, 26, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 27, ""), + bettingTypeLike: jspb.Message.getFieldWithDefault(msg, 28, ""), + category: jspb.Message.getFieldWithDefault(msg, 29, ""), + categoryLike: jspb.Message.getFieldWithDefault(msg, 30, ""), + }; + + if (includeInstance) { + obj.$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 value = /** @type {string} */ (reader.readString()); + msg.setVendorName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorNameLike(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGameId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setGameName(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setGameNameLike(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategory(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategoryLike(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setGameTypeLike(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrency(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrencyLike(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyLike(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setRefIdLike(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setORefId(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setORefIdLike(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKey(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKeyLike(value); + break; + case 22: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBonus(value); + break; + case 23: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPromo(value); + break; + case 24: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsJackpot(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsername(value); + break; + case 26: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsernameLike(value); + break; + case 27: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingType(value); + break; + case 28: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingTypeLike(value); + break; + case 29: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 30: + 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 = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeString(11, f); + } + f = /** @type {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 {boolean} */ (jspb.Message.getField(message, 22)); + if (f != null) { + writer.writeBool(22, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 23)); + if (f != null) { + writer.writeBool(23, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 24)); + if (f != null) { + writer.writeBool(24, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 25)); + if (f != null) { + writer.writeString(25, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 26)); + if (f != null) { + writer.writeString(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); + } + }; + +/** + * 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; + }; + +/** + * optional string vendor_name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @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, 3, 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, 3, 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, 3) != null; + }; + +/** + * optional string vendor_name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getVendorNameLike = + 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.setVendorNameLike = + 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.clearVendorNameLike = + 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.hasVendorNameLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional uint64 game_id = 5; + * @return {number} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 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, 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.clearGameId = + 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.hasGameId = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string game_name = 6; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @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, 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.clearGameName = + 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.hasGameName = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional string game_name_like = 7; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @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, 7, 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, 7, 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, 7) != null; + }; + +/** + * optional string game_category = 8; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameCategory = + 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.setGameCategory = + 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.clearGameCategory = + 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.hasGameCategory = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional string game_category_like = 9; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameCategoryLike = + 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.setGameCategoryLike = + 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.clearGameCategoryLike = + 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.hasGameCategoryLike = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +/** + * optional string game_type = 10; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameType = + 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.setGameType = + 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.clearGameType = + 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.hasGameType = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional string game_type_like = 11; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGameTypeLike = + 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.setGameTypeLike = + 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.clearGameTypeLike = + 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.hasGameTypeLike = + function () { + return jspb.Message.getField(this, 11) != null; + }; + +/** + * optional string currency = 12; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCurrency = + 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.setCurrency = + 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.clearCurrency = + 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.hasCurrency = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional string currency_like = 13; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCurrencyLike = + 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.setCurrencyLike = + 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.clearCurrencyLike = + 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.hasCurrencyLike = + function () { + return jspb.Message.getField(this, 13) != null; + }; + +/** + * optional string key = 14; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getKey = + 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.setKey = + 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.clearKey = + 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.hasKey = + function () { + return jspb.Message.getField(this, 14) != null; + }; + +/** + * optional string key_like = 15; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getKeyLike = + 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.setKeyLike = + 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.clearKeyLike = + 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.hasKeyLike = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional string ref_id = 16; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getRefId = + 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.setRefId = + 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.clearRefId = + 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.hasRefId = + function () { + return jspb.Message.getField(this, 16) != null; + }; + +/** + * optional string ref_id_like = 17; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getRefIdLike = + 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.setRefIdLike = + 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.clearRefIdLike = + 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.hasRefIdLike = + function () { + return jspb.Message.getField(this, 17) != null; + }; + +/** + * optional string o_ref_id = 18; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getORefId = + 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.setORefId = + 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.clearORefId = + 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.hasORefId = + function () { + return jspb.Message.getField(this, 18) != null; + }; + +/** + * optional string o_ref_id_like = 19; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getORefIdLike = + 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.setORefIdLike = + 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.clearORefIdLike = + 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.hasORefIdLike = + function () { + return jspb.Message.getField(this, 19) != null; + }; + +/** + * optional string group_key = 20; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGroupKey = + 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.setGroupKey = + 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.clearGroupKey = + 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.hasGroupKey = + function () { + return jspb.Message.getField(this, 20) != null; + }; + +/** + * optional string group_key_like = 21; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getGroupKeyLike = + 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.setGroupKeyLike = + 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.clearGroupKeyLike = + 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.hasGroupKeyLike = + function () { + return jspb.Message.getField(this, 21) != null; + }; + +/** + * optional bool is_bonus = 22; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsBonus = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 22, 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, 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.clearIsBonus = + 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.hasIsBonus = + function () { + return jspb.Message.getField(this, 22) != null; + }; + +/** + * optional bool is_promo = 23; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsPromo = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 23, 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, 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.clearIsPromo = + 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.hasIsPromo = + function () { + return jspb.Message.getField(this, 23) != null; + }; + +/** + * optional bool is_jackpot = 24; + * @return {boolean} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getIsJackpot = + 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.setIsJackpot = + 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.clearIsJackpot = + 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.hasIsJackpot = + function () { + return jspb.Message.getField(this, 24) != null; + }; + +/** + * optional string site_username = 25; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getSiteUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 25, "") + ); + }; + +/** + * @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, 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.clearSiteUsername = + 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.hasSiteUsername = + function () { + return jspb.Message.getField(this, 25) != null; + }; + +/** + * optional string site_username_like = 26; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getSiteUsernameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 26, "") + ); + }; + +/** + * @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, 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.clearSiteUsernameLike = + 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.hasSiteUsernameLike = + function () { + return jspb.Message.getField(this, 26) != null; + }; + +/** + * optional string betting_type = 27; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getBettingType = + 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.setBettingType = + 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.clearBettingType = + 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.hasBettingType = + function () { + return jspb.Message.getField(this, 27) != null; + }; + +/** + * optional string betting_type_like = 28; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getBettingTypeLike = + 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.setBettingTypeLike = + 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.clearBettingTypeLike = + 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.hasBettingTypeLike = + function () { + return jspb.Message.getField(this, 28) != null; + }; + +/** + * optional string category = 29; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCategory = + 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.setCategory = + 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.clearCategory = + 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.hasCategory = + function () { + return jspb.Message.getField(this, 29) != null; + }; + +/** + * optional string category_like = 30; + * @return {string} + */ +proto.bet.beteran.c2se.api.betting.ListBettingHistoryRequest.Search.prototype.getCategoryLike = + 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.setCategoryLike = + 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.clearCategoryLike = + 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.hasCategoryLike = + function () { + return jspb.Message.getField(this, 30) != 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/backend/api/betting_pb.d.ts b/src/app/modules/proto/c2se/backend/api/betting_pb.d.ts new file mode 100644 index 0000000..7afa6c2 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/betting_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.backend.api.betting +// file: c2se/backend/api/betting.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_BETTING_HISTORY: string; diff --git a/src/app/modules/proto/c2se/backend/api/betting_pb.js b/src/app/modules/proto/c2se/backend/api/betting_pb.js new file mode 100644 index 0000000..c7ac7d6 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/betting_pb.js @@ -0,0 +1,27 @@ +// source: c2se/backend/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); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.api.betting", null, global); + +proto.bet.beteran.c2se.backend.api.betting = {}; + +proto.bet.beteran.c2se.backend.api.betting.SUBJECT_LIST_BETTING_HISTORY = + "bet.beteran.c2se.backend.api.betting.ListBettingHistory"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.betting); 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..9cf0a28 --- /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; + + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_pb.Member | undefined; + setMember(value?: models_member_pb.Member): 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): 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; + member?: models_member_pb.Member.AsObject; + 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; + }; +} 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..7728756 --- /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, ""), + member: + (f = msg.getMember()) && + models_member_pb.Member.toObject(includeInstance, f), + vendorId: jspb.Message.getFieldWithDefault(msg, 3, 0), + vendorName: jspb.Message.getFieldWithDefault(msg, 4, ""), + gameId: jspb.Message.getFieldWithDefault(msg, 5, 0), + gameName: jspb.Message.getFieldWithDefault(msg, 6, ""), + gameCategory: jspb.Message.getFieldWithDefault(msg, 7, ""), + gameType: jspb.Message.getFieldWithDefault(msg, 8, ""), + currency: jspb.Message.getFieldWithDefault(msg, 9, ""), + cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), + beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0), + key: jspb.Message.getFieldWithDefault(msg, 13, ""), + refId: jspb.Message.getFieldWithDefault(msg, 14, ""), + oRefId: jspb.Message.getFieldWithDefault(msg, 15, ""), + groupKey: jspb.Message.getFieldWithDefault(msg, 16, ""), + isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + siteUsername: jspb.Message.getFieldWithDefault(msg, 20, ""), + bettingType: jspb.Message.getFieldWithDefault(msg, 21, ""), + category: jspb.Message.getFieldWithDefault(msg, 22, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 23, 0), + utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 24, 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.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 = new models_member_pb.Member(); + reader.readMessage( + value, + models_member_pb.Member.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVendorName(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGameId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setGameName(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setGameCategory(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setGameType(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setCurrency(value); + break; + case 10: + var value = /** @type {number} */ (reader.readDouble()); + msg.setCash(value); + break; + case 11: + var value = /** @type {number} */ (reader.readDouble()); + msg.setBeforeCash(value); + break; + case 12: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAfterCash(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setRefId(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setORefId(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setGroupKey(value); + break; + case 17: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBonus(value); + break; + case 18: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsPromo(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsJackpot(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteUsername(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setBettingType(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 23: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 24: + 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.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.getMember(); + if (f != null) { + writer.writeMessage( + 2, + f, + models_member_pb.Member.serializeBinaryToWriter + ); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(3, f); + } + f = message.getVendorName(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getGameId(); + if (f !== 0) { + writer.writeUint64(5, f); + } + f = message.getGameName(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getGameCategory(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = message.getGameType(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getCurrency(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = message.getCash(); + if (f !== 0.0) { + writer.writeDouble(10, f); + } + f = message.getBeforeCash(); + if (f !== 0.0) { + writer.writeDouble(11, f); + } + f = message.getAfterCash(); + if (f !== 0.0) { + writer.writeDouble(12, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(13, f); + } + f = message.getRefId(); + if (f.length > 0) { + writer.writeString(14, f); + } + f = message.getORefId(); + if (f.length > 0) { + writer.writeString(15, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeString(16, f); + } + f = message.getIsBonus(); + if (f) { + writer.writeBool(17, f); + } + f = message.getIsPromo(); + if (f) { + writer.writeBool(18, f); + } + f = message.getIsJackpot(); + if (f) { + writer.writeBool(19, f); + } + f = message.getSiteUsername(); + if (f.length > 0) { + writer.writeString(20, f); + } + f = message.getBettingType(); + if (f.length > 0) { + writer.writeString(21, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(22, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(23, f); + } + f = message.getUtcCreatedAt(); + if (f !== 0) { + writer.writeUint64(24, f); + } + }; + +/** + * 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 bet.beteran.member.Member member = 2; + * @return {?proto.bet.beteran.member.Member} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.Member} */ ( + jspb.Message.getWrapperField(this, models_member_pb.Member, 2) + ); + }; + +/** + * @param {?proto.bet.beteran.member.Member|undefined} value + * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 2, 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, 2) != null; + }; + +/** + * optional uint64 vendor_id = 3; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 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, 3, value); + }; + +/** + * optional string vendor_name = 4; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @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, 4, value); + }; + +/** + * optional uint64 game_id = 5; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 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, 5, value); + }; + +/** + * optional string game_name = 6; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameName = + 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.setGameName = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string game_category = 7; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameCategory = + 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.setGameCategory = + function (value) { + return jspb.Message.setProto3StringField(this, 7, value); + }; + +/** + * optional string game_type = 8; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameType = + 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.setGameType = + function (value) { + return jspb.Message.setProto3StringField(this, 8, value); + }; + +/** + * optional string currency = 9; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCurrency = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 9, "") + ); + }; + +/** + * @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, 9, value); + }; + +/** + * optional double cash = 10; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCash = + 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.setCash = function ( + value +) { + return jspb.Message.setProto3FloatField(this, 10, value); +}; + +/** + * optional double before_cash = 11; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBeforeCash = + 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.setBeforeCash = + function (value) { + return jspb.Message.setProto3FloatField(this, 11, value); + }; + +/** + * optional double after_cash = 12; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getAfterCash = + function () { + return /** @type {number} */ ( + jspb.Message.getFloatingPointFieldWithDefault(this, 12, 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, 12, value); + }; + +/** + * optional string key = 13; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey = + 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.setKey = function ( + value +) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + +/** + * optional string ref_id = 14; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId = + 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.setRefId = + function (value) { + return jspb.Message.setProto3StringField(this, 14, value); + }; + +/** + * optional string o_ref_id = 15; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getORefId = + 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.setORefId = + function (value) { + return jspb.Message.setProto3StringField(this, 15, value); + }; + +/** + * optional string group_key = 16; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGroupKey = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 16, "") + ); + }; + +/** + * @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, 16, 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, 16, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasGroupKey = + function () { + return jspb.Message.getField(this, 16) != null; + }; + +/** + * optional bool is_bonus = 17; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsBonus = + 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.setIsBonus = + function (value) { + return jspb.Message.setProto3BooleanField(this, 17, value); + }; + +/** + * optional bool is_promo = 18; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsPromo = + 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.setIsPromo = + function (value) { + return jspb.Message.setProto3BooleanField(this, 18, value); + }; + +/** + * optional bool is_jackpot = 19; + * @return {boolean} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsJackpot = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 19, 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, 19, value); + }; + +/** + * optional string site_username = 20; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getSiteUsername = + 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.setSiteUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 20, value); + }; + +/** + * optional string betting_type = 21; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBettingType = + 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.setBettingType = + function (value) { + return jspb.Message.setProto3StringField(this, 21, value); + }; + +/** + * optional string category = 22; + * @return {string} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCategory = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 22, "") + ); + }; + +/** + * @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, 22, value); + }; + +/** + * optional uint64 created_at = 23; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCreatedAt = + 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.setCreatedAt = + function (value) { + return jspb.Message.setProto3IntField(this, 23, value); + }; + +/** + * optional uint64 utc_created_at = 24; + * @return {number} + */ +proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getUtcCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 24, 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, 24, value); + }; + +goog.object.extend(exports, proto.bet.beteran.api.betting);