org.phenopackets.schema.v1.core.Gene Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phenopacket-schema Show documentation
Show all versions of phenopacket-schema Show documentation
A Protobuf schema for capturing clinical phenotypes
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: base.proto
package org.phenopackets.schema.v1.core;
/**
*
* Gene identifier
*
*
* Protobuf type {@code org.phenopackets.schema.v1.core.Gene}
*/
public final class Gene extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.core.Gene)
GeneOrBuilder {
private static final long serialVersionUID = 0L;
// Use Gene.newBuilder() to construct.
private Gene(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Gene() {
id_ = "";
alternateIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
symbol_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Gene();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Gene(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
alternateIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
alternateIds_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
symbol_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
alternateIds_ = alternateIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Gene_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Gene_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.phenopackets.schema.v1.core.Gene.class, org.phenopackets.schema.v1.core.Gene.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALTERNATE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList alternateIds_;
/**
* repeated string alternate_ids = 2;
*/
public com.google.protobuf.ProtocolStringList
getAlternateIdsList() {
return alternateIds_;
}
/**
* repeated string alternate_ids = 2;
*/
public int getAlternateIdsCount() {
return alternateIds_.size();
}
/**
* repeated string alternate_ids = 2;
*/
public java.lang.String getAlternateIds(int index) {
return alternateIds_.get(index);
}
/**
* repeated string alternate_ids = 2;
*/
public com.google.protobuf.ByteString
getAlternateIdsBytes(int index) {
return alternateIds_.getByteString(index);
}
public static final int SYMBOL_FIELD_NUMBER = 3;
private volatile java.lang.Object symbol_;
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
}
}
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
for (int i = 0; i < alternateIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alternateIds_.getRaw(i));
}
if (!getSymbolBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symbol_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
{
int dataSize = 0;
for (int i = 0; i < alternateIds_.size(); i++) {
dataSize += computeStringSizeNoTag(alternateIds_.getRaw(i));
}
size += dataSize;
size += 1 * getAlternateIdsList().size();
}
if (!getSymbolBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symbol_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.phenopackets.schema.v1.core.Gene)) {
return super.equals(obj);
}
org.phenopackets.schema.v1.core.Gene other = (org.phenopackets.schema.v1.core.Gene) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getAlternateIdsList()
.equals(other.getAlternateIdsList())) return false;
if (!getSymbol()
.equals(other.getSymbol())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (getAlternateIdsCount() > 0) {
hash = (37 * hash) + ALTERNATE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getAlternateIdsList().hashCode();
}
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.phenopackets.schema.v1.core.Gene parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.core.Gene parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.phenopackets.schema.v1.core.Gene parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.phenopackets.schema.v1.core.Gene prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Gene identifier
*
*
* Protobuf type {@code org.phenopackets.schema.v1.core.Gene}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.core.Gene)
org.phenopackets.schema.v1.core.GeneOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Gene_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Gene_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.phenopackets.schema.v1.core.Gene.class, org.phenopackets.schema.v1.core.Gene.Builder.class);
}
// Construct using org.phenopackets.schema.v1.core.Gene.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
alternateIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
symbol_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Gene_descriptor;
}
@java.lang.Override
public org.phenopackets.schema.v1.core.Gene getDefaultInstanceForType() {
return org.phenopackets.schema.v1.core.Gene.getDefaultInstance();
}
@java.lang.Override
public org.phenopackets.schema.v1.core.Gene build() {
org.phenopackets.schema.v1.core.Gene result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.phenopackets.schema.v1.core.Gene buildPartial() {
org.phenopackets.schema.v1.core.Gene result = new org.phenopackets.schema.v1.core.Gene(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (((bitField0_ & 0x00000001) != 0)) {
alternateIds_ = alternateIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.alternateIds_ = alternateIds_;
result.symbol_ = symbol_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.phenopackets.schema.v1.core.Gene) {
return mergeFrom((org.phenopackets.schema.v1.core.Gene)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.phenopackets.schema.v1.core.Gene other) {
if (other == org.phenopackets.schema.v1.core.Gene.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.alternateIds_.isEmpty()) {
if (alternateIds_.isEmpty()) {
alternateIds_ = other.alternateIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAlternateIdsIsMutable();
alternateIds_.addAll(other.alternateIds_);
}
onChanged();
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.phenopackets.schema.v1.core.Gene parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.phenopackets.schema.v1.core.Gene) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The official gene identifier as designated by the organism gene nomenclature committee e.g. HGNC:3477 or MGI:2385071
* Preferentially this should be a CURIE, however it is acceptable to use another equivalent resource identifier
* such as ENSG00000120705, uc003ldc.6
* https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:3477
*
*
* string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList alternateIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAlternateIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
alternateIds_ = new com.google.protobuf.LazyStringArrayList(alternateIds_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string alternate_ids = 2;
*/
public com.google.protobuf.ProtocolStringList
getAlternateIdsList() {
return alternateIds_.getUnmodifiableView();
}
/**
* repeated string alternate_ids = 2;
*/
public int getAlternateIdsCount() {
return alternateIds_.size();
}
/**
* repeated string alternate_ids = 2;
*/
public java.lang.String getAlternateIds(int index) {
return alternateIds_.get(index);
}
/**
* repeated string alternate_ids = 2;
*/
public com.google.protobuf.ByteString
getAlternateIdsBytes(int index) {
return alternateIds_.getByteString(index);
}
/**
* repeated string alternate_ids = 2;
*/
public Builder setAlternateIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAlternateIdsIsMutable();
alternateIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated string alternate_ids = 2;
*/
public Builder addAlternateIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAlternateIdsIsMutable();
alternateIds_.add(value);
onChanged();
return this;
}
/**
* repeated string alternate_ids = 2;
*/
public Builder addAllAlternateIds(
java.lang.Iterable values) {
ensureAlternateIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, alternateIds_);
onChanged();
return this;
}
/**
* repeated string alternate_ids = 2;
*/
public Builder clearAlternateIds() {
alternateIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string alternate_ids = 2;
*/
public Builder addAlternateIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAlternateIdsIsMutable();
alternateIds_.add(value);
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
*
* The official gene symbol as designated by the organism gene nomenclature committee e.g. ETF1 or Etf1
*
*
* string symbol = 3;
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symbol_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.phenopackets.schema.v1.core.Gene)
}
// @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.core.Gene)
private static final org.phenopackets.schema.v1.core.Gene DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.phenopackets.schema.v1.core.Gene();
}
public static org.phenopackets.schema.v1.core.Gene getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Gene parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Gene(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.phenopackets.schema.v1.core.Gene getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}