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

org.phenopackets.schema.v1.core.Pedigree 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;

/**
 * 
 * https://software.broadinstitute.org/gatk/documentation/article?id=11016
 * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.Pedigree} */ public final class Pedigree extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.core.Pedigree) PedigreeOrBuilder { private static final long serialVersionUID = 0L; // Use Pedigree.newBuilder() to construct. private Pedigree(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Pedigree() { persons_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Pedigree(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Pedigree( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { persons_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } persons_.add( input.readMessage(org.phenopackets.schema.v1.core.Pedigree.Person.parser(), extensionRegistry)); 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)) { persons_ = java.util.Collections.unmodifiableList(persons_); } 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_Pedigree_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_Pedigree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Pedigree.class, org.phenopackets.schema.v1.core.Pedigree.Builder.class); } public interface PersonOrBuilder extends // @@protoc_insertion_point(interface_extends:org.phenopackets.schema.v1.core.Pedigree.Person) com.google.protobuf.MessageOrBuilder { /** * string family_id = 1; */ java.lang.String getFamilyId(); /** * string family_id = 1; */ com.google.protobuf.ByteString getFamilyIdBytes(); /** * string individual_id = 2; */ java.lang.String getIndividualId(); /** * string individual_id = 2; */ com.google.protobuf.ByteString getIndividualIdBytes(); /** * string paternal_id = 3; */ java.lang.String getPaternalId(); /** * string paternal_id = 3; */ com.google.protobuf.ByteString getPaternalIdBytes(); /** * string maternal_id = 4; */ java.lang.String getMaternalId(); /** * string maternal_id = 4; */ com.google.protobuf.ByteString getMaternalIdBytes(); /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ int getSexValue(); /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ org.phenopackets.schema.v1.core.Sex getSex(); /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ int getAffectedStatusValue(); /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus getAffectedStatus(); } /** * Protobuf type {@code org.phenopackets.schema.v1.core.Pedigree.Person} */ public static final class Person extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.core.Pedigree.Person) PersonOrBuilder { private static final long serialVersionUID = 0L; // Use Person.newBuilder() to construct. private Person(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Person() { familyId_ = ""; individualId_ = ""; paternalId_ = ""; maternalId_ = ""; sex_ = 0; affectedStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Person(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Person( 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(); familyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); individualId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); paternalId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); maternalId_ = s; break; } case 40: { int rawValue = input.readEnum(); sex_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); affectedStatus_ = rawValue; 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_Pedigree_Person_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_Pedigree_Person_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Pedigree.Person.class, org.phenopackets.schema.v1.core.Pedigree.Person.Builder.class); } /** * Protobuf enum {@code org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus} */ public enum AffectedStatus implements com.google.protobuf.ProtocolMessageEnum { /** * MISSING = 0; */ MISSING(0), /** * UNAFFECTED = 1; */ UNAFFECTED(1), /** * AFFECTED = 2; */ AFFECTED(2), UNRECOGNIZED(-1), ; /** * MISSING = 0; */ public static final int MISSING_VALUE = 0; /** * UNAFFECTED = 1; */ public static final int UNAFFECTED_VALUE = 1; /** * AFFECTED = 2; */ public static final int AFFECTED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AffectedStatus valueOf(int value) { return forNumber(value); } public static AffectedStatus forNumber(int value) { switch (value) { case 0: return MISSING; case 1: return UNAFFECTED; case 2: return AFFECTED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AffectedStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AffectedStatus findValueByNumber(int number) { return AffectedStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.phenopackets.schema.v1.core.Pedigree.Person.getDescriptor().getEnumTypes().get(0); } private static final AffectedStatus[] VALUES = values(); public static AffectedStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AffectedStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus) } public static final int FAMILY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object familyId_; /** * string family_id = 1; */ public java.lang.String getFamilyId() { java.lang.Object ref = familyId_; 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(); familyId_ = s; return s; } } /** * string family_id = 1; */ public com.google.protobuf.ByteString getFamilyIdBytes() { java.lang.Object ref = familyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); familyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INDIVIDUAL_ID_FIELD_NUMBER = 2; private volatile java.lang.Object individualId_; /** * string individual_id = 2; */ public java.lang.String getIndividualId() { java.lang.Object ref = individualId_; 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(); individualId_ = s; return s; } } /** * string individual_id = 2; */ public com.google.protobuf.ByteString getIndividualIdBytes() { java.lang.Object ref = individualId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); individualId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object paternalId_; /** * string paternal_id = 3; */ public java.lang.String getPaternalId() { java.lang.Object ref = paternalId_; 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(); paternalId_ = s; return s; } } /** * string paternal_id = 3; */ public com.google.protobuf.ByteString getPaternalIdBytes() { java.lang.Object ref = paternalId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paternalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MATERNAL_ID_FIELD_NUMBER = 4; private volatile java.lang.Object maternalId_; /** * string maternal_id = 4; */ public java.lang.String getMaternalId() { java.lang.Object ref = maternalId_; 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(); maternalId_ = s; return s; } } /** * string maternal_id = 4; */ public com.google.protobuf.ByteString getMaternalIdBytes() { java.lang.Object ref = maternalId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); maternalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEX_FIELD_NUMBER = 5; private int sex_; /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public int getSexValue() { return sex_; } /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public org.phenopackets.schema.v1.core.Sex getSex() { @SuppressWarnings("deprecation") org.phenopackets.schema.v1.core.Sex result = org.phenopackets.schema.v1.core.Sex.valueOf(sex_); return result == null ? org.phenopackets.schema.v1.core.Sex.UNRECOGNIZED : result; } public static final int AFFECTED_STATUS_FIELD_NUMBER = 6; private int affectedStatus_; /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public int getAffectedStatusValue() { return affectedStatus_; } /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus getAffectedStatus() { @SuppressWarnings("deprecation") org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus result = org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.valueOf(affectedStatus_); return result == null ? org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.UNRECOGNIZED : result; } 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 (!getFamilyIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, familyId_); } if (!getIndividualIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, individualId_); } if (!getPaternalIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, paternalId_); } if (!getMaternalIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, maternalId_); } if (sex_ != org.phenopackets.schema.v1.core.Sex.UNKNOWN_SEX.getNumber()) { output.writeEnum(5, sex_); } if (affectedStatus_ != org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.MISSING.getNumber()) { output.writeEnum(6, affectedStatus_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getFamilyIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, familyId_); } if (!getIndividualIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, individualId_); } if (!getPaternalIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, paternalId_); } if (!getMaternalIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, maternalId_); } if (sex_ != org.phenopackets.schema.v1.core.Sex.UNKNOWN_SEX.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, sex_); } if (affectedStatus_ != org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.MISSING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, affectedStatus_); } 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.Pedigree.Person)) { return super.equals(obj); } org.phenopackets.schema.v1.core.Pedigree.Person other = (org.phenopackets.schema.v1.core.Pedigree.Person) obj; if (!getFamilyId() .equals(other.getFamilyId())) return false; if (!getIndividualId() .equals(other.getIndividualId())) return false; if (!getPaternalId() .equals(other.getPaternalId())) return false; if (!getMaternalId() .equals(other.getMaternalId())) return false; if (sex_ != other.sex_) return false; if (affectedStatus_ != other.affectedStatus_) 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) + FAMILY_ID_FIELD_NUMBER; hash = (53 * hash) + getFamilyId().hashCode(); hash = (37 * hash) + INDIVIDUAL_ID_FIELD_NUMBER; hash = (53 * hash) + getIndividualId().hashCode(); hash = (37 * hash) + PATERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getPaternalId().hashCode(); hash = (37 * hash) + MATERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getMaternalId().hashCode(); hash = (37 * hash) + SEX_FIELD_NUMBER; hash = (53 * hash) + sex_; hash = (37 * hash) + AFFECTED_STATUS_FIELD_NUMBER; hash = (53 * hash) + affectedStatus_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.phenopackets.schema.v1.core.Pedigree.Person parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree.Person 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.Pedigree.Person parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree.Person 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.Pedigree.Person parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree.Person 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.Pedigree.Person parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Pedigree.Person 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.Pedigree.Person parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Pedigree.Person 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.Pedigree.Person 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.Pedigree.Person 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.Pedigree.Person 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; } /** * Protobuf type {@code org.phenopackets.schema.v1.core.Pedigree.Person} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.core.Pedigree.Person) org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Pedigree_Person_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_Pedigree_Person_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Pedigree.Person.class, org.phenopackets.schema.v1.core.Pedigree.Person.Builder.class); } // Construct using org.phenopackets.schema.v1.core.Pedigree.Person.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(); familyId_ = ""; individualId_ = ""; paternalId_ = ""; maternalId_ = ""; sex_ = 0; affectedStatus_ = 0; 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_Pedigree_Person_descriptor; } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree.Person getDefaultInstanceForType() { return org.phenopackets.schema.v1.core.Pedigree.Person.getDefaultInstance(); } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree.Person build() { org.phenopackets.schema.v1.core.Pedigree.Person result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree.Person buildPartial() { org.phenopackets.schema.v1.core.Pedigree.Person result = new org.phenopackets.schema.v1.core.Pedigree.Person(this); result.familyId_ = familyId_; result.individualId_ = individualId_; result.paternalId_ = paternalId_; result.maternalId_ = maternalId_; result.sex_ = sex_; result.affectedStatus_ = affectedStatus_; 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.Pedigree.Person) { return mergeFrom((org.phenopackets.schema.v1.core.Pedigree.Person)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.phenopackets.schema.v1.core.Pedigree.Person other) { if (other == org.phenopackets.schema.v1.core.Pedigree.Person.getDefaultInstance()) return this; if (!other.getFamilyId().isEmpty()) { familyId_ = other.familyId_; onChanged(); } if (!other.getIndividualId().isEmpty()) { individualId_ = other.individualId_; onChanged(); } if (!other.getPaternalId().isEmpty()) { paternalId_ = other.paternalId_; onChanged(); } if (!other.getMaternalId().isEmpty()) { maternalId_ = other.maternalId_; onChanged(); } if (other.sex_ != 0) { setSexValue(other.getSexValue()); } if (other.affectedStatus_ != 0) { setAffectedStatusValue(other.getAffectedStatusValue()); } 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.Pedigree.Person parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.phenopackets.schema.v1.core.Pedigree.Person) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object familyId_ = ""; /** * string family_id = 1; */ public java.lang.String getFamilyId() { java.lang.Object ref = familyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); familyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string family_id = 1; */ public com.google.protobuf.ByteString getFamilyIdBytes() { java.lang.Object ref = familyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); familyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string family_id = 1; */ public Builder setFamilyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } familyId_ = value; onChanged(); return this; } /** * string family_id = 1; */ public Builder clearFamilyId() { familyId_ = getDefaultInstance().getFamilyId(); onChanged(); return this; } /** * string family_id = 1; */ public Builder setFamilyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); familyId_ = value; onChanged(); return this; } private java.lang.Object individualId_ = ""; /** * string individual_id = 2; */ public java.lang.String getIndividualId() { java.lang.Object ref = individualId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); individualId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string individual_id = 2; */ public com.google.protobuf.ByteString getIndividualIdBytes() { java.lang.Object ref = individualId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); individualId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string individual_id = 2; */ public Builder setIndividualId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } individualId_ = value; onChanged(); return this; } /** * string individual_id = 2; */ public Builder clearIndividualId() { individualId_ = getDefaultInstance().getIndividualId(); onChanged(); return this; } /** * string individual_id = 2; */ public Builder setIndividualIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); individualId_ = value; onChanged(); return this; } private java.lang.Object paternalId_ = ""; /** * string paternal_id = 3; */ public java.lang.String getPaternalId() { java.lang.Object ref = paternalId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); paternalId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string paternal_id = 3; */ public com.google.protobuf.ByteString getPaternalIdBytes() { java.lang.Object ref = paternalId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); paternalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string paternal_id = 3; */ public Builder setPaternalId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } paternalId_ = value; onChanged(); return this; } /** * string paternal_id = 3; */ public Builder clearPaternalId() { paternalId_ = getDefaultInstance().getPaternalId(); onChanged(); return this; } /** * string paternal_id = 3; */ public Builder setPaternalIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); paternalId_ = value; onChanged(); return this; } private java.lang.Object maternalId_ = ""; /** * string maternal_id = 4; */ public java.lang.String getMaternalId() { java.lang.Object ref = maternalId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); maternalId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string maternal_id = 4; */ public com.google.protobuf.ByteString getMaternalIdBytes() { java.lang.Object ref = maternalId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); maternalId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string maternal_id = 4; */ public Builder setMaternalId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } maternalId_ = value; onChanged(); return this; } /** * string maternal_id = 4; */ public Builder clearMaternalId() { maternalId_ = getDefaultInstance().getMaternalId(); onChanged(); return this; } /** * string maternal_id = 4; */ public Builder setMaternalIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); maternalId_ = value; onChanged(); return this; } private int sex_ = 0; /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public int getSexValue() { return sex_; } /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public Builder setSexValue(int value) { sex_ = value; onChanged(); return this; } /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public org.phenopackets.schema.v1.core.Sex getSex() { @SuppressWarnings("deprecation") org.phenopackets.schema.v1.core.Sex result = org.phenopackets.schema.v1.core.Sex.valueOf(sex_); return result == null ? org.phenopackets.schema.v1.core.Sex.UNRECOGNIZED : result; } /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public Builder setSex(org.phenopackets.schema.v1.core.Sex value) { if (value == null) { throw new NullPointerException(); } sex_ = value.getNumber(); onChanged(); return this; } /** * .org.phenopackets.schema.v1.core.Sex sex = 5; */ public Builder clearSex() { sex_ = 0; onChanged(); return this; } private int affectedStatus_ = 0; /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public int getAffectedStatusValue() { return affectedStatus_; } /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public Builder setAffectedStatusValue(int value) { affectedStatus_ = value; onChanged(); return this; } /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus getAffectedStatus() { @SuppressWarnings("deprecation") org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus result = org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.valueOf(affectedStatus_); return result == null ? org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus.UNRECOGNIZED : result; } /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public Builder setAffectedStatus(org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus value) { if (value == null) { throw new NullPointerException(); } affectedStatus_ = value.getNumber(); onChanged(); return this; } /** * .org.phenopackets.schema.v1.core.Pedigree.Person.AffectedStatus affected_status = 6; */ public Builder clearAffectedStatus() { affectedStatus_ = 0; 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.Pedigree.Person) } // @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.core.Pedigree.Person) private static final org.phenopackets.schema.v1.core.Pedigree.Person DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.phenopackets.schema.v1.core.Pedigree.Person(); } public static org.phenopackets.schema.v1.core.Pedigree.Person getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Person parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Person(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.Pedigree.Person getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PERSONS_FIELD_NUMBER = 1; private java.util.List persons_; /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public java.util.List getPersonsList() { return persons_; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public java.util.List getPersonsOrBuilderList() { return persons_; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public int getPersonsCount() { return persons_.size(); } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.Person getPersons(int index) { return persons_.get(index); } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder getPersonsOrBuilder( int index) { return persons_.get(index); } 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 { for (int i = 0; i < persons_.size(); i++) { output.writeMessage(1, persons_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < persons_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, persons_.get(i)); } 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.Pedigree)) { return super.equals(obj); } org.phenopackets.schema.v1.core.Pedigree other = (org.phenopackets.schema.v1.core.Pedigree) obj; if (!getPersonsList() .equals(other.getPersonsList())) 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(); if (getPersonsCount() > 0) { hash = (37 * hash) + PERSONS_FIELD_NUMBER; hash = (53 * hash) + getPersonsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.phenopackets.schema.v1.core.Pedigree parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree 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.Pedigree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree 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.Pedigree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Pedigree 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.Pedigree parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Pedigree 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.Pedigree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Pedigree 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.Pedigree 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.Pedigree 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.Pedigree 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; } /** *
   * https://software.broadinstitute.org/gatk/documentation/article?id=11016
   * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.Pedigree} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.core.Pedigree) org.phenopackets.schema.v1.core.PedigreeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Pedigree_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_Pedigree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Pedigree.class, org.phenopackets.schema.v1.core.Pedigree.Builder.class); } // Construct using org.phenopackets.schema.v1.core.Pedigree.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPersonsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (personsBuilder_ == null) { persons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { personsBuilder_.clear(); } 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_Pedigree_descriptor; } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree getDefaultInstanceForType() { return org.phenopackets.schema.v1.core.Pedigree.getDefaultInstance(); } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree build() { org.phenopackets.schema.v1.core.Pedigree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.phenopackets.schema.v1.core.Pedigree buildPartial() { org.phenopackets.schema.v1.core.Pedigree result = new org.phenopackets.schema.v1.core.Pedigree(this); int from_bitField0_ = bitField0_; if (personsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { persons_ = java.util.Collections.unmodifiableList(persons_); bitField0_ = (bitField0_ & ~0x00000001); } result.persons_ = persons_; } else { result.persons_ = personsBuilder_.build(); } 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.Pedigree) { return mergeFrom((org.phenopackets.schema.v1.core.Pedigree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.phenopackets.schema.v1.core.Pedigree other) { if (other == org.phenopackets.schema.v1.core.Pedigree.getDefaultInstance()) return this; if (personsBuilder_ == null) { if (!other.persons_.isEmpty()) { if (persons_.isEmpty()) { persons_ = other.persons_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePersonsIsMutable(); persons_.addAll(other.persons_); } onChanged(); } } else { if (!other.persons_.isEmpty()) { if (personsBuilder_.isEmpty()) { personsBuilder_.dispose(); personsBuilder_ = null; persons_ = other.persons_; bitField0_ = (bitField0_ & ~0x00000001); personsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPersonsFieldBuilder() : null; } else { personsBuilder_.addAllMessages(other.persons_); } } } 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.Pedigree parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.phenopackets.schema.v1.core.Pedigree) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List persons_ = java.util.Collections.emptyList(); private void ensurePersonsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { persons_ = new java.util.ArrayList(persons_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.phenopackets.schema.v1.core.Pedigree.Person, org.phenopackets.schema.v1.core.Pedigree.Person.Builder, org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder> personsBuilder_; /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public java.util.List getPersonsList() { if (personsBuilder_ == null) { return java.util.Collections.unmodifiableList(persons_); } else { return personsBuilder_.getMessageList(); } } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public int getPersonsCount() { if (personsBuilder_ == null) { return persons_.size(); } else { return personsBuilder_.getCount(); } } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.Person getPersons(int index) { if (personsBuilder_ == null) { return persons_.get(index); } else { return personsBuilder_.getMessage(index); } } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder setPersons( int index, org.phenopackets.schema.v1.core.Pedigree.Person value) { if (personsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePersonsIsMutable(); persons_.set(index, value); onChanged(); } else { personsBuilder_.setMessage(index, value); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder setPersons( int index, org.phenopackets.schema.v1.core.Pedigree.Person.Builder builderForValue) { if (personsBuilder_ == null) { ensurePersonsIsMutable(); persons_.set(index, builderForValue.build()); onChanged(); } else { personsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder addPersons(org.phenopackets.schema.v1.core.Pedigree.Person value) { if (personsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePersonsIsMutable(); persons_.add(value); onChanged(); } else { personsBuilder_.addMessage(value); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder addPersons( int index, org.phenopackets.schema.v1.core.Pedigree.Person value) { if (personsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePersonsIsMutable(); persons_.add(index, value); onChanged(); } else { personsBuilder_.addMessage(index, value); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder addPersons( org.phenopackets.schema.v1.core.Pedigree.Person.Builder builderForValue) { if (personsBuilder_ == null) { ensurePersonsIsMutable(); persons_.add(builderForValue.build()); onChanged(); } else { personsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder addPersons( int index, org.phenopackets.schema.v1.core.Pedigree.Person.Builder builderForValue) { if (personsBuilder_ == null) { ensurePersonsIsMutable(); persons_.add(index, builderForValue.build()); onChanged(); } else { personsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder addAllPersons( java.lang.Iterable values) { if (personsBuilder_ == null) { ensurePersonsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, persons_); onChanged(); } else { personsBuilder_.addAllMessages(values); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder clearPersons() { if (personsBuilder_ == null) { persons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { personsBuilder_.clear(); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public Builder removePersons(int index) { if (personsBuilder_ == null) { ensurePersonsIsMutable(); persons_.remove(index); onChanged(); } else { personsBuilder_.remove(index); } return this; } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.Person.Builder getPersonsBuilder( int index) { return getPersonsFieldBuilder().getBuilder(index); } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder getPersonsOrBuilder( int index) { if (personsBuilder_ == null) { return persons_.get(index); } else { return personsBuilder_.getMessageOrBuilder(index); } } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public java.util.List getPersonsOrBuilderList() { if (personsBuilder_ != null) { return personsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(persons_); } } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.Person.Builder addPersonsBuilder() { return getPersonsFieldBuilder().addBuilder( org.phenopackets.schema.v1.core.Pedigree.Person.getDefaultInstance()); } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public org.phenopackets.schema.v1.core.Pedigree.Person.Builder addPersonsBuilder( int index) { return getPersonsFieldBuilder().addBuilder( index, org.phenopackets.schema.v1.core.Pedigree.Person.getDefaultInstance()); } /** * repeated .org.phenopackets.schema.v1.core.Pedigree.Person persons = 1; */ public java.util.List getPersonsBuilderList() { return getPersonsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.phenopackets.schema.v1.core.Pedigree.Person, org.phenopackets.schema.v1.core.Pedigree.Person.Builder, org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder> getPersonsFieldBuilder() { if (personsBuilder_ == null) { personsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.phenopackets.schema.v1.core.Pedigree.Person, org.phenopackets.schema.v1.core.Pedigree.Person.Builder, org.phenopackets.schema.v1.core.Pedigree.PersonOrBuilder>( persons_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); persons_ = null; } return personsBuilder_; } @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.Pedigree) } // @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.core.Pedigree) private static final org.phenopackets.schema.v1.core.Pedigree DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.phenopackets.schema.v1.core.Pedigree(); } public static org.phenopackets.schema.v1.core.Pedigree getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Pedigree parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Pedigree(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.Pedigree getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy