2021-01-02 23:11:09 +00:00
|
|
|
// 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);
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.AddConditionRequest', null, global);
|
2021-01-05 21:19:47 +00:00
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.ApiResult', null, global);
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.RemoveConditionRequest', null, global);
|
2021-01-02 23:11:09 +00:00
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateAttributeRequest', null, global);
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateBasicInfoRequest', null, global);
|
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateSkillRequest', null, global);
|
|
|
|
goog.exportSymbol('proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest', null, global);
|
2021-01-02 23:11:09 +00:00
|
|
|
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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest = function(opt_data) {
|
2021-01-02 23:11:09 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateBasicInfoRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.displayName = 'proto.models.proto.cofd.api.UpdateBasicInfoRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
2021-01-05 21:19:47 +00:00
|
|
|
/**
|
|
|
|
* 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.ApiResult = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
|
|
|
goog.inherits(proto.models.proto.cofd.api.ApiResult, jspb.Message);
|
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.displayName = 'proto.models.proto.cofd.api.ApiResult';
|
|
|
|
}
|
2021-01-02 23:11:09 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateSkillRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.displayName = 'proto.models.proto.cofd.api.UpdateSkillRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest = function(opt_data) {
|
2021-01-02 23:11:09 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateSkillValueRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillValueRequest.displayName = 'proto.models.proto.cofd.api.UpdateSkillValueRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.repeatedFields_, null);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.displayName = 'proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest = function(opt_data) {
|
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.AddConditionRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.displayName = 'proto.models.proto.cofd.api.AddConditionRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest = function(opt_data) {
|
2021-01-02 23:11:09 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2021-01-09 20:02:24 +00:00
|
|
|
goog.inherits(proto.models.proto.cofd.api.RemoveConditionRequest, jspb.Message);
|
2021-01-02 23:11:09 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.displayName = 'proto.models.proto.cofd.api.RemoveConditionRequest';
|
2021-01-02 23:11:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.UpdateBasicInfoRequest.toObject(opt_includeInstance, this);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} msg The msg instance to transform.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.toObject = function(includeInstance, msg) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.deserializeBinary = function(bytes) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2021-01-09 20:02:24 +00:00
|
|
|
var msg = new proto.models.proto.cofd.api.UpdateBasicInfoRequest;
|
|
|
|
return proto.models.proto.cofd.api.UpdateBasicInfoRequest.deserializeBinaryFromReader(msg, reader);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} msg The message object to deserialize into.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.serializeBinary = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.serializeBinaryToWriter(this, writer);
|
2021-01-02 23:11:09 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} message
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.serializeBinaryToWriter = function(message, writer) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.getName = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.setName = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string gender = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.getGender = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.setGender = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string concept = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.getConcept = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.setConcept = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string chronicle = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.getChronicle = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.setChronicle = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional int32 age = 5;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.getAge = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {number} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateBasicInfoRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateBasicInfoRequest.prototype.setAge = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-05 21:19:47 +00:00
|
|
|
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.ApiResult.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.ApiResult.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.ApiResult} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
|
|
error: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
|
|
};
|
|
|
|
|
|
|
|
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.ApiResult}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.models.proto.cofd.api.ApiResult;
|
|
|
|
return proto.models.proto.cofd.api.ApiResult.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.ApiResult} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.models.proto.cofd.api.ApiResult}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
|
|
msg.setSuccess(value);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setError(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.ApiResult.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.models.proto.cofd.api.ApiResult.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.ApiResult} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.serializeBinaryToWriter = function(message, writer) {
|
|
|
|
var f = undefined;
|
|
|
|
f = message.getSuccess();
|
|
|
|
if (f) {
|
|
|
|
writer.writeBool(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getError();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional bool success = 1;
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.prototype.getSuccess = function() {
|
|
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {boolean} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.ApiResult} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.prototype.setSuccess = function(value) {
|
|
|
|
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string error = 2;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.prototype.getError = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.ApiResult} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.ApiResult.prototype.setError = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-02 23:11:09 +00:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.UpdateSkillRequest.toObject(opt_includeInstance, this);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillRequest} msg The msg instance to transform.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.toObject = function(includeInstance, msg) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var f, obj = {
|
2021-01-09 20:02:24 +00:00
|
|
|
characterUsername: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
characterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2021-01-02 23:11:09 +00:00
|
|
|
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.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.deserializeBinary = function(bytes) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2021-01-09 20:02:24 +00:00
|
|
|
var msg = new proto.models.proto.cofd.api.UpdateSkillRequest;
|
|
|
|
return proto.models.proto.cofd.api.UpdateSkillRequest.deserializeBinaryFromReader(msg, reader);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillRequest} msg The message object to deserialize into.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2021-01-02 23:11:09 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2021-01-09 20:02:24 +00:00
|
|
|
msg.setCharacterUsername(value);
|
2021-01-02 23:11:09 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
2021-01-09 20:02:24 +00:00
|
|
|
var value = /** @type {number} */ (reader.readInt32());
|
|
|
|
msg.setCharacterId(value);
|
|
|
|
break;
|
|
|
|
case 3:
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.serializeBinary = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.serializeBinaryToWriter(this, writer);
|
2021-01-02 23:11:09 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillRequest} message
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.serializeBinaryToWriter = function(message, writer) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var f = undefined;
|
2021-01-09 20:02:24 +00:00
|
|
|
f = message.getCharacterUsername();
|
2021-01-02 23:11:09 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2021-01-09 20:02:24 +00:00
|
|
|
f = message.getCharacterId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeInt32(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2021-01-02 23:11:09 +00:00
|
|
|
f = message.getSkill();
|
|
|
|
if (f != null) {
|
|
|
|
writer.writeMessage(
|
2021-01-09 20:02:24 +00:00
|
|
|
3,
|
2021-01-02 23:11:09 +00:00
|
|
|
f,
|
|
|
|
cofd_pb.CofdSheet.Skill.serializeBinaryToWriter
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2021-01-09 20:02:24 +00:00
|
|
|
* optional string character_username = 1;
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.getCharacterUsername = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.setCharacterUsername = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2021-01-09 20:02:24 +00:00
|
|
|
* optional int32 character_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.getCharacterId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.setCharacterId = function(value) {
|
|
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional models.proto.cofd.CofdSheet.Skill skill = 3;
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {?proto.models.proto.cofd.CofdSheet.Skill}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.getSkill = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type{?proto.models.proto.cofd.CofdSheet.Skill} */ (
|
2021-01-09 20:02:24 +00:00
|
|
|
jspb.Message.getWrapperField(this, cofd_pb.CofdSheet.Skill, 3));
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {?proto.models.proto.cofd.CofdSheet.Skill|undefined} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.setSkill = function(value) {
|
|
|
|
return jspb.Message.setWrapperField(this, 3, value);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the message field making it undefined.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.clearSkill = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return this.setSkill(undefined);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether this field is set.
|
|
|
|
* @return {boolean}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillRequest.prototype.hasSkill = function() {
|
|
|
|
return jspb.Message.getField(this, 3) != null;
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.repeatedFields_ = [2];
|
2021-01-02 23:11:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.toObject(opt_includeInstance, this);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} msg The msg instance to transform.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.toObject = function(includeInstance, msg) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.deserializeBinary = function(bytes) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2021-01-09 20:02:24 +00:00
|
|
|
var msg = new proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest;
|
|
|
|
return proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.deserializeBinaryFromReader(msg, reader);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} msg The message object to deserialize into.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.serializeBinary = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.serializeBinaryToWriter(this, writer);
|
2021-01-02 23:11:09 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} message
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.serializeBinaryToWriter = function(message, writer) {
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.getName = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.setName = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* repeated string specializations = 2;
|
|
|
|
* @return {!Array<string>}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.getSpecializationsList = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {!Array<string>} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.setSpecializationsList = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setField(this, 2, value || []);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @param {number=} opt_index
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.addSpecializations = function(value, opt_index) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the list making it empty but non-null.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.UpdateSkillSpecializationsRequest.prototype.clearSpecializationsList = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
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}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.AddConditionRequest.toObject(opt_includeInstance, this);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.AddConditionRequest} msg The msg instance to transform.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.toObject = function(includeInstance, msg) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var f, obj = {
|
2021-01-09 20:02:24 +00:00
|
|
|
characterUsername: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
characterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
conditionName: jspb.Message.getFieldWithDefault(msg, 3, "")
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.AddConditionRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.deserializeBinary = function(bytes) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2021-01-09 20:02:24 +00:00
|
|
|
var msg = new proto.models.proto.cofd.api.AddConditionRequest;
|
|
|
|
return proto.models.proto.cofd.api.AddConditionRequest.deserializeBinaryFromReader(msg, reader);
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.AddConditionRequest} msg The message object to deserialize into.
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.AddConditionRequest}
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2021-01-02 23:11:09 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2021-01-09 20:02:24 +00:00
|
|
|
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.setConditionName(value);
|
2021-01-02 23:11:09 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.serializeBinary = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.serializeBinaryToWriter(this, writer);
|
2021-01-02 23:11:09 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2021-01-09 20:02:24 +00:00
|
|
|
* @param {!proto.models.proto.cofd.api.AddConditionRequest} message
|
2021-01-02 23:11:09 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.serializeBinaryToWriter = function(message, writer) {
|
2021-01-02 23:11:09 +00:00
|
|
|
var f = undefined;
|
2021-01-09 20:02:24 +00:00
|
|
|
f = message.getCharacterUsername();
|
2021-01-02 23:11:09 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2021-01-09 20:02:24 +00:00
|
|
|
f = message.getCharacterId();
|
|
|
|
if (f !== 0) {
|
|
|
|
writer.writeInt32(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getConditionName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2021-01-02 23:11:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2021-01-09 20:02:24 +00:00
|
|
|
* optional string character_username = 1;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.getCharacterUsername = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.AddConditionRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.setCharacterUsername = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional int32 character_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.getCharacterId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.AddConditionRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.setCharacterId = function(value) {
|
|
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string condition_name = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.getConditionName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.AddConditionRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.AddConditionRequest.prototype.setConditionName = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(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.models.proto.cofd.api.RemoveConditionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.models.proto.cofd.api.RemoveConditionRequest.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.RemoveConditionRequest} msg The msg instance to transform.
|
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.toObject = function(includeInstance, msg) {
|
|
|
|
var f, obj = {
|
|
|
|
characterUsername: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
characterId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
|
conditionName: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
|
|
};
|
|
|
|
|
|
|
|
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.RemoveConditionRequest}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.deserializeBinary = function(bytes) {
|
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
|
|
var msg = new proto.models.proto.cofd.api.RemoveConditionRequest;
|
|
|
|
return proto.models.proto.cofd.api.RemoveConditionRequest.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.RemoveConditionRequest} msg The message object to deserialize into.
|
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
|
* @return {!proto.models.proto.cofd.api.RemoveConditionRequest}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.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.setConditionName(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.RemoveConditionRequest.prototype.serializeBinary = function() {
|
|
|
|
var writer = new jspb.BinaryWriter();
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.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.RemoveConditionRequest} message
|
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.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.getConditionName();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string character_username = 1;
|
2021-01-02 23:11:09 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.getCharacterUsername = function() {
|
2021-01-02 23:11:09 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
2021-01-09 20:02:24 +00:00
|
|
|
* @return {!proto.models.proto.cofd.api.RemoveConditionRequest} returns this
|
2021-01-02 23:11:09 +00:00
|
|
|
*/
|
2021-01-09 20:02:24 +00:00
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.setCharacterUsername = function(value) {
|
2021-01-02 23:11:09 +00:00
|
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-09 20:02:24 +00:00
|
|
|
/**
|
|
|
|
* optional int32 character_id = 2;
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.getCharacterId = function() {
|
|
|
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {number} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.RemoveConditionRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.setCharacterId = function(value) {
|
|
|
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional string condition_name = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.getConditionName = function() {
|
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {string} value
|
|
|
|
* @return {!proto.models.proto.cofd.api.RemoveConditionRequest} returns this
|
|
|
|
*/
|
|
|
|
proto.models.proto.cofd.api.RemoveConditionRequest.prototype.setConditionName = function(value) {
|
|
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-02 23:11:09 +00:00
|
|
|
goog.object.extend(exports, proto.models.proto.cofd.api);
|