// 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_<name>, 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),
        groupKey: jspb.Message.getFieldWithDefault(msg, 12, ""),
        detail: jspb.Message.getFieldWithDefault(msg, 13, ""),
        isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
        isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
        isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
        siteUsername: jspb.Message.getFieldWithDefault(msg, 17, ""),
        key: jspb.Message.getFieldWithDefault(msg, 18, ""),
        refId: jspb.Message.getFieldWithDefault(msg, 19, ""),
        oRefId: 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.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.setGroupKey(value);
          break;
        case 13:
          var value = /** @type {string} */ (reader.readString());
          msg.setDetail(value);
          break;
        case 14:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsBonus(value);
          break;
        case 15:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsPromo(value);
          break;
        case 16:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsJackpot(value);
          break;
        case 17:
          var value = /** @type {string} */ (reader.readString());
          msg.setSiteUsername(value);
          break;
        case 18:
          var value = /** @type {string} */ (reader.readString());
          msg.setKey(value);
          break;
        case 19:
          var value = /** @type {string} */ (reader.readString());
          msg.setRefId(value);
          break;
        case 20:
          var value = /** @type {string} */ (reader.readString());
          msg.setORefId(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.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 = /** @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 = message.getIsBonus();
    if (f) {
      writer.writeBool(14, f);
    }
    f = message.getIsPromo();
    if (f) {
      writer.writeBool(15, f);
    }
    f = message.getIsJackpot();
    if (f) {
      writer.writeBool(16, f);
    }
    f = message.getSiteUsername();
    if (f.length > 0) {
      writer.writeString(17, f);
    }
    f = message.getKey();
    if (f.length > 0) {
      writer.writeString(18, f);
    }
    f = message.getRefId();
    if (f.length > 0) {
      writer.writeString(19, f);
    }
    f = message.getORefId();
    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.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 group_key = 12;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getGroupKey =
  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.setGroupKey = function (
  value
) {
  return jspb.Message.setField(this, 12, 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, 12, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.hasGroupKey =
  function () {
    return jspb.Message.getField(this, 12) != null;
  };

/**
 * optional string detail = 13;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getDetail = 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.setDetail = function (
  value
) {
  return jspb.Message.setField(this, 13, value);
};

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.api.betting.BettingHistory} returns this
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.clearDetail =
  function () {
    return jspb.Message.setField(this, 13, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.hasDetail = function () {
  return jspb.Message.getField(this, 13) != null;
};

/**
 * optional bool is_bonus = 14;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getIsBonus =
  function () {
    return /** @type {boolean} */ (
      jspb.Message.getBooleanFieldWithDefault(this, 14, 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, 14, value);
};

/**
 * optional bool is_promo = 15;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getIsPromo =
  function () {
    return /** @type {boolean} */ (
      jspb.Message.getBooleanFieldWithDefault(this, 15, 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, 15, value);
};

/**
 * optional bool is_jackpot = 16;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getIsJackpot =
  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.setIsJackpot = function (
  value
) {
  return jspb.Message.setProto3BooleanField(this, 16, value);
};

/**
 * optional string site_username = 17;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getSiteUsername =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 17, "")
    );
  };

/**
 * @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, 17, value);
  };

/**
 * optional string key = 18;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getKey = function () {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
};

/**
 * @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, 18, value);
};

/**
 * optional string ref_id = 19;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getRefId = 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.setRefId = function (
  value
) {
  return jspb.Message.setProto3StringField(this, 19, value);
};

/**
 * optional string o_ref_id = 20;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getORefId = 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.setORefId = function (
  value
) {
  return jspb.Message.setProto3StringField(this, 20, value);
};

/**
 * optional string betting_type = 21;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getBettingType =
  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.setBettingType =
  function (value) {
    return jspb.Message.setProto3StringField(this, 21, value);
  };

/**
 * optional string category = 22;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getCategory =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 22, "")
    );
  };

/**
 * @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, 22, value);
};

/**
 * optional uint64 created_at = 23;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getCreatedAt =
  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.setCreatedAt = function (
  value
) {
  return jspb.Message.setProto3IntField(this, 23, value);
};

/**
 * optional uint64 utc_created_at = 24;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistory.prototype.getUtcCreatedAt =
  function () {
    return /** @type {number} */ (
      jspb.Message.getFieldWithDefault(this, 24, 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, 24, 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_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.bet.beteran.api.betting.BettingHistoryModel.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.api.betting.BettingHistoryModel.toObject(
        opt_includeInstance,
        this
      );
    };

  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.api.betting.BettingHistoryModel.toObject = function (
    includeInstance,
    msg
  ) {
    var f,
      obj = {
        id: jspb.Message.getFieldWithDefault(msg, 1, ""),
        vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0),
        vendorName: jspb.Message.getFieldWithDefault(msg, 3, ""),
        gameId: jspb.Message.getFieldWithDefault(msg, 4, 0),
        gameName: jspb.Message.getFieldWithDefault(msg, 5, ""),
        gameCategory: jspb.Message.getFieldWithDefault(msg, 6, ""),
        gameType: jspb.Message.getFieldWithDefault(msg, 7, ""),
        currency: jspb.Message.getFieldWithDefault(msg, 8, ""),
        cash: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
        beforeCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
        afterCash: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
        groupKey: jspb.Message.getFieldWithDefault(msg, 12, ""),
        detail: jspb.Message.getFieldWithDefault(msg, 13, ""),
        isBonus: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
        isPromo: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
        isJackpot: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
        siteUsername: jspb.Message.getFieldWithDefault(msg, 17, ""),
        key: jspb.Message.getFieldWithDefault(msg, 18, ""),
        refId: jspb.Message.getFieldWithDefault(msg, 19, ""),
        oRefId: 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),
        member:
          (f = msg.getMember()) &&
          models_member_pb.MemberModel.toObject(includeInstance, f),
      };

    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
}

/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinary = function (
  bytes
) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.bet.beteran.api.betting.BettingHistoryModel();
  return proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinaryFromReader(
    msg,
    reader
  );
};

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = /** @type {string} */ (reader.readString());
          msg.setId(value);
          break;
        case 2:
          var value = /** @type {number} */ (reader.readUint64());
          msg.setVendorId(value);
          break;
        case 3:
          var value = /** @type {string} */ (reader.readString());
          msg.setVendorName(value);
          break;
        case 4:
          var value = /** @type {number} */ (reader.readUint64());
          msg.setGameId(value);
          break;
        case 5:
          var value = /** @type {string} */ (reader.readString());
          msg.setGameName(value);
          break;
        case 6:
          var value = /** @type {string} */ (reader.readString());
          msg.setGameCategory(value);
          break;
        case 7:
          var value = /** @type {string} */ (reader.readString());
          msg.setGameType(value);
          break;
        case 8:
          var value = /** @type {string} */ (reader.readString());
          msg.setCurrency(value);
          break;
        case 9:
          var value = /** @type {number} */ (reader.readDouble());
          msg.setCash(value);
          break;
        case 10:
          var value = /** @type {number} */ (reader.readDouble());
          msg.setBeforeCash(value);
          break;
        case 11:
          var value = /** @type {number} */ (reader.readDouble());
          msg.setAfterCash(value);
          break;
        case 12:
          var value = /** @type {string} */ (reader.readString());
          msg.setGroupKey(value);
          break;
        case 13:
          var value = /** @type {string} */ (reader.readString());
          msg.setDetail(value);
          break;
        case 14:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsBonus(value);
          break;
        case 15:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsPromo(value);
          break;
        case 16:
          var value = /** @type {boolean} */ (reader.readBool());
          msg.setIsJackpot(value);
          break;
        case 17:
          var value = /** @type {string} */ (reader.readString());
          msg.setSiteUsername(value);
          break;
        case 18:
          var value = /** @type {string} */ (reader.readString());
          msg.setKey(value);
          break;
        case 19:
          var value = /** @type {string} */ (reader.readString());
          msg.setRefId(value);
          break;
        case 20:
          var value = /** @type {string} */ (reader.readString());
          msg.setORefId(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;
        case 25:
          var value = new models_member_pb.MemberModel();
          reader.readMessage(
            value,
            models_member_pb.MemberModel.deserializeBinaryFromReader
          );
          msg.setMember(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter(
      this,
      writer
    );
    return writer.getResultBuffer();
  };

/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.bet.beteran.api.betting.BettingHistoryModel} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
      writer.writeString(1, f);
    }
    f = message.getVendorId();
    if (f !== 0) {
      writer.writeUint64(2, f);
    }
    f = message.getVendorName();
    if (f.length > 0) {
      writer.writeString(3, f);
    }
    f = message.getGameId();
    if (f !== 0) {
      writer.writeUint64(4, f);
    }
    f = message.getGameName();
    if (f.length > 0) {
      writer.writeString(5, f);
    }
    f = message.getGameCategory();
    if (f.length > 0) {
      writer.writeString(6, f);
    }
    f = message.getGameType();
    if (f.length > 0) {
      writer.writeString(7, f);
    }
    f = message.getCurrency();
    if (f.length > 0) {
      writer.writeString(8, f);
    }
    f = message.getCash();
    if (f !== 0.0) {
      writer.writeDouble(9, f);
    }
    f = message.getBeforeCash();
    if (f !== 0.0) {
      writer.writeDouble(10, f);
    }
    f = message.getAfterCash();
    if (f !== 0.0) {
      writer.writeDouble(11, f);
    }
    f = /** @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 = message.getIsBonus();
    if (f) {
      writer.writeBool(14, f);
    }
    f = message.getIsPromo();
    if (f) {
      writer.writeBool(15, f);
    }
    f = message.getIsJackpot();
    if (f) {
      writer.writeBool(16, f);
    }
    f = message.getSiteUsername();
    if (f.length > 0) {
      writer.writeString(17, f);
    }
    f = message.getKey();
    if (f.length > 0) {
      writer.writeString(18, f);
    }
    f = message.getRefId();
    if (f.length > 0) {
      writer.writeString(19, f);
    }
    f = message.getORefId();
    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);
    }
    f = message.getMember();
    if (f != null) {
      writer.writeMessage(
        25,
        f,
        models_member_pb.MemberModel.serializeBinaryToWriter
      );
    }
  };

/**
 * optional string id = 1;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getId =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 1, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setId = function (
  value
) {
  return jspb.Message.setProto3StringField(this, 1, value);
};

/**
 * optional uint64 vendor_id = 2;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorId =
  function () {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setVendorId =
  function (value) {
    return jspb.Message.setProto3IntField(this, 2, value);
  };

/**
 * optional string vendor_name = 3;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getVendorName =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 3, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setVendorName =
  function (value) {
    return jspb.Message.setProto3StringField(this, 3, value);
  };

/**
 * optional uint64 game_id = 4;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameId =
  function () {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameId =
  function (value) {
    return jspb.Message.setProto3IntField(this, 4, value);
  };

/**
 * optional string game_name = 5;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameName =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 5, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameName =
  function (value) {
    return jspb.Message.setProto3StringField(this, 5, value);
  };

/**
 * optional string game_category = 6;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameCategory =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 6, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameCategory =
  function (value) {
    return jspb.Message.setProto3StringField(this, 6, value);
  };

/**
 * optional string game_type = 7;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGameType =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 7, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGameType =
  function (value) {
    return jspb.Message.setProto3StringField(this, 7, value);
  };

/**
 * optional string currency = 8;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCurrency =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 8, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCurrency =
  function (value) {
    return jspb.Message.setProto3StringField(this, 8, value);
  };

/**
 * optional double cash = 9;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getCash =
  function () {
    return /** @type {number} */ (
      jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0)
    );
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setCash = function (
  value
) {
  return jspb.Message.setProto3FloatField(this, 9, value);
};

/**
 * optional double before_cash = 10;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getBeforeCash =
  function () {
    return /** @type {number} */ (
      jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)
    );
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setBeforeCash =
  function (value) {
    return jspb.Message.setProto3FloatField(this, 10, value);
  };

/**
 * optional double after_cash = 11;
 * @return {number}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getAfterCash =
  function () {
    return /** @type {number} */ (
      jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)
    );
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setAfterCash =
  function (value) {
    return jspb.Message.setProto3FloatField(this, 11, value);
  };

/**
 * optional string group_key = 12;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getGroupKey =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 12, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setGroupKey =
  function (value) {
    return jspb.Message.setField(this, 12, 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, 12, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasGroupKey =
  function () {
    return jspb.Message.getField(this, 12) != null;
  };

/**
 * optional string detail = 13;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getDetail =
  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.setDetail =
  function (value) {
    return jspb.Message.setField(this, 13, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.clearDetail =
  function () {
    return jspb.Message.setField(this, 13, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.hasDetail =
  function () {
    return jspb.Message.getField(this, 13) != null;
  };

/**
 * optional bool is_bonus = 14;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsBonus =
  function () {
    return /** @type {boolean} */ (
      jspb.Message.getBooleanFieldWithDefault(this, 14, 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, 14, value);
  };

/**
 * optional bool is_promo = 15;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsPromo =
  function () {
    return /** @type {boolean} */ (
      jspb.Message.getBooleanFieldWithDefault(this, 15, 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, 15, value);
  };

/**
 * optional bool is_jackpot = 16;
 * @return {boolean}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getIsJackpot =
  function () {
    return /** @type {boolean} */ (
      jspb.Message.getBooleanFieldWithDefault(this, 16, false)
    );
  };

/**
 * @param {boolean} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setIsJackpot =
  function (value) {
    return jspb.Message.setProto3BooleanField(this, 16, value);
  };

/**
 * optional string site_username = 17;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getSiteUsername =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 17, "")
    );
  };

/**
 * @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, 17, value);
  };

/**
 * optional string key = 18;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getKey =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 18, "")
    );
  };

/**
 * @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, 18, value);
};

/**
 * optional string ref_id = 19;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getRefId =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 19, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setRefId =
  function (value) {
    return jspb.Message.setProto3StringField(this, 19, value);
  };

/**
 * optional string o_ref_id = 20;
 * @return {string}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getORefId =
  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.setORefId =
  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);
  };

/**
 * optional bet.beteran.member.MemberModel member = 25;
 * @return {?proto.bet.beteran.member.MemberModel}
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember =
  function () {
    return /** @type{?proto.bet.beteran.member.MemberModel} */ (
      jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 25)
    );
  };

/**
 * @param {?proto.bet.beteran.member.MemberModel|undefined} value
 * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this
 */
proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setMember =
  function (value) {
    return jspb.Message.setWrapperField(this, 25, 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, 25) != null;
  };

goog.object.extend(exports, proto.bet.beteran.api.betting);
