// source: phenopackets/vrsatile/v1/vrsatile.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var phenopackets_vrs_v1_vrs_pb = require('../../../phenopackets/vrs/v1/vrs_pb.js');
goog.object.extend(proto, phenopackets_vrs_v1_vrs_pb);
var phenopackets_schema_v2_core_base_pb = require('../../../phenopackets/schema/v2/core/base_pb.js');
goog.object.extend(proto, phenopackets_schema_v2_core_base_pb);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.Expression', null, global);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.Extension', null, global);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.GeneDescriptor', null, global);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.MoleculeContext', null, global);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.VariationDescriptor', null, global);
goog.exportSymbol('proto.org.ga4gh.vrsatile.v1.VcfRecord', 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.org.ga4gh.vrsatile.v1.Extension = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.ga4gh.vrsatile.v1.Extension, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.ga4gh.vrsatile.v1.Extension.displayName = 'proto.org.ga4gh.vrsatile.v1.Extension';
}
/**
* 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.org.ga4gh.vrsatile.v1.Expression = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.ga4gh.vrsatile.v1.Expression, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.ga4gh.vrsatile.v1.Expression.displayName = 'proto.org.ga4gh.vrsatile.v1.Expression';
}
/**
* 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.org.ga4gh.vrsatile.v1.VcfRecord = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.org.ga4gh.vrsatile.v1.VcfRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.displayName = 'proto.org.ga4gh.vrsatile.v1.VcfRecord';
}
/**
* 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.org.ga4gh.vrsatile.v1.VariationDescriptor = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.ga4gh.vrsatile.v1.VariationDescriptor.repeatedFields_, null);
};
goog.inherits(proto.org.ga4gh.vrsatile.v1.VariationDescriptor, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.displayName = 'proto.org.ga4gh.vrsatile.v1.VariationDescriptor';
}
/**
* 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.org.ga4gh.vrsatile.v1.GeneDescriptor = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.ga4gh.vrsatile.v1.GeneDescriptor.repeatedFields_, null);
};
goog.inherits(proto.org.ga4gh.vrsatile.v1.GeneDescriptor, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.displayName = 'proto.org.ga4gh.vrsatile.v1.GeneDescriptor';
}
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.org.ga4gh.vrsatile.v1.Extension.prototype.toObject = function(opt_includeInstance) {
return proto.org.ga4gh.vrsatile.v1.Extension.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.org.ga4gh.vrsatile.v1.Extension} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.Extension.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: 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.org.ga4gh.vrsatile.v1.Extension}
*/
proto.org.ga4gh.vrsatile.v1.Extension.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.ga4gh.vrsatile.v1.Extension;
return proto.org.ga4gh.vrsatile.v1.Extension.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.ga4gh.vrsatile.v1.Extension} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.ga4gh.vrsatile.v1.Extension}
*/
proto.org.ga4gh.vrsatile.v1.Extension.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.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.ga4gh.vrsatile.v1.Extension.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.ga4gh.vrsatile.v1.Extension.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.ga4gh.vrsatile.v1.Extension} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.Extension.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.Extension.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.Extension} returns this
*/
proto.org.ga4gh.vrsatile.v1.Extension.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string value = 2;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.Extension.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.Extension} returns this
*/
proto.org.ga4gh.vrsatile.v1.Extension.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 2, 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.org.ga4gh.vrsatile.v1.Expression.prototype.toObject = function(opt_includeInstance) {
return proto.org.ga4gh.vrsatile.v1.Expression.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.org.ga4gh.vrsatile.v1.Expression} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.Expression.toObject = function(includeInstance, msg) {
var f, obj = {
syntax: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: 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.org.ga4gh.vrsatile.v1.Expression}
*/
proto.org.ga4gh.vrsatile.v1.Expression.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.ga4gh.vrsatile.v1.Expression;
return proto.org.ga4gh.vrsatile.v1.Expression.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.ga4gh.vrsatile.v1.Expression} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.ga4gh.vrsatile.v1.Expression}
*/
proto.org.ga4gh.vrsatile.v1.Expression.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.setSyntax(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.ga4gh.vrsatile.v1.Expression.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.ga4gh.vrsatile.v1.Expression} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.Expression.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSyntax();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string syntax = 1;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.getSyntax = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.Expression} returns this
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.setSyntax = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string value = 2;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.Expression} returns this
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string version = 3;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.Expression} returns this
*/
proto.org.ga4gh.vrsatile.v1.Expression.prototype.setVersion = 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.org.ga4gh.vrsatile.v1.VcfRecord.prototype.toObject = function(opt_includeInstance) {
return proto.org.ga4gh.vrsatile.v1.VcfRecord.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.org.ga4gh.vrsatile.v1.VcfRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.toObject = function(includeInstance, msg) {
var f, obj = {
genomeAssembly: jspb.Message.getFieldWithDefault(msg, 1, ""),
chrom: jspb.Message.getFieldWithDefault(msg, 2, ""),
pos: jspb.Message.getFieldWithDefault(msg, 3, 0),
id: jspb.Message.getFieldWithDefault(msg, 4, ""),
ref: jspb.Message.getFieldWithDefault(msg, 5, ""),
alt: jspb.Message.getFieldWithDefault(msg, 6, ""),
qual: jspb.Message.getFieldWithDefault(msg, 7, ""),
filter: jspb.Message.getFieldWithDefault(msg, 8, ""),
info: jspb.Message.getFieldWithDefault(msg, 9, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.ga4gh.vrsatile.v1.VcfRecord;
return proto.org.ga4gh.vrsatile.v1.VcfRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.ga4gh.vrsatile.v1.VcfRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.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.setGenomeAssembly(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setChrom(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setPos(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setRef(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setAlt(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setQual(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setFilter(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.ga4gh.vrsatile.v1.VcfRecord.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.ga4gh.vrsatile.v1.VcfRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getGenomeAssembly();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getChrom();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPos();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getRef();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getAlt();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getQual();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getFilter();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getInfo();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
};
/**
* optional string genome_assembly = 1;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getGenomeAssembly = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setGenomeAssembly = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string chrom = 2;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getChrom = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setChrom = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional uint64 pos = 3;
* @return {number}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getPos = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setPos = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string id = 4;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string ref = 5;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getRef = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setRef = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string alt = 6;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getAlt = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setAlt = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string qual = 7;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getQual = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setQual = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional string filter = 8;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getFilter = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setFilter = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional string info = 9;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.getInfo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VcfRecord} returns this
*/
proto.org.ga4gh.vrsatile.v1.VcfRecord.prototype.setInfo = function(value) {
return jspb.Message.setProto3StringField(this, 9, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.repeatedFields_ = [6,8,9,10];
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.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.toObject = function(opt_includeInstance) {
return proto.org.ga4gh.vrsatile.v1.VariationDescriptor.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.org.ga4gh.vrsatile.v1.VariationDescriptor} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
variation: (f = msg.getVariation()) && phenopackets_vrs_v1_vrs_pb.Variation.toObject(includeInstance, f),
label: jspb.Message.getFieldWithDefault(msg, 3, ""),
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
geneContext: (f = msg.getGeneContext()) && proto.org.ga4gh.vrsatile.v1.GeneDescriptor.toObject(includeInstance, f),
expressionsList: jspb.Message.toObjectList(msg.getExpressionsList(),
proto.org.ga4gh.vrsatile.v1.Expression.toObject, includeInstance),
vcfRecord: (f = msg.getVcfRecord()) && proto.org.ga4gh.vrsatile.v1.VcfRecord.toObject(includeInstance, f),
xrefsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
alternateLabelsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(),
proto.org.ga4gh.vrsatile.v1.Extension.toObject, includeInstance),
moleculeContext: jspb.Message.getFieldWithDefault(msg, 11, 0),
structuralType: (f = msg.getStructuralType()) && phenopackets_schema_v2_core_base_pb.OntologyClass.toObject(includeInstance, f),
vrsRefAlleleSeq: jspb.Message.getFieldWithDefault(msg, 13, ""),
allelicState: (f = msg.getAllelicState()) && phenopackets_schema_v2_core_base_pb.OntologyClass.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.ga4gh.vrsatile.v1.VariationDescriptor;
return proto.org.ga4gh.vrsatile.v1.VariationDescriptor.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 2:
var value = new phenopackets_vrs_v1_vrs_pb.Variation;
reader.readMessage(value,phenopackets_vrs_v1_vrs_pb.Variation.deserializeBinaryFromReader);
msg.setVariation(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setLabel(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 5:
var value = new proto.org.ga4gh.vrsatile.v1.GeneDescriptor;
reader.readMessage(value,proto.org.ga4gh.vrsatile.v1.GeneDescriptor.deserializeBinaryFromReader);
msg.setGeneContext(value);
break;
case 6:
var value = new proto.org.ga4gh.vrsatile.v1.Expression;
reader.readMessage(value,proto.org.ga4gh.vrsatile.v1.Expression.deserializeBinaryFromReader);
msg.addExpressions(value);
break;
case 7:
var value = new proto.org.ga4gh.vrsatile.v1.VcfRecord;
reader.readMessage(value,proto.org.ga4gh.vrsatile.v1.VcfRecord.deserializeBinaryFromReader);
msg.setVcfRecord(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.addXrefs(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.addAlternateLabels(value);
break;
case 10:
var value = new proto.org.ga4gh.vrsatile.v1.Extension;
reader.readMessage(value,proto.org.ga4gh.vrsatile.v1.Extension.deserializeBinaryFromReader);
msg.addExtensions(value);
break;
case 11:
var value = /** @type {!proto.org.ga4gh.vrsatile.v1.MoleculeContext} */ (reader.readEnum());
msg.setMoleculeContext(value);
break;
case 12:
var value = new phenopackets_schema_v2_core_base_pb.OntologyClass;
reader.readMessage(value,phenopackets_schema_v2_core_base_pb.OntologyClass.deserializeBinaryFromReader);
msg.setStructuralType(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.setVrsRefAlleleSeq(value);
break;
case 14:
var value = new phenopackets_schema_v2_core_base_pb.OntologyClass;
reader.readMessage(value,phenopackets_schema_v2_core_base_pb.OntologyClass.deserializeBinaryFromReader);
msg.setAllelicState(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getVariation();
if (f != null) {
writer.writeMessage(
2,
f,
phenopackets_vrs_v1_vrs_pb.Variation.serializeBinaryToWriter
);
}
f = message.getLabel();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getGeneContext();
if (f != null) {
writer.writeMessage(
5,
f,
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.serializeBinaryToWriter
);
}
f = message.getExpressionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
proto.org.ga4gh.vrsatile.v1.Expression.serializeBinaryToWriter
);
}
f = message.getVcfRecord();
if (f != null) {
writer.writeMessage(
7,
f,
proto.org.ga4gh.vrsatile.v1.VcfRecord.serializeBinaryToWriter
);
}
f = message.getXrefsList();
if (f.length > 0) {
writer.writeRepeatedString(
8,
f
);
}
f = message.getAlternateLabelsList();
if (f.length > 0) {
writer.writeRepeatedString(
9,
f
);
}
f = message.getExtensionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
10,
f,
proto.org.ga4gh.vrsatile.v1.Extension.serializeBinaryToWriter
);
}
f = message.getMoleculeContext();
if (f !== 0.0) {
writer.writeEnum(
11,
f
);
}
f = message.getStructuralType();
if (f != null) {
writer.writeMessage(
12,
f,
phenopackets_schema_v2_core_base_pb.OntologyClass.serializeBinaryToWriter
);
}
f = message.getVrsRefAlleleSeq();
if (f.length > 0) {
writer.writeString(
13,
f
);
}
f = message.getAllelicState();
if (f != null) {
writer.writeMessage(
14,
f,
phenopackets_schema_v2_core_base_pb.OntologyClass.serializeBinaryToWriter
);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional org.ga4gh.vrs.v1.Variation variation = 2;
* @return {?proto.org.ga4gh.vrs.v1.Variation}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getVariation = function() {
return /** @type{?proto.org.ga4gh.vrs.v1.Variation} */ (
jspb.Message.getWrapperField(this, phenopackets_vrs_v1_vrs_pb.Variation, 2));
};
/**
* @param {?proto.org.ga4gh.vrs.v1.Variation|undefined} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setVariation = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearVariation = function() {
return this.setVariation(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.hasVariation = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string label = 3;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getLabel = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setLabel = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string description = 4;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional GeneDescriptor gene_context = 5;
* @return {?proto.org.ga4gh.vrsatile.v1.GeneDescriptor}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getGeneContext = function() {
return /** @type{?proto.org.ga4gh.vrsatile.v1.GeneDescriptor} */ (
jspb.Message.getWrapperField(this, proto.org.ga4gh.vrsatile.v1.GeneDescriptor, 5));
};
/**
* @param {?proto.org.ga4gh.vrsatile.v1.GeneDescriptor|undefined} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setGeneContext = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearGeneContext = function() {
return this.setGeneContext(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.hasGeneContext = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* repeated Expression expressions = 6;
* @return {!Array<!proto.org.ga4gh.vrsatile.v1.Expression>}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getExpressionsList = function() {
return /** @type{!Array<!proto.org.ga4gh.vrsatile.v1.Expression>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.org.ga4gh.vrsatile.v1.Expression, 6));
};
/**
* @param {!Array<!proto.org.ga4gh.vrsatile.v1.Expression>} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setExpressionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.org.ga4gh.vrsatile.v1.Expression=} opt_value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.Expression}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.addExpressions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.org.ga4gh.vrsatile.v1.Expression, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearExpressionsList = function() {
return this.setExpressionsList([]);
};
/**
* optional VcfRecord vcf_record = 7;
* @return {?proto.org.ga4gh.vrsatile.v1.VcfRecord}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getVcfRecord = function() {
return /** @type{?proto.org.ga4gh.vrsatile.v1.VcfRecord} */ (
jspb.Message.getWrapperField(this, proto.org.ga4gh.vrsatile.v1.VcfRecord, 7));
};
/**
* @param {?proto.org.ga4gh.vrsatile.v1.VcfRecord|undefined} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setVcfRecord = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearVcfRecord = function() {
return this.setVcfRecord(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.hasVcfRecord = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* repeated string xrefs = 8;
* @return {!Array<string>}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getXrefsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setXrefsList = function(value) {
return jspb.Message.setField(this, 8, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.addXrefs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearXrefsList = function() {
return this.setXrefsList([]);
};
/**
* repeated string alternate_labels = 9;
* @return {!Array<string>}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getAlternateLabelsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setAlternateLabelsList = function(value) {
return jspb.Message.setField(this, 9, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.addAlternateLabels = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearAlternateLabelsList = function() {
return this.setAlternateLabelsList([]);
};
/**
* repeated Extension extensions = 10;
* @return {!Array<!proto.org.ga4gh.vrsatile.v1.Extension>}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getExtensionsList = function() {
return /** @type{!Array<!proto.org.ga4gh.vrsatile.v1.Extension>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.org.ga4gh.vrsatile.v1.Extension, 10));
};
/**
* @param {!Array<!proto.org.ga4gh.vrsatile.v1.Extension>} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setExtensionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 10, value);
};
/**
* @param {!proto.org.ga4gh.vrsatile.v1.Extension=} opt_value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.Extension}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.addExtensions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.org.ga4gh.vrsatile.v1.Extension, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearExtensionsList = function() {
return this.setExtensionsList([]);
};
/**
* optional MoleculeContext molecule_context = 11;
* @return {!proto.org.ga4gh.vrsatile.v1.MoleculeContext}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getMoleculeContext = function() {
return /** @type {!proto.org.ga4gh.vrsatile.v1.MoleculeContext} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};
/**
* @param {!proto.org.ga4gh.vrsatile.v1.MoleculeContext} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setMoleculeContext = function(value) {
return jspb.Message.setProto3EnumField(this, 11, value);
};
/**
* optional org.phenopackets.schema.v2.core.OntologyClass structural_type = 12;
* @return {?proto.org.phenopackets.schema.v2.core.OntologyClass}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getStructuralType = function() {
return /** @type{?proto.org.phenopackets.schema.v2.core.OntologyClass} */ (
jspb.Message.getWrapperField(this, phenopackets_schema_v2_core_base_pb.OntologyClass, 12));
};
/**
* @param {?proto.org.phenopackets.schema.v2.core.OntologyClass|undefined} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setStructuralType = function(value) {
return jspb.Message.setWrapperField(this, 12, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearStructuralType = function() {
return this.setStructuralType(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.hasStructuralType = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional string vrs_ref_allele_seq = 13;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getVrsRefAlleleSeq = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setVrsRefAlleleSeq = function(value) {
return jspb.Message.setProto3StringField(this, 13, value);
};
/**
* optional org.phenopackets.schema.v2.core.OntologyClass allelic_state = 14;
* @return {?proto.org.phenopackets.schema.v2.core.OntologyClass}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.getAllelicState = function() {
return /** @type{?proto.org.phenopackets.schema.v2.core.OntologyClass} */ (
jspb.Message.getWrapperField(this, phenopackets_schema_v2_core_base_pb.OntologyClass, 14));
};
/**
* @param {?proto.org.phenopackets.schema.v2.core.OntologyClass|undefined} value
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.setAllelicState = function(value) {
return jspb.Message.setWrapperField(this, 14, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.org.ga4gh.vrsatile.v1.VariationDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.clearAllelicState = function() {
return this.setAllelicState(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.org.ga4gh.vrsatile.v1.VariationDescriptor.prototype.hasAllelicState = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.repeatedFields_ = [4,5,6];
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.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.toObject = function(opt_includeInstance) {
return proto.org.ga4gh.vrsatile.v1.GeneDescriptor.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.org.ga4gh.vrsatile.v1.GeneDescriptor} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.toObject = function(includeInstance, msg) {
var f, obj = {
valueId: jspb.Message.getFieldWithDefault(msg, 1, ""),
symbol: jspb.Message.getFieldWithDefault(msg, 2, ""),
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
alternateIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
alternateSymbolsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
xrefsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.org.ga4gh.vrsatile.v1.GeneDescriptor;
return proto.org.ga4gh.vrsatile.v1.GeneDescriptor.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.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.setValueId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSymbol(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addAlternateIds(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addAlternateSymbols(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.addXrefs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValueId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSymbol();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getAlternateIdsList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = message.getAlternateSymbolsList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getXrefsList();
if (f.length > 0) {
writer.writeRepeatedString(
6,
f
);
}
};
/**
* optional string value_id = 1;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getValueId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setValueId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string symbol = 2;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getSymbol = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setSymbol = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated string alternate_ids = 4;
* @return {!Array<string>}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getAlternateIdsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setAlternateIdsList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.addAlternateIds = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.clearAlternateIdsList = function() {
return this.setAlternateIdsList([]);
};
/**
* repeated string alternate_symbols = 5;
* @return {!Array<string>}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getAlternateSymbolsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setAlternateSymbolsList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.addAlternateSymbols = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.clearAlternateSymbolsList = function() {
return this.setAlternateSymbolsList([]);
};
/**
* repeated string xrefs = 6;
* @return {!Array<string>}
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.getXrefsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
};
/**
* @param {!Array<string>} value
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.setXrefsList = function(value) {
return jspb.Message.setField(this, 6, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.addXrefs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.org.ga4gh.vrsatile.v1.GeneDescriptor} returns this
*/
proto.org.ga4gh.vrsatile.v1.GeneDescriptor.prototype.clearXrefsList = function() {
return this.setXrefsList([]);
};
/**
* @enum {number}
*/
proto.org.ga4gh.vrsatile.v1.MoleculeContext = {
UNSPECIFIED_MOLECULE_CONTEXT: 0,
GENOMIC: 1,
TRANSCRIPT: 2,
PROTEIN: 3
};
goog.object.extend(exports, proto.org.ga4gh.vrsatile.v1);