Biosample

Biosample

new Biosample(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

Source:

(private, static, constant) repeatedFields_

Description:
  • List of repeated fields within this message type.
Source:
List of repeated fields within this message type.

Methods

addDiagnosticMarkers(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Source:
Parameters:
Name Type Attributes Description
opt_value proto.org.phenopackets.schema.v2.core.OntologyClass <optional>
opt_index number <optional>
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

addFiles(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.phenopackets.schema.v2.core.File}

Source:
Parameters:
Name Type Attributes Description
opt_value proto.org.phenopackets.schema.v2.core.File <optional>
opt_index number <optional>
Returns:
Type
proto.org.phenopackets.schema.v2.core.File

addMeasurements(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.phenopackets.schema.v2.core.Measurement}

Source:
Parameters:
Name Type Attributes Description
opt_value proto.org.phenopackets.schema.v2.core.Measurement <optional>
opt_index number <optional>
Returns:
Type
proto.org.phenopackets.schema.v2.core.Measurement

addPathologicalTnmFinding(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Source:
Parameters:
Name Type Attributes Description
opt_value proto.org.phenopackets.schema.v2.core.OntologyClass <optional>
opt_index number <optional>
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

addPhenotypicFeatures(opt_valueopt, non-null, opt_indexopt) → (non-null) {proto.org.phenopackets.schema.v2.core.PhenotypicFeature}

Source:
Parameters:
Name Type Attributes Description
opt_value proto.org.phenopackets.schema.v2.core.PhenotypicFeature <optional>
opt_index number <optional>
Returns:
Type
proto.org.phenopackets.schema.v2.core.PhenotypicFeature

clearDiagnosticMarkersList() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the list making it empty but non-null.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearFilesList() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the list making it empty but non-null.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearHistologicalDiagnosis() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearMaterialSample() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearMeasurementsList() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the list making it empty but non-null.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearPathologicalStage() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearPathologicalTnmFindingList() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the list making it empty but non-null.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearPhenotypicFeaturesList() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the list making it empty but non-null.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearProcedure() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearSampleProcessing() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearSampleStorage() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearSampleType() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearSampledTissue() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearTaxonomy() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearTimeOfCollection() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearTumorGrade() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

clearTumorProgression() → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Description:
  • Clears the message field making it undefined.
Source:
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

getDerivedFromId() → {string}

Description:
  • optional string derived_from_id = 3;
Source:
Returns:
Type
string

getDescription() → {string}

Description:
  • optional string description = 4;
Source:
Returns:
Type
string

getDiagnosticMarkersList() → (non-null) {Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>}

Description:
  • repeated OntologyClass diagnostic_markers = 16;
Source:
Returns:
Type
Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>

getFilesList() → (non-null) {Array.<!proto.org.phenopackets.schema.v2.core.File>}

Description:
  • repeated File files = 18;
Source:
Returns:
Type
Array.<!proto.org.phenopackets.schema.v2.core.File>

getHistologicalDiagnosis() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass histological_diagnosis = 11;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getId() → {string}

Description:
  • optional string id = 1;
Source:
Returns:
Type
string

getIndividualId() → {string}

Description:
  • optional string individual_id = 2;
Source:
Returns:
Type
string

getMaterialSample() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass material_sample = 19;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getMeasurementsList() → (non-null) {Array.<!proto.org.phenopackets.schema.v2.core.Measurement>}

Description:
  • repeated Measurement measurements = 8;
Source:
Returns:
Type
Array.<!proto.org.phenopackets.schema.v2.core.Measurement>

getPathologicalStage() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass pathological_stage = 14;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getPathologicalTnmFindingList() → (non-null) {Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>}

Description:
  • repeated OntologyClass pathological_tnm_finding = 15;
Source:
Returns:
Type
Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>

getPhenotypicFeaturesList() → (non-null) {Array.<!proto.org.phenopackets.schema.v2.core.PhenotypicFeature>}

Description:
  • repeated PhenotypicFeature phenotypic_features = 7;
Source:
Returns:
Type
Array.<!proto.org.phenopackets.schema.v2.core.PhenotypicFeature>

getProcedure() → (nullable) {proto.org.phenopackets.schema.v2.core.Procedure}

Description:
  • optional Procedure procedure = 17;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.Procedure

getSampleProcessing() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass sample_processing = 20;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getSampleStorage() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass sample_storage = 21;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getSampleType() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass sample_type = 6;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getSampledTissue() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass sampled_tissue = 5;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getTaxonomy() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass taxonomy = 9;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getTimeOfCollection() → (nullable) {proto.org.phenopackets.schema.v2.core.TimeElement}

Description:
  • optional TimeElement time_of_collection = 10;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.TimeElement

getTumorGrade() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass tumor_grade = 13;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

getTumorProgression() → (nullable) {proto.org.phenopackets.schema.v2.core.OntologyClass}

Description:
  • optional OntologyClass tumor_progression = 12;
Source:
Returns:
Type
proto.org.phenopackets.schema.v2.core.OntologyClass

hasHistologicalDiagnosis() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasMaterialSample() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasPathologicalStage() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasProcedure() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasSampleProcessing() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasSampleStorage() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasSampleType() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasSampledTissue() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasTaxonomy() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasTimeOfCollection() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasTumorGrade() → {boolean}

Description:
  • Returns whether this field is set.
Source:
Returns:
Type
boolean

hasTumorProgression() → {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

setDerivedFromId(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value string
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setDescription(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value string
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setDiagnosticMarkersList(valuenon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setFilesList(valuenon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value Array.<!proto.org.phenopackets.schema.v2.core.File>
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setHistologicalDiagnosis(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setId(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value string
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setIndividualId(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value string
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setMaterialSample(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setMeasurementsList(valuenon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value Array.<!proto.org.phenopackets.schema.v2.core.Measurement>
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setPathologicalStage(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setPathologicalTnmFindingList(valuenon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value Array.<!proto.org.phenopackets.schema.v2.core.OntologyClass>
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setPhenotypicFeaturesList(valuenon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value Array.<!proto.org.phenopackets.schema.v2.core.PhenotypicFeature>
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setProcedure(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.Procedure | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setSampleProcessing(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setSampleStorage(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setSampleType(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setSampledTissue(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setTaxonomy(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setTimeOfCollection(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.TimeElement | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setTumorGrade(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

setTumorProgression(value) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

Source:
Parameters:
Name Type Description
value proto.org.phenopackets.schema.v2.core.OntologyClass | undefined
Returns:
returns this
Type
proto.org.phenopackets.schema.v2.core.Biosample

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.
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.phenopackets.schema.v2.core.Biosample}

Description:
  • Deserializes binary data (in protobuf wire format).
Source:
Parameters:
Name Type Description
bytes jspb.ByteSource The bytes to deserialize.
Returns:
Type
proto.org.phenopackets.schema.v2.core.Biosample

(static) deserializeBinaryFromReader(msgnon-null, readernon-null) → (non-null) {proto.org.phenopackets.schema.v2.core.Biosample}

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.phenopackets.schema.v2.core.Biosample The message object to deserialize into.
reader jspb.BinaryReader The BinaryReader to use.
Returns:
Type
proto.org.phenopackets.schema.v2.core.Biosample

(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.phenopackets.schema.v2.core.Biosample
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.phenopackets.schema.v2.core.Biosample The msg instance to transform.
Returns:
Type
Object