org.opencb.biodata.models.variant.protobuf.VcfSliceProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protobuf/opencb/vcf_record.proto
package org.opencb.biodata.models.variant.protobuf;
public final class VcfSliceProtos {
private VcfSliceProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface VcfSampleOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf.opencb.VcfSample)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string sample_values = 1;
* @return A list containing the sampleValues.
*/
java.util.List
getSampleValuesList();
/**
* repeated string sample_values = 1;
* @return The count of sampleValues.
*/
int getSampleValuesCount();
/**
* repeated string sample_values = 1;
* @param index The index of the element to return.
* @return The sampleValues at the given index.
*/
java.lang.String getSampleValues(int index);
/**
* repeated string sample_values = 1;
* @param index The index of the value to return.
* @return The bytes of the sampleValues at the given index.
*/
com.google.protobuf.ByteString
getSampleValuesBytes(int index);
/**
*
* GT is mandatory. Saving it separately can create a map of genotypes in Fields
*
*
* uint32 gt_index = 2;
* @return The gtIndex.
*/
int getGtIndex();
}
/**
* Protobuf type {@code protobuf.opencb.VcfSample}
*/
public static final class VcfSample extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protobuf.opencb.VcfSample)
VcfSampleOrBuilder {
private static final long serialVersionUID = 0L;
// Use VcfSample.newBuilder() to construct.
private VcfSample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VcfSample() {
sampleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VcfSample();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VcfSample(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
sampleValues_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
sampleValues_.add(s);
break;
}
case 16: {
gtIndex_ = input.readUInt32();
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)) {
sampleValues_ = sampleValues_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSample_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder.class);
}
public static final int SAMPLE_VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList sampleValues_;
/**
* repeated string sample_values = 1;
* @return A list containing the sampleValues.
*/
public com.google.protobuf.ProtocolStringList
getSampleValuesList() {
return sampleValues_;
}
/**
* repeated string sample_values = 1;
* @return The count of sampleValues.
*/
public int getSampleValuesCount() {
return sampleValues_.size();
}
/**
* repeated string sample_values = 1;
* @param index The index of the element to return.
* @return The sampleValues at the given index.
*/
public java.lang.String getSampleValues(int index) {
return sampleValues_.get(index);
}
/**
* repeated string sample_values = 1;
* @param index The index of the value to return.
* @return The bytes of the sampleValues at the given index.
*/
public com.google.protobuf.ByteString
getSampleValuesBytes(int index) {
return sampleValues_.getByteString(index);
}
public static final int GT_INDEX_FIELD_NUMBER = 2;
private int gtIndex_;
/**
*
* GT is mandatory. Saving it separately can create a map of genotypes in Fields
*
*
* uint32 gt_index = 2;
* @return The gtIndex.
*/
public int getGtIndex() {
return gtIndex_;
}
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 < sampleValues_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleValues_.getRaw(i));
}
if (gtIndex_ != 0) {
output.writeUInt32(2, gtIndex_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < sampleValues_.size(); i++) {
dataSize += computeStringSizeNoTag(sampleValues_.getRaw(i));
}
size += dataSize;
size += 1 * getSampleValuesList().size();
}
if (gtIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, gtIndex_);
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample)) {
return super.equals(obj);
}
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample other = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample) obj;
if (!getSampleValuesList()
.equals(other.getSampleValuesList())) return false;
if (getGtIndex()
!= other.getGtIndex()) 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 (getSampleValuesCount() > 0) {
hash = (37 * hash) + SAMPLE_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getSampleValuesList().hashCode();
}
hash = (37 * hash) + GT_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGtIndex();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample 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 protobuf.opencb.VcfSample}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf.opencb.VcfSample)
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSample_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder.class);
}
// Construct using org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.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();
sampleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
gtIndex_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSample_descriptor;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getDefaultInstanceForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.getDefaultInstance();
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample build() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample buildPartial() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample result = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
sampleValues_ = sampleValues_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sampleValues_ = sampleValues_;
result.gtIndex_ = gtIndex_;
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample) {
return mergeFrom((org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample other) {
if (other == org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.getDefaultInstance()) return this;
if (!other.sampleValues_.isEmpty()) {
if (sampleValues_.isEmpty()) {
sampleValues_ = other.sampleValues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSampleValuesIsMutable();
sampleValues_.addAll(other.sampleValues_);
}
onChanged();
}
if (other.getGtIndex() != 0) {
setGtIndex(other.getGtIndex());
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList sampleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSampleValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sampleValues_ = new com.google.protobuf.LazyStringArrayList(sampleValues_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string sample_values = 1;
* @return A list containing the sampleValues.
*/
public com.google.protobuf.ProtocolStringList
getSampleValuesList() {
return sampleValues_.getUnmodifiableView();
}
/**
* repeated string sample_values = 1;
* @return The count of sampleValues.
*/
public int getSampleValuesCount() {
return sampleValues_.size();
}
/**
* repeated string sample_values = 1;
* @param index The index of the element to return.
* @return The sampleValues at the given index.
*/
public java.lang.String getSampleValues(int index) {
return sampleValues_.get(index);
}
/**
* repeated string sample_values = 1;
* @param index The index of the value to return.
* @return The bytes of the sampleValues at the given index.
*/
public com.google.protobuf.ByteString
getSampleValuesBytes(int index) {
return sampleValues_.getByteString(index);
}
/**
* repeated string sample_values = 1;
* @param index The index to set the value at.
* @param value The sampleValues to set.
* @return This builder for chaining.
*/
public Builder setSampleValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampleValuesIsMutable();
sampleValues_.set(index, value);
onChanged();
return this;
}
/**
* repeated string sample_values = 1;
* @param value The sampleValues to add.
* @return This builder for chaining.
*/
public Builder addSampleValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampleValuesIsMutable();
sampleValues_.add(value);
onChanged();
return this;
}
/**
* repeated string sample_values = 1;
* @param values The sampleValues to add.
* @return This builder for chaining.
*/
public Builder addAllSampleValues(
java.lang.Iterable values) {
ensureSampleValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sampleValues_);
onChanged();
return this;
}
/**
* repeated string sample_values = 1;
* @return This builder for chaining.
*/
public Builder clearSampleValues() {
sampleValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string sample_values = 1;
* @param value The bytes of the sampleValues to add.
* @return This builder for chaining.
*/
public Builder addSampleValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSampleValuesIsMutable();
sampleValues_.add(value);
onChanged();
return this;
}
private int gtIndex_ ;
/**
*
* GT is mandatory. Saving it separately can create a map of genotypes in Fields
*
*
* uint32 gt_index = 2;
* @return The gtIndex.
*/
public int getGtIndex() {
return gtIndex_;
}
/**
*
* GT is mandatory. Saving it separately can create a map of genotypes in Fields
*
*
* uint32 gt_index = 2;
* @param value The gtIndex to set.
* @return This builder for chaining.
*/
public Builder setGtIndex(int value) {
gtIndex_ = value;
onChanged();
return this;
}
/**
*
* GT is mandatory. Saving it separately can create a map of genotypes in Fields
*
*
* uint32 gt_index = 2;
* @return This builder for chaining.
*/
public Builder clearGtIndex() {
gtIndex_ = 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:protobuf.opencb.VcfSample)
}
// @@protoc_insertion_point(class_scope:protobuf.opencb.VcfSample)
private static final org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample();
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VcfSample parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VcfSample(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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VcfRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf.opencb.VcfRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* 1 based
* May contain negative values but it's not likely
*
*
* int32 relative_start = 1;
* @return The relativeStart.
*/
int getRelativeStart();
/**
*
* May contain negative values but it's not likely
*
*
* int32 relative_end = 2;
* @return The relativeEnd.
*/
int getRelativeEnd();
/**
* string reference = 3;
* @return The reference.
*/
java.lang.String getReference();
/**
* string reference = 3;
* @return The bytes for reference.
*/
com.google.protobuf.ByteString
getReferenceBytes();
/**
* string alternate = 4;
* @return The alternate.
*/
java.lang.String getAlternate();
/**
* string alternate = 4;
* @return The bytes for alternate.
*/
com.google.protobuf.ByteString
getAlternateBytes();
/**
* float quality = 5;
* @return The quality.
*/
float getQuality();
/**
* .protobuf.opencb.VariantType type = 12;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .protobuf.opencb.VariantType type = 12;
* @return The type.
*/
org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType getType();
/**
* string call = 13;
* @return The call.
*/
java.lang.String getCall();
/**
* string call = 13;
* @return The bytes for call.
*/
com.google.protobuf.ByteString
getCallBytes();
/**
* uint32 filter_index = 6;
* @return The filterIndex.
*/
int getFilterIndex();
/**
* repeated string id_non_default = 7;
* @return A list containing the idNonDefault.
*/
java.util.List
getIdNonDefaultList();
/**
* repeated string id_non_default = 7;
* @return The count of idNonDefault.
*/
int getIdNonDefaultCount();
/**
* repeated string id_non_default = 7;
* @param index The index of the element to return.
* @return The idNonDefault at the given index.
*/
java.lang.String getIdNonDefault(int index);
/**
* repeated string id_non_default = 7;
* @param index The index of the value to return.
* @return The bytes of the idNonDefault at the given index.
*/
com.google.protobuf.ByteString
getIdNonDefaultBytes(int index);
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return A list containing the infoKeyIndex.
*/
java.util.List getInfoKeyIndexList();
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return The count of infoKeyIndex.
*/
int getInfoKeyIndexCount();
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param index The index of the element to return.
* @return The infoKeyIndex at the given index.
*/
int getInfoKeyIndex(int index);
/**
* repeated string info_value = 9;
* @return A list containing the infoValue.
*/
java.util.List
getInfoValueList();
/**
* repeated string info_value = 9;
* @return The count of infoValue.
*/
int getInfoValueCount();
/**
* repeated string info_value = 9;
* @param index The index of the element to return.
* @return The infoValue at the given index.
*/
java.lang.String getInfoValue(int index);
/**
* repeated string info_value = 9;
* @param index The index of the value to return.
* @return The bytes of the infoValue at the given index.
*/
com.google.protobuf.ByteString
getInfoValueBytes(int index);
/**
* uint32 formatIndex = 10;
* @return The formatIndex.
*/
int getFormatIndex();
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
java.util.List
getSamplesList();
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getSamples(int index);
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
int getSamplesCount();
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder>
getSamplesOrBuilderList();
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder getSamplesOrBuilder(
int index);
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
java.util.List
getSecondaryAlternatesList();
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate getSecondaryAlternates(int index);
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
int getSecondaryAlternatesCount();
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
java.util.List extends org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder>
getSecondaryAlternatesOrBuilderList();
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder getSecondaryAlternatesOrBuilder(
int index);
}
/**
* Protobuf type {@code protobuf.opencb.VcfRecord}
*/
public static final class VcfRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protobuf.opencb.VcfRecord)
VcfRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use VcfRecord.newBuilder() to construct.
private VcfRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VcfRecord() {
reference_ = "";
alternate_ = "";
type_ = 0;
call_ = "";
idNonDefault_ = com.google.protobuf.LazyStringArrayList.EMPTY;
infoKeyIndex_ = emptyIntList();
infoValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
samples_ = java.util.Collections.emptyList();
secondaryAlternates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VcfRecord();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VcfRecord(
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 8: {
relativeStart_ = input.readInt32();
break;
}
case 16: {
relativeEnd_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
reference_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
alternate_ = s;
break;
}
case 45: {
quality_ = input.readFloat();
break;
}
case 48: {
filterIndex_ = input.readUInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
idNonDefault_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
idNonDefault_.add(s);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
infoKeyIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
infoKeyIndex_.addInt(input.readUInt32());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
infoKeyIndex_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
infoKeyIndex_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
infoValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
infoValue_.add(s);
break;
}
case 80: {
formatIndex_ = input.readUInt32();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
samples_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
samples_.add(
input.readMessage(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.parser(), extensionRegistry));
break;
}
case 96: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
call_ = s;
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
secondaryAlternates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
secondaryAlternates_.add(
input.readMessage(org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.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)) {
idNonDefault_ = idNonDefault_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
infoKeyIndex_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
infoValue_ = infoValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
samples_ = java.util.Collections.unmodifiableList(samples_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
secondaryAlternates_ = java.util.Collections.unmodifiableList(secondaryAlternates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder.class);
}
public static final int RELATIVE_START_FIELD_NUMBER = 1;
private int relativeStart_;
/**
*
* 1 based
* May contain negative values but it's not likely
*
*
* int32 relative_start = 1;
* @return The relativeStart.
*/
public int getRelativeStart() {
return relativeStart_;
}
public static final int RELATIVE_END_FIELD_NUMBER = 2;
private int relativeEnd_;
/**
*
* May contain negative values but it's not likely
*
*
* int32 relative_end = 2;
* @return The relativeEnd.
*/
public int getRelativeEnd() {
return relativeEnd_;
}
public static final int REFERENCE_FIELD_NUMBER = 3;
private volatile java.lang.Object reference_;
/**
* string reference = 3;
* @return The reference.
*/
public java.lang.String getReference() {
java.lang.Object ref = reference_;
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();
reference_ = s;
return s;
}
}
/**
* string reference = 3;
* @return The bytes for reference.
*/
public com.google.protobuf.ByteString
getReferenceBytes() {
java.lang.Object ref = reference_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reference_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALTERNATE_FIELD_NUMBER = 4;
private volatile java.lang.Object alternate_;
/**
* string alternate = 4;
* @return The alternate.
*/
public java.lang.String getAlternate() {
java.lang.Object ref = alternate_;
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();
alternate_ = s;
return s;
}
}
/**
* string alternate = 4;
* @return The bytes for alternate.
*/
public com.google.protobuf.ByteString
getAlternateBytes() {
java.lang.Object ref = alternate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
alternate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALITY_FIELD_NUMBER = 5;
private float quality_;
/**
* float quality = 5;
* @return The quality.
*/
public float getQuality() {
return quality_;
}
public static final int TYPE_FIELD_NUMBER = 12;
private int type_;
/**
* .protobuf.opencb.VariantType type = 12;
* @return The enum numeric value on the wire for type.
*/
public int getTypeValue() {
return type_;
}
/**
* .protobuf.opencb.VariantType type = 12;
* @return The type.
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType getType() {
@SuppressWarnings("deprecation")
org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType result = org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.valueOf(type_);
return result == null ? org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.UNRECOGNIZED : result;
}
public static final int CALL_FIELD_NUMBER = 13;
private volatile java.lang.Object call_;
/**
* string call = 13;
* @return The call.
*/
public java.lang.String getCall() {
java.lang.Object ref = call_;
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();
call_ = s;
return s;
}
}
/**
* string call = 13;
* @return The bytes for call.
*/
public com.google.protobuf.ByteString
getCallBytes() {
java.lang.Object ref = call_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
call_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_INDEX_FIELD_NUMBER = 6;
private int filterIndex_;
/**
* uint32 filter_index = 6;
* @return The filterIndex.
*/
public int getFilterIndex() {
return filterIndex_;
}
public static final int ID_NON_DEFAULT_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList idNonDefault_;
/**
* repeated string id_non_default = 7;
* @return A list containing the idNonDefault.
*/
public com.google.protobuf.ProtocolStringList
getIdNonDefaultList() {
return idNonDefault_;
}
/**
* repeated string id_non_default = 7;
* @return The count of idNonDefault.
*/
public int getIdNonDefaultCount() {
return idNonDefault_.size();
}
/**
* repeated string id_non_default = 7;
* @param index The index of the element to return.
* @return The idNonDefault at the given index.
*/
public java.lang.String getIdNonDefault(int index) {
return idNonDefault_.get(index);
}
/**
* repeated string id_non_default = 7;
* @param index The index of the value to return.
* @return The bytes of the idNonDefault at the given index.
*/
public com.google.protobuf.ByteString
getIdNonDefaultBytes(int index) {
return idNonDefault_.getByteString(index);
}
public static final int INFO_KEY_INDEX_FIELD_NUMBER = 8;
private com.google.protobuf.Internal.IntList infoKeyIndex_;
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return A list containing the infoKeyIndex.
*/
public java.util.List
getInfoKeyIndexList() {
return infoKeyIndex_;
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return The count of infoKeyIndex.
*/
public int getInfoKeyIndexCount() {
return infoKeyIndex_.size();
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param index The index of the element to return.
* @return The infoKeyIndex at the given index.
*/
public int getInfoKeyIndex(int index) {
return infoKeyIndex_.getInt(index);
}
private int infoKeyIndexMemoizedSerializedSize = -1;
public static final int INFO_VALUE_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList infoValue_;
/**
* repeated string info_value = 9;
* @return A list containing the infoValue.
*/
public com.google.protobuf.ProtocolStringList
getInfoValueList() {
return infoValue_;
}
/**
* repeated string info_value = 9;
* @return The count of infoValue.
*/
public int getInfoValueCount() {
return infoValue_.size();
}
/**
* repeated string info_value = 9;
* @param index The index of the element to return.
* @return The infoValue at the given index.
*/
public java.lang.String getInfoValue(int index) {
return infoValue_.get(index);
}
/**
* repeated string info_value = 9;
* @param index The index of the value to return.
* @return The bytes of the infoValue at the given index.
*/
public com.google.protobuf.ByteString
getInfoValueBytes(int index) {
return infoValue_.getByteString(index);
}
public static final int FORMATINDEX_FIELD_NUMBER = 10;
private int formatIndex_;
/**
* uint32 formatIndex = 10;
* @return The formatIndex.
*/
public int getFormatIndex() {
return formatIndex_;
}
public static final int SAMPLES_FIELD_NUMBER = 11;
private java.util.List samples_;
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public java.util.List getSamplesList() {
return samples_;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder>
getSamplesOrBuilderList() {
return samples_;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public int getSamplesCount() {
return samples_.size();
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getSamples(int index) {
return samples_.get(index);
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder getSamplesOrBuilder(
int index) {
return samples_.get(index);
}
public static final int SECONDARYALTERNATES_FIELD_NUMBER = 14;
private java.util.List secondaryAlternates_;
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public java.util.List getSecondaryAlternatesList() {
return secondaryAlternates_;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder>
getSecondaryAlternatesOrBuilderList() {
return secondaryAlternates_;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public int getSecondaryAlternatesCount() {
return secondaryAlternates_.size();
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate getSecondaryAlternates(int index) {
return secondaryAlternates_.get(index);
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder getSecondaryAlternatesOrBuilder(
int index) {
return secondaryAlternates_.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 {
getSerializedSize();
if (relativeStart_ != 0) {
output.writeInt32(1, relativeStart_);
}
if (relativeEnd_ != 0) {
output.writeInt32(2, relativeEnd_);
}
if (!getReferenceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reference_);
}
if (!getAlternateBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, alternate_);
}
if (quality_ != 0F) {
output.writeFloat(5, quality_);
}
if (filterIndex_ != 0) {
output.writeUInt32(6, filterIndex_);
}
for (int i = 0; i < idNonDefault_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, idNonDefault_.getRaw(i));
}
if (getInfoKeyIndexList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(infoKeyIndexMemoizedSerializedSize);
}
for (int i = 0; i < infoKeyIndex_.size(); i++) {
output.writeUInt32NoTag(infoKeyIndex_.getInt(i));
}
for (int i = 0; i < infoValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, infoValue_.getRaw(i));
}
if (formatIndex_ != 0) {
output.writeUInt32(10, formatIndex_);
}
for (int i = 0; i < samples_.size(); i++) {
output.writeMessage(11, samples_.get(i));
}
if (type_ != org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.NO_VARIATION.getNumber()) {
output.writeEnum(12, type_);
}
if (!getCallBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, call_);
}
for (int i = 0; i < secondaryAlternates_.size(); i++) {
output.writeMessage(14, secondaryAlternates_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (relativeStart_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, relativeStart_);
}
if (relativeEnd_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, relativeEnd_);
}
if (!getReferenceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reference_);
}
if (!getAlternateBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, alternate_);
}
if (quality_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, quality_);
}
if (filterIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, filterIndex_);
}
{
int dataSize = 0;
for (int i = 0; i < idNonDefault_.size(); i++) {
dataSize += computeStringSizeNoTag(idNonDefault_.getRaw(i));
}
size += dataSize;
size += 1 * getIdNonDefaultList().size();
}
{
int dataSize = 0;
for (int i = 0; i < infoKeyIndex_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(infoKeyIndex_.getInt(i));
}
size += dataSize;
if (!getInfoKeyIndexList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
infoKeyIndexMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < infoValue_.size(); i++) {
dataSize += computeStringSizeNoTag(infoValue_.getRaw(i));
}
size += dataSize;
size += 1 * getInfoValueList().size();
}
if (formatIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, formatIndex_);
}
for (int i = 0; i < samples_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, samples_.get(i));
}
if (type_ != org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.NO_VARIATION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, type_);
}
if (!getCallBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, call_);
}
for (int i = 0; i < secondaryAlternates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, secondaryAlternates_.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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord)) {
return super.equals(obj);
}
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord other = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord) obj;
if (getRelativeStart()
!= other.getRelativeStart()) return false;
if (getRelativeEnd()
!= other.getRelativeEnd()) return false;
if (!getReference()
.equals(other.getReference())) return false;
if (!getAlternate()
.equals(other.getAlternate())) return false;
if (java.lang.Float.floatToIntBits(getQuality())
!= java.lang.Float.floatToIntBits(
other.getQuality())) return false;
if (type_ != other.type_) return false;
if (!getCall()
.equals(other.getCall())) return false;
if (getFilterIndex()
!= other.getFilterIndex()) return false;
if (!getIdNonDefaultList()
.equals(other.getIdNonDefaultList())) return false;
if (!getInfoKeyIndexList()
.equals(other.getInfoKeyIndexList())) return false;
if (!getInfoValueList()
.equals(other.getInfoValueList())) return false;
if (getFormatIndex()
!= other.getFormatIndex()) return false;
if (!getSamplesList()
.equals(other.getSamplesList())) return false;
if (!getSecondaryAlternatesList()
.equals(other.getSecondaryAlternatesList())) 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) + RELATIVE_START_FIELD_NUMBER;
hash = (53 * hash) + getRelativeStart();
hash = (37 * hash) + RELATIVE_END_FIELD_NUMBER;
hash = (53 * hash) + getRelativeEnd();
hash = (37 * hash) + REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getReference().hashCode();
hash = (37 * hash) + ALTERNATE_FIELD_NUMBER;
hash = (53 * hash) + getAlternate().hashCode();
hash = (37 * hash) + QUALITY_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getQuality());
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + CALL_FIELD_NUMBER;
hash = (53 * hash) + getCall().hashCode();
hash = (37 * hash) + FILTER_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getFilterIndex();
if (getIdNonDefaultCount() > 0) {
hash = (37 * hash) + ID_NON_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getIdNonDefaultList().hashCode();
}
if (getInfoKeyIndexCount() > 0) {
hash = (37 * hash) + INFO_KEY_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getInfoKeyIndexList().hashCode();
}
if (getInfoValueCount() > 0) {
hash = (37 * hash) + INFO_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInfoValueList().hashCode();
}
hash = (37 * hash) + FORMATINDEX_FIELD_NUMBER;
hash = (53 * hash) + getFormatIndex();
if (getSamplesCount() > 0) {
hash = (37 * hash) + SAMPLES_FIELD_NUMBER;
hash = (53 * hash) + getSamplesList().hashCode();
}
if (getSecondaryAlternatesCount() > 0) {
hash = (37 * hash) + SECONDARYALTERNATES_FIELD_NUMBER;
hash = (53 * hash) + getSecondaryAlternatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord 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 protobuf.opencb.VcfRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf.opencb.VcfRecord)
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder.class);
}
// Construct using org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSamplesFieldBuilder();
getSecondaryAlternatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
relativeStart_ = 0;
relativeEnd_ = 0;
reference_ = "";
alternate_ = "";
quality_ = 0F;
type_ = 0;
call_ = "";
filterIndex_ = 0;
idNonDefault_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
infoKeyIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
infoValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
formatIndex_ = 0;
if (samplesBuilder_ == null) {
samples_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
samplesBuilder_.clear();
}
if (secondaryAlternatesBuilder_ == null) {
secondaryAlternates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
secondaryAlternatesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfRecord_descriptor;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getDefaultInstanceForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.getDefaultInstance();
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord build() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord buildPartial() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord result = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord(this);
int from_bitField0_ = bitField0_;
result.relativeStart_ = relativeStart_;
result.relativeEnd_ = relativeEnd_;
result.reference_ = reference_;
result.alternate_ = alternate_;
result.quality_ = quality_;
result.type_ = type_;
result.call_ = call_;
result.filterIndex_ = filterIndex_;
if (((bitField0_ & 0x00000001) != 0)) {
idNonDefault_ = idNonDefault_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.idNonDefault_ = idNonDefault_;
if (((bitField0_ & 0x00000002) != 0)) {
infoKeyIndex_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.infoKeyIndex_ = infoKeyIndex_;
if (((bitField0_ & 0x00000004) != 0)) {
infoValue_ = infoValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.infoValue_ = infoValue_;
result.formatIndex_ = formatIndex_;
if (samplesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
samples_ = java.util.Collections.unmodifiableList(samples_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.samples_ = samples_;
} else {
result.samples_ = samplesBuilder_.build();
}
if (secondaryAlternatesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
secondaryAlternates_ = java.util.Collections.unmodifiableList(secondaryAlternates_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.secondaryAlternates_ = secondaryAlternates_;
} else {
result.secondaryAlternates_ = secondaryAlternatesBuilder_.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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord) {
return mergeFrom((org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord other) {
if (other == org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.getDefaultInstance()) return this;
if (other.getRelativeStart() != 0) {
setRelativeStart(other.getRelativeStart());
}
if (other.getRelativeEnd() != 0) {
setRelativeEnd(other.getRelativeEnd());
}
if (!other.getReference().isEmpty()) {
reference_ = other.reference_;
onChanged();
}
if (!other.getAlternate().isEmpty()) {
alternate_ = other.alternate_;
onChanged();
}
if (other.getQuality() != 0F) {
setQuality(other.getQuality());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getCall().isEmpty()) {
call_ = other.call_;
onChanged();
}
if (other.getFilterIndex() != 0) {
setFilterIndex(other.getFilterIndex());
}
if (!other.idNonDefault_.isEmpty()) {
if (idNonDefault_.isEmpty()) {
idNonDefault_ = other.idNonDefault_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdNonDefaultIsMutable();
idNonDefault_.addAll(other.idNonDefault_);
}
onChanged();
}
if (!other.infoKeyIndex_.isEmpty()) {
if (infoKeyIndex_.isEmpty()) {
infoKeyIndex_ = other.infoKeyIndex_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureInfoKeyIndexIsMutable();
infoKeyIndex_.addAll(other.infoKeyIndex_);
}
onChanged();
}
if (!other.infoValue_.isEmpty()) {
if (infoValue_.isEmpty()) {
infoValue_ = other.infoValue_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInfoValueIsMutable();
infoValue_.addAll(other.infoValue_);
}
onChanged();
}
if (other.getFormatIndex() != 0) {
setFormatIndex(other.getFormatIndex());
}
if (samplesBuilder_ == null) {
if (!other.samples_.isEmpty()) {
if (samples_.isEmpty()) {
samples_ = other.samples_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSamplesIsMutable();
samples_.addAll(other.samples_);
}
onChanged();
}
} else {
if (!other.samples_.isEmpty()) {
if (samplesBuilder_.isEmpty()) {
samplesBuilder_.dispose();
samplesBuilder_ = null;
samples_ = other.samples_;
bitField0_ = (bitField0_ & ~0x00000008);
samplesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSamplesFieldBuilder() : null;
} else {
samplesBuilder_.addAllMessages(other.samples_);
}
}
}
if (secondaryAlternatesBuilder_ == null) {
if (!other.secondaryAlternates_.isEmpty()) {
if (secondaryAlternates_.isEmpty()) {
secondaryAlternates_ = other.secondaryAlternates_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.addAll(other.secondaryAlternates_);
}
onChanged();
}
} else {
if (!other.secondaryAlternates_.isEmpty()) {
if (secondaryAlternatesBuilder_.isEmpty()) {
secondaryAlternatesBuilder_.dispose();
secondaryAlternatesBuilder_ = null;
secondaryAlternates_ = other.secondaryAlternates_;
bitField0_ = (bitField0_ & ~0x00000010);
secondaryAlternatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSecondaryAlternatesFieldBuilder() : null;
} else {
secondaryAlternatesBuilder_.addAllMessages(other.secondaryAlternates_);
}
}
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int relativeStart_ ;
/**
*
* 1 based
* May contain negative values but it's not likely
*
*
* int32 relative_start = 1;
* @return The relativeStart.
*/
public int getRelativeStart() {
return relativeStart_;
}
/**
*
* 1 based
* May contain negative values but it's not likely
*
*
* int32 relative_start = 1;
* @param value The relativeStart to set.
* @return This builder for chaining.
*/
public Builder setRelativeStart(int value) {
relativeStart_ = value;
onChanged();
return this;
}
/**
*
* 1 based
* May contain negative values but it's not likely
*
*
* int32 relative_start = 1;
* @return This builder for chaining.
*/
public Builder clearRelativeStart() {
relativeStart_ = 0;
onChanged();
return this;
}
private int relativeEnd_ ;
/**
*
* May contain negative values but it's not likely
*
*
* int32 relative_end = 2;
* @return The relativeEnd.
*/
public int getRelativeEnd() {
return relativeEnd_;
}
/**
*
* May contain negative values but it's not likely
*
*
* int32 relative_end = 2;
* @param value The relativeEnd to set.
* @return This builder for chaining.
*/
public Builder setRelativeEnd(int value) {
relativeEnd_ = value;
onChanged();
return this;
}
/**
*
* May contain negative values but it's not likely
*
*
* int32 relative_end = 2;
* @return This builder for chaining.
*/
public Builder clearRelativeEnd() {
relativeEnd_ = 0;
onChanged();
return this;
}
private java.lang.Object reference_ = "";
/**
* string reference = 3;
* @return The reference.
*/
public java.lang.String getReference() {
java.lang.Object ref = reference_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reference_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string reference = 3;
* @return The bytes for reference.
*/
public com.google.protobuf.ByteString
getReferenceBytes() {
java.lang.Object ref = reference_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reference_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string reference = 3;
* @param value The reference to set.
* @return This builder for chaining.
*/
public Builder setReference(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reference_ = value;
onChanged();
return this;
}
/**
* string reference = 3;
* @return This builder for chaining.
*/
public Builder clearReference() {
reference_ = getDefaultInstance().getReference();
onChanged();
return this;
}
/**
* string reference = 3;
* @param value The bytes for reference to set.
* @return This builder for chaining.
*/
public Builder setReferenceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reference_ = value;
onChanged();
return this;
}
private java.lang.Object alternate_ = "";
/**
* string alternate = 4;
* @return The alternate.
*/
public java.lang.String getAlternate() {
java.lang.Object ref = alternate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
alternate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string alternate = 4;
* @return The bytes for alternate.
*/
public com.google.protobuf.ByteString
getAlternateBytes() {
java.lang.Object ref = alternate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
alternate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string alternate = 4;
* @param value The alternate to set.
* @return This builder for chaining.
*/
public Builder setAlternate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
alternate_ = value;
onChanged();
return this;
}
/**
* string alternate = 4;
* @return This builder for chaining.
*/
public Builder clearAlternate() {
alternate_ = getDefaultInstance().getAlternate();
onChanged();
return this;
}
/**
* string alternate = 4;
* @param value The bytes for alternate to set.
* @return This builder for chaining.
*/
public Builder setAlternateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
alternate_ = value;
onChanged();
return this;
}
private float quality_ ;
/**
* float quality = 5;
* @return The quality.
*/
public float getQuality() {
return quality_;
}
/**
* float quality = 5;
* @param value The quality to set.
* @return This builder for chaining.
*/
public Builder setQuality(float value) {
quality_ = value;
onChanged();
return this;
}
/**
* float quality = 5;
* @return This builder for chaining.
*/
public Builder clearQuality() {
quality_ = 0F;
onChanged();
return this;
}
private int type_ = 0;
/**
* .protobuf.opencb.VariantType type = 12;
* @return The enum numeric value on the wire for type.
*/
public int getTypeValue() {
return type_;
}
/**
* .protobuf.opencb.VariantType type = 12;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .protobuf.opencb.VariantType type = 12;
* @return The type.
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType getType() {
@SuppressWarnings("deprecation")
org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType result = org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.valueOf(type_);
return result == null ? org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType.UNRECOGNIZED : result;
}
/**
* .protobuf.opencb.VariantType type = 12;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.opencb.biodata.models.variant.protobuf.VariantProto.VariantType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .protobuf.opencb.VariantType type = 12;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object call_ = "";
/**
* string call = 13;
* @return The call.
*/
public java.lang.String getCall() {
java.lang.Object ref = call_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
call_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string call = 13;
* @return The bytes for call.
*/
public com.google.protobuf.ByteString
getCallBytes() {
java.lang.Object ref = call_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
call_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string call = 13;
* @param value The call to set.
* @return This builder for chaining.
*/
public Builder setCall(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
call_ = value;
onChanged();
return this;
}
/**
* string call = 13;
* @return This builder for chaining.
*/
public Builder clearCall() {
call_ = getDefaultInstance().getCall();
onChanged();
return this;
}
/**
* string call = 13;
* @param value The bytes for call to set.
* @return This builder for chaining.
*/
public Builder setCallBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
call_ = value;
onChanged();
return this;
}
private int filterIndex_ ;
/**
* uint32 filter_index = 6;
* @return The filterIndex.
*/
public int getFilterIndex() {
return filterIndex_;
}
/**
* uint32 filter_index = 6;
* @param value The filterIndex to set.
* @return This builder for chaining.
*/
public Builder setFilterIndex(int value) {
filterIndex_ = value;
onChanged();
return this;
}
/**
* uint32 filter_index = 6;
* @return This builder for chaining.
*/
public Builder clearFilterIndex() {
filterIndex_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList idNonDefault_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdNonDefaultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
idNonDefault_ = new com.google.protobuf.LazyStringArrayList(idNonDefault_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string id_non_default = 7;
* @return A list containing the idNonDefault.
*/
public com.google.protobuf.ProtocolStringList
getIdNonDefaultList() {
return idNonDefault_.getUnmodifiableView();
}
/**
* repeated string id_non_default = 7;
* @return The count of idNonDefault.
*/
public int getIdNonDefaultCount() {
return idNonDefault_.size();
}
/**
* repeated string id_non_default = 7;
* @param index The index of the element to return.
* @return The idNonDefault at the given index.
*/
public java.lang.String getIdNonDefault(int index) {
return idNonDefault_.get(index);
}
/**
* repeated string id_non_default = 7;
* @param index The index of the value to return.
* @return The bytes of the idNonDefault at the given index.
*/
public com.google.protobuf.ByteString
getIdNonDefaultBytes(int index) {
return idNonDefault_.getByteString(index);
}
/**
* repeated string id_non_default = 7;
* @param index The index to set the value at.
* @param value The idNonDefault to set.
* @return This builder for chaining.
*/
public Builder setIdNonDefault(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdNonDefaultIsMutable();
idNonDefault_.set(index, value);
onChanged();
return this;
}
/**
* repeated string id_non_default = 7;
* @param value The idNonDefault to add.
* @return This builder for chaining.
*/
public Builder addIdNonDefault(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdNonDefaultIsMutable();
idNonDefault_.add(value);
onChanged();
return this;
}
/**
* repeated string id_non_default = 7;
* @param values The idNonDefault to add.
* @return This builder for chaining.
*/
public Builder addAllIdNonDefault(
java.lang.Iterable values) {
ensureIdNonDefaultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, idNonDefault_);
onChanged();
return this;
}
/**
* repeated string id_non_default = 7;
* @return This builder for chaining.
*/
public Builder clearIdNonDefault() {
idNonDefault_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string id_non_default = 7;
* @param value The bytes of the idNonDefault to add.
* @return This builder for chaining.
*/
public Builder addIdNonDefaultBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIdNonDefaultIsMutable();
idNonDefault_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList infoKeyIndex_ = emptyIntList();
private void ensureInfoKeyIndexIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
infoKeyIndex_ = mutableCopy(infoKeyIndex_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return A list containing the infoKeyIndex.
*/
public java.util.List
getInfoKeyIndexList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(infoKeyIndex_) : infoKeyIndex_;
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return The count of infoKeyIndex.
*/
public int getInfoKeyIndexCount() {
return infoKeyIndex_.size();
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param index The index of the element to return.
* @return The infoKeyIndex at the given index.
*/
public int getInfoKeyIndex(int index) {
return infoKeyIndex_.getInt(index);
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param index The index to set the value at.
* @param value The infoKeyIndex to set.
* @return This builder for chaining.
*/
public Builder setInfoKeyIndex(
int index, int value) {
ensureInfoKeyIndexIsMutable();
infoKeyIndex_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param value The infoKeyIndex to add.
* @return This builder for chaining.
*/
public Builder addInfoKeyIndex(int value) {
ensureInfoKeyIndexIsMutable();
infoKeyIndex_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @param values The infoKeyIndex to add.
* @return This builder for chaining.
*/
public Builder addAllInfoKeyIndex(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInfoKeyIndexIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, infoKeyIndex_);
onChanged();
return this;
}
/**
* repeated uint32 info_key_index = 8 [packed = true];
* @return This builder for chaining.
*/
public Builder clearInfoKeyIndex() {
infoKeyIndex_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList infoValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInfoValueIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
infoValue_ = new com.google.protobuf.LazyStringArrayList(infoValue_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string info_value = 9;
* @return A list containing the infoValue.
*/
public com.google.protobuf.ProtocolStringList
getInfoValueList() {
return infoValue_.getUnmodifiableView();
}
/**
* repeated string info_value = 9;
* @return The count of infoValue.
*/
public int getInfoValueCount() {
return infoValue_.size();
}
/**
* repeated string info_value = 9;
* @param index The index of the element to return.
* @return The infoValue at the given index.
*/
public java.lang.String getInfoValue(int index) {
return infoValue_.get(index);
}
/**
* repeated string info_value = 9;
* @param index The index of the value to return.
* @return The bytes of the infoValue at the given index.
*/
public com.google.protobuf.ByteString
getInfoValueBytes(int index) {
return infoValue_.getByteString(index);
}
/**
* repeated string info_value = 9;
* @param index The index to set the value at.
* @param value The infoValue to set.
* @return This builder for chaining.
*/
public Builder setInfoValue(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInfoValueIsMutable();
infoValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated string info_value = 9;
* @param value The infoValue to add.
* @return This builder for chaining.
*/
public Builder addInfoValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInfoValueIsMutable();
infoValue_.add(value);
onChanged();
return this;
}
/**
* repeated string info_value = 9;
* @param values The infoValue to add.
* @return This builder for chaining.
*/
public Builder addAllInfoValue(
java.lang.Iterable values) {
ensureInfoValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, infoValue_);
onChanged();
return this;
}
/**
* repeated string info_value = 9;
* @return This builder for chaining.
*/
public Builder clearInfoValue() {
infoValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string info_value = 9;
* @param value The bytes of the infoValue to add.
* @return This builder for chaining.
*/
public Builder addInfoValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInfoValueIsMutable();
infoValue_.add(value);
onChanged();
return this;
}
private int formatIndex_ ;
/**
* uint32 formatIndex = 10;
* @return The formatIndex.
*/
public int getFormatIndex() {
return formatIndex_;
}
/**
* uint32 formatIndex = 10;
* @param value The formatIndex to set.
* @return This builder for chaining.
*/
public Builder setFormatIndex(int value) {
formatIndex_ = value;
onChanged();
return this;
}
/**
* uint32 formatIndex = 10;
* @return This builder for chaining.
*/
public Builder clearFormatIndex() {
formatIndex_ = 0;
onChanged();
return this;
}
private java.util.List samples_ =
java.util.Collections.emptyList();
private void ensureSamplesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
samples_ = new java.util.ArrayList(samples_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder> samplesBuilder_;
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public java.util.List getSamplesList() {
if (samplesBuilder_ == null) {
return java.util.Collections.unmodifiableList(samples_);
} else {
return samplesBuilder_.getMessageList();
}
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public int getSamplesCount() {
if (samplesBuilder_ == null) {
return samples_.size();
} else {
return samplesBuilder_.getCount();
}
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample getSamples(int index) {
if (samplesBuilder_ == null) {
return samples_.get(index);
} else {
return samplesBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder setSamples(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample value) {
if (samplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSamplesIsMutable();
samples_.set(index, value);
onChanged();
} else {
samplesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder setSamples(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder builderForValue) {
if (samplesBuilder_ == null) {
ensureSamplesIsMutable();
samples_.set(index, builderForValue.build());
onChanged();
} else {
samplesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder addSamples(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample value) {
if (samplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSamplesIsMutable();
samples_.add(value);
onChanged();
} else {
samplesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder addSamples(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample value) {
if (samplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSamplesIsMutable();
samples_.add(index, value);
onChanged();
} else {
samplesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder addSamples(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder builderForValue) {
if (samplesBuilder_ == null) {
ensureSamplesIsMutable();
samples_.add(builderForValue.build());
onChanged();
} else {
samplesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder addSamples(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder builderForValue) {
if (samplesBuilder_ == null) {
ensureSamplesIsMutable();
samples_.add(index, builderForValue.build());
onChanged();
} else {
samplesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder addAllSamples(
java.lang.Iterable extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample> values) {
if (samplesBuilder_ == null) {
ensureSamplesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, samples_);
onChanged();
} else {
samplesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder clearSamples() {
if (samplesBuilder_ == null) {
samples_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
samplesBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public Builder removeSamples(int index) {
if (samplesBuilder_ == null) {
ensureSamplesIsMutable();
samples_.remove(index);
onChanged();
} else {
samplesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder getSamplesBuilder(
int index) {
return getSamplesFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder getSamplesOrBuilder(
int index) {
if (samplesBuilder_ == null) {
return samples_.get(index); } else {
return samplesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder>
getSamplesOrBuilderList() {
if (samplesBuilder_ != null) {
return samplesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(samples_);
}
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder addSamplesBuilder() {
return getSamplesFieldBuilder().addBuilder(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.getDefaultInstance());
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder addSamplesBuilder(
int index) {
return getSamplesFieldBuilder().addBuilder(
index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.getDefaultInstance());
}
/**
* repeated .protobuf.opencb.VcfSample samples = 11;
*/
public java.util.List
getSamplesBuilderList() {
return getSamplesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder>
getSamplesFieldBuilder() {
if (samplesBuilder_ == null) {
samplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSample.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSampleOrBuilder>(
samples_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
samples_ = null;
}
return samplesBuilder_;
}
private java.util.List secondaryAlternates_ =
java.util.Collections.emptyList();
private void ensureSecondaryAlternatesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
secondaryAlternates_ = new java.util.ArrayList(secondaryAlternates_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder> secondaryAlternatesBuilder_;
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public java.util.List getSecondaryAlternatesList() {
if (secondaryAlternatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(secondaryAlternates_);
} else {
return secondaryAlternatesBuilder_.getMessageList();
}
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public int getSecondaryAlternatesCount() {
if (secondaryAlternatesBuilder_ == null) {
return secondaryAlternates_.size();
} else {
return secondaryAlternatesBuilder_.getCount();
}
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate getSecondaryAlternates(int index) {
if (secondaryAlternatesBuilder_ == null) {
return secondaryAlternates_.get(index);
} else {
return secondaryAlternatesBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder setSecondaryAlternates(
int index, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate value) {
if (secondaryAlternatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.set(index, value);
onChanged();
} else {
secondaryAlternatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder setSecondaryAlternates(
int index, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder builderForValue) {
if (secondaryAlternatesBuilder_ == null) {
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.set(index, builderForValue.build());
onChanged();
} else {
secondaryAlternatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder addSecondaryAlternates(org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate value) {
if (secondaryAlternatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.add(value);
onChanged();
} else {
secondaryAlternatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder addSecondaryAlternates(
int index, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate value) {
if (secondaryAlternatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.add(index, value);
onChanged();
} else {
secondaryAlternatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder addSecondaryAlternates(
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder builderForValue) {
if (secondaryAlternatesBuilder_ == null) {
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.add(builderForValue.build());
onChanged();
} else {
secondaryAlternatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder addSecondaryAlternates(
int index, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder builderForValue) {
if (secondaryAlternatesBuilder_ == null) {
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.add(index, builderForValue.build());
onChanged();
} else {
secondaryAlternatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder addAllSecondaryAlternates(
java.lang.Iterable extends org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate> values) {
if (secondaryAlternatesBuilder_ == null) {
ensureSecondaryAlternatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, secondaryAlternates_);
onChanged();
} else {
secondaryAlternatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder clearSecondaryAlternates() {
if (secondaryAlternatesBuilder_ == null) {
secondaryAlternates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
secondaryAlternatesBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public Builder removeSecondaryAlternates(int index) {
if (secondaryAlternatesBuilder_ == null) {
ensureSecondaryAlternatesIsMutable();
secondaryAlternates_.remove(index);
onChanged();
} else {
secondaryAlternatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder getSecondaryAlternatesBuilder(
int index) {
return getSecondaryAlternatesFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder getSecondaryAlternatesOrBuilder(
int index) {
if (secondaryAlternatesBuilder_ == null) {
return secondaryAlternates_.get(index); } else {
return secondaryAlternatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder>
getSecondaryAlternatesOrBuilderList() {
if (secondaryAlternatesBuilder_ != null) {
return secondaryAlternatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(secondaryAlternates_);
}
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder addSecondaryAlternatesBuilder() {
return getSecondaryAlternatesFieldBuilder().addBuilder(
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.getDefaultInstance());
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder addSecondaryAlternatesBuilder(
int index) {
return getSecondaryAlternatesFieldBuilder().addBuilder(
index, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.getDefaultInstance());
}
/**
* repeated .protobuf.opencb.AlternateCoordinate secondaryAlternates = 14;
*/
public java.util.List
getSecondaryAlternatesBuilderList() {
return getSecondaryAlternatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder>
getSecondaryAlternatesFieldBuilder() {
if (secondaryAlternatesBuilder_ == null) {
secondaryAlternatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinate.Builder, org.opencb.biodata.models.variant.protobuf.VariantProto.AlternateCoordinateOrBuilder>(
secondaryAlternates_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
secondaryAlternates_ = null;
}
return secondaryAlternatesBuilder_;
}
@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:protobuf.opencb.VcfRecord)
}
// @@protoc_insertion_point(class_scope:protobuf.opencb.VcfRecord)
private static final org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord();
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VcfRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VcfRecord(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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf.opencb.Fields)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string info_keys = 1;
* @return A list containing the infoKeys.
*/
java.util.List
getInfoKeysList();
/**
* repeated string info_keys = 1;
* @return The count of infoKeys.
*/
int getInfoKeysCount();
/**
* repeated string info_keys = 1;
* @param index The index of the element to return.
* @return The infoKeys at the given index.
*/
java.lang.String getInfoKeys(int index);
/**
* repeated string info_keys = 1;
* @param index The index of the value to return.
* @return The bytes of the infoKeys at the given index.
*/
com.google.protobuf.ByteString
getInfoKeysBytes(int index);
/**
* repeated uint32 default_info_keys = 2;
* @return A list containing the defaultInfoKeys.
*/
java.util.List getDefaultInfoKeysList();
/**
* repeated uint32 default_info_keys = 2;
* @return The count of defaultInfoKeys.
*/
int getDefaultInfoKeysCount();
/**
* repeated uint32 default_info_keys = 2;
* @param index The index of the element to return.
* @return The defaultInfoKeys at the given index.
*/
int getDefaultInfoKeys(int index);
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return A list containing the filters.
*/
java.util.List
getFiltersList();
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return The count of filters.
*/
int getFiltersCount();
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the element to return.
* @return The filters at the given index.
*/
java.lang.String getFilters(int index);
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the value to return.
* @return The bytes of the filters at the given index.
*/
com.google.protobuf.ByteString
getFiltersBytes(int index);
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return A list containing the formats.
*/
java.util.List
getFormatsList();
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return The count of formats.
*/
int getFormatsCount();
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the element to return.
* @return The formats at the given index.
*/
java.lang.String getFormats(int index);
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the value to return.
* @return The bytes of the formats at the given index.
*/
com.google.protobuf.ByteString
getFormatsBytes(int index);
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return A list containing the gts.
*/
java.util.List
getGtsList();
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return The count of gts.
*/
int getGtsCount();
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the element to return.
* @return The gts at the given index.
*/
java.lang.String getGts(int index);
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the value to return.
* @return The bytes of the gts at the given index.
*/
com.google.protobuf.ByteString
getGtsBytes(int index);
}
/**
* Protobuf type {@code protobuf.opencb.Fields}
*/
public static final class Fields extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protobuf.opencb.Fields)
FieldsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Fields.newBuilder() to construct.
private Fields(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fields() {
infoKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
defaultInfoKeys_ = emptyIntList();
filters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
formats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
gts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Fields();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Fields(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
infoKeys_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
infoKeys_.add(s);
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
defaultInfoKeys_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
defaultInfoKeys_.addInt(input.readUInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
defaultInfoKeys_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
defaultInfoKeys_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
filters_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
filters_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
formats_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
formats_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
gts_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
gts_.add(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)) {
infoKeys_ = infoKeys_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
defaultInfoKeys_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
filters_ = filters_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
formats_ = formats_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
gts_ = gts_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_Fields_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_Fields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder.class);
}
public static final int INFO_KEYS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList infoKeys_;
/**
* repeated string info_keys = 1;
* @return A list containing the infoKeys.
*/
public com.google.protobuf.ProtocolStringList
getInfoKeysList() {
return infoKeys_;
}
/**
* repeated string info_keys = 1;
* @return The count of infoKeys.
*/
public int getInfoKeysCount() {
return infoKeys_.size();
}
/**
* repeated string info_keys = 1;
* @param index The index of the element to return.
* @return The infoKeys at the given index.
*/
public java.lang.String getInfoKeys(int index) {
return infoKeys_.get(index);
}
/**
* repeated string info_keys = 1;
* @param index The index of the value to return.
* @return The bytes of the infoKeys at the given index.
*/
public com.google.protobuf.ByteString
getInfoKeysBytes(int index) {
return infoKeys_.getByteString(index);
}
public static final int DEFAULT_INFO_KEYS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.IntList defaultInfoKeys_;
/**
* repeated uint32 default_info_keys = 2;
* @return A list containing the defaultInfoKeys.
*/
public java.util.List
getDefaultInfoKeysList() {
return defaultInfoKeys_;
}
/**
* repeated uint32 default_info_keys = 2;
* @return The count of defaultInfoKeys.
*/
public int getDefaultInfoKeysCount() {
return defaultInfoKeys_.size();
}
/**
* repeated uint32 default_info_keys = 2;
* @param index The index of the element to return.
* @return The defaultInfoKeys at the given index.
*/
public int getDefaultInfoKeys(int index) {
return defaultInfoKeys_.getInt(index);
}
private int defaultInfoKeysMemoizedSerializedSize = -1;
public static final int FILTERS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList filters_;
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return A list containing the filters.
*/
public com.google.protobuf.ProtocolStringList
getFiltersList() {
return filters_;
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return The count of filters.
*/
public int getFiltersCount() {
return filters_.size();
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the element to return.
* @return The filters at the given index.
*/
public java.lang.String getFilters(int index) {
return filters_.get(index);
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the value to return.
* @return The bytes of the filters at the given index.
*/
public com.google.protobuf.ByteString
getFiltersBytes(int index) {
return filters_.getByteString(index);
}
public static final int FORMATS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList formats_;
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return A list containing the formats.
*/
public com.google.protobuf.ProtocolStringList
getFormatsList() {
return formats_;
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return The count of formats.
*/
public int getFormatsCount() {
return formats_.size();
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the element to return.
* @return The formats at the given index.
*/
public java.lang.String getFormats(int index) {
return formats_.get(index);
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the value to return.
* @return The bytes of the formats at the given index.
*/
public com.google.protobuf.ByteString
getFormatsBytes(int index) {
return formats_.getByteString(index);
}
public static final int GTS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList gts_;
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return A list containing the gts.
*/
public com.google.protobuf.ProtocolStringList
getGtsList() {
return gts_;
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return The count of gts.
*/
public int getGtsCount() {
return gts_.size();
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the element to return.
* @return The gts at the given index.
*/
public java.lang.String getGts(int index) {
return gts_.get(index);
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the value to return.
* @return The bytes of the gts at the given index.
*/
public com.google.protobuf.ByteString
getGtsBytes(int index) {
return gts_.getByteString(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 {
getSerializedSize();
for (int i = 0; i < infoKeys_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, infoKeys_.getRaw(i));
}
if (getDefaultInfoKeysList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(defaultInfoKeysMemoizedSerializedSize);
}
for (int i = 0; i < defaultInfoKeys_.size(); i++) {
output.writeUInt32NoTag(defaultInfoKeys_.getInt(i));
}
for (int i = 0; i < filters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filters_.getRaw(i));
}
for (int i = 0; i < formats_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, formats_.getRaw(i));
}
for (int i = 0; i < gts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gts_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < infoKeys_.size(); i++) {
dataSize += computeStringSizeNoTag(infoKeys_.getRaw(i));
}
size += dataSize;
size += 1 * getInfoKeysList().size();
}
{
int dataSize = 0;
for (int i = 0; i < defaultInfoKeys_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(defaultInfoKeys_.getInt(i));
}
size += dataSize;
if (!getDefaultInfoKeysList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
defaultInfoKeysMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < filters_.size(); i++) {
dataSize += computeStringSizeNoTag(filters_.getRaw(i));
}
size += dataSize;
size += 1 * getFiltersList().size();
}
{
int dataSize = 0;
for (int i = 0; i < formats_.size(); i++) {
dataSize += computeStringSizeNoTag(formats_.getRaw(i));
}
size += dataSize;
size += 1 * getFormatsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < gts_.size(); i++) {
dataSize += computeStringSizeNoTag(gts_.getRaw(i));
}
size += dataSize;
size += 1 * getGtsList().size();
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields)) {
return super.equals(obj);
}
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields other = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields) obj;
if (!getInfoKeysList()
.equals(other.getInfoKeysList())) return false;
if (!getDefaultInfoKeysList()
.equals(other.getDefaultInfoKeysList())) return false;
if (!getFiltersList()
.equals(other.getFiltersList())) return false;
if (!getFormatsList()
.equals(other.getFormatsList())) return false;
if (!getGtsList()
.equals(other.getGtsList())) 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 (getInfoKeysCount() > 0) {
hash = (37 * hash) + INFO_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getInfoKeysList().hashCode();
}
if (getDefaultInfoKeysCount() > 0) {
hash = (37 * hash) + DEFAULT_INFO_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getDefaultInfoKeysList().hashCode();
}
if (getFiltersCount() > 0) {
hash = (37 * hash) + FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getFiltersList().hashCode();
}
if (getFormatsCount() > 0) {
hash = (37 * hash) + FORMATS_FIELD_NUMBER;
hash = (53 * hash) + getFormatsList().hashCode();
}
if (getGtsCount() > 0) {
hash = (37 * hash) + GTS_FIELD_NUMBER;
hash = (53 * hash) + getGtsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields 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 protobuf.opencb.Fields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf.opencb.Fields)
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_Fields_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_Fields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder.class);
}
// Construct using org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.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();
infoKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
defaultInfoKeys_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
filters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
formats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
gts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_Fields_descriptor;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getDefaultInstanceForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.getDefaultInstance();
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields build() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields buildPartial() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields result = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
infoKeys_ = infoKeys_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.infoKeys_ = infoKeys_;
if (((bitField0_ & 0x00000002) != 0)) {
defaultInfoKeys_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.defaultInfoKeys_ = defaultInfoKeys_;
if (((bitField0_ & 0x00000004) != 0)) {
filters_ = filters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.filters_ = filters_;
if (((bitField0_ & 0x00000008) != 0)) {
formats_ = formats_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.formats_ = formats_;
if (((bitField0_ & 0x00000010) != 0)) {
gts_ = gts_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.gts_ = gts_;
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields) {
return mergeFrom((org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields other) {
if (other == org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.getDefaultInstance()) return this;
if (!other.infoKeys_.isEmpty()) {
if (infoKeys_.isEmpty()) {
infoKeys_ = other.infoKeys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInfoKeysIsMutable();
infoKeys_.addAll(other.infoKeys_);
}
onChanged();
}
if (!other.defaultInfoKeys_.isEmpty()) {
if (defaultInfoKeys_.isEmpty()) {
defaultInfoKeys_ = other.defaultInfoKeys_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDefaultInfoKeysIsMutable();
defaultInfoKeys_.addAll(other.defaultInfoKeys_);
}
onChanged();
}
if (!other.filters_.isEmpty()) {
if (filters_.isEmpty()) {
filters_ = other.filters_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFiltersIsMutable();
filters_.addAll(other.filters_);
}
onChanged();
}
if (!other.formats_.isEmpty()) {
if (formats_.isEmpty()) {
formats_ = other.formats_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureFormatsIsMutable();
formats_.addAll(other.formats_);
}
onChanged();
}
if (!other.gts_.isEmpty()) {
if (gts_.isEmpty()) {
gts_ = other.gts_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureGtsIsMutable();
gts_.addAll(other.gts_);
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList infoKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInfoKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
infoKeys_ = new com.google.protobuf.LazyStringArrayList(infoKeys_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string info_keys = 1;
* @return A list containing the infoKeys.
*/
public com.google.protobuf.ProtocolStringList
getInfoKeysList() {
return infoKeys_.getUnmodifiableView();
}
/**
* repeated string info_keys = 1;
* @return The count of infoKeys.
*/
public int getInfoKeysCount() {
return infoKeys_.size();
}
/**
* repeated string info_keys = 1;
* @param index The index of the element to return.
* @return The infoKeys at the given index.
*/
public java.lang.String getInfoKeys(int index) {
return infoKeys_.get(index);
}
/**
* repeated string info_keys = 1;
* @param index The index of the value to return.
* @return The bytes of the infoKeys at the given index.
*/
public com.google.protobuf.ByteString
getInfoKeysBytes(int index) {
return infoKeys_.getByteString(index);
}
/**
* repeated string info_keys = 1;
* @param index The index to set the value at.
* @param value The infoKeys to set.
* @return This builder for chaining.
*/
public Builder setInfoKeys(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInfoKeysIsMutable();
infoKeys_.set(index, value);
onChanged();
return this;
}
/**
* repeated string info_keys = 1;
* @param value The infoKeys to add.
* @return This builder for chaining.
*/
public Builder addInfoKeys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInfoKeysIsMutable();
infoKeys_.add(value);
onChanged();
return this;
}
/**
* repeated string info_keys = 1;
* @param values The infoKeys to add.
* @return This builder for chaining.
*/
public Builder addAllInfoKeys(
java.lang.Iterable values) {
ensureInfoKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, infoKeys_);
onChanged();
return this;
}
/**
* repeated string info_keys = 1;
* @return This builder for chaining.
*/
public Builder clearInfoKeys() {
infoKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string info_keys = 1;
* @param value The bytes of the infoKeys to add.
* @return This builder for chaining.
*/
public Builder addInfoKeysBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInfoKeysIsMutable();
infoKeys_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList defaultInfoKeys_ = emptyIntList();
private void ensureDefaultInfoKeysIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
defaultInfoKeys_ = mutableCopy(defaultInfoKeys_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 default_info_keys = 2;
* @return A list containing the defaultInfoKeys.
*/
public java.util.List
getDefaultInfoKeysList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(defaultInfoKeys_) : defaultInfoKeys_;
}
/**
* repeated uint32 default_info_keys = 2;
* @return The count of defaultInfoKeys.
*/
public int getDefaultInfoKeysCount() {
return defaultInfoKeys_.size();
}
/**
* repeated uint32 default_info_keys = 2;
* @param index The index of the element to return.
* @return The defaultInfoKeys at the given index.
*/
public int getDefaultInfoKeys(int index) {
return defaultInfoKeys_.getInt(index);
}
/**
* repeated uint32 default_info_keys = 2;
* @param index The index to set the value at.
* @param value The defaultInfoKeys to set.
* @return This builder for chaining.
*/
public Builder setDefaultInfoKeys(
int index, int value) {
ensureDefaultInfoKeysIsMutable();
defaultInfoKeys_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 default_info_keys = 2;
* @param value The defaultInfoKeys to add.
* @return This builder for chaining.
*/
public Builder addDefaultInfoKeys(int value) {
ensureDefaultInfoKeysIsMutable();
defaultInfoKeys_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 default_info_keys = 2;
* @param values The defaultInfoKeys to add.
* @return This builder for chaining.
*/
public Builder addAllDefaultInfoKeys(
java.lang.Iterable extends java.lang.Integer> values) {
ensureDefaultInfoKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, defaultInfoKeys_);
onChanged();
return this;
}
/**
* repeated uint32 default_info_keys = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultInfoKeys() {
defaultInfoKeys_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList filters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFiltersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
filters_ = new com.google.protobuf.LazyStringArrayList(filters_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return A list containing the filters.
*/
public com.google.protobuf.ProtocolStringList
getFiltersList() {
return filters_.getUnmodifiableView();
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return The count of filters.
*/
public int getFiltersCount() {
return filters_.size();
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the element to return.
* @return The filters at the given index.
*/
public java.lang.String getFilters(int index) {
return filters_.get(index);
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index of the value to return.
* @return The bytes of the filters at the given index.
*/
public com.google.protobuf.ByteString
getFiltersBytes(int index) {
return filters_.getByteString(index);
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param index The index to set the value at.
* @param value The filters to set.
* @return This builder for chaining.
*/
public Builder setFilters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.set(index, value);
onChanged();
return this;
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param value The filters to add.
* @return This builder for chaining.
*/
public Builder addFilters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.add(value);
onChanged();
return this;
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param values The filters to add.
* @return This builder for chaining.
*/
public Builder addAllFilters(
java.lang.Iterable values) {
ensureFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filters_);
onChanged();
return this;
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @return This builder for chaining.
*/
public Builder clearFilters() {
filters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Possible filter compositions. Delimited by ';'
* Where the first filter is the default one
*
*
* repeated string filters = 3;
* @param value The bytes of the filters to add.
* @return This builder for chaining.
*/
public Builder addFiltersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFiltersIsMutable();
filters_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList formats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFormatsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
formats_ = new com.google.protobuf.LazyStringArrayList(formats_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return A list containing the formats.
*/
public com.google.protobuf.ProtocolStringList
getFormatsList() {
return formats_.getUnmodifiableView();
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return The count of formats.
*/
public int getFormatsCount() {
return formats_.size();
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the element to return.
* @return The formats at the given index.
*/
public java.lang.String getFormats(int index) {
return formats_.get(index);
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index of the value to return.
* @return The bytes of the formats at the given index.
*/
public com.google.protobuf.ByteString
getFormatsBytes(int index) {
return formats_.getByteString(index);
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param index The index to set the value at.
* @param value The formats to set.
* @return This builder for chaining.
*/
public Builder setFormats(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFormatsIsMutable();
formats_.set(index, value);
onChanged();
return this;
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param value The formats to add.
* @return This builder for chaining.
*/
public Builder addFormats(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFormatsIsMutable();
formats_.add(value);
onChanged();
return this;
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param values The formats to add.
* @return This builder for chaining.
*/
public Builder addAllFormats(
java.lang.Iterable values) {
ensureFormatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, formats_);
onChanged();
return this;
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @return This builder for chaining.
*/
public Builder clearFormats() {
formats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Possible formats compositions. Delimited by ':'
* Where the first format is the default one
*
*
* repeated string formats = 5;
* @param value The bytes of the formats to add.
* @return This builder for chaining.
*/
public Builder addFormatsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFormatsIsMutable();
formats_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList gts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureGtsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
gts_ = new com.google.protobuf.LazyStringArrayList(gts_);
bitField0_ |= 0x00000010;
}
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return A list containing the gts.
*/
public com.google.protobuf.ProtocolStringList
getGtsList() {
return gts_.getUnmodifiableView();
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return The count of gts.
*/
public int getGtsCount() {
return gts_.size();
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the element to return.
* @return The gts at the given index.
*/
public java.lang.String getGts(int index) {
return gts_.get(index);
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index of the value to return.
* @return The bytes of the gts at the given index.
*/
public com.google.protobuf.ByteString
getGtsBytes(int index) {
return gts_.getByteString(index);
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param index The index to set the value at.
* @param value The gts to set.
* @return This builder for chaining.
*/
public Builder setGts(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGtsIsMutable();
gts_.set(index, value);
onChanged();
return this;
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param value The gts to add.
* @return This builder for chaining.
*/
public Builder addGts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGtsIsMutable();
gts_.add(value);
onChanged();
return this;
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param values The gts to add.
* @return This builder for chaining.
*/
public Builder addAllGts(
java.lang.Iterable values) {
ensureGtsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, gts_);
onChanged();
return this;
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @return This builder for chaining.
*/
public Builder clearGts() {
gts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Possible genotypes seen on the slice.
* Where the first GT is the default one
*
*
* repeated string gts = 6;
* @param value The bytes of the gts to add.
* @return This builder for chaining.
*/
public Builder addGtsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureGtsIsMutable();
gts_.add(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:protobuf.opencb.Fields)
}
// @@protoc_insertion_point(class_scope:protobuf.opencb.Fields)
private static final org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields();
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fields parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fields(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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VcfSliceOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf.opencb.VcfSlice)
com.google.protobuf.MessageOrBuilder {
/**
* string chromosome = 1;
* @return The chromosome.
*/
java.lang.String getChromosome();
/**
* string chromosome = 1;
* @return The bytes for chromosome.
*/
com.google.protobuf.ByteString
getChromosomeBytes();
/**
* uint32 position = 2;
* @return The position.
*/
int getPosition();
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
java.util.List
getRecordsList();
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getRecords(int index);
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
int getRecordsCount();
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder>
getRecordsOrBuilderList();
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder getRecordsOrBuilder(
int index);
/**
* .protobuf.opencb.Fields fields = 4;
* @return Whether the fields field is set.
*/
boolean hasFields();
/**
* .protobuf.opencb.Fields fields = 4;
* @return The fields.
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getFields();
/**
* .protobuf.opencb.Fields fields = 4;
*/
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder getFieldsOrBuilder();
}
/**
* Protobuf type {@code protobuf.opencb.VcfSlice}
*/
public static final class VcfSlice extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protobuf.opencb.VcfSlice)
VcfSliceOrBuilder {
private static final long serialVersionUID = 0L;
// Use VcfSlice.newBuilder() to construct.
private VcfSlice(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VcfSlice() {
chromosome_ = "";
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VcfSlice();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VcfSlice(
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();
chromosome_ = s;
break;
}
case 16: {
position_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
records_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
records_.add(
input.readMessage(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.parser(), extensionRegistry));
break;
}
case 34: {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder subBuilder = null;
if (fields_ != null) {
subBuilder = fields_.toBuilder();
}
fields_ = input.readMessage(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fields_);
fields_ = subBuilder.buildPartial();
}
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)) {
records_ = java.util.Collections.unmodifiableList(records_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSlice_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSlice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.Builder.class);
}
public static final int CHROMOSOME_FIELD_NUMBER = 1;
private volatile java.lang.Object chromosome_;
/**
* string chromosome = 1;
* @return The chromosome.
*/
public java.lang.String getChromosome() {
java.lang.Object ref = chromosome_;
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();
chromosome_ = s;
return s;
}
}
/**
* string chromosome = 1;
* @return The bytes for chromosome.
*/
public com.google.protobuf.ByteString
getChromosomeBytes() {
java.lang.Object ref = chromosome_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chromosome_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POSITION_FIELD_NUMBER = 2;
private int position_;
/**
* uint32 position = 2;
* @return The position.
*/
public int getPosition() {
return position_;
}
public static final int RECORDS_FIELD_NUMBER = 3;
private java.util.List records_;
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public java.util.List getRecordsList() {
return records_;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public int getRecordsCount() {
return records_.size();
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getRecords(int index) {
return records_.get(index);
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder getRecordsOrBuilder(
int index) {
return records_.get(index);
}
public static final int FIELDS_FIELD_NUMBER = 4;
private org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields fields_;
/**
* .protobuf.opencb.Fields fields = 4;
* @return Whether the fields field is set.
*/
public boolean hasFields() {
return fields_ != null;
}
/**
* .protobuf.opencb.Fields fields = 4;
* @return The fields.
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getFields() {
return fields_ == null ? org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.getDefaultInstance() : fields_;
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder getFieldsOrBuilder() {
return getFields();
}
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 (!getChromosomeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chromosome_);
}
if (position_ != 0) {
output.writeUInt32(2, position_);
}
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(3, records_.get(i));
}
if (fields_ != null) {
output.writeMessage(4, getFields());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChromosomeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chromosome_);
}
if (position_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, position_);
}
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, records_.get(i));
}
if (fields_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFields());
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice)) {
return super.equals(obj);
}
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice other = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice) obj;
if (!getChromosome()
.equals(other.getChromosome())) return false;
if (getPosition()
!= other.getPosition()) return false;
if (!getRecordsList()
.equals(other.getRecordsList())) return false;
if (hasFields() != other.hasFields()) return false;
if (hasFields()) {
if (!getFields()
.equals(other.getFields())) 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) + CHROMOSOME_FIELD_NUMBER;
hash = (53 * hash) + getChromosome().hashCode();
hash = (37 * hash) + POSITION_FIELD_NUMBER;
hash = (53 * hash) + getPosition();
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
if (hasFields()) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFields().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice 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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice 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 protobuf.opencb.VcfSlice}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf.opencb.VcfSlice)
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSliceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSlice_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSlice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.class, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.Builder.class);
}
// Construct using org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chromosome_ = "";
position_ = 0;
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
recordsBuilder_.clear();
}
if (fieldsBuilder_ == null) {
fields_ = null;
} else {
fields_ = null;
fieldsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.internal_static_protobuf_opencb_VcfSlice_descriptor;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice getDefaultInstanceForType() {
return org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.getDefaultInstance();
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice build() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice buildPartial() {
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice result = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice(this);
int from_bitField0_ = bitField0_;
result.chromosome_ = chromosome_;
result.position_ = position_;
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
if (fieldsBuilder_ == null) {
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice) {
return mergeFrom((org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice other) {
if (other == org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice.getDefaultInstance()) return this;
if (!other.getChromosome().isEmpty()) {
chromosome_ = other.chromosome_;
onChanged();
}
if (other.getPosition() != 0) {
setPosition(other.getPosition());
}
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000001);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
if (other.hasFields()) {
mergeFields(other.getFields());
}
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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object chromosome_ = "";
/**
* string chromosome = 1;
* @return The chromosome.
*/
public java.lang.String getChromosome() {
java.lang.Object ref = chromosome_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chromosome_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string chromosome = 1;
* @return The bytes for chromosome.
*/
public com.google.protobuf.ByteString
getChromosomeBytes() {
java.lang.Object ref = chromosome_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chromosome_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string chromosome = 1;
* @param value The chromosome to set.
* @return This builder for chaining.
*/
public Builder setChromosome(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chromosome_ = value;
onChanged();
return this;
}
/**
* string chromosome = 1;
* @return This builder for chaining.
*/
public Builder clearChromosome() {
chromosome_ = getDefaultInstance().getChromosome();
onChanged();
return this;
}
/**
* string chromosome = 1;
* @param value The bytes for chromosome to set.
* @return This builder for chaining.
*/
public Builder setChromosomeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chromosome_ = value;
onChanged();
return this;
}
private int position_ ;
/**
* uint32 position = 2;
* @return The position.
*/
public int getPosition() {
return position_;
}
/**
* uint32 position = 2;
* @param value The position to set.
* @return This builder for chaining.
*/
public Builder setPosition(int value) {
position_ = value;
onChanged();
return this;
}
/**
* uint32 position = 2;
* @return This builder for chaining.
*/
public Builder clearPosition() {
position_ = 0;
onChanged();
return this;
}
private java.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
records_ = new java.util.ArrayList(records_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder> recordsBuilder_;
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder setRecords(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder setRecords(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder addRecords(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder addRecords(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder addRecords(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder addRecords(
int index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder addAllRecords(
java.lang.Iterable extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public java.util.List extends org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.getDefaultInstance());
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.getDefaultInstance());
}
/**
*
* List of records (lines)
*
*
* repeated .protobuf.opencb.VcfRecord records = 3;
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecord.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfRecordOrBuilder>(
records_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
private org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields fields_;
private com.google.protobuf.SingleFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder> fieldsBuilder_;
/**
* .protobuf.opencb.Fields fields = 4;
* @return Whether the fields field is set.
*/
public boolean hasFields() {
return fieldsBuilder_ != null || fields_ != null;
}
/**
* .protobuf.opencb.Fields fields = 4;
* @return The fields.
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields getFields() {
if (fieldsBuilder_ == null) {
return fields_ == null ? org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.getDefaultInstance() : fields_;
} else {
return fieldsBuilder_.getMessage();
}
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public Builder setFields(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fields_ = value;
onChanged();
} else {
fieldsBuilder_.setMessage(value);
}
return this;
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public Builder setFields(
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder builderForValue) {
if (fieldsBuilder_ == null) {
fields_ = builderForValue.build();
onChanged();
} else {
fieldsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public Builder mergeFields(org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields value) {
if (fieldsBuilder_ == null) {
if (fields_ != null) {
fields_ =
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.newBuilder(fields_).mergeFrom(value).buildPartial();
} else {
fields_ = value;
}
onChanged();
} else {
fieldsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = null;
onChanged();
} else {
fields_ = null;
fieldsBuilder_ = null;
}
return this;
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder getFieldsBuilder() {
onChanged();
return getFieldsFieldBuilder().getBuilder();
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
public org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder getFieldsOrBuilder() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilder();
} else {
return fields_ == null ?
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.getDefaultInstance() : fields_;
}
}
/**
* .protobuf.opencb.Fields fields = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.Fields.Builder, org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.FieldsOrBuilder>(
getFields(),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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:protobuf.opencb.VcfSlice)
}
// @@protoc_insertion_point(class_scope:protobuf.opencb.VcfSlice)
private static final org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice();
}
public static org.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VcfSlice parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VcfSlice(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.opencb.biodata.models.variant.protobuf.VcfSliceProtos.VcfSlice getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protobuf_opencb_VcfSample_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protobuf_opencb_VcfSample_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protobuf_opencb_VcfRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protobuf_opencb_VcfRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protobuf_opencb_Fields_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protobuf_opencb_Fields_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protobuf_opencb_VcfSlice_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protobuf_opencb_VcfSlice_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n protobuf/opencb/vcf_record.proto\022\017prot" +
"obuf.opencb\032\035protobuf/opencb/variant.pro" +
"to\"4\n\tVcfSample\022\025\n\rsample_values\030\001 \003(\t\022\020" +
"\n\010gt_index\030\002 \001(\r\"\215\003\n\tVcfRecord\022\026\n\016relati" +
"ve_start\030\001 \001(\005\022\024\n\014relative_end\030\002 \001(\005\022\021\n\t" +
"reference\030\003 \001(\t\022\021\n\talternate\030\004 \001(\t\022\017\n\007qu" +
"ality\030\005 \001(\002\022*\n\004type\030\014 \001(\0162\034.protobuf.ope" +
"ncb.VariantType\022\014\n\004call\030\r \001(\t\022\024\n\014filter_" +
"index\030\006 \001(\r\022\026\n\016id_non_default\030\007 \003(\t\022\032\n\016i" +
"nfo_key_index\030\010 \003(\rB\002\020\001\022\022\n\ninfo_value\030\t " +
"\003(\t\022\023\n\013formatIndex\030\n \001(\r\022+\n\007samples\030\013 \003(" +
"\0132\032.protobuf.opencb.VcfSample\022A\n\023seconda" +
"ryAlternates\030\016 \003(\0132$.protobuf.opencb.Alt" +
"ernateCoordinate\"e\n\006Fields\022\021\n\tinfo_keys\030" +
"\001 \003(\t\022\031\n\021default_info_keys\030\002 \003(\r\022\017\n\007filt" +
"ers\030\003 \003(\t\022\017\n\007formats\030\005 \003(\t\022\013\n\003gts\030\006 \003(\t\"" +
"\206\001\n\010VcfSlice\022\022\n\nchromosome\030\001 \001(\t\022\020\n\010posi" +
"tion\030\002 \001(\r\022+\n\007records\030\003 \003(\0132\032.protobuf.o" +
"pencb.VcfRecord\022\'\n\006fields\030\004 \001(\0132\027.protob" +
"uf.opencb.FieldsB?\n*org.opencb.biodata.m" +
"odels.variant.protobufB\016VcfSliceProtos\240\001" +
"\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.opencb.biodata.models.variant.protobuf.VariantProto.getDescriptor(),
});
internal_static_protobuf_opencb_VcfSample_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protobuf_opencb_VcfSample_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protobuf_opencb_VcfSample_descriptor,
new java.lang.String[] { "SampleValues", "GtIndex", });
internal_static_protobuf_opencb_VcfRecord_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protobuf_opencb_VcfRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protobuf_opencb_VcfRecord_descriptor,
new java.lang.String[] { "RelativeStart", "RelativeEnd", "Reference", "Alternate", "Quality", "Type", "Call", "FilterIndex", "IdNonDefault", "InfoKeyIndex", "InfoValue", "FormatIndex", "Samples", "SecondaryAlternates", });
internal_static_protobuf_opencb_Fields_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_protobuf_opencb_Fields_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protobuf_opencb_Fields_descriptor,
new java.lang.String[] { "InfoKeys", "DefaultInfoKeys", "Filters", "Formats", "Gts", });
internal_static_protobuf_opencb_VcfSlice_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_protobuf_opencb_VcfSlice_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protobuf_opencb_VcfSlice_descriptor,
new java.lang.String[] { "Chromosome", "Position", "Records", "Fields", });
org.opencb.biodata.models.variant.protobuf.VariantProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy