// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Result_Result.proto

package eu.dnetlib.data.proto;

public final class ResultResultProtos {
  private ResultResultProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ResultResultOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2;
    boolean hasSimilarity();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3;
    boolean hasPublicationDataset();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Dedup dedup = 4;
    boolean hasDedup();
    eu.dnetlib.data.proto.DedupProtos.Dedup getDedup();
    eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder();
    
    // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5;
    boolean hasDedupSimilarity();
    eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity();
    eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6;
    boolean hasSupplement();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7;
    boolean hasPart();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8;
    boolean hasRelationship();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9;
    boolean hasSoftwareSoftware();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder();
  }
  public static final class ResultResult extends
      com.google.protobuf.GeneratedMessage
      implements ResultResultOrBuilder {
    // Use ResultResult.newBuilder() to construct.
    private ResultResult(Builder builder) {
      super(builder);
    }
    private ResultResult(boolean noInit) {}
    
    private static final ResultResult defaultInstance;
    public static ResultResult getDefaultInstance() {
      return defaultInstance;
    }
    
    public ResultResult getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable;
    }
    
    public interface SimilarityOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
      
      // optional float similarity = 2;
      boolean hasSimilarity();
      float getSimilarity();
      
      // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD];
      boolean hasType();
      eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType();
    }
    public static final class Similarity extends
        com.google.protobuf.GeneratedMessage
        implements SimilarityOrBuilder {
      // Use Similarity.newBuilder() to construct.
      private Similarity(Builder builder) {
        super(builder);
      }
      private Similarity(boolean noInit) {}
      
      private static final Similarity defaultInstance;
      public static Similarity getDefaultInstance() {
        return defaultInstance;
      }
      
      public Similarity getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isAmongTopNSimilarDocuments(0, 1),
        hasAmongTopNSimilarDocuments(1, 2),
        ;
        
        public static final int isAmongTopNSimilarDocuments_VALUE = 1;
        public static final int hasAmongTopNSimilarDocuments_VALUE = 2;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isAmongTopNSimilarDocuments;
            case 2: return hasAmongTopNSimilarDocuments;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isAmongTopNSimilarDocuments, hasAmongTopNSimilarDocuments, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Similarity.RelName)
      }
      
      public enum Type
          implements com.google.protobuf.ProtocolMessageEnum {
        STANDARD(0, 1),
        WEBUSAGE(1, 2),
        ;
        
        public static final int STANDARD_VALUE = 1;
        public static final int WEBUSAGE_VALUE = 2;
        
        
        public final int getNumber() { return value; }
        
        public static Type valueOf(int value) {
          switch (value) {
            case 1: return STANDARD;
            case 2: return WEBUSAGE;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<Type>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<Type>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<Type>() {
                public Type findValueByNumber(int number) {
                  return Type.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor().getEnumTypes().get(1);
        }
        
        private static final Type[] VALUES = {
          STANDARD, WEBUSAGE, 
        };
        
        public static Type valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private Type(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Similarity.Type)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      // optional float similarity = 2;
      public static final int SIMILARITY_FIELD_NUMBER = 2;
      private float similarity_;
      public boolean hasSimilarity() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public float getSimilarity() {
        return similarity_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD];
      public static final int TYPE_FIELD_NUMBER = 3;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type type_;
      public boolean hasType() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType() {
        return type_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        similarity_ = 0F;
        type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD;
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          output.writeFloat(2, similarity_);
        }
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          output.writeEnum(3, type_.getNumber());
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          size += com.google.protobuf.CodedOutputStream
            .computeFloatSize(2, similarity_);
        }
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          size += com.google.protobuf.CodedOutputStream
            .computeEnumSize(3, type_.getNumber());
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          similarity_ = 0F;
          bitField0_ = (bitField0_ & ~0x00000002);
          type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD;
          bitField0_ = (bitField0_ & ~0x00000004);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
            to_bitField0_ |= 0x00000002;
          }
          result.similarity_ = similarity_;
          if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
            to_bitField0_ |= 0x00000004;
          }
          result.type_ = type_;
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          if (other.hasSimilarity()) {
            setSimilarity(other.getSimilarity());
          }
          if (other.hasType()) {
            setType(other.getType());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
              case 21: {
                bitField0_ |= 0x00000002;
                similarity_ = input.readFloat();
                break;
              }
              case 24: {
                int rawValue = input.readEnum();
                eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type value = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.valueOf(rawValue);
                if (value == null) {
                  unknownFields.mergeVarintField(3, rawValue);
                } else {
                  bitField0_ |= 0x00000004;
                  type_ = value;
                }
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // optional float similarity = 2;
        private float similarity_ ;
        public boolean hasSimilarity() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public float getSimilarity() {
          return similarity_;
        }
        public Builder setSimilarity(float value) {
          bitField0_ |= 0x00000002;
          similarity_ = value;
          onChanged();
          return this;
        }
        public Builder clearSimilarity() {
          bitField0_ = (bitField0_ & ~0x00000002);
          similarity_ = 0F;
          onChanged();
          return this;
        }
        
        // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD];
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD;
        public boolean hasType() {
          return ((bitField0_ & 0x00000004) == 0x00000004);
        }
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType() {
          return type_;
        }
        public Builder setType(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type value) {
          if (value == null) {
            throw new NullPointerException();
          }
          bitField0_ |= 0x00000004;
          type_ = value;
          onChanged();
          return this;
        }
        public Builder clearType() {
          bitField0_ = (bitField0_ & ~0x00000004);
          type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD;
          onChanged();
          return this;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Similarity)
      }
      
      static {
        defaultInstance = new Similarity(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Similarity)
    }
    
    public interface PublicationDatasetOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
    }
    public static final class PublicationDataset extends
        com.google.protobuf.GeneratedMessage
        implements PublicationDatasetOrBuilder {
      // Use PublicationDataset.newBuilder() to construct.
      private PublicationDataset(Builder builder) {
        super(builder);
      }
      private PublicationDataset(boolean noInit) {}
      
      private static final PublicationDataset defaultInstance;
      public static PublicationDataset getDefaultInstance() {
        return defaultInstance;
      }
      
      public PublicationDataset getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isRelatedTo(0, 1),
        ;
        
        public static final int isRelatedTo_VALUE = 1;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isRelatedTo;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isRelatedTo, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset.RelName)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset)
      }
      
      static {
        defaultInstance = new PublicationDataset(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset)
    }
    
    public interface SupplementOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
    }
    public static final class Supplement extends
        com.google.protobuf.GeneratedMessage
        implements SupplementOrBuilder {
      // Use Supplement.newBuilder() to construct.
      private Supplement(Builder builder) {
        super(builder);
      }
      private Supplement(boolean noInit) {}
      
      private static final Supplement defaultInstance;
      public static Supplement getDefaultInstance() {
        return defaultInstance;
      }
      
      public Supplement getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isSupplementTo(0, 1),
        isSupplementedBy(1, 2),
        ;
        
        public static final int isSupplementTo_VALUE = 1;
        public static final int isSupplementedBy_VALUE = 2;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isSupplementTo;
            case 2: return isSupplementedBy;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isSupplementTo, isSupplementedBy, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Supplement.RelName)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Supplement)
      }
      
      static {
        defaultInstance = new Supplement(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Supplement)
    }
    
    public interface PartOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
    }
    public static final class Part extends
        com.google.protobuf.GeneratedMessage
        implements PartOrBuilder {
      // Use Part.newBuilder() to construct.
      private Part(Builder builder) {
        super(builder);
      }
      private Part(boolean noInit) {}
      
      private static final Part defaultInstance;
      public static Part getDefaultInstance() {
        return defaultInstance;
      }
      
      public Part getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isPartOf(0, 1),
        hasPart(1, 2),
        ;
        
        public static final int isPartOf_VALUE = 1;
        public static final int hasPart_VALUE = 2;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isPartOf;
            case 2: return hasPart;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isPartOf, hasPart, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Part.RelName)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Part)
      }
      
      static {
        defaultInstance = new Part(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Part)
    }
    
    public interface SoftwareSoftwareOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
    }
    public static final class SoftwareSoftware extends
        com.google.protobuf.GeneratedMessage
        implements SoftwareSoftwareOrBuilder {
      // Use SoftwareSoftware.newBuilder() to construct.
      private SoftwareSoftware(Builder builder) {
        super(builder);
      }
      private SoftwareSoftware(boolean noInit) {}
      
      private static final SoftwareSoftware defaultInstance;
      public static SoftwareSoftware getDefaultInstance() {
        return defaultInstance;
      }
      
      public SoftwareSoftware getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isVersionOf(0, 1),
        ;
        
        public static final int isVersionOf_VALUE = 1;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isVersionOf;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isVersionOf, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware.RelName)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware)
      }
      
      static {
        defaultInstance = new SoftwareSoftware(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware)
    }
    
    public interface RelationshipOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      boolean hasRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata();
      eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder();
    }
    public static final class Relationship extends
        com.google.protobuf.GeneratedMessage
        implements RelationshipOrBuilder {
      // Use Relationship.newBuilder() to construct.
      private Relationship(Builder builder) {
        super(builder);
      }
      private Relationship(boolean noInit) {}
      
      private static final Relationship defaultInstance;
      public static Relationship getDefaultInstance() {
        return defaultInstance;
      }
      
      public Relationship getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable;
      }
      
      public enum RelName
          implements com.google.protobuf.ProtocolMessageEnum {
        isRelatedTo(0, 1),
        ;
        
        public static final int isRelatedTo_VALUE = 1;
        
        
        public final int getNumber() { return value; }
        
        public static RelName valueOf(int value) {
          switch (value) {
            case 1: return isRelatedTo;
            default: return null;
          }
        }
        
        public static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalGetValueMap() {
          return internalValueMap;
        }
        private static com.google.protobuf.Internal.EnumLiteMap<RelName>
            internalValueMap =
              new com.google.protobuf.Internal.EnumLiteMap<RelName>() {
                public RelName findValueByNumber(int number) {
                  return RelName.valueOf(number);
                }
              };
        
        public final com.google.protobuf.Descriptors.EnumValueDescriptor
            getValueDescriptor() {
          return getDescriptor().getValues().get(index);
        }
        public final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }
        public static final com.google.protobuf.Descriptors.EnumDescriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDescriptor().getEnumTypes().get(0);
        }
        
        private static final RelName[] VALUES = {
          isRelatedTo, 
        };
        
        public static RelName valueOf(
            com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
          if (desc.getType() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "EnumValueDescriptor is not for this type.");
          }
          return VALUES[desc.getIndex()];
        }
        
        private final int index;
        private final int value;
        
        private RelName(int index, int value) {
          this.index = index;
          this.value = value;
        }
        
        // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Relationship.RelName)
      }
      
      private int bitField0_;
      // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
      public static final int RELMETADATA_FIELD_NUMBER = 1;
      private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_;
      public boolean hasRelMetadata() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
        return relMetadata_;
      }
      public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
        return relMetadata_;
      }
      
      private void initFields() {
        relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasRelMetadata()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getRelMetadata().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, relMetadata_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, relMetadata_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable;
        }
        
        // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getRelMetadataFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDescriptor();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getDefaultInstanceForType() {
          return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance();
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship build() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship buildPartial() {
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (relMetadataBuilder_ == null) {
            result.relMetadata_ = relMetadata_;
          } else {
            result.relMetadata_ = relMetadataBuilder_.build();
          }
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship) {
            return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship other) {
          if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance()) return this;
          if (other.hasRelMetadata()) {
            mergeRelMetadata(other.getRelMetadata());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasRelMetadata()) {
            
            return false;
          }
          if (!getRelMetadata().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder();
                if (hasRelMetadata()) {
                  subBuilder.mergeFrom(getRelMetadata());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setRelMetadata(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1;
        private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_;
        public boolean hasRelMetadata() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() {
          if (relMetadataBuilder_ == null) {
            return relMetadata_;
          } else {
            return relMetadataBuilder_.getMessage();
          }
        }
        public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            relMetadata_ = value;
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setRelMetadata(
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = builderForValue.build();
            onChanged();
          } else {
            relMetadataBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) {
          if (relMetadataBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) {
              relMetadata_ =
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial();
            } else {
              relMetadata_ = value;
            }
            onChanged();
          } else {
            relMetadataBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearRelMetadata() {
          if (relMetadataBuilder_ == null) {
            relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance();
            onChanged();
          } else {
            relMetadataBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getRelMetadataFieldBuilder().getBuilder();
        }
        public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() {
          if (relMetadataBuilder_ != null) {
            return relMetadataBuilder_.getMessageOrBuilder();
          } else {
            return relMetadata_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> 
            getRelMetadataFieldBuilder() {
          if (relMetadataBuilder_ == null) {
            relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>(
                    relMetadata_,
                    getParentForChildren(),
                    isClean());
            relMetadata_ = null;
          }
          return relMetadataBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Relationship)
      }
      
      static {
        defaultInstance = new Relationship(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Relationship)
    }
    
    private int bitField0_;
    // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2;
    public static final int SIMILARITY_FIELD_NUMBER = 2;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity similarity_;
    public boolean hasSimilarity() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity() {
      return similarity_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder() {
      return similarity_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3;
    public static final int PUBLICATIONDATASET_FIELD_NUMBER = 3;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset publicationDataset_;
    public boolean hasPublicationDataset() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset() {
      return publicationDataset_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder() {
      return publicationDataset_;
    }
    
    // optional .eu.dnetlib.data.proto.Dedup dedup = 4;
    public static final int DEDUP_FIELD_NUMBER = 4;
    private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_;
    public boolean hasDedup() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() {
      return dedup_;
    }
    public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() {
      return dedup_;
    }
    
    // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5;
    public static final int DEDUPSIMILARITY_FIELD_NUMBER = 5;
    private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_;
    public boolean hasDedupSimilarity() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() {
      return dedupSimilarity_;
    }
    public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() {
      return dedupSimilarity_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6;
    public static final int SUPPLEMENT_FIELD_NUMBER = 6;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement supplement_;
    public boolean hasSupplement() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement() {
      return supplement_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder() {
      return supplement_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7;
    public static final int PART_FIELD_NUMBER = 7;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part part_;
    public boolean hasPart() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart() {
      return part_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder() {
      return part_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8;
    public static final int RELATIONSHIP_FIELD_NUMBER = 8;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship relationship_;
    public boolean hasRelationship() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship() {
      return relationship_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder() {
      return relationship_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9;
    public static final int SOFTWARESOFTWARE_FIELD_NUMBER = 9;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware softwareSoftware_;
    public boolean hasSoftwareSoftware() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware() {
      return softwareSoftware_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder() {
      return softwareSoftware_;
    }
    
    private void initFields() {
      similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance();
      publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance();
      dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance();
      dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance();
      supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance();
      part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance();
      relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance();
      softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (hasSimilarity()) {
        if (!getSimilarity().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasPublicationDataset()) {
        if (!getPublicationDataset().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasDedup()) {
        if (!getDedup().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasDedupSimilarity()) {
        if (!getDedupSimilarity().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasSupplement()) {
        if (!getSupplement().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasPart()) {
        if (!getPart().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasRelationship()) {
        if (!getRelationship().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasSoftwareSoftware()) {
        if (!getSoftwareSoftware().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(2, similarity_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(3, publicationDataset_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(4, dedup_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(5, dedupSimilarity_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeMessage(6, supplement_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeMessage(7, part_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeMessage(8, relationship_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(9, softwareSoftware_);
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, similarity_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, publicationDataset_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, dedup_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, dedupSimilarity_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, supplement_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, part_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, relationship_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, softwareSoftware_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }
    
    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }
    
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable;
      }
      
      // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getSimilarityFieldBuilder();
          getPublicationDatasetFieldBuilder();
          getDedupFieldBuilder();
          getDedupSimilarityFieldBuilder();
          getSupplementFieldBuilder();
          getPartFieldBuilder();
          getRelationshipFieldBuilder();
          getSoftwareSoftwareFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        if (similarityBuilder_ == null) {
          similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance();
        } else {
          similarityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (publicationDatasetBuilder_ == null) {
          publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance();
        } else {
          publicationDatasetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (dedupBuilder_ == null) {
          dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance();
        } else {
          dedupBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (dedupSimilarityBuilder_ == null) {
          dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance();
        } else {
          dedupSimilarityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        if (supplementBuilder_ == null) {
          supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance();
        } else {
          supplementBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        if (partBuilder_ == null) {
          part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance();
        } else {
          partBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        if (relationshipBuilder_ == null) {
          relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance();
        } else {
          relationshipBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        if (softwareSoftwareBuilder_ == null) {
          softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance();
        } else {
          softwareSoftwareBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDescriptor();
      }
      
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult getDefaultInstanceForType() {
        return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance();
      }
      
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult build() {
        eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult buildPartial() {
        eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (similarityBuilder_ == null) {
          result.similarity_ = similarity_;
        } else {
          result.similarity_ = similarityBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (publicationDatasetBuilder_ == null) {
          result.publicationDataset_ = publicationDataset_;
        } else {
          result.publicationDataset_ = publicationDatasetBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (dedupBuilder_ == null) {
          result.dedup_ = dedup_;
        } else {
          result.dedup_ = dedupBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (dedupSimilarityBuilder_ == null) {
          result.dedupSimilarity_ = dedupSimilarity_;
        } else {
          result.dedupSimilarity_ = dedupSimilarityBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        if (supplementBuilder_ == null) {
          result.supplement_ = supplement_;
        } else {
          result.supplement_ = supplementBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        if (partBuilder_ == null) {
          result.part_ = part_;
        } else {
          result.part_ = partBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        if (relationshipBuilder_ == null) {
          result.relationship_ = relationship_;
        } else {
          result.relationship_ = relationshipBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        if (softwareSoftwareBuilder_ == null) {
          result.softwareSoftware_ = softwareSoftware_;
        } else {
          result.softwareSoftware_ = softwareSoftwareBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult) {
          return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult other) {
        if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance()) return this;
        if (other.hasSimilarity()) {
          mergeSimilarity(other.getSimilarity());
        }
        if (other.hasPublicationDataset()) {
          mergePublicationDataset(other.getPublicationDataset());
        }
        if (other.hasDedup()) {
          mergeDedup(other.getDedup());
        }
        if (other.hasDedupSimilarity()) {
          mergeDedupSimilarity(other.getDedupSimilarity());
        }
        if (other.hasSupplement()) {
          mergeSupplement(other.getSupplement());
        }
        if (other.hasPart()) {
          mergePart(other.getPart());
        }
        if (other.hasRelationship()) {
          mergeRelationship(other.getRelationship());
        }
        if (other.hasSoftwareSoftware()) {
          mergeSoftwareSoftware(other.getSoftwareSoftware());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (hasSimilarity()) {
          if (!getSimilarity().isInitialized()) {
            
            return false;
          }
        }
        if (hasPublicationDataset()) {
          if (!getPublicationDataset().isInitialized()) {
            
            return false;
          }
        }
        if (hasDedup()) {
          if (!getDedup().isInitialized()) {
            
            return false;
          }
        }
        if (hasDedupSimilarity()) {
          if (!getDedupSimilarity().isInitialized()) {
            
            return false;
          }
        }
        if (hasSupplement()) {
          if (!getSupplement().isInitialized()) {
            
            return false;
          }
        }
        if (hasPart()) {
          if (!getPart().isInitialized()) {
            
            return false;
          }
        }
        if (hasRelationship()) {
          if (!getRelationship().isInitialized()) {
            
            return false;
          }
        }
        if (hasSoftwareSoftware()) {
          if (!getSoftwareSoftware().isInitialized()) {
            
            return false;
          }
        }
        return true;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              onChanged();
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              }
              break;
            }
            case 18: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder();
              if (hasSimilarity()) {
                subBuilder.mergeFrom(getSimilarity());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setSimilarity(subBuilder.buildPartial());
              break;
            }
            case 26: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder();
              if (hasPublicationDataset()) {
                subBuilder.mergeFrom(getPublicationDataset());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setPublicationDataset(subBuilder.buildPartial());
              break;
            }
            case 34: {
              eu.dnetlib.data.proto.DedupProtos.Dedup.Builder subBuilder = eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder();
              if (hasDedup()) {
                subBuilder.mergeFrom(getDedup());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDedup(subBuilder.buildPartial());
              break;
            }
            case 42: {
              eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder subBuilder = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder();
              if (hasDedupSimilarity()) {
                subBuilder.mergeFrom(getDedupSimilarity());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDedupSimilarity(subBuilder.buildPartial());
              break;
            }
            case 50: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder();
              if (hasSupplement()) {
                subBuilder.mergeFrom(getSupplement());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setSupplement(subBuilder.buildPartial());
              break;
            }
            case 58: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder();
              if (hasPart()) {
                subBuilder.mergeFrom(getPart());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setPart(subBuilder.buildPartial());
              break;
            }
            case 66: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder();
              if (hasRelationship()) {
                subBuilder.mergeFrom(getRelationship());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setRelationship(subBuilder.buildPartial());
              break;
            }
            case 74: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder();
              if (hasSoftwareSoftware()) {
                subBuilder.mergeFrom(getSoftwareSoftware());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setSoftwareSoftware(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder> similarityBuilder_;
      public boolean hasSimilarity() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity() {
        if (similarityBuilder_ == null) {
          return similarity_;
        } else {
          return similarityBuilder_.getMessage();
        }
      }
      public Builder setSimilarity(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity value) {
        if (similarityBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          similarity_ = value;
          onChanged();
        } else {
          similarityBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      public Builder setSimilarity(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder builderForValue) {
        if (similarityBuilder_ == null) {
          similarity_ = builderForValue.build();
          onChanged();
        } else {
          similarityBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      public Builder mergeSimilarity(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity value) {
        if (similarityBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              similarity_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance()) {
            similarity_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder(similarity_).mergeFrom(value).buildPartial();
          } else {
            similarity_ = value;
          }
          onChanged();
        } else {
          similarityBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      public Builder clearSimilarity() {
        if (similarityBuilder_ == null) {
          similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance();
          onChanged();
        } else {
          similarityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder getSimilarityBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getSimilarityFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder() {
        if (similarityBuilder_ != null) {
          return similarityBuilder_.getMessageOrBuilder();
        } else {
          return similarity_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder> 
          getSimilarityFieldBuilder() {
        if (similarityBuilder_ == null) {
          similarityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder>(
                  similarity_,
                  getParentForChildren(),
                  isClean());
          similarity_ = null;
        }
        return similarityBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder> publicationDatasetBuilder_;
      public boolean hasPublicationDataset() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset() {
        if (publicationDatasetBuilder_ == null) {
          return publicationDataset_;
        } else {
          return publicationDatasetBuilder_.getMessage();
        }
      }
      public Builder setPublicationDataset(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset value) {
        if (publicationDatasetBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          publicationDataset_ = value;
          onChanged();
        } else {
          publicationDatasetBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder setPublicationDataset(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder builderForValue) {
        if (publicationDatasetBuilder_ == null) {
          publicationDataset_ = builderForValue.build();
          onChanged();
        } else {
          publicationDatasetBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder mergePublicationDataset(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset value) {
        if (publicationDatasetBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              publicationDataset_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance()) {
            publicationDataset_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder(publicationDataset_).mergeFrom(value).buildPartial();
          } else {
            publicationDataset_ = value;
          }
          onChanged();
        } else {
          publicationDatasetBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder clearPublicationDataset() {
        if (publicationDatasetBuilder_ == null) {
          publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance();
          onChanged();
        } else {
          publicationDatasetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder getPublicationDatasetBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getPublicationDatasetFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder() {
        if (publicationDatasetBuilder_ != null) {
          return publicationDatasetBuilder_.getMessageOrBuilder();
        } else {
          return publicationDataset_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder> 
          getPublicationDatasetFieldBuilder() {
        if (publicationDatasetBuilder_ == null) {
          publicationDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder>(
                  publicationDataset_,
                  getParentForChildren(),
                  isClean());
          publicationDataset_ = null;
        }
        return publicationDatasetBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Dedup dedup = 4;
      private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> dedupBuilder_;
      public boolean hasDedup() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() {
        if (dedupBuilder_ == null) {
          return dedup_;
        } else {
          return dedupBuilder_.getMessage();
        }
      }
      public Builder setDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) {
        if (dedupBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          dedup_ = value;
          onChanged();
        } else {
          dedupBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder setDedup(
          eu.dnetlib.data.proto.DedupProtos.Dedup.Builder builderForValue) {
        if (dedupBuilder_ == null) {
          dedup_ = builderForValue.build();
          onChanged();
        } else {
          dedupBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder mergeDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) {
        if (dedupBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              dedup_ != eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance()) {
            dedup_ =
              eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder(dedup_).mergeFrom(value).buildPartial();
          } else {
            dedup_ = value;
          }
          onChanged();
        } else {
          dedupBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder clearDedup() {
        if (dedupBuilder_ == null) {
          dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance();
          onChanged();
        } else {
          dedupBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      public eu.dnetlib.data.proto.DedupProtos.Dedup.Builder getDedupBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getDedupFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() {
        if (dedupBuilder_ != null) {
          return dedupBuilder_.getMessageOrBuilder();
        } else {
          return dedup_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> 
          getDedupFieldBuilder() {
        if (dedupBuilder_ == null) {
          dedupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder>(
                  dedup_,
                  getParentForChildren(),
                  isClean());
          dedup_ = null;
        }
        return dedupBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5;
      private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> dedupSimilarityBuilder_;
      public boolean hasDedupSimilarity() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() {
        if (dedupSimilarityBuilder_ == null) {
          return dedupSimilarity_;
        } else {
          return dedupSimilarityBuilder_.getMessage();
        }
      }
      public Builder setDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) {
        if (dedupSimilarityBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          dedupSimilarity_ = value;
          onChanged();
        } else {
          dedupSimilarityBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder setDedupSimilarity(
          eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder builderForValue) {
        if (dedupSimilarityBuilder_ == null) {
          dedupSimilarity_ = builderForValue.build();
          onChanged();
        } else {
          dedupSimilarityBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder mergeDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) {
        if (dedupSimilarityBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              dedupSimilarity_ != eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance()) {
            dedupSimilarity_ =
              eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder(dedupSimilarity_).mergeFrom(value).buildPartial();
          } else {
            dedupSimilarity_ = value;
          }
          onChanged();
        } else {
          dedupSimilarityBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder clearDedupSimilarity() {
        if (dedupSimilarityBuilder_ == null) {
          dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance();
          onChanged();
        } else {
          dedupSimilarityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder getDedupSimilarityBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getDedupSimilarityFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() {
        if (dedupSimilarityBuilder_ != null) {
          return dedupSimilarityBuilder_.getMessageOrBuilder();
        } else {
          return dedupSimilarity_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> 
          getDedupSimilarityFieldBuilder() {
        if (dedupSimilarityBuilder_ == null) {
          dedupSimilarityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder>(
                  dedupSimilarity_,
                  getParentForChildren(),
                  isClean());
          dedupSimilarity_ = null;
        }
        return dedupSimilarityBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder> supplementBuilder_;
      public boolean hasSupplement() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement() {
        if (supplementBuilder_ == null) {
          return supplement_;
        } else {
          return supplementBuilder_.getMessage();
        }
      }
      public Builder setSupplement(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement value) {
        if (supplementBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          supplement_ = value;
          onChanged();
        } else {
          supplementBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      public Builder setSupplement(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder builderForValue) {
        if (supplementBuilder_ == null) {
          supplement_ = builderForValue.build();
          onChanged();
        } else {
          supplementBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      public Builder mergeSupplement(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement value) {
        if (supplementBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010) &&
              supplement_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance()) {
            supplement_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder(supplement_).mergeFrom(value).buildPartial();
          } else {
            supplement_ = value;
          }
          onChanged();
        } else {
          supplementBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      public Builder clearSupplement() {
        if (supplementBuilder_ == null) {
          supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance();
          onChanged();
        } else {
          supplementBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder getSupplementBuilder() {
        bitField0_ |= 0x00000010;
        onChanged();
        return getSupplementFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder() {
        if (supplementBuilder_ != null) {
          return supplementBuilder_.getMessageOrBuilder();
        } else {
          return supplement_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder> 
          getSupplementFieldBuilder() {
        if (supplementBuilder_ == null) {
          supplementBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder>(
                  supplement_,
                  getParentForChildren(),
                  isClean());
          supplement_ = null;
        }
        return supplementBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder> partBuilder_;
      public boolean hasPart() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart() {
        if (partBuilder_ == null) {
          return part_;
        } else {
          return partBuilder_.getMessage();
        }
      }
      public Builder setPart(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part value) {
        if (partBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          part_ = value;
          onChanged();
        } else {
          partBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      public Builder setPart(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder builderForValue) {
        if (partBuilder_ == null) {
          part_ = builderForValue.build();
          onChanged();
        } else {
          partBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      public Builder mergePart(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part value) {
        if (partBuilder_ == null) {
          if (((bitField0_ & 0x00000020) == 0x00000020) &&
              part_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance()) {
            part_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder(part_).mergeFrom(value).buildPartial();
          } else {
            part_ = value;
          }
          onChanged();
        } else {
          partBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      public Builder clearPart() {
        if (partBuilder_ == null) {
          part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance();
          onChanged();
        } else {
          partBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder getPartBuilder() {
        bitField0_ |= 0x00000020;
        onChanged();
        return getPartFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder() {
        if (partBuilder_ != null) {
          return partBuilder_.getMessageOrBuilder();
        } else {
          return part_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder> 
          getPartFieldBuilder() {
        if (partBuilder_ == null) {
          partBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder>(
                  part_,
                  getParentForChildren(),
                  isClean());
          part_ = null;
        }
        return partBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder> relationshipBuilder_;
      public boolean hasRelationship() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship() {
        if (relationshipBuilder_ == null) {
          return relationship_;
        } else {
          return relationshipBuilder_.getMessage();
        }
      }
      public Builder setRelationship(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship value) {
        if (relationshipBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          relationship_ = value;
          onChanged();
        } else {
          relationshipBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder setRelationship(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder builderForValue) {
        if (relationshipBuilder_ == null) {
          relationship_ = builderForValue.build();
          onChanged();
        } else {
          relationshipBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder mergeRelationship(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship value) {
        if (relationshipBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040) &&
              relationship_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance()) {
            relationship_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder(relationship_).mergeFrom(value).buildPartial();
          } else {
            relationship_ = value;
          }
          onChanged();
        } else {
          relationshipBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder clearRelationship() {
        if (relationshipBuilder_ == null) {
          relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance();
          onChanged();
        } else {
          relationshipBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder getRelationshipBuilder() {
        bitField0_ |= 0x00000040;
        onChanged();
        return getRelationshipFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder() {
        if (relationshipBuilder_ != null) {
          return relationshipBuilder_.getMessageOrBuilder();
        } else {
          return relationship_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder> 
          getRelationshipFieldBuilder() {
        if (relationshipBuilder_ == null) {
          relationshipBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder>(
                  relationship_,
                  getParentForChildren(),
                  isClean());
          relationship_ = null;
        }
        return relationshipBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder> softwareSoftwareBuilder_;
      public boolean hasSoftwareSoftware() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware() {
        if (softwareSoftwareBuilder_ == null) {
          return softwareSoftware_;
        } else {
          return softwareSoftwareBuilder_.getMessage();
        }
      }
      public Builder setSoftwareSoftware(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware value) {
        if (softwareSoftwareBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          softwareSoftware_ = value;
          onChanged();
        } else {
          softwareSoftwareBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder setSoftwareSoftware(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder builderForValue) {
        if (softwareSoftwareBuilder_ == null) {
          softwareSoftware_ = builderForValue.build();
          onChanged();
        } else {
          softwareSoftwareBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder mergeSoftwareSoftware(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware value) {
        if (softwareSoftwareBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080) &&
              softwareSoftware_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance()) {
            softwareSoftware_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder(softwareSoftware_).mergeFrom(value).buildPartial();
          } else {
            softwareSoftware_ = value;
          }
          onChanged();
        } else {
          softwareSoftwareBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder clearSoftwareSoftware() {
        if (softwareSoftwareBuilder_ == null) {
          softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance();
          onChanged();
        } else {
          softwareSoftwareBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder getSoftwareSoftwareBuilder() {
        bitField0_ |= 0x00000080;
        onChanged();
        return getSoftwareSoftwareFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder() {
        if (softwareSoftwareBuilder_ != null) {
          return softwareSoftwareBuilder_.getMessageOrBuilder();
        } else {
          return softwareSoftware_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder> 
          getSoftwareSoftwareFieldBuilder() {
        if (softwareSoftwareBuilder_ == null) {
          softwareSoftwareBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder>(
                  softwareSoftware_,
                  getParentForChildren(),
                  isClean());
          softwareSoftware_ = null;
        }
        return softwareSoftwareBuilder_;
      }
      
      // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult)
    }
    
    static {
      defaultInstance = new ResultResult(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_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\023Result_Result.proto\022\025eu.dnetlib.data.p" +
      "roto\032\021RelMetadata.proto\032\013Dedup.proto\032\025De" +
      "dupSimilarity.proto\"\337\n\n\014ResultResult\022B\n\n" +
      "similarity\030\002 \001(\0132..eu.dnetlib.data.proto" +
      ".ResultResult.Similarity\022R\n\022publicationD" +
      "ataset\030\003 \001(\01326.eu.dnetlib.data.proto.Res" +
      "ultResult.PublicationDataset\022+\n\005dedup\030\004 " +
      "\001(\0132\034.eu.dnetlib.data.proto.Dedup\022?\n\017ded" +
      "upSimilarity\030\005 \001(\0132&.eu.dnetlib.data.pro" +
      "to.DedupSimilarity\022B\n\nsupplement\030\006 \001(\0132.",
      ".eu.dnetlib.data.proto.ResultResult.Supp" +
      "lement\0226\n\004part\030\007 \001(\0132(.eu.dnetlib.data.p" +
      "roto.ResultResult.Part\022F\n\014relationship\030\010" +
      " \001(\01320.eu.dnetlib.data.proto.ResultResul" +
      "t.Relationship\022N\n\020softwareSoftware\030\t \001(\013" +
      "24.eu.dnetlib.data.proto.ResultResult.So" +
      "ftwareSoftware\032\230\002\n\nSimilarity\0227\n\013relMeta" +
      "data\030\001 \002(\0132\".eu.dnetlib.data.proto.RelMe" +
      "tadata\022\022\n\nsimilarity\030\002 \001(\002\022K\n\004type\030\003 \001(\016" +
      "23.eu.dnetlib.data.proto.ResultResult.Si",
      "milarity.Type:\010STANDARD\"L\n\007RelName\022\037\n\033is" +
      "AmongTopNSimilarDocuments\020\001\022 \n\034hasAmongT" +
      "opNSimilarDocuments\020\002\"\"\n\004Type\022\014\n\010STANDAR" +
      "D\020\001\022\014\n\010WEBUSAGE\020\002\032i\n\022PublicationDataset\022" +
      "7\n\013relMetadata\030\001 \002(\0132\".eu.dnetlib.data.p" +
      "roto.RelMetadata\"\032\n\007RelName\022\017\n\013isRelated" +
      "To\020\001\032z\n\nSupplement\0227\n\013relMetadata\030\001 \002(\0132" +
      "\".eu.dnetlib.data.proto.RelMetadata\"3\n\007R" +
      "elName\022\022\n\016isSupplementTo\020\001\022\024\n\020isSuppleme" +
      "ntedBy\020\002\032e\n\004Part\0227\n\013relMetadata\030\001 \002(\0132\".",
      "eu.dnetlib.data.proto.RelMetadata\"$\n\007Rel" +
      "Name\022\014\n\010isPartOf\020\001\022\013\n\007hasPart\020\002\032g\n\020Softw" +
      "areSoftware\0227\n\013relMetadata\030\001 \002(\0132\".eu.dn" +
      "etlib.data.proto.RelMetadata\"\032\n\007RelName\022" +
      "\017\n\013isVersionOf\020\001\032c\n\014Relationship\0227\n\013relM" +
      "etadata\030\001 \002(\0132\".eu.dnetlib.data.proto.Re" +
      "lMetadata\"\032\n\007RelName\022\017\n\013isRelatedTo\020\001B+\n" +
      "\025eu.dnetlib.data.protoB\022ResultResultProt" +
      "os"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_eu_dnetlib_data_proto_ResultResult_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_descriptor,
              new java.lang.String[] { "Similarity", "PublicationDataset", "Dedup", "DedupSimilarity", "Supplement", "Part", "Relationship", "SoftwareSoftware", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(0);
          internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor,
              new java.lang.String[] { "RelMetadata", "Similarity", "Type", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(1);
          internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor,
              new java.lang.String[] { "RelMetadata", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(2);
          internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor,
              new java.lang.String[] { "RelMetadata", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(3);
          internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor,
              new java.lang.String[] { "RelMetadata", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(4);
          internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor,
              new java.lang.String[] { "RelMetadata", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder.class);
          internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor =
            internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(5);
          internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor,
              new java.lang.String[] { "RelMetadata", },
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.class,
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(),
          eu.dnetlib.data.proto.DedupProtos.getDescriptor(),
          eu.dnetlib.data.proto.DedupSimilarityProtos.getDescriptor(),
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}
