2019 lines
60 KiB
JavaScript
2019 lines
60 KiB
JavaScript
// source: cofd_api.proto
|
|
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @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')();
|
|
|
|
var cofd_pb = require('./cofd_pb.js');
|
|
goog.object.extend(proto, cofd_pb);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.Attributes', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.BasicInfo', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.Condition', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.SkillSpecializationsUpdate', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.SkillUpdate', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.Skills', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateAttributeRequest', null, global);
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateSkillValueRequest', 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.models.proto.cofd.api.BasicInfo = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.BasicInfo, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.displayName = 'proto.models.proto.cofd.api.BasicInfo';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.Attributes = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.Attributes, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.displayName = 'proto.models.proto.cofd.api.Attributes';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.UpdateAttributeRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateAttributeRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.displayName = 'proto.models.proto.cofd.api.UpdateAttributeRequest';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.Skills = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.models.proto.cofd.api.Skills.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.Skills, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.displayName = 'proto.models.proto.cofd.api.Skills';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.SkillUpdate = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.SkillUpdate, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.displayName = 'proto.models.proto.cofd.api.SkillUpdate';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.UpdateSkillValueRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateSkillValueRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.displayName = 'proto.models.proto.cofd.api.UpdateSkillValueRequest';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.SkillSpecializationsUpdate = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.models.proto.cofd.api.SkillSpecializationsUpdate.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.SkillSpecializationsUpdate, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.displayName = 'proto.models.proto.cofd.api.SkillSpecializationsUpdate';
|
|
}
|
|
/**
|
|
* 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.models.proto.cofd.api.Condition = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.models.proto.cofd.api.Condition, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.displayName = 'proto.models.proto.cofd.api.Condition';
|
|
}
|
|
|
|
|
|
|
|
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.models.proto.cofd.api.BasicInfo.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.BasicInfo.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.models.proto.cofd.api.BasicInfo} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
gender: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
concept: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
chronicle: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
age: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.BasicInfo;
|
|
return proto.models.proto.cofd.api.BasicInfo.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.BasicInfo} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.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.setName(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setGender(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setConcept(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setChronicle(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setAge(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.BasicInfo.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.BasicInfo} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getGender();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getConcept();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getChronicle();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAge();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.getName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.setName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string gender = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.getGender = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.setGender = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string concept = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.getConcept = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.setConcept = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string chronicle = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.getChronicle = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.setChronicle = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 age = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.getAge = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.BasicInfo} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.BasicInfo.prototype.setAge = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 5, 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.models.proto.cofd.api.Attributes.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.Attributes.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.models.proto.cofd.api.Attributes} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
strength: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
dexterity: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
stamina: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
intelligence: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
wits: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
resolve: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
presence: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
manipulation: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
composure: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.models.proto.cofd.api.Attributes}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.Attributes;
|
|
return proto.models.proto.cofd.api.Attributes.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.Attributes} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.Attributes}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStrength(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setDexterity(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setStamina(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setIntelligence(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setWits(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setResolve(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setPresence(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setManipulation(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setComposure(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.Attributes.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.Attributes} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getStrength();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDexterity();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStamina();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getIntelligence();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getWits();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getResolve();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPresence();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getManipulation();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getComposure();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 strength = 1;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getStrength = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setStrength = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 dexterity = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getDexterity = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setDexterity = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 stamina = 3;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getStamina = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setStamina = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 intelligence = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getIntelligence = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setIntelligence = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 wits = 5;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getWits = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setWits = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 resolve = 6;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getResolve = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setResolve = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 presence = 7;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getPresence = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setPresence = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 manipulation = 8;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getManipulation = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setManipulation = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 composure = 9;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.getComposure = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.Attributes} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Attributes.prototype.setComposure = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 9, 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.models.proto.cofd.api.UpdateAttributeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.UpdateAttributeRequest.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.models.proto.cofd.api.UpdateAttributeRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
characterUsername: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
characterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
attributeName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
attributeValue: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.UpdateAttributeRequest;
|
|
return proto.models.proto.cofd.api.UpdateAttributeRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.UpdateAttributeRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.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.setCharacterUsername(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCharacterId(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setAttributeName(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setAttributeValue(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.UpdateAttributeRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getCharacterUsername();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCharacterId();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAttributeName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getAttributeValue();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string character_username = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.getCharacterUsername = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.setCharacterUsername = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 character_id = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.getCharacterId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.setCharacterId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string attribute_name = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.getAttributeName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.setAttributeName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 attribute_value = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.getAttributeValue = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateAttributeRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateAttributeRequest.prototype.setAttributeValue = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.repeatedFields_ = [1,2,3];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.Skills.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.models.proto.cofd.api.Skills} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
physicalSkillsList: jspb.Message.toObjectList(msg.getPhysicalSkillsList(),
|
|
cofd_pb.CofdSheet.Skill.toObject, includeInstance),
|
|
mentalSkillsList: jspb.Message.toObjectList(msg.getMentalSkillsList(),
|
|
cofd_pb.CofdSheet.Skill.toObject, includeInstance),
|
|
socialSkillsList: jspb.Message.toObjectList(msg.getSocialSkillsList(),
|
|
cofd_pb.CofdSheet.Skill.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.models.proto.cofd.api.Skills}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.Skills;
|
|
return proto.models.proto.cofd.api.Skills.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.Skills} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.Skills}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new cofd_pb.CofdSheet.Skill;
|
|
reader.readMessage(value,cofd_pb.CofdSheet.Skill.deserializeBinaryFromReader);
|
|
msg.addPhysicalSkills(value);
|
|
break;
|
|
case 2:
|
|
var value = new cofd_pb.CofdSheet.Skill;
|
|
reader.readMessage(value,cofd_pb.CofdSheet.Skill.deserializeBinaryFromReader);
|
|
msg.addMentalSkills(value);
|
|
break;
|
|
case 3:
|
|
var value = new cofd_pb.CofdSheet.Skill;
|
|
reader.readMessage(value,cofd_pb.CofdSheet.Skill.deserializeBinaryFromReader);
|
|
msg.addSocialSkills(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.Skills.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.Skills} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getPhysicalSkillsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
1,
|
|
f,
|
|
cofd_pb.CofdSheet.Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getMentalSkillsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
2,
|
|
f,
|
|
cofd_pb.CofdSheet.Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSocialSkillsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
3,
|
|
f,
|
|
cofd_pb.CofdSheet.Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated models.proto.cofd.CofdSheet.Skill physical_skills = 1;
|
|
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Skill>}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.getPhysicalSkillsList = function() {
|
|
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Skill>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, cofd_pb.CofdSheet.Skill, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Skill>} value
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.setPhysicalSkillsList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.models.proto.cofd.CofdSheet.Skill=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.models.proto.cofd.CofdSheet.Skill}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.addPhysicalSkills = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.models.proto.cofd.CofdSheet.Skill, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.clearPhysicalSkillsList = function() {
|
|
return this.setPhysicalSkillsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated models.proto.cofd.CofdSheet.Skill mental_skills = 2;
|
|
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Skill>}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.getMentalSkillsList = function() {
|
|
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Skill>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, cofd_pb.CofdSheet.Skill, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Skill>} value
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.setMentalSkillsList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.models.proto.cofd.CofdSheet.Skill=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.models.proto.cofd.CofdSheet.Skill}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.addMentalSkills = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.models.proto.cofd.CofdSheet.Skill, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.clearMentalSkillsList = function() {
|
|
return this.setMentalSkillsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated models.proto.cofd.CofdSheet.Skill social_skills = 3;
|
|
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Skill>}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.getSocialSkillsList = function() {
|
|
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Skill>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, cofd_pb.CofdSheet.Skill, 3));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Skill>} value
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.setSocialSkillsList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.models.proto.cofd.CofdSheet.Skill=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.models.proto.cofd.CofdSheet.Skill}
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.addSocialSkills = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.models.proto.cofd.CofdSheet.Skill, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.models.proto.cofd.api.Skills} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Skills.prototype.clearSocialSkillsList = function() {
|
|
return this.setSocialSkillsList([]);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.models.proto.cofd.api.SkillUpdate.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.SkillUpdate.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.models.proto.cofd.api.SkillUpdate} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
skill: (f = msg.getSkill()) && cofd_pb.CofdSheet.Skill.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.models.proto.cofd.api.SkillUpdate}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.SkillUpdate;
|
|
return proto.models.proto.cofd.api.SkillUpdate.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.SkillUpdate} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.SkillUpdate}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.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.setName(value);
|
|
break;
|
|
case 2:
|
|
var value = new cofd_pb.CofdSheet.Skill;
|
|
reader.readMessage(value,cofd_pb.CofdSheet.Skill.deserializeBinaryFromReader);
|
|
msg.setSkill(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.SkillUpdate.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.SkillUpdate} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkill();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
2,
|
|
f,
|
|
cofd_pb.CofdSheet.Skill.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.getName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.SkillUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.setName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional models.proto.cofd.CofdSheet.Skill skill = 2;
|
|
* @return {?proto.models.proto.cofd.CofdSheet.Skill}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.getSkill = function() {
|
|
return /** @type{?proto.models.proto.cofd.CofdSheet.Skill} */ (
|
|
jspb.Message.getWrapperField(this, cofd_pb.CofdSheet.Skill, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {?proto.models.proto.cofd.CofdSheet.Skill|undefined} value
|
|
* @return {!proto.models.proto.cofd.api.SkillUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.setSkill = function(value) {
|
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
* @return {!proto.models.proto.cofd.api.SkillUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.clearSkill = function() {
|
|
return this.setSkill(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillUpdate.prototype.hasSkill = 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.models.proto.cofd.api.UpdateSkillValueRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.UpdateSkillValueRequest.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.models.proto.cofd.api.UpdateSkillValueRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
characterUsername: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
characterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
skillName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
skillValue: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.UpdateSkillValueRequest;
|
|
return proto.models.proto.cofd.api.UpdateSkillValueRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillValueRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.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.setCharacterUsername(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setCharacterId(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setSkillName(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
msg.setSkillValue(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillValueRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getCharacterUsername();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCharacterId();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkillName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSkillValue();
|
|
if (f !== 0) {
|
|
writer.writeInt32(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string character_username = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.getCharacterUsername = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.setCharacterUsername = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 character_id = 2;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.getCharacterId = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.setCharacterId = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string skill_name = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.getSkillName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.setSkillName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional int32 skill_value = 4;
|
|
* @return {number}
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.getSkillValue = function() {
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {number} value
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillValueRequest} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.prototype.setSkillValue = function(value) {
|
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.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.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.SkillSpecializationsUpdate.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.models.proto.cofd.api.SkillSpecializationsUpdate} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
specializationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : 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.models.proto.cofd.api.SkillSpecializationsUpdate}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.SkillSpecializationsUpdate;
|
|
return proto.models.proto.cofd.api.SkillSpecializationsUpdate.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.SkillSpecializationsUpdate}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.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.setName(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addSpecializations(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSpecializationsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.getName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.setName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string specializations = 2;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.getSpecializationsList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<string>} value
|
|
* @return {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.setSpecializationsList = function(value) {
|
|
return jspb.Message.setField(this, 2, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.addSpecializations = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.models.proto.cofd.api.SkillSpecializationsUpdate} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.SkillSpecializationsUpdate.prototype.clearSpecializationsList = function() {
|
|
return this.setSpecializationsList([]);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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.models.proto.cofd.api.Condition.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.models.proto.cofd.api.Condition.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.models.proto.cofd.api.Condition} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
name: 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.models.proto.cofd.api.Condition}
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.models.proto.cofd.api.Condition;
|
|
return proto.models.proto.cofd.api.Condition.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.models.proto.cofd.api.Condition} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.models.proto.cofd.api.Condition}
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.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.setName(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.models.proto.cofd.api.Condition.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.models.proto.cofd.api.Condition} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.prototype.getName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.models.proto.cofd.api.Condition} returns this
|
|
*/
|
|
proto.models.proto.cofd.api.Condition.prototype.setName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto.models.proto.cofd.api);
|