// source: c2se/api/vendor.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_vendor_pb = require("../../models/api/vendor_pb.js");
goog.object.extend(proto, models_api_vendor_pb);
goog.exportSymbol(
  "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsRequest = function (opt_data) {
  jspb.Message.initialize(
    this,
    opt_data,
    0,
    -1,
    proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.repeatedFields_,
    null
  );
};
goog.inherits(
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.displayName =
    "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest";
}
/**
 * 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.vendor.ListVendorsRequest.Search = function (
  opt_data
) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.displayName =
    "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsResponse = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.displayName =
    "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse";
}
/**
 * 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.vendor.ListVendorsResponse.Result = function (
  opt_data
) {
  jspb.Message.initialize(
    this,
    opt_data,
    0,
    -1,
    proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result
      .repeatedFields_,
    null
  );
};
goog.inherits(
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.displayName =
    "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result";
}

/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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_<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.c2se.api.vendor.ListVendorsRequest.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest();
    return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.Search();
          reader.readMessage(
            value,
            proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.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_<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.c2se.api.vendor.ListVendorsRequest.Search.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.Search} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          companyId: jspb.Message.getFieldWithDefault(msg, 1, 0),
          vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0),
          keyLike: jspb.Message.getFieldWithDefault(msg, 3, ""),
          nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""),
          categoryLike: jspb.Message.getFieldWithDefault(msg, 5, ""),
          isEnable: jspb.Message.getFieldWithDefault(msg, 6, ""),
        };

      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.vendor.ListVendorsRequest.Search}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search();
    return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.Search} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = /** @type {number} */ (reader.readUint64());
          msg.setCompanyId(value);
          break;
        case 2:
          var value = /** @type {number} */ (reader.readUint64());
          msg.setVendorId(value);
          break;
        case 3:
          var value = /** @type {string} */ (reader.readString());
          msg.setKeyLike(value);
          break;
        case 4:
          var value = /** @type {string} */ (reader.readString());
          msg.setNameLike(value);
          break;
        case 5:
          var value = /** @type {string} */ (reader.readString());
          msg.setCategoryLike(value);
          break;
        case 6:
          var value = /** @type {string} */ (reader.readString());
          msg.setIsEnable(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.vendor.ListVendorsRequest.Search.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.Search} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = /** @type {number} */ (jspb.Message.getField(message, 1));
    if (f != null) {
      writer.writeUint64(1, f);
    }
    f = /** @type {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 {string} */ (jspb.Message.getField(message, 5));
    if (f != null) {
      writer.writeString(5, f);
    }
    f = /** @type {string} */ (jspb.Message.getField(message, 6));
    if (f != null) {
      writer.writeString(6, f);
    }
  };

/**
 * optional uint64 company_id = 1;
 * @return {number}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCompanyId =
  function () {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };

/**
 * @param {number} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCompanyId =
  function (value) {
    return jspb.Message.setField(this, 1, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCompanyId =
  function () {
    return jspb.Message.setField(this, 1, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCompanyId =
  function () {
    return jspb.Message.getField(this, 1) != null;
  };

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

/**
 * @param {number} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setVendorId =
  function (value) {
    return jspb.Message.setField(this, 2, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearVendorId =
  function () {
    return jspb.Message.setField(this, 2, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasVendorId =
  function () {
    return jspb.Message.getField(this, 2) != null;
  };

/**
 * optional string key_like = 3;
 * @return {string}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getKeyLike =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 3, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setKeyLike =
  function (value) {
    return jspb.Message.setField(this, 3, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearKeyLike =
  function () {
    return jspb.Message.setField(this, 3, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasKeyLike =
  function () {
    return jspb.Message.getField(this, 3) != null;
  };

/**
 * optional string name_like = 4;
 * @return {string}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getNameLike =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 4, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setNameLike =
  function (value) {
    return jspb.Message.setField(this, 4, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearNameLike =
  function () {
    return jspb.Message.setField(this, 4, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasNameLike =
  function () {
    return jspb.Message.getField(this, 4) != null;
  };

/**
 * optional string category_like = 5;
 * @return {string}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCategoryLike =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 5, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCategoryLike =
  function (value) {
    return jspb.Message.setField(this, 5, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCategoryLike =
  function () {
    return jspb.Message.setField(this, 5, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCategoryLike =
  function () {
    return jspb.Message.getField(this, 5) != null;
  };

/**
 * optional string is_enable = 6;
 * @return {string}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getIsEnable =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 6, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setIsEnable =
  function (value) {
    return jspb.Message.setField(this, 6, value);
  };

/**
 * Clears the field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearIsEnable =
  function () {
    return jspb.Message.setField(this, 6, undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasIsEnable =
  function () {
    return jspb.Message.getField(this, 6) != null;
  };

/**
 * optional bet.protobuf.pagination.Pagination pagination = 1;
 * @return {?proto.bet.protobuf.pagination.Pagination}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setPagination =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearPagination =
  function () {
    return this.setPagination(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.hasPagination =
  function () {
    return jspb.Message.getField(this, 1) != null;
  };

/**
 * repeated bet.protobuf.pagination.Sort sorts = 2;
 * @return {!Array<!proto.bet.protobuf.pagination.Sort>}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSortsList =
  function () {
    return /** @type{!Array<!proto.bet.protobuf.pagination.Sort>} */ (
      jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2)
    );
  };

