All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phenopackets.schema.v1.core.SpdiAllele Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: base.proto

package org.phenopackets.schema.v1.core;

/**
 * 
 * A single SPDI allele.
 * The SPDI notation uses four fields and is written out as four elements delimited by colons S:P:D:I, where
 * S = SequenceId
 * P = Position , a 0-based coordinate for where the Deleted Sequence starts
 * D = DeletedSequence , sequence for the deletion, can be empty
 * I = InsertedSequence , sequence for the insertion, can be empty
 * The SPDI notation represents variation as deletion of a sequence (D) at a given position (P) in reference sequence (S)
 * followed by insertion of a replacement sequence (I) at that same position. Position 0 indicates a deletion that
 * starts immediately before the first nucleotide, and position 1 represents a deletion interval that starts between the
 * first and second residues, and so on. Either the deleted or the inserted interval can be empty, resulting a pure
 * insertion or deletion.
 * The deleted and inserted sequences in SPDI are all written on the positive strand for two-stranded molecules.
 * See https://www.ncbi.nlm.nih.gov/variation/notation/
 * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.SpdiAllele} */ public final class SpdiAllele extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.core.SpdiAllele) SpdiAlleleOrBuilder { private static final long serialVersionUID = 0L; // Use SpdiAllele.newBuilder() to construct. private SpdiAllele(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpdiAllele() { id_ = ""; seqId_ = ""; deletedSequence_ = ""; insertedSequence_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpdiAllele(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpdiAllele( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); seqId_ = s; break; } case 24: { position_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); deletedSequence_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); insertedSequence_ = 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 { 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_SpdiAllele_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_SpdiAllele_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.SpdiAllele.class, org.phenopackets.schema.v1.core.SpdiAllele.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * 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; } } /** * 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 SEQ_ID_FIELD_NUMBER = 2; private volatile java.lang.Object seqId_; /** * string seq_id = 2; */ public java.lang.String getSeqId() { java.lang.Object ref = seqId_; 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(); seqId_ = s; return s; } } /** * string seq_id = 2; */ public com.google.protobuf.ByteString getSeqIdBytes() { java.lang.Object ref = seqId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); seqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSITION_FIELD_NUMBER = 3; private int position_; /** * int32 position = 3; */ public int getPosition() { return position_; } public static final int DELETED_SEQUENCE_FIELD_NUMBER = 4; private volatile java.lang.Object deletedSequence_; /** * string deleted_sequence = 4; */ public java.lang.String getDeletedSequence() { java.lang.Object ref = deletedSequence_; 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(); deletedSequence_ = s; return s; } } /** * string deleted_sequence = 4; */ public com.google.protobuf.ByteString getDeletedSequenceBytes() { java.lang.Object ref = deletedSequence_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deletedSequence_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSERTED_SEQUENCE_FIELD_NUMBER = 5; private volatile java.lang.Object insertedSequence_; /** * string inserted_sequence = 5; */ public java.lang.String getInsertedSequence() { java.lang.Object ref = insertedSequence_; 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(); insertedSequence_ = s; return s; } } /** * string inserted_sequence = 5; */ public com.google.protobuf.ByteString getInsertedSequenceBytes() { java.lang.Object ref = insertedSequence_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); insertedSequence_ = 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_); } if (!getSeqIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, seqId_); } if (position_ != 0) { output.writeInt32(3, position_); } if (!getDeletedSequenceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deletedSequence_); } if (!getInsertedSequenceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, insertedSequence_); } 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_); } if (!getSeqIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, seqId_); } if (position_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, position_); } if (!getDeletedSequenceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deletedSequence_); } if (!getInsertedSequenceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, insertedSequence_); } 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.SpdiAllele)) { return super.equals(obj); } org.phenopackets.schema.v1.core.SpdiAllele other = (org.phenopackets.schema.v1.core.SpdiAllele) obj; if (!getId() .equals(other.getId())) return false; if (!getSeqId() .equals(other.getSeqId())) return false; if (getPosition() != other.getPosition()) return false; if (!getDeletedSequence() .equals(other.getDeletedSequence())) return false; if (!getInsertedSequence() .equals(other.getInsertedSequence())) 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(); hash = (37 * hash) + SEQ_ID_FIELD_NUMBER; hash = (53 * hash) + getSeqId().hashCode(); hash = (37 * hash) + POSITION_FIELD_NUMBER; hash = (53 * hash) + getPosition(); hash = (37 * hash) + DELETED_SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getDeletedSequence().hashCode(); hash = (37 * hash) + INSERTED_SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getInsertedSequence().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.phenopackets.schema.v1.core.SpdiAllele parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.SpdiAllele 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.SpdiAllele parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.SpdiAllele 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.SpdiAllele parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.SpdiAllele 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.SpdiAllele parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.SpdiAllele 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.SpdiAllele parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.SpdiAllele 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.SpdiAllele 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.SpdiAllele 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.SpdiAllele 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; } /** *
   * A single SPDI allele.
   * The SPDI notation uses four fields and is written out as four elements delimited by colons S:P:D:I, where
   * S = SequenceId
   * P = Position , a 0-based coordinate for where the Deleted Sequence starts
   * D = DeletedSequence , sequence for the deletion, can be empty
   * I = InsertedSequence , sequence for the insertion, can be empty
   * The SPDI notation represents variation as deletion of a sequence (D) at a given position (P) in reference sequence (S)
   * followed by insertion of a replacement sequence (I) at that same position. Position 0 indicates a deletion that
   * starts immediately before the first nucleotide, and position 1 represents a deletion interval that starts between the
   * first and second residues, and so on. Either the deleted or the inserted interval can be empty, resulting a pure
   * insertion or deletion.
   * The deleted and inserted sequences in SPDI are all written on the positive strand for two-stranded molecules.
   * See https://www.ncbi.nlm.nih.gov/variation/notation/
   * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.SpdiAllele} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.core.SpdiAllele) org.phenopackets.schema.v1.core.SpdiAlleleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_SpdiAllele_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_SpdiAllele_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.SpdiAllele.class, org.phenopackets.schema.v1.core.SpdiAllele.Builder.class); } // Construct using org.phenopackets.schema.v1.core.SpdiAllele.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_ = ""; seqId_ = ""; position_ = 0; deletedSequence_ = ""; insertedSequence_ = ""; 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_SpdiAllele_descriptor; } @java.lang.Override public org.phenopackets.schema.v1.core.SpdiAllele getDefaultInstanceForType() { return org.phenopackets.schema.v1.core.SpdiAllele.getDefaultInstance(); } @java.lang.Override public org.phenopackets.schema.v1.core.SpdiAllele build() { org.phenopackets.schema.v1.core.SpdiAllele result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.phenopackets.schema.v1.core.SpdiAllele buildPartial() { org.phenopackets.schema.v1.core.SpdiAllele result = new org.phenopackets.schema.v1.core.SpdiAllele(this); result.id_ = id_; result.seqId_ = seqId_; result.position_ = position_; result.deletedSequence_ = deletedSequence_; result.insertedSequence_ = insertedSequence_; 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.SpdiAllele) { return mergeFrom((org.phenopackets.schema.v1.core.SpdiAllele)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.phenopackets.schema.v1.core.SpdiAllele other) { if (other == org.phenopackets.schema.v1.core.SpdiAllele.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getSeqId().isEmpty()) { seqId_ = other.seqId_; onChanged(); } if (other.getPosition() != 0) { setPosition(other.getPosition()); } if (!other.getDeletedSequence().isEmpty()) { deletedSequence_ = other.deletedSequence_; onChanged(); } if (!other.getInsertedSequence().isEmpty()) { insertedSequence_ = other.insertedSequence_; 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.SpdiAllele parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.phenopackets.schema.v1.core.SpdiAllele) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * 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; } } /** * 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; } } /** * string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * 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 java.lang.Object seqId_ = ""; /** * string seq_id = 2; */ public java.lang.String getSeqId() { java.lang.Object ref = seqId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); seqId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string seq_id = 2; */ public com.google.protobuf.ByteString getSeqIdBytes() { java.lang.Object ref = seqId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); seqId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string seq_id = 2; */ public Builder setSeqId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } seqId_ = value; onChanged(); return this; } /** * string seq_id = 2; */ public Builder clearSeqId() { seqId_ = getDefaultInstance().getSeqId(); onChanged(); return this; } /** * string seq_id = 2; */ public Builder setSeqIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); seqId_ = value; onChanged(); return this; } private int position_ ; /** * int32 position = 3; */ public int getPosition() { return position_; } /** * int32 position = 3; */ public Builder setPosition(int value) { position_ = value; onChanged(); return this; } /** * int32 position = 3; */ public Builder clearPosition() { position_ = 0; onChanged(); return this; } private java.lang.Object deletedSequence_ = ""; /** * string deleted_sequence = 4; */ public java.lang.String getDeletedSequence() { java.lang.Object ref = deletedSequence_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deletedSequence_ = s; return s; } else { return (java.lang.String) ref; } } /** * string deleted_sequence = 4; */ public com.google.protobuf.ByteString getDeletedSequenceBytes() { java.lang.Object ref = deletedSequence_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deletedSequence_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string deleted_sequence = 4; */ public Builder setDeletedSequence( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deletedSequence_ = value; onChanged(); return this; } /** * string deleted_sequence = 4; */ public Builder clearDeletedSequence() { deletedSequence_ = getDefaultInstance().getDeletedSequence(); onChanged(); return this; } /** * string deleted_sequence = 4; */ public Builder setDeletedSequenceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deletedSequence_ = value; onChanged(); return this; } private java.lang.Object insertedSequence_ = ""; /** * string inserted_sequence = 5; */ public java.lang.String getInsertedSequence() { java.lang.Object ref = insertedSequence_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); insertedSequence_ = s; return s; } else { return (java.lang.String) ref; } } /** * string inserted_sequence = 5; */ public com.google.protobuf.ByteString getInsertedSequenceBytes() { java.lang.Object ref = insertedSequence_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); insertedSequence_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string inserted_sequence = 5; */ public Builder setInsertedSequence( java.lang.String value) { if (value == null) { throw new NullPointerException(); } insertedSequence_ = value; onChanged(); return this; } /** * string inserted_sequence = 5; */ public Builder clearInsertedSequence() { insertedSequence_ = getDefaultInstance().getInsertedSequence(); onChanged(); return this; } /** * string inserted_sequence = 5; */ public Builder setInsertedSequenceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); insertedSequence_ = 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.SpdiAllele) } // @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.core.SpdiAllele) private static final org.phenopackets.schema.v1.core.SpdiAllele DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.phenopackets.schema.v1.core.SpdiAllele(); } public static org.phenopackets.schema.v1.core.SpdiAllele getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpdiAllele parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpdiAllele(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.SpdiAllele getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy