// source: c2se/backend/member.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_error_pb = require("../../protobuf/rpc/error_pb.js");
goog.object.extend(proto, protobuf_rpc_error_pb);
var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js");
goog.object.extend(proto, protobuf_pagination_pagination_pb);
var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js");
goog.object.extend(proto, protobuf_pagination_search_pb);
var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js");
goog.object.extend(proto, protobuf_pagination_sort_pb);
var models_member_member_pb = require("../../models/member/member_pb.js");
goog.object.extend(proto, models_member_member_pb);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberRequest",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberResponse",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.ListMembersRequest",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.ListMembersResponse",
  null,
  global
);
goog.exportSymbol(
  "proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersRequest = function (opt_data) {
  jspb.Message.initialize(
    this,
    opt_data,
    0,
    -1,
    proto.bet.beteran.c2se.backend.member.ListMembersRequest.repeatedFields_,
    null
  );
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.ListMembersRequest,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.ListMembersRequest.displayName =
    "proto.bet.beteran.c2se.backend.member.ListMembersRequest";
}
/**
 * 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.backend.member.ListMembersResponse = function (
  opt_data
) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.ListMembersResponse,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.ListMembersResponse.displayName =
    "proto.bet.beteran.c2se.backend.member.ListMembersResponse";
}
/**
 * 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.backend.member.ListMembersResponse.Result = function (
  opt_data
) {
  jspb.Message.initialize(
    this,
    opt_data,
    0,
    -1,
    proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result
      .repeatedFields_,
    null
  );
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.displayName =
    "proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.bet.beteran.c2se.backend.member.GetMemberRequest = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberRequest,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberRequest.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberRequest";
}
/**
 * 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.backend.member.GetMemberResponse = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberResponse,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberResponse.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberResponse";
}
/**
 * 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.backend.member.GetMemberResponse.Result = function (
  opt_data
) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result";
}
/**
 * Generated by JsPbCodeGenerator.
 * @param {Array=} opt_data Optional initial data array, typically from a
 * server response, or constructed directly in Javascript. The array is used
 * in place and becomes part of the constructed object. It is not cloned.
 * If no data is provided, the constructed object will be empty, but still
 * valid.
 * @extends {jspb.Message}
 * @constructor
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest = function (
  opt_data
) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest";
}
/**
 * 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.backend.member.GetMemberByUsernameResponse = function (
  opt_data
) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse";
}
/**
 * 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.backend.member.GetMemberByUsernameResponse.Result =
  function (opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
goog.inherits(
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result,
  jspb.Message
);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.displayName =
    "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result";
}

/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.repeatedFields_ = [
  2, 3,
];

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.backend.member.ListMembersRequest.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.ListMembersRequest.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.backend.member.ListMembersRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.ListMembersRequest.toObject = function (
    includeInstance,
    msg
  ) {
    var f,
      obj = {
        pagination:
          (f = msg.getPagination()) &&
          protobuf_pagination_pagination_pb.Pagination.toObject(
            includeInstance,
            f
          ),
        searchesList: jspb.Message.toObjectList(
          msg.getSearchesList(),
          protobuf_pagination_search_pb.Search.toObject,
          includeInstance
        ),
        sortsList: jspb.Message.toObjectList(
          msg.getSortsList(),
          protobuf_pagination_sort_pb.Sort.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.backend.member.ListMembersRequest}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.backend.member.ListMembersRequest();
    return proto.bet.beteran.c2se.backend.member.ListMembersRequest.deserializeBinaryFromReader(
      msg,
      reader
    );
  };

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new protobuf_pagination_pagination_pb.Pagination();
          reader.readMessage(
            value,
            protobuf_pagination_pagination_pb.Pagination
              .deserializeBinaryFromReader
          );
          msg.setPagination(value);
          break;
        case 2:
          var value = new protobuf_pagination_search_pb.Search();
          reader.readMessage(
            value,
            protobuf_pagination_search_pb.Search.deserializeBinaryFromReader
          );
          msg.addSearches(value);
          break;
        case 3:
          var value = new protobuf_pagination_sort_pb.Sort();
          reader.readMessage(
            value,
            protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader
          );
          msg.addSorts(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.ListMembersRequest.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.backend.member.ListMembersRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getPagination();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter
      );
    }
    f = message.getSearchesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        2,
        f,
        protobuf_pagination_search_pb.Search.serializeBinaryToWriter
      );
    }
    f = message.getSortsList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        3,
        f,
        protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter
      );
    }
  };

/**
 * optional bet.protobuf.pagination.Pagination pagination = 1;
 * @return {?proto.bet.protobuf.pagination.Pagination}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getPagination =
  function () {
    return /** @type{?proto.bet.protobuf.pagination.Pagination} */ (
      jspb.Message.getWrapperField(
        this,
        protobuf_pagination_pagination_pb.Pagination,
        1
      )
    );
  };

/**
 * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setPagination =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

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

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

/**
 * repeated bet.protobuf.pagination.Search searches = 2;
 * @return {!Array<!proto.bet.protobuf.pagination.Search>}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSearchesList =
  function () {
    return /** @type{!Array<!proto.bet.protobuf.pagination.Search>} */ (
      jspb.Message.getRepeatedWrapperField(
        this,
        protobuf_pagination_search_pb.Search,
        2
      )
    );
  };

/**
 * @param {!Array<!proto.bet.protobuf.pagination.Search>} value
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSearchesList =
  function (value) {
    return jspb.Message.setRepeatedWrapperField(this, 2, value);
  };

/**
 * @param {!proto.bet.protobuf.pagination.Search=} opt_value
 * @param {number=} opt_index
 * @return {!proto.bet.protobuf.pagination.Search}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.addSearches =
  function (opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(
      this,
      2,
      opt_value,
      proto.bet.protobuf.pagination.Search,
      opt_index
    );
  };

/**
 * Clears the list making it empty but non-null.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSearchesList =
  function () {
    return this.setSearchesList([]);
  };

/**
 * repeated bet.protobuf.pagination.Sort sorts = 3;
 * @return {!Array<!proto.bet.protobuf.pagination.Sort>}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSortsList =
  function () {
    return /** @type{!Array<!proto.bet.protobuf.pagination.Sort>} */ (
      jspb.Message.getRepeatedWrapperField(
        this,
        protobuf_pagination_sort_pb.Sort,
        3
      )
    );
  };

/**
 * @param {!Array<!proto.bet.protobuf.pagination.Sort>} value
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSortsList =
  function (value) {
    return jspb.Message.setRepeatedWrapperField(this, 3, value);
  };

/**
 * @param {!proto.bet.protobuf.pagination.Sort=} opt_value
 * @param {number=} opt_index
 * @return {!proto.bet.protobuf.pagination.Sort}
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.addSorts =
  function (opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(
      this,
      3,
      opt_value,
      proto.bet.protobuf.pagination.Sort,
      opt_index
    );
  };

/**
 * Clears the list making it empty but non-null.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSortsList =
  function () {
    return this.setSortsList([]);
  };

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.backend.member.ListMembersResponse.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.ListMembersResponse.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          error:
            (f = msg.getError()) &&
            protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
          result:
            (f = msg.getResult()) &&
            proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.backend.member.ListMembersResponse();
    return proto.bet.beteran.c2se.backend.member.ListMembersResponse.deserializeBinaryFromReader(
      msg,
      reader
    );
  };

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.ListMembersResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new protobuf_rpc_error_pb.Error();
          reader.readMessage(
            value,
            protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
          );
          msg.setError(value);
          break;
        case 2:
          var value =
            new proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result();
          reader.readMessage(
            value,
            proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getError();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        protobuf_rpc_error_pb.Error.serializeBinaryToWriter
      );
    }
    f = message.getResult();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result
          .serializeBinaryToWriter
      );
    }
  };

/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse.Result.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse.Result} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          membersList: jspb.Message.toObjectList(
            msg.getMembersList(),
            models_member_member_pb.Member.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.backend.member.ListMembersResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg =
      new proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result();
    return proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse.Result} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new models_member_member_pb.Member();
          reader.readMessage(
            value,
            models_member_member_pb.Member.deserializeBinaryFromReader
          );
          msg.addMembers(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.ListMembersResponse.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.backend.member.ListMembersResponse.Result} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getMembersList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        1,
        f,
        models_member_member_pb.Member.serializeBinaryToWriter
      );
    }
  };

/**
 * repeated bet.beteran.member.Member members = 1;
 * @return {!Array<!proto.bet.beteran.member.Member>}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.getMembersList =
  function () {
    return /** @type{!Array<!proto.bet.beteran.member.Member>} */ (
      jspb.Message.getRepeatedWrapperField(
        this,
        models_member_member_pb.Member,
        1
      )
    );
  };

/**
 * @param {!Array<!proto.bet.beteran.member.Member>} value
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.setMembersList =
  function (value) {
    return jspb.Message.setRepeatedWrapperField(this, 1, value);
  };

/**
 * @param {!proto.bet.beteran.member.Member=} opt_value
 * @param {number=} opt_index
 * @return {!proto.bet.beteran.member.Member}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.addMembers =
  function (opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(
      this,
      1,
      opt_value,
      proto.bet.beteran.member.Member,
      opt_index
    );
  };

/**
 * Clears the list making it empty but non-null.
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.clearMembersList =
  function () {
    return this.setMembersList([]);
  };

/**
 * optional bet.protobuf.rpc.Error error = 1;
 * @return {?proto.bet.protobuf.rpc.Error}
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.getError =
  function () {
    return /** @type{?proto.bet.protobuf.rpc.Error} */ (
      jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
    );
  };

/**
 * @param {?proto.bet.protobuf.rpc.Error|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse} returns this
 */
proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.setError =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

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

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

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

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

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

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

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberRequest.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberRequest.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.backend.member.GetMemberRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberRequest.toObject = function (
    includeInstance,
    msg
  ) {
    var f,
      obj = {
        id: jspb.Message.getFieldWithDefault(msg, 1, ""),
      };

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

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

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.GetMemberRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberRequest}
 */
proto.bet.beteran.c2se.backend.member.GetMemberRequest.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = /** @type {string} */ (reader.readString());
          msg.setId(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.bet.beteran.c2se.backend.member.GetMemberRequest.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberRequest.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.backend.member.GetMemberRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberRequest.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
      writer.writeString(1, f);
    }
  };

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

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

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberResponse.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberResponse.toObject = function (
    includeInstance,
    msg
  ) {
    var f,
      obj = {
        error:
          (f = msg.getError()) &&
          protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
        result:
          (f = msg.getResult()) &&
          proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.bet.beteran.c2se.backend.member.GetMemberResponse();
    return proto.bet.beteran.c2se.backend.member.GetMemberResponse.deserializeBinaryFromReader(
      msg,
      reader
    );
  };

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.GetMemberResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new protobuf_rpc_error_pb.Error();
          reader.readMessage(
            value,
            protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
          );
          msg.setError(value);
          break;
        case 2:
          var value =
            new proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result();
          reader.readMessage(
            value,
            proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getError();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        protobuf_rpc_error_pb.Error.serializeBinaryToWriter
      );
    }
    f = message.getResult();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result
          .serializeBinaryToWriter
      );
    }
  };

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberResponse.Result.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse.Result} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          member:
            (f = msg.getMember()) &&
            models_member_member_pb.Member.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.backend.member.GetMemberResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg =
      new proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result();
    return proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse.Result} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new models_member_member_pb.Member();
          reader.readMessage(
            value,
            models_member_member_pb.Member.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.c2se.backend.member.GetMemberResponse.Result.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberResponse.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.backend.member.GetMemberResponse.Result} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getMember();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        models_member_member_pb.Member.serializeBinaryToWriter
      );
    }
  };

/**
 * optional bet.beteran.member.Member member = 1;
 * @return {?proto.bet.beteran.member.Member}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.getMember =
  function () {
    return /** @type{?proto.bet.beteran.member.Member} */ (
      jspb.Message.getWrapperField(this, models_member_member_pb.Member, 1)
    );
  };

/**
 * @param {?proto.bet.beteran.member.Member|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.setMember =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.clearMember =
  function () {
    return this.setMember(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.hasMember =
  function () {
    return jspb.Message.getField(this, 1) != null;
  };

/**
 * optional bet.protobuf.rpc.Error error = 1;
 * @return {?proto.bet.protobuf.rpc.Error}
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.getError =
  function () {
    return /** @type{?proto.bet.protobuf.rpc.Error} */ (
      jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
    );
  };

/**
 * @param {?proto.bet.protobuf.rpc.Error|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberResponse.prototype.setError =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

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

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

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

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

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

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

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberByUsernameRequest.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.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.backend.member.GetMemberByUsernameRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          username: jspb.Message.getFieldWithDefault(msg, 1, ""),
        };

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

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

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.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.setUsername(value);
          break;
        default:
          reader.skipField();
          break;
      }
    }
    return msg;
  };

/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.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.backend.member.GetMemberByUsernameRequest} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getUsername();
    if (f.length > 0) {
      writer.writeString(1, f);
    }
  };

/**
 * optional string username = 1;
 * @return {string}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.prototype.getUsername =
  function () {
    return /** @type {string} */ (
      jspb.Message.getFieldWithDefault(this, 1, "")
    );
  };

/**
 * @param {string} value
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest.prototype.setUsername =
  function (value) {
    return jspb.Message.setProto3StringField(this, 1, value);
  };

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberByUsernameResponse.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          error:
            (f = msg.getError()) &&
            protobuf_rpc_error_pb.Error.toObject(includeInstance, f),
          result:
            (f = msg.getResult()) &&
            proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg =
      new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse();
    return proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.deserializeBinaryFromReader(
      msg,
      reader
    );
  };

/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new protobuf_rpc_error_pb.Error();
          reader.readMessage(
            value,
            protobuf_rpc_error_pb.Error.deserializeBinaryFromReader
          );
          msg.setError(value);
          break;
        case 2:
          var value =
            new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result();
          reader.readMessage(
            value,
            proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse
              .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.backend.member.GetMemberByUsernameResponse.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getError();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        protobuf_rpc_error_pb.Error.serializeBinaryToWriter
      );
    }
    f = message.getResult();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result
          .serializeBinaryToWriter
      );
    }
  };

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<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.backend.member.GetMemberByUsernameResponse.Result.prototype.toObject =
    function (opt_includeInstance) {
      return proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse.Result} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.toObject =
    function (includeInstance, msg) {
      var f,
        obj = {
          member:
            (f = msg.getMember()) &&
            models_member_member_pb.Member.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.backend.member.GetMemberByUsernameResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.deserializeBinary =
  function (bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg =
      new proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result();
    return proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse.Result} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.deserializeBinaryFromReader =
  function (msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
        case 1:
          var value = new models_member_member_pb.Member();
          reader.readMessage(
            value,
            models_member_member_pb.Member.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.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.serializeBinary =
  function () {
    var writer = new jspb.BinaryWriter();
    proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.backend.member.GetMemberByUsernameResponse.Result} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.serializeBinaryToWriter =
  function (message, writer) {
    var f = undefined;
    f = message.getMember();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        models_member_member_pb.Member.serializeBinaryToWriter
      );
    }
  };

/**
 * optional bet.beteran.member.Member member = 1;
 * @return {?proto.bet.beteran.member.Member}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.getMember =
  function () {
    return /** @type{?proto.bet.beteran.member.Member} */ (
      jspb.Message.getWrapperField(this, models_member_member_pb.Member, 1)
    );
  };

/**
 * @param {?proto.bet.beteran.member.Member|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.setMember =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

/**
 * Clears the message field making it undefined.
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.clearMember =
  function () {
    return this.setMember(undefined);
  };

/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.hasMember =
  function () {
    return jspb.Message.getField(this, 1) != null;
  };

/**
 * optional bet.protobuf.rpc.Error error = 1;
 * @return {?proto.bet.protobuf.rpc.Error}
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.getError =
  function () {
    return /** @type{?proto.bet.protobuf.rpc.Error} */ (
      jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1)
    );
  };

/**
 * @param {?proto.bet.protobuf.rpc.Error|undefined} value
 * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse} returns this
 */
proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.setError =
  function (value) {
    return jspb.Message.setWrapperField(this, 1, value);
  };

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

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

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

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

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

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

goog.object.extend(exports, proto.bet.beteran.c2se.backend.member);