/**
 * @param {!Array<!proto.bet.protobuf.pagination.Sort>} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest.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.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSortsList =
  function () {
    return this.setSortsList([]);
  };

/**
 * optional Search search = 3;
 * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSearch =
  function () {
    return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} */ (
      jspb.Message.getWrapperField(
        this,
        proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search,
        3
      )
    );
  };

/**
 * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search|undefined} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setSearch =
  function (value) {
    return jspb.Message.setWrapperField(this, 3, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSearch =
  function () {
    return this.setSearch(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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_<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.c2se.api.vendor.ListVendorsResponse.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse();
    return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.Result();
          reader.readMessage(
            value,
            proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.Result
          .serializeBinaryToWriter
      );
    }
  };

/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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_<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.c2se.api.vendor.ListVendorsResponse.Result.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.Result} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          vendorsList: jspb.Message.toObjectList(
            msg.getVendorsList(),
            models_api_vendor_pb.Vendor.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.vendor.ListVendorsResponse.Result}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg =
      new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result();
    return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.Result} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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_vendor_pb.Vendor();
          reader.readMessage(
            value,
            models_api_vendor_pb.Vendor.deserializeBinaryFromReader
          );
          msg.addVendors(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.vendor.ListVendorsResponse.Result.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse.Result} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getVendorsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        models_api_vendor_pb.Vendor.serializeBinaryToWriter
      );
    }
  };

/**
 * repeated bet.beteran.api.vendor.Vendor vendors = 1;
 * @return {!Array<!proto.bet.beteran.api.vendor.Vendor>}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.getVendorsList =
  function () {
    return /** @type{!Array<!proto.bet.beteran.api.vendor.Vendor>} */ (
      jspb.Message.getRepeatedWrapperField(this, models_api_vendor_pb.Vendor, 1)
    );
  };

/**
 * @param {!Array<!proto.bet.beteran.api.vendor.Vendor>} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.setVendorsList =
  function (value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };

/**
 * @param {!proto.bet.beteran.api.vendor.Vendor=} opt_value
 * @param {number=} opt_index
 * @return {!proto.bet.beteran.api.vendor.Vendor}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.addVendors =
  function (opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(
      this,
      1,
      opt_value,
      proto.bet.beteran.api.vendor.Vendor,
      opt_index
    );
  };

/**
 * Clears the list making it empty but non-null.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.clearVendorsList =
  function () {
    return this.setVendorsList([]);
  };

/**
 * optional bet.protobuf.rpc.Error error = 1;
 * @return {?proto.bet.protobuf.rpc.Error}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.vendor.ListVendorsResponse} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setError =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearError =
  function () {
    return this.setError(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasError =
  function () {
    return jspb.Message.getField(this, 1) != null;
  };

/**
 * optional Result result = 2;
 * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.getResult =
  function () {
    return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} */ (
      jspb.Message.getWrapperField(
        this,
        proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result,
        2
      )
    );
  };

/**
 * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result|undefined} value
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setResult =
  function (value) {
    return jspb.Message.setWrapperField(this, 2, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearResult =
  function () {
    return this.setResult(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasResult =
  function () {
    return jspb.Message.getField(this, 2) != null;
  };

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