beteran-backend-app-browser/src/app/modules/proto/c2se/member_class_pb.js
2022-08-14 08:54:50 +00:00

3265 lines
113 KiB
JavaScript

// source: c2se/member_class.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_member_class_pb = require('../models/member_class_pb.js');
goog.object.extend(proto, models_member_class_pb);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassRequest', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassResponse', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassRequest', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassResponse', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesRequest', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesResponse', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse', null, global);
goog.exportSymbol('proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.CreateMemberClassRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassRequest';
}
/**
* 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.member_class.CreateMemberClassResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassResponse';
}
/**
* 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.member_class.CreateMemberClassResponse.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.ListMemberClassesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.repeatedFields_, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesRequest';
}
/**
* 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.member_class.ListMemberClassesRequest.Search = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesResponse';
}
/**
* 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.member_class.ListMemberClassesResponse.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.repeatedFields_, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.GetMemberClassRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassRequest';
}
/**
* 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.member_class.GetMemberClassResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassResponse';
}
/**
* 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.member_class.GetMemberClassResponse.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.UpdateMemberClassRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest';
}
/**
* 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.member_class.UpdateMemberClassResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse';
}
/**
* 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.member_class.UpdateMemberClassResponse.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.DeleteMemberClassRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest';
}
/**
* 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.member_class.DeleteMemberClassResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse';
}
/**
* 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.member_class.DeleteMemberClassResponse.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.displayName = 'proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result';
}
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.member_class.CreateMemberClassRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.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.member_class.CreateMemberClassRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.toObject = function(includeInstance, msg) {
var f, obj = {
parentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
};
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.member_class.CreateMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassRequest;
return proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.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.setParentId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setShow(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.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.member_class.CreateMemberClassRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getShow();
if (f) {
writer.writeBool(
3,
f
);
}
};
/**
* optional string parent_id = 1;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getParentId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setParentId = function(value) {
return jspb.Message.setField(this, 1, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.clearParentId = function() {
return jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.hasParentId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string name = 2;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional bool show = 3;
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getShow = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setShow = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, 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.member_class.CreateMemberClassResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassResponse;
return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.Result;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.toObject = function(includeInstance, msg) {
var f, obj = {
memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.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.member_class.CreateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result;
return proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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_class_pb.MemberClass;
reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader);
msg.setMemberClass(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMemberClass();
if (f != null) {
writer.writeMessage(
1,
f,
models_member_class_pb.MemberClass.serializeBinaryToWriter
);
}
};
/**
* optional bet.beteran.member_class.MemberClass member_class = 1;
* @return {?proto.bet.beteran.member_class.MemberClass}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.getMemberClass = function() {
return /** @type{?proto.bet.beteran.member_class.MemberClass} */ (
jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1));
};
/**
* @param {?proto.bet.beteran.member_class.MemberClass|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.setMemberClass = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.clearMemberClass = function() {
return this.setMemberClass(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result.prototype.hasMemberClass = 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.member_class.CreateMemberClassResponse.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.member_class.CreateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.setError = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result result = 2;
* @return {?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.getResult = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result, 2));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.CreateMemberClassResponse.prototype.hasResult = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesRequest;
return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.Search;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.Search.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.Search} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.toObject = function(includeInstance, msg) {
var f, obj = {
nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""),
show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
};
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.member_class.ListMemberClassesRequest.Search}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search;
return proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.Search} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setNameLike(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setShow(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.Search} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeBool(
2,
f
);
}
};
/**
* optional string name_like = 1;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getNameLike = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setNameLike = function(value) {
return jspb.Message.setField(this, 1, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearNameLike = function() {
return jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasNameLike = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bool show = 2;
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getShow = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setShow = function(value) {
return jspb.Message.setField(this, 2, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearShow = function() {
return jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasShow = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional bet.protobuf.pagination.Pagination pagination = 1;
* @return {?proto.bet.protobuf.pagination.Pagination}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearSortsList = function() {
return this.setSortsList([]);
};
/**
* optional Search search = 3;
* @return {?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.getSearch = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search, 3));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.setSearch = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.prototype.clearSearch = function() {
return this.setSearch(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.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.member_class.ListMemberClassesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesResponse;
return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter
);
}
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.toObject = function(includeInstance, msg) {
var f, obj = {
memberClassesList: jspb.Message.toObjectList(msg.getMemberClassesList(),
models_member_class_pb.MemberClass.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.member_class.ListMemberClassesResponse.Result}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result;
return proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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_class_pb.MemberClass;
reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader);
msg.addMemberClasses(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMemberClassesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
models_member_class_pb.MemberClass.serializeBinaryToWriter
);
}
};
/**
* repeated bet.beteran.member_class.MemberClass member_classes = 1;
* @return {!Array<!proto.bet.beteran.member_class.MemberClass>}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.getMemberClassesList = function() {
return /** @type{!Array<!proto.bet.beteran.member_class.MemberClass>} */ (
jspb.Message.getRepeatedWrapperField(this, models_member_class_pb.MemberClass, 1));
};
/**
* @param {!Array<!proto.bet.beteran.member_class.MemberClass>} value
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.setMemberClassesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.bet.beteran.member_class.MemberClass=} opt_value
* @param {number=} opt_index
* @return {!proto.bet.beteran.member_class.MemberClass}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.addMemberClasses = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bet.beteran.member_class.MemberClass, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result.prototype.clearMemberClassesList = function() {
return this.setMemberClassesList([]);
};
/**
* optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.ListMemberClassesResponse} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.setError = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result result = 2;
* @return {?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.getResult = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result, 2));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesResponse} returns this
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.ListMemberClassesResponse.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.member_class.GetMemberClassRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassRequest;
return proto.bet.beteran.c2se.member_class.GetMemberClassRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassRequest.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.member_class.GetMemberClassResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassResponse;
return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.Result;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.toObject = function(includeInstance, msg) {
var f, obj = {
memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.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.member_class.GetMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result;
return proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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_class_pb.MemberClass;
reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader);
msg.setMemberClass(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMemberClass();
if (f != null) {
writer.writeMessage(
1,
f,
models_member_class_pb.MemberClass.serializeBinaryToWriter
);
}
};
/**
* optional bet.beteran.member_class.MemberClass member_class = 1;
* @return {?proto.bet.beteran.member_class.MemberClass}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.getMemberClass = function() {
return /** @type{?proto.bet.beteran.member_class.MemberClass} */ (
jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1));
};
/**
* @param {?proto.bet.beteran.member_class.MemberClass|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.setMemberClass = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.clearMemberClass = function() {
return this.setMemberClass(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result.prototype.hasMemberClass = 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.member_class.GetMemberClassResponse.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.member_class.GetMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.setError = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result result = 2;
* @return {?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.getResult = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result, 2));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.GetMemberClassResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.GetMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.GetMemberClassResponse.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.member_class.UpdateMemberClassRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.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.member_class.UpdateMemberClassRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
parentId: jspb.Message.getFieldWithDefault(msg, 2, ""),
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
};
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.member_class.UpdateMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest;
return proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setParentId(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setShow(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.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.member_class.UpdateMemberClassRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeString(
2,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getShow();
if (f) {
writer.writeBool(
4,
f
);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string parent_id = 2;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getParentId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setParentId = function(value) {
return jspb.Message.setField(this, 2, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.clearParentId = function() {
return jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.hasParentId = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string name = 3;
* @return {string}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional bool show = 4;
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getShow = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setShow = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, 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.member_class.UpdateMemberClassResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse;
return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.Result;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.toObject = function(includeInstance, msg) {
var f, obj = {
memberClass: (f = msg.getMemberClass()) && models_member_class_pb.MemberClass.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.member_class.UpdateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result;
return proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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_class_pb.MemberClass;
reader.readMessage(value,models_member_class_pb.MemberClass.deserializeBinaryFromReader);
msg.setMemberClass(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMemberClass();
if (f != null) {
writer.writeMessage(
1,
f,
models_member_class_pb.MemberClass.serializeBinaryToWriter
);
}
};
/**
* optional bet.beteran.member_class.MemberClass member_class = 1;
* @return {?proto.bet.beteran.member_class.MemberClass}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.getMemberClass = function() {
return /** @type{?proto.bet.beteran.member_class.MemberClass} */ (
jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 1));
};
/**
* @param {?proto.bet.beteran.member_class.MemberClass|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.setMemberClass = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.clearMemberClass = function() {
return this.setMemberClass(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result.prototype.hasMemberClass = 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.member_class.UpdateMemberClassResponse.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.member_class.UpdateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.setError = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result result = 2;
* @return {?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.getResult = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result, 2));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.UpdateMemberClassResponse.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.member_class.DeleteMemberClassRequest.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest;
return proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest} returns this
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassRequest.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.member_class.DeleteMemberClassResponse.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse;
return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.Result;
reader.readMessage(value,proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.Result.prototype.toObject = function(opt_includeInstance) {
return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.toObject = function(includeInstance, msg) {
var f, obj = {
};
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.member_class.DeleteMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result;
return proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* optional bet.protobuf.rpc.Error error = 1;
* @return {?proto.bet.protobuf.rpc.Error}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.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.member_class.DeleteMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.setError = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.clearError = function() {
return this.setError(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.hasError = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Result result = 2;
* @return {?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.getResult = function() {
return /** @type{?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result} */ (
jspb.Message.getWrapperField(this, proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result, 2));
};
/**
* @param {?proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.Result|undefined} value
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.setResult = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse} returns this
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.clearResult = function() {
return this.setResult(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.c2se.member_class.DeleteMemberClassResponse.prototype.hasResult = function() {
return jspb.Message.getField(this, 2) != null;
};
goog.object.extend(exports, proto.bet.beteran.c2se.member_class);