@sangaman/xud
Version:
Exchange Union Daemon
1,508 lines (1,288 loc) • 265 kB
JavaScript
/**
* @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!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.google.protobuf.DescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.DescriptorProto.ExtensionRange', null, global);
goog.exportSymbol('proto.google.protobuf.DescriptorProto.ReservedRange', null, global);
goog.exportSymbol('proto.google.protobuf.EnumDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.EnumOptions', null, global);
goog.exportSymbol('proto.google.protobuf.EnumValueDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.EnumValueOptions', null, global);
goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Label', null, global);
goog.exportSymbol('proto.google.protobuf.FieldDescriptorProto.Type', null, global);
goog.exportSymbol('proto.google.protobuf.FieldOptions', null, global);
goog.exportSymbol('proto.google.protobuf.FieldOptions.CType', null, global);
goog.exportSymbol('proto.google.protobuf.FieldOptions.JSType', null, global);
goog.exportSymbol('proto.google.protobuf.FileDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.FileDescriptorSet', null, global);
goog.exportSymbol('proto.google.protobuf.FileOptions', null, global);
goog.exportSymbol('proto.google.protobuf.FileOptions.OptimizeMode', null, global);
goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo', null, global);
goog.exportSymbol('proto.google.protobuf.GeneratedCodeInfo.Annotation', null, global);
goog.exportSymbol('proto.google.protobuf.MessageOptions', null, global);
goog.exportSymbol('proto.google.protobuf.MethodDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.MethodOptions', null, global);
goog.exportSymbol('proto.google.protobuf.MethodOptions.IdempotencyLevel', null, global);
goog.exportSymbol('proto.google.protobuf.OneofDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.OneofOptions', null, global);
goog.exportSymbol('proto.google.protobuf.ServiceDescriptorProto', null, global);
goog.exportSymbol('proto.google.protobuf.ServiceOptions', null, global);
goog.exportSymbol('proto.google.protobuf.SourceCodeInfo', null, global);
goog.exportSymbol('proto.google.protobuf.SourceCodeInfo.Location', null, global);
goog.exportSymbol('proto.google.protobuf.UninterpretedOption', null, global);
goog.exportSymbol('proto.google.protobuf.UninterpretedOption.NamePart', 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.google.protobuf.FileDescriptorSet = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorSet.repeatedFields_, null);
};
goog.inherits(proto.google.protobuf.FileDescriptorSet, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.FileDescriptorSet.displayName = 'proto.google.protobuf.FileDescriptorSet';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.protobuf.FileDescriptorSet.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.FileDescriptorSet.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.FileDescriptorSet.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.FileDescriptorSet} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.FileDescriptorSet.toObject = function(includeInstance, msg) {
var f, obj = {
fileList: jspb.Message.toObjectList(msg.getFileList(),
proto.google.protobuf.FileDescriptorProto.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.google.protobuf.FileDescriptorSet}
*/
proto.google.protobuf.FileDescriptorSet.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.FileDescriptorSet;
return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.FileDescriptorSet} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.FileDescriptorSet}
*/
proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.google.protobuf.FileDescriptorProto;
reader.readMessage(value,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader);
msg.addFile(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FileDescriptorSet} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFileList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter
);
}
};
/**
* repeated FileDescriptorProto file = 1;
* @return {!Array.<!proto.google.protobuf.FileDescriptorProto>}
*/
proto.google.protobuf.FileDescriptorSet.prototype.getFileList = function() {
return /** @type{!Array.<!proto.google.protobuf.FileDescriptorProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FileDescriptorProto, 1));
};
/** @param {!Array.<!proto.google.protobuf.FileDescriptorProto>} value */
proto.google.protobuf.FileDescriptorSet.prototype.setFileList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.protobuf.FileDescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.FileDescriptorProto}
*/
proto.google.protobuf.FileDescriptorSet.prototype.addFile = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index);
};
proto.google.protobuf.FileDescriptorSet.prototype.clearFileList = function() {
this.setFileList([]);
};
/**
* 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.google.protobuf.FileDescriptorProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorProto.repeatedFields_, null);
};
goog.inherits(proto.google.protobuf.FileDescriptorProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.FileDescriptorProto.displayName = 'proto.google.protobuf.FileDescriptorProto';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.protobuf.FileDescriptorProto.repeatedFields_ = [3,10,11,4,5,6,7];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.FileDescriptorProto.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.FileDescriptorProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.FileDescriptorProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.FileDescriptorProto.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getField(msg, 1),
pb_package: jspb.Message.getField(msg, 2),
dependencyList: jspb.Message.getRepeatedField(msg, 3),
publicDependencyList: jspb.Message.getRepeatedField(msg, 10),
weakDependencyList: jspb.Message.getRepeatedField(msg, 11),
messageTypeList: jspb.Message.toObjectList(msg.getMessageTypeList(),
proto.google.protobuf.DescriptorProto.toObject, includeInstance),
enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(),
proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance),
serviceList: jspb.Message.toObjectList(msg.getServiceList(),
proto.google.protobuf.ServiceDescriptorProto.toObject, includeInstance),
extensionList: jspb.Message.toObjectList(msg.getExtensionList(),
proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
options: (f = msg.getOptions()) && proto.google.protobuf.FileOptions.toObject(includeInstance, f),
sourceCodeInfo: (f = msg.getSourceCodeInfo()) && proto.google.protobuf.SourceCodeInfo.toObject(includeInstance, f),
syntax: jspb.Message.getField(msg, 12)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.google.protobuf.FileDescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.FileDescriptorProto;
return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.FileDescriptorProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.FileDescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.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.setPackage(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addDependency(value);
break;
case 10:
var value = /** @type {number} */ (reader.readInt32());
msg.addPublicDependency(value);
break;
case 11:
var value = /** @type {number} */ (reader.readInt32());
msg.addWeakDependency(value);
break;
case 4:
var value = new proto.google.protobuf.DescriptorProto;
reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader);
msg.addMessageType(value);
break;
case 5:
var value = new proto.google.protobuf.EnumDescriptorProto;
reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader);
msg.addEnumType(value);
break;
case 6:
var value = new proto.google.protobuf.ServiceDescriptorProto;
reader.readMessage(value,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader);
msg.addService(value);
break;
case 7:
var value = new proto.google.protobuf.FieldDescriptorProto;
reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
msg.addExtension$(value);
break;
case 8:
var value = new proto.google.protobuf.FileOptions;
reader.readMessage(value,proto.google.protobuf.FileOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
case 9:
var value = new proto.google.protobuf.SourceCodeInfo;
reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader);
msg.setSourceCodeInfo(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setSyntax(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.FileDescriptorProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeString(
2,
f
);
}
f = message.getDependencyList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getPublicDependencyList();
if (f.length > 0) {
writer.writeRepeatedInt32(
10,
f
);
}
f = message.getWeakDependencyList();
if (f.length > 0) {
writer.writeRepeatedInt32(
11,
f
);
}
f = message.getMessageTypeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.google.protobuf.DescriptorProto.serializeBinaryToWriter
);
}
f = message.getEnumTypeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter
);
}
f = message.getServiceList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter
);
}
f = message.getExtensionList();
if (f.length > 0) {
writer.writeRepeatedMessage(
7,
f,
proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
8,
f,
proto.google.protobuf.FileOptions.serializeBinaryToWriter
);
}
f = message.getSourceCodeInfo();
if (f != null) {
writer.writeMessage(
9,
f,
proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 12));
if (f != null) {
writer.writeString(
12,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.protobuf.FileDescriptorProto.prototype.setName = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearName = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.FileDescriptorProto.prototype.hasName = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string package = 2;
* @return {string}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getPackage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.google.protobuf.FileDescriptorProto.prototype.setPackage = function(value) {
jspb.Message.setField(this, 2, value);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearPackage = function() {
jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.FileDescriptorProto.prototype.hasPackage = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* repeated string dependency = 3;
* @return {!Array.<string>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/** @param {!Array.<string>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList = function(value) {
jspb.Message.setField(this, 3, value || []);
};
/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.google.protobuf.FileDescriptorProto.prototype.addDependency = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList = function() {
this.setDependencyList([]);
};
/**
* repeated int32 public_dependency = 10;
* @return {!Array.<number>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList = function() {
return /** @type {!Array.<number>} */ (jspb.Message.getRepeatedField(this, 10));
};
/** @param {!Array.<number>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList = function(value) {
jspb.Message.setField(this, 10, value || []);
};
/**
* @param {!number} value
* @param {number=} opt_index
*/
proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList = function() {
this.setPublicDependencyList([]);
};
/**
* repeated int32 weak_dependency = 11;
* @return {!Array.<number>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList = function() {
return /** @type {!Array.<number>} */ (jspb.Message.getRepeatedField(this, 11));
};
/** @param {!Array.<number>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList = function(value) {
jspb.Message.setField(this, 11, value || []);
};
/**
* @param {!number} value
* @param {number=} opt_index
*/
proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList = function() {
this.setWeakDependencyList([]);
};
/**
* repeated DescriptorProto message_type = 4;
* @return {!Array.<!proto.google.protobuf.DescriptorProto>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList = function() {
return /** @type{!Array.<!proto.google.protobuf.DescriptorProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 4));
};
/** @param {!Array.<!proto.google.protobuf.DescriptorProto>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.google.protobuf.DescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.DescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.prototype.addMessageType = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.DescriptorProto, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList = function() {
this.setMessageTypeList([]);
};
/**
* repeated EnumDescriptorProto enum_type = 5;
* @return {!Array.<!proto.google.protobuf.EnumDescriptorProto>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList = function() {
return /** @type{!Array.<!proto.google.protobuf.EnumDescriptorProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 5));
};
/** @param {!Array.<!proto.google.protobuf.EnumDescriptorProto>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.EnumDescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.prototype.addEnumType = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList = function() {
this.setEnumTypeList([]);
};
/**
* repeated ServiceDescriptorProto service = 6;
* @return {!Array.<!proto.google.protobuf.ServiceDescriptorProto>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getServiceList = function() {
return /** @type{!Array.<!proto.google.protobuf.ServiceDescriptorProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.ServiceDescriptorProto, 6));
};
/** @param {!Array.<!proto.google.protobuf.ServiceDescriptorProto>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setServiceList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.google.protobuf.ServiceDescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.ServiceDescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.prototype.addService = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.ServiceDescriptorProto, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList = function() {
this.setServiceList([]);
};
/**
* repeated FieldDescriptorProto extension = 7;
* @return {!Array.<!proto.google.protobuf.FieldDescriptorProto>}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList = function() {
return /** @type{!Array.<!proto.google.protobuf.FieldDescriptorProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 7));
};
/** @param {!Array.<!proto.google.protobuf.FieldDescriptorProto>} value */
proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 7, value);
};
/**
* @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.FieldDescriptorProto}
*/
proto.google.protobuf.FileDescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList = function() {
this.setExtensionList([]);
};
/**
* optional FileOptions options = 8;
* @return {?proto.google.protobuf.FileOptions}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getOptions = function() {
return /** @type{?proto.google.protobuf.FileOptions} */ (
jspb.Message.getWrapperField(this, proto.google.protobuf.FileOptions, 8));
};
/** @param {?proto.google.protobuf.FileOptions|undefined} value */
proto.google.protobuf.FileDescriptorProto.prototype.setOptions = function(value) {
jspb.Message.setWrapperField(this, 8, value);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearOptions = function() {
this.setOptions(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.FileDescriptorProto.prototype.hasOptions = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional SourceCodeInfo source_code_info = 9;
* @return {?proto.google.protobuf.SourceCodeInfo}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo = function() {
return /** @type{?proto.google.protobuf.SourceCodeInfo} */ (
jspb.Message.getWrapperField(this, proto.google.protobuf.SourceCodeInfo, 9));
};
/** @param {?proto.google.protobuf.SourceCodeInfo|undefined} value */
proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo = function(value) {
jspb.Message.setWrapperField(this, 9, value);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo = function() {
this.setSourceCodeInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional string syntax = 12;
* @return {string}
*/
proto.google.protobuf.FileDescriptorProto.prototype.getSyntax = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/** @param {string} value */
proto.google.protobuf.FileDescriptorProto.prototype.setSyntax = function(value) {
jspb.Message.setField(this, 12, value);
};
proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax = function() {
jspb.Message.setField(this, 12, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* 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.google.protobuf.DescriptorProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.DescriptorProto.repeatedFields_, null);
};
goog.inherits(proto.google.protobuf.DescriptorProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.DescriptorProto.displayName = 'proto.google.protobuf.DescriptorProto';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.protobuf.DescriptorProto.repeatedFields_ = [2,6,3,4,5,8,9,10];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.DescriptorProto.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.DescriptorProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.DescriptorProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getField(msg, 1),
fieldList: jspb.Message.toObjectList(msg.getFieldList(),
proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
extensionList: jspb.Message.toObjectList(msg.getExtensionList(),
proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance),
nestedTypeList: jspb.Message.toObjectList(msg.getNestedTypeList(),
proto.google.protobuf.DescriptorProto.toObject, includeInstance),
enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(),
proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance),
extensionRangeList: jspb.Message.toObjectList(msg.getExtensionRangeList(),
proto.google.protobuf.DescriptorProto.ExtensionRange.toObject, includeInstance),
oneofDeclList: jspb.Message.toObjectList(msg.getOneofDeclList(),
proto.google.protobuf.OneofDescriptorProto.toObject, includeInstance),
options: (f = msg.getOptions()) && proto.google.protobuf.MessageOptions.toObject(includeInstance, f),
reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(),
proto.google.protobuf.DescriptorProto.ReservedRange.toObject, includeInstance),
reservedNameList: jspb.Message.getRepeatedField(msg, 10)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.google.protobuf.DescriptorProto}
*/
proto.google.protobuf.DescriptorProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.DescriptorProto;
return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.DescriptorProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.DescriptorProto}
*/
proto.google.protobuf.DescriptorProto.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 proto.google.protobuf.FieldDescriptorProto;
reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
msg.addField(value);
break;
case 6:
var value = new proto.google.protobuf.FieldDescriptorProto;
reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader);
msg.addExtension$(value);
break;
case 3:
var value = new proto.google.protobuf.DescriptorProto;
reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader);
msg.addNestedType(value);
break;
case 4:
var value = new proto.google.protobuf.EnumDescriptorProto;
reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader);
msg.addEnumType(value);
break;
case 5:
var value = new proto.google.protobuf.DescriptorProto.ExtensionRange;
reader.readMessage(value,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader);
msg.addExtensionRange(value);
break;
case 8:
var value = new proto.google.protobuf.OneofDescriptorProto;
reader.readMessage(value,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader);
msg.addOneofDecl(value);
break;
case 7:
var value = new proto.google.protobuf.MessageOptions;
reader.readMessage(value,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
case 9:
var value = new proto.google.protobuf.DescriptorProto.ReservedRange;
reader.readMessage(value,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader);
msg.addReservedRange(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.addReservedName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.DescriptorProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.DescriptorProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {string} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeString(
1,
f
);
}
f = message.getFieldList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
);
}
f = message.getExtensionList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter
);
}
f = message.getNestedTypeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.google.protobuf.DescriptorProto.serializeBinaryToWriter
);
}
f = message.getEnumTypeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter
);
}
f = message.getExtensionRangeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter
);
}
f = message.getOneofDeclList();
if (f.length > 0) {
writer.writeRepeatedMessage(
8,
f,
proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
7,
f,
proto.google.protobuf.MessageOptions.serializeBinaryToWriter
);
}
f = message.getReservedRangeList();
if (f.length > 0) {
writer.writeRepeatedMessage(
9,
f,
proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter
);
}
f = message.getReservedNameList();
if (f.length > 0) {
writer.writeRepeatedString(
10,
f
);
}
};
/**
* 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.google.protobuf.DescriptorProto.ExtensionRange = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.DescriptorProto.ExtensionRange.displayName = 'proto.google.protobuf.DescriptorProto.ExtensionRange';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.toObject = function(includeInstance, msg) {
var f, obj = {
start: jspb.Message.getField(msg, 1),
end: jspb.Message.getField(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.google.protobuf.DescriptorProto.ExtensionRange}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.DescriptorProto.ExtensionRange;
return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.DescriptorProto.ExtensionRange}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.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.setStart(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setEnd(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {number} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeInt32(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeInt32(
2,
f
);
}
};
/**
* optional int32 start = 1;
* @return {number}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int32 end = 2;
* @return {number}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd = function(value) {
jspb.Message.setField(this, 2, value);
};
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd = function() {
jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* 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.google.protobuf.DescriptorProto.ReservedRange = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.protobuf.DescriptorProto.ReservedRange, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.protobuf.DescriptorProto.ReservedRange.displayName = 'proto.google.protobuf.DescriptorProto.ReservedRange';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject = function(opt_includeInstance) {
return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.ReservedRange.toObject = function(includeInstance, msg) {
var f, obj = {
start: jspb.Message.getField(msg, 1),
end: jspb.Message.getField(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.google.protobuf.DescriptorProto.ReservedRange}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.protobuf.DescriptorProto.ReservedRange;
return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.protobuf.DescriptorProto.ReservedRange}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.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.setStart(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setEnd(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.protobuf.DescriptorProto.ReservedRange} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = /** @type {number} */ (jspb.Message.getField(message, 1));
if (f != null) {
writer.writeInt32(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeInt32(
2,
f
);
}
};
/**
* optional int32 start = 1;
* @return {number}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart = function(value) {
jspb.Message.setField(this, 1, value);
};
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart = function() {
jspb.Message.setField(this, 1, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional int32 end = 2;
* @return {number}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd = function(value) {
jspb.Message.setField(this, 2, value);
};
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd = function() {
jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd = function() {