new VariationDescriptor(opt_dataopt)
- Description:
- Generated by JsPbCodeGenerator.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
opt_data |
Array |
<optional> |
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
Members
(static) displayName
(private, static, constant) repeatedFields_
- Description:
- List of repeated fields within this message type.
- Source:
List of repeated fields within this message type.
Methods
addAlternateLabels(value, opt_indexopt) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
string | ||
opt_index |
number |
<optional> |
Returns:
returns this
addExpressions(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.ga4gh.vrsatile.v1.Expression}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
opt_value |
proto.org.ga4gh.vrsatile.v1.Expression |
<optional> |
|
opt_index |
number |
<optional> |
Returns:
addExtensions(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.ga4gh.vrsatile.v1.Extension}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
opt_value |
proto.org.ga4gh.vrsatile.v1.Extension |
<optional> |
|
opt_index |
number |
<optional> |
Returns:
addXrefs(value, opt_indexopt) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
value |
string | ||
opt_index |
number |
<optional> |
Returns:
returns this
clearAllelicState() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the message field making it undefined.
- Source:
Returns:
returns this
clearAlternateLabelsList() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the list making it empty but non-null.
- Source:
Returns:
returns this
clearExpressionsList() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the list making it empty but non-null.
- Source:
Returns:
returns this
clearExtensionsList() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the list making it empty but non-null.
- Source:
Returns:
returns this
clearGeneContext() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the message field making it undefined.
- Source:
Returns:
returns this
clearStructuralType() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the message field making it undefined.
- Source:
Returns:
returns this
clearVariation() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the message field making it undefined.
- Source:
Returns:
returns this
clearVcfRecord() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the message field making it undefined.
- Source:
Returns:
returns this
clearXrefsList() → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Clears the list making it empty but non-null.
- Source:
Returns:
returns this
getAllelicState() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}
- Description:
- optional org.phenopackets.schema.v2.core.OntologyClass allelic_state = 14;
- Source:
Returns:
getAlternateLabelsList() → (non-null) {Array.<string>}
- Description:
- repeated string alternate_labels = 9;
- Source:
Returns:
- Type
- Array.<string>
getDescription() → {string}
- Description:
- optional string description = 4;
- Source:
Returns:
- Type
- string
getExpressionsList() → (non-null) {Array.<!proto.org.ga4gh.vrsatile.v1.Expression>}
- Description:
- repeated Expression expressions = 6;
- Source:
Returns:
- Type
- Array.<!proto.org.ga4gh.vrsatile.v1.Expression>
getExtensionsList() → (non-null) {Array.<!proto.org.ga4gh.vrsatile.v1.Extension>}
- Description:
- repeated Extension extensions = 10;
- Source:
Returns:
- Type
- Array.<!proto.org.ga4gh.vrsatile.v1.Extension>
getGeneContext() → (nullable) {proto.org.ga4gh.vrsatile.v1.GeneDescriptor}
- Description:
- optional GeneDescriptor gene_context = 5;
- Source:
Returns:
getId() → {string}
- Description:
- optional string id = 1;
- Source:
Returns:
- Type
- string
getLabel() → {string}
- Description:
- optional string label = 3;
- Source:
Returns:
- Type
- string
getMoleculeContext() → (non-null) {proto.org.ga4gh.vrsatile.v1.MoleculeContext}
- Description:
- optional MoleculeContext molecule_context = 11;
- Source:
Returns:
getStructuralType() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}
- Description:
- optional org.phenopackets.schema.v2.core.OntologyClass structural_type = 12;
- Source:
Returns:
getVariation() → (nullable) {proto.org.ga4gh.vrs.v1.Variation}
- Description:
- optional org.ga4gh.vrs.v1.Variation variation = 2;
- Source:
Returns:
getVcfRecord() → (nullable) {proto.org.ga4gh.vrsatile.v1.VcfRecord}
- Description:
- optional VcfRecord vcf_record = 7;
- Source:
Returns:
getVrsRefAlleleSeq() → {string}
- Description:
- optional string vrs_ref_allele_seq = 13;
- Source:
Returns:
- Type
- string
getXrefsList() → (non-null) {Array.<string>}
- Description:
- repeated string xrefs = 8;
- Source:
Returns:
- Type
- Array.<string>
hasAllelicState() → {boolean}
- Description:
- Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasGeneContext() → {boolean}
- Description:
- Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasStructuralType() → {boolean}
- Description:
- Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasVariation() → {boolean}
- Description:
- Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
hasVcfRecord() → {boolean}
- Description:
- Returns whether this field is set.
- Source:
Returns:
- Type
- boolean
serializeBinary() → (non-null) {Uint8Array}
- Description:
- Serializes the message to binary data (in protobuf wire format).
- Source:
Returns:
- Type
- Uint8Array
setAllelicState(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.phenopackets.schema.v2.core.OntologyClass | undefined |
Returns:
returns this
setAlternateLabelsList(valuenon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Array.<string> |
Returns:
returns this
setDescription(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string |
Returns:
returns this
setExpressionsList(valuenon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Array.<!proto.org.ga4gh.vrsatile.v1.Expression> |
Returns:
returns this
setExtensionsList(valuenon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Array.<!proto.org.ga4gh.vrsatile.v1.Extension> |
Returns:
returns this
setGeneContext(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.ga4gh.vrsatile.v1.GeneDescriptor | undefined |
Returns:
returns this
setId(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string |
Returns:
returns this
setLabel(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string |
Returns:
returns this
setMoleculeContext(valuenon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.ga4gh.vrsatile.v1.MoleculeContext |
Returns:
returns this
setStructuralType(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.phenopackets.schema.v2.core.OntologyClass | undefined |
Returns:
returns this
setVariation(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.ga4gh.vrs.v1.Variation | undefined |
Returns:
returns this
setVcfRecord(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
proto.org.ga4gh.vrsatile.v1.VcfRecord | undefined |
Returns:
returns this
setVrsRefAlleleSeq(value) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string |
Returns:
returns this
setXrefsList(valuenon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Array.<string> |
Returns:
returns this
toObject(opt_includeInstanceopt) → (non-null) {Object}
- Description:
- 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_
, eg, foo.pb_default. For the list of reserved names please see: net/proto2/compiler/js/internal/generator.cc#kKeyword.
- 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_
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
opt_includeInstance |
boolean |
<optional> |
Deprecated. whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration |
Returns:
- Type
- Object
(static) deserializeBinary(bytes) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Deserializes binary data (in protobuf wire format).
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
bytes |
jspb.ByteSource | The bytes to deserialize. |
Returns:
(static) deserializeBinaryFromReader(msgnon-null, readernon-null) → (non-null) {proto.org.ga4gh.vrsatile.v1.VariationDescriptor}
- Description:
- Deserializes binary data (in protobuf wire format) from the given reader into the given message object.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
proto.org.ga4gh.vrsatile.v1.VariationDescriptor | The message object to deserialize into. |
reader |
jspb.BinaryReader | The BinaryReader to use. |
Returns:
(static) serializeBinaryToWriter(messagenon-null, writernon-null)
- Description:
- Serializes the given message to binary data (in protobuf wire format), writing to the given BinaryWriter.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
message |
proto.org.ga4gh.vrsatile.v1.VariationDescriptor | |
writer |
jspb.BinaryWriter |
(static) toObject(includeInstance, msgnon-null) → (non-null) {Object}
- Description:
- Static version of the {@see toObject} method.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
includeInstance |
boolean | undefined | Deprecated. Whether to include the JSPB instance for transitional soy proto support: http://goto/soy-param-migration |
msg |
proto.org.ga4gh.vrsatile.v1.VariationDescriptor | The msg instance to transform. |
Returns:
- Type
- Object