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

package eu.dnetlib.data.proto;

public final class OafProtos {
  private OafProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface OafOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required .eu.dnetlib.data.proto.Kind kind = 1;
    boolean hasKind();
    eu.dnetlib.data.proto.KindProtos.Kind getKind();
    
    // optional .eu.dnetlib.data.proto.OafEntity entity = 2;
    boolean hasEntity();
    eu.dnetlib.data.proto.OafProtos.OafEntity getEntity();
    eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getEntityOrBuilder();
    
    // optional .eu.dnetlib.data.proto.OafRel rel = 3;
    boolean hasRel();
    eu.dnetlib.data.proto.OafProtos.OafRel getRel();
    eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getRelOrBuilder();
    
    // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 4;
    boolean hasDataInfo();
    eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo();
    eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder();
    
    // optional sfixed64 lastupdatetimestamp = 5;
    boolean hasLastupdatetimestamp();
    long getLastupdatetimestamp();
  }
  public static final class Oaf extends
      com.google.protobuf.GeneratedMessage
      implements OafOrBuilder {
    // Use Oaf.newBuilder() to construct.
    private Oaf(Builder builder) {
      super(builder);
    }
    private Oaf(boolean noInit) {}
    
    private static final Oaf defaultInstance;
    public static Oaf getDefaultInstance() {
      return defaultInstance;
    }
    
    public Oaf getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_Oaf_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_Oaf_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required .eu.dnetlib.data.proto.Kind kind = 1;
    public static final int KIND_FIELD_NUMBER = 1;
    private eu.dnetlib.data.proto.KindProtos.Kind kind_;
    public boolean hasKind() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public eu.dnetlib.data.proto.KindProtos.Kind getKind() {
      return kind_;
    }
    
    // optional .eu.dnetlib.data.proto.OafEntity entity = 2;
    public static final int ENTITY_FIELD_NUMBER = 2;
    private eu.dnetlib.data.proto.OafProtos.OafEntity entity_;
    public boolean hasEntity() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntity getEntity() {
      return entity_;
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getEntityOrBuilder() {
      return entity_;
    }
    
    // optional .eu.dnetlib.data.proto.OafRel rel = 3;
    public static final int REL_FIELD_NUMBER = 3;
    private eu.dnetlib.data.proto.OafProtos.OafRel rel_;
    public boolean hasRel() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public eu.dnetlib.data.proto.OafProtos.OafRel getRel() {
      return rel_;
    }
    public eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getRelOrBuilder() {
      return rel_;
    }
    
    // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 4;
    public static final int DATAINFO_FIELD_NUMBER = 4;
    private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_;
    public boolean hasDataInfo() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() {
      return dataInfo_;
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() {
      return dataInfo_;
    }
    
    // optional sfixed64 lastupdatetimestamp = 5;
    public static final int LASTUPDATETIMESTAMP_FIELD_NUMBER = 5;
    private long lastupdatetimestamp_;
    public boolean hasLastupdatetimestamp() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    public long getLastupdatetimestamp() {
      return lastupdatetimestamp_;
    }
    
    private void initFields() {
      kind_ = eu.dnetlib.data.proto.KindProtos.Kind.entity;
      entity_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
      rel_ = eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance();
      dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance();
      lastupdatetimestamp_ = 0L;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (!hasKind()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasEntity()) {
        if (!getEntity().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasRel()) {
        if (!getRel().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasDataInfo()) {
        if (!getDataInfo().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.writeEnum(1, kind_.getNumber());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, entity_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, rel_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, dataInfo_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeSFixed64(5, lastupdatetimestamp_);
      }
      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
          .computeEnumSize(1, kind_.getNumber());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, entity_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, rel_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, dataInfo_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeSFixed64Size(5, lastupdatetimestamp_);
      }
      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.OafProtos.Oaf parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.Oaf 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.OafProtos.Oaf parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.Oaf 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.OafProtos.Oaf parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.Oaf 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.OafProtos.Oaf 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.OafProtos.Oaf 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.OafProtos.Oaf parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.Oaf 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.OafProtos.Oaf 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.OafProtos.OafOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_Oaf_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_Oaf_fieldAccessorTable;
      }
      
      // Construct using eu.dnetlib.data.proto.OafProtos.Oaf.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getEntityFieldBuilder();
          getRelFieldBuilder();
          getDataInfoFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        kind_ = eu.dnetlib.data.proto.KindProtos.Kind.entity;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (entityBuilder_ == null) {
          entity_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
        } else {
          entityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (relBuilder_ == null) {
          rel_ = eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance();
        } else {
          relBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (dataInfoBuilder_ == null) {
          dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance();
        } else {
          dataInfoBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        lastupdatetimestamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return eu.dnetlib.data.proto.OafProtos.Oaf.getDescriptor();
      }
      
      public eu.dnetlib.data.proto.OafProtos.Oaf getDefaultInstanceForType() {
        return eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance();
      }
      
      public eu.dnetlib.data.proto.OafProtos.Oaf build() {
        eu.dnetlib.data.proto.OafProtos.Oaf result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private eu.dnetlib.data.proto.OafProtos.Oaf buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        eu.dnetlib.data.proto.OafProtos.Oaf result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public eu.dnetlib.data.proto.OafProtos.Oaf buildPartial() {
        eu.dnetlib.data.proto.OafProtos.Oaf result = new eu.dnetlib.data.proto.OafProtos.Oaf(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.kind_ = kind_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (entityBuilder_ == null) {
          result.entity_ = entity_;
        } else {
          result.entity_ = entityBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (relBuilder_ == null) {
          result.rel_ = rel_;
        } else {
          result.rel_ = relBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (dataInfoBuilder_ == null) {
          result.dataInfo_ = dataInfo_;
        } else {
          result.dataInfo_ = dataInfoBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.lastupdatetimestamp_ = lastupdatetimestamp_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof eu.dnetlib.data.proto.OafProtos.Oaf) {
          return mergeFrom((eu.dnetlib.data.proto.OafProtos.Oaf)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(eu.dnetlib.data.proto.OafProtos.Oaf other) {
        if (other == eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance()) return this;
        if (other.hasKind()) {
          setKind(other.getKind());
        }
        if (other.hasEntity()) {
          mergeEntity(other.getEntity());
        }
        if (other.hasRel()) {
          mergeRel(other.getRel());
        }
        if (other.hasDataInfo()) {
          mergeDataInfo(other.getDataInfo());
        }
        if (other.hasLastupdatetimestamp()) {
          setLastupdatetimestamp(other.getLastupdatetimestamp());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (!hasKind()) {
          
          return false;
        }
        if (hasEntity()) {
          if (!getEntity().isInitialized()) {
            
            return false;
          }
        }
        if (hasRel()) {
          if (!getRel().isInitialized()) {
            
            return false;
          }
        }
        if (hasDataInfo()) {
          if (!getDataInfo().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 8: {
              int rawValue = input.readEnum();
              eu.dnetlib.data.proto.KindProtos.Kind value = eu.dnetlib.data.proto.KindProtos.Kind.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(1, rawValue);
              } else {
                bitField0_ |= 0x00000001;
                kind_ = value;
              }
              break;
            }
            case 18: {
              eu.dnetlib.data.proto.OafProtos.OafEntity.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder();
              if (hasEntity()) {
                subBuilder.mergeFrom(getEntity());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setEntity(subBuilder.buildPartial());
              break;
            }
            case 26: {
              eu.dnetlib.data.proto.OafProtos.OafRel.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.OafRel.newBuilder();
              if (hasRel()) {
                subBuilder.mergeFrom(getRel());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setRel(subBuilder.buildPartial());
              break;
            }
            case 34: {
              eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.newBuilder();
              if (hasDataInfo()) {
                subBuilder.mergeFrom(getDataInfo());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDataInfo(subBuilder.buildPartial());
              break;
            }
            case 41: {
              bitField0_ |= 0x00000010;
              lastupdatetimestamp_ = input.readSFixed64();
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required .eu.dnetlib.data.proto.Kind kind = 1;
      private eu.dnetlib.data.proto.KindProtos.Kind kind_ = eu.dnetlib.data.proto.KindProtos.Kind.entity;
      public boolean hasKind() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.KindProtos.Kind getKind() {
        return kind_;
      }
      public Builder setKind(eu.dnetlib.data.proto.KindProtos.Kind value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        kind_ = value;
        onChanged();
        return this;
      }
      public Builder clearKind() {
        bitField0_ = (bitField0_ & ~0x00000001);
        kind_ = eu.dnetlib.data.proto.KindProtos.Kind.entity;
        onChanged();
        return this;
      }
      
      // optional .eu.dnetlib.data.proto.OafEntity entity = 2;
      private eu.dnetlib.data.proto.OafProtos.OafEntity entity_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> entityBuilder_;
      public boolean hasEntity() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity getEntity() {
        if (entityBuilder_ == null) {
          return entity_;
        } else {
          return entityBuilder_.getMessage();
        }
      }
      public Builder setEntity(eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (entityBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          entity_ = value;
          onChanged();
        } else {
          entityBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder setEntity(
          eu.dnetlib.data.proto.OafProtos.OafEntity.Builder builderForValue) {
        if (entityBuilder_ == null) {
          entity_ = builderForValue.build();
          onChanged();
        } else {
          entityBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder mergeEntity(eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (entityBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              entity_ != eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance()) {
            entity_ =
              eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder(entity_).mergeFrom(value).buildPartial();
          } else {
            entity_ = value;
          }
          onChanged();
        } else {
          entityBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      public Builder clearEntity() {
        if (entityBuilder_ == null) {
          entity_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
          onChanged();
        } else {
          entityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity.Builder getEntityBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getEntityFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getEntityOrBuilder() {
        if (entityBuilder_ != null) {
          return entityBuilder_.getMessageOrBuilder();
        } else {
          return entity_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
          getEntityFieldBuilder() {
        if (entityBuilder_ == null) {
          entityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder>(
                  entity_,
                  getParentForChildren(),
                  isClean());
          entity_ = null;
        }
        return entityBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.OafRel rel = 3;
      private eu.dnetlib.data.proto.OafProtos.OafRel rel_ = eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> relBuilder_;
      public boolean hasRel() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel getRel() {
        if (relBuilder_ == null) {
          return rel_;
        } else {
          return relBuilder_.getMessage();
        }
      }
      public Builder setRel(eu.dnetlib.data.proto.OafProtos.OafRel value) {
        if (relBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          rel_ = value;
          onChanged();
        } else {
          relBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder setRel(
          eu.dnetlib.data.proto.OafProtos.OafRel.Builder builderForValue) {
        if (relBuilder_ == null) {
          rel_ = builderForValue.build();
          onChanged();
        } else {
          relBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder mergeRel(eu.dnetlib.data.proto.OafProtos.OafRel value) {
        if (relBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              rel_ != eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance()) {
            rel_ =
              eu.dnetlib.data.proto.OafProtos.OafRel.newBuilder(rel_).mergeFrom(value).buildPartial();
          } else {
            rel_ = value;
          }
          onChanged();
        } else {
          relBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder clearRel() {
        if (relBuilder_ == null) {
          rel_ = eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance();
          onChanged();
        } else {
          relBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel.Builder getRelBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getRelFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getRelOrBuilder() {
        if (relBuilder_ != null) {
          return relBuilder_.getMessageOrBuilder();
        } else {
          return rel_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> 
          getRelFieldBuilder() {
        if (relBuilder_ == null) {
          relBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder>(
                  rel_,
                  getParentForChildren(),
                  isClean());
          rel_ = null;
        }
        return relBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 4;
      private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.DataInfo, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder> dataInfoBuilder_;
      public boolean hasDataInfo() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() {
        if (dataInfoBuilder_ == null) {
          return dataInfo_;
        } else {
          return dataInfoBuilder_.getMessage();
        }
      }
      public Builder setDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) {
        if (dataInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          dataInfo_ = value;
          onChanged();
        } else {
          dataInfoBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder setDataInfo(
          eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder builderForValue) {
        if (dataInfoBuilder_ == null) {
          dataInfo_ = builderForValue.build();
          onChanged();
        } else {
          dataInfoBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) {
        if (dataInfoBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              dataInfo_ != eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance()) {
            dataInfo_ =
              eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.newBuilder(dataInfo_).mergeFrom(value).buildPartial();
          } else {
            dataInfo_ = value;
          }
          onChanged();
        } else {
          dataInfoBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      public Builder clearDataInfo() {
        if (dataInfoBuilder_ == null) {
          dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance();
          onChanged();
        } else {
          dataInfoBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getDataInfoFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() {
        if (dataInfoBuilder_ != null) {
          return dataInfoBuilder_.getMessageOrBuilder();
        } else {
          return dataInfo_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.DataInfo, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder> 
          getDataInfoFieldBuilder() {
        if (dataInfoBuilder_ == null) {
          dataInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.DataInfo, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder>(
                  dataInfo_,
                  getParentForChildren(),
                  isClean());
          dataInfo_ = null;
        }
        return dataInfoBuilder_;
      }
      
      // optional sfixed64 lastupdatetimestamp = 5;
      private long lastupdatetimestamp_ ;
      public boolean hasLastupdatetimestamp() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      public long getLastupdatetimestamp() {
        return lastupdatetimestamp_;
      }
      public Builder setLastupdatetimestamp(long value) {
        bitField0_ |= 0x00000010;
        lastupdatetimestamp_ = value;
        onChanged();
        return this;
      }
      public Builder clearLastupdatetimestamp() {
        bitField0_ = (bitField0_ & ~0x00000010);
        lastupdatetimestamp_ = 0L;
        onChanged();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Oaf)
    }
    
    static {
      defaultInstance = new Oaf(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Oaf)
  }
  
  public interface OafEntityOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required .eu.dnetlib.data.proto.Type type = 1;
    boolean hasType();
    eu.dnetlib.data.proto.TypeProtos.Type getType();
    
    // required string id = 12;
    boolean hasId();
    String getId();
    
    // repeated string originalId = 8;
    java.util.List<String> getOriginalIdList();
    int getOriginalIdCount();
    String getOriginalId(int index);
    
    // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 9;
    java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> 
        getCollectedfromList();
    eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index);
    int getCollectedfromCount();
    java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
        getCollectedfromOrBuilderList();
    eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
        int index);
    
    // repeated .eu.dnetlib.data.proto.StructuredProperty pid = 10;
    java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> 
        getPidList();
    eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getPid(int index);
    int getPidCount();
    java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> 
        getPidOrBuilderList();
    eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getPidOrBuilder(
        int index);
    
    // optional string dateofcollection = 11;
    boolean hasDateofcollection();
    String getDateofcollection();
    
    // optional string dateoftransformation = 13;
    boolean hasDateoftransformation();
    String getDateoftransformation();
    
    // repeated .eu.dnetlib.data.proto.OafRel cachedRel = 2;
    java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel> 
        getCachedRelList();
    eu.dnetlib.data.proto.OafProtos.OafRel getCachedRel(int index);
    int getCachedRelCount();
    java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> 
        getCachedRelOrBuilderList();
    eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getCachedRelOrBuilder(
        int index);
    
    // repeated .eu.dnetlib.data.proto.Oaf cachedOafRel = 18;
    java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf> 
        getCachedOafRelList();
    eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafRel(int index);
    int getCachedOafRelCount();
    java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafOrBuilder> 
        getCachedOafRelOrBuilderList();
    eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafRelOrBuilder(
        int index);
    
    // optional .eu.dnetlib.data.proto.Datasource datasource = 3;
    boolean hasDatasource();
    eu.dnetlib.data.proto.DatasourceProtos.Datasource getDatasource();
    eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder getDatasourceOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Organization organization = 4;
    boolean hasOrganization();
    eu.dnetlib.data.proto.OrganizationProtos.Organization getOrganization();
    eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder getOrganizationOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Project project = 6;
    boolean hasProject();
    eu.dnetlib.data.proto.ProjectProtos.Project getProject();
    eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder getProjectOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Result result = 7;
    boolean hasResult();
    eu.dnetlib.data.proto.ResultProtos.Result getResult();
    eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder getResultOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Person person = 5;
    boolean hasPerson();
    eu.dnetlib.data.proto.PersonProtos.Person getPerson();
    eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder getPersonOrBuilder();
    
    // repeated .eu.dnetlib.data.proto.OafEntity children = 16;
    java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity> 
        getChildrenList();
    eu.dnetlib.data.proto.OafProtos.OafEntity getChildren(int index);
    int getChildrenCount();
    java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
        getChildrenOrBuilderList();
    eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getChildrenOrBuilder(
        int index);
    
    // repeated .eu.dnetlib.data.proto.ExtraInfo extraInfo = 15;
    java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> 
        getExtraInfoList();
    eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo getExtraInfo(int index);
    int getExtraInfoCount();
    java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder> 
        getExtraInfoOrBuilderList();
    eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder getExtraInfoOrBuilder(
        int index);
    
    // optional .eu.dnetlib.data.proto.OAIProvenance oaiprovenance = 17;
    boolean hasOaiprovenance();
    eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance getOaiprovenance();
    eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder getOaiprovenanceOrBuilder();
  }
  public static final class OafEntity extends
      com.google.protobuf.GeneratedMessage
      implements OafEntityOrBuilder {
    // Use OafEntity.newBuilder() to construct.
    private OafEntity(Builder builder) {
      super(builder);
    }
    private OafEntity(boolean noInit) {}
    
    private static final OafEntity defaultInstance;
    public static OafEntity getDefaultInstance() {
      return defaultInstance;
    }
    
    public OafEntity getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafEntity_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafEntity_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required .eu.dnetlib.data.proto.Type type = 1;
    public static final int TYPE_FIELD_NUMBER = 1;
    private eu.dnetlib.data.proto.TypeProtos.Type type_;
    public boolean hasType() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public eu.dnetlib.data.proto.TypeProtos.Type getType() {
      return type_;
    }
    
    // required string id = 12;
    public static final int ID_FIELD_NUMBER = 12;
    private java.lang.Object id_;
    public boolean hasId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public String getId() {
      java.lang.Object ref = id_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          id_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // repeated string originalId = 8;
    public static final int ORIGINALID_FIELD_NUMBER = 8;
    private com.google.protobuf.LazyStringList originalId_;
    public java.util.List<String>
        getOriginalIdList() {
      return originalId_;
    }
    public int getOriginalIdCount() {
      return originalId_.size();
    }
    public String getOriginalId(int index) {
      return originalId_.get(index);
    }
    
    // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 9;
    public static final int COLLECTEDFROM_FIELD_NUMBER = 9;
    private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> collectedfrom_;
    public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> getCollectedfromList() {
      return collectedfrom_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
        getCollectedfromOrBuilderList() {
      return collectedfrom_;
    }
    public int getCollectedfromCount() {
      return collectedfrom_.size();
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index) {
      return collectedfrom_.get(index);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
        int index) {
      return collectedfrom_.get(index);
    }
    
    // repeated .eu.dnetlib.data.proto.StructuredProperty pid = 10;
    public static final int PID_FIELD_NUMBER = 10;
    private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> pid_;
    public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> getPidList() {
      return pid_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> 
        getPidOrBuilderList() {
      return pid_;
    }
    public int getPidCount() {
      return pid_.size();
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getPid(int index) {
      return pid_.get(index);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getPidOrBuilder(
        int index) {
      return pid_.get(index);
    }
    
    // optional string dateofcollection = 11;
    public static final int DATEOFCOLLECTION_FIELD_NUMBER = 11;
    private java.lang.Object dateofcollection_;
    public boolean hasDateofcollection() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public String getDateofcollection() {
      java.lang.Object ref = dateofcollection_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          dateofcollection_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getDateofcollectionBytes() {
      java.lang.Object ref = dateofcollection_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        dateofcollection_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // optional string dateoftransformation = 13;
    public static final int DATEOFTRANSFORMATION_FIELD_NUMBER = 13;
    private java.lang.Object dateoftransformation_;
    public boolean hasDateoftransformation() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    public String getDateoftransformation() {
      java.lang.Object ref = dateoftransformation_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          dateoftransformation_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getDateoftransformationBytes() {
      java.lang.Object ref = dateoftransformation_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        dateoftransformation_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // repeated .eu.dnetlib.data.proto.OafRel cachedRel = 2;
    public static final int CACHEDREL_FIELD_NUMBER = 2;
    private java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel> cachedRel_;
    public java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel> getCachedRelList() {
      return cachedRel_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> 
        getCachedRelOrBuilderList() {
      return cachedRel_;
    }
    public int getCachedRelCount() {
      return cachedRel_.size();
    }
    public eu.dnetlib.data.proto.OafProtos.OafRel getCachedRel(int index) {
      return cachedRel_.get(index);
    }
    public eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getCachedRelOrBuilder(
        int index) {
      return cachedRel_.get(index);
    }
    
    // repeated .eu.dnetlib.data.proto.Oaf cachedOafRel = 18;
    public static final int CACHEDOAFREL_FIELD_NUMBER = 18;
    private java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf> cachedOafRel_;
    public java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf> getCachedOafRelList() {
      return cachedOafRel_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafOrBuilder> 
        getCachedOafRelOrBuilderList() {
      return cachedOafRel_;
    }
    public int getCachedOafRelCount() {
      return cachedOafRel_.size();
    }
    public eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafRel(int index) {
      return cachedOafRel_.get(index);
    }
    public eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafRelOrBuilder(
        int index) {
      return cachedOafRel_.get(index);
    }
    
    // optional .eu.dnetlib.data.proto.Datasource datasource = 3;
    public static final int DATASOURCE_FIELD_NUMBER = 3;
    private eu.dnetlib.data.proto.DatasourceProtos.Datasource datasource_;
    public boolean hasDatasource() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    public eu.dnetlib.data.proto.DatasourceProtos.Datasource getDatasource() {
      return datasource_;
    }
    public eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder getDatasourceOrBuilder() {
      return datasource_;
    }
    
    // optional .eu.dnetlib.data.proto.Organization organization = 4;
    public static final int ORGANIZATION_FIELD_NUMBER = 4;
    private eu.dnetlib.data.proto.OrganizationProtos.Organization organization_;
    public boolean hasOrganization() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    public eu.dnetlib.data.proto.OrganizationProtos.Organization getOrganization() {
      return organization_;
    }
    public eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder getOrganizationOrBuilder() {
      return organization_;
    }
    
    // optional .eu.dnetlib.data.proto.Project project = 6;
    public static final int PROJECT_FIELD_NUMBER = 6;
    private eu.dnetlib.data.proto.ProjectProtos.Project project_;
    public boolean hasProject() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    public eu.dnetlib.data.proto.ProjectProtos.Project getProject() {
      return project_;
    }
    public eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder getProjectOrBuilder() {
      return project_;
    }
    
    // optional .eu.dnetlib.data.proto.Result result = 7;
    public static final int RESULT_FIELD_NUMBER = 7;
    private eu.dnetlib.data.proto.ResultProtos.Result result_;
    public boolean hasResult() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    public eu.dnetlib.data.proto.ResultProtos.Result getResult() {
      return result_;
    }
    public eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder getResultOrBuilder() {
      return result_;
    }
    
    // optional .eu.dnetlib.data.proto.Person person = 5;
    public static final int PERSON_FIELD_NUMBER = 5;
    private eu.dnetlib.data.proto.PersonProtos.Person person_;
    public boolean hasPerson() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    public eu.dnetlib.data.proto.PersonProtos.Person getPerson() {
      return person_;
    }
    public eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder getPersonOrBuilder() {
      return person_;
    }
    
    // repeated .eu.dnetlib.data.proto.OafEntity children = 16;
    public static final int CHILDREN_FIELD_NUMBER = 16;
    private java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity> children_;
    public java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity> getChildrenList() {
      return children_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
        getChildrenOrBuilderList() {
      return children_;
    }
    public int getChildrenCount() {
      return children_.size();
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntity getChildren(int index) {
      return children_.get(index);
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getChildrenOrBuilder(
        int index) {
      return children_.get(index);
    }
    
    // repeated .eu.dnetlib.data.proto.ExtraInfo extraInfo = 15;
    public static final int EXTRAINFO_FIELD_NUMBER = 15;
    private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> extraInfo_;
    public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> getExtraInfoList() {
      return extraInfo_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder> 
        getExtraInfoOrBuilderList() {
      return extraInfo_;
    }
    public int getExtraInfoCount() {
      return extraInfo_.size();
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo getExtraInfo(int index) {
      return extraInfo_.get(index);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder getExtraInfoOrBuilder(
        int index) {
      return extraInfo_.get(index);
    }
    
    // optional .eu.dnetlib.data.proto.OAIProvenance oaiprovenance = 17;
    public static final int OAIPROVENANCE_FIELD_NUMBER = 17;
    private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance oaiprovenance_;
    public boolean hasOaiprovenance() {
      return ((bitField0_ & 0x00000200) == 0x00000200);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance getOaiprovenance() {
      return oaiprovenance_;
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder getOaiprovenanceOrBuilder() {
      return oaiprovenance_;
    }
    
    private void initFields() {
      type_ = eu.dnetlib.data.proto.TypeProtos.Type.datasource;
      id_ = "";
      originalId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      collectedfrom_ = java.util.Collections.emptyList();
      pid_ = java.util.Collections.emptyList();
      dateofcollection_ = "";
      dateoftransformation_ = "";
      cachedRel_ = java.util.Collections.emptyList();
      cachedOafRel_ = java.util.Collections.emptyList();
      datasource_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance();
      organization_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance();
      project_ = eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance();
      result_ = eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance();
      person_ = eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance();
      children_ = java.util.Collections.emptyList();
      extraInfo_ = java.util.Collections.emptyList();
      oaiprovenance_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (!hasType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getCollectedfromCount(); i++) {
        if (!getCollectedfrom(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getPidCount(); i++) {
        if (!getPid(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getCachedRelCount(); i++) {
        if (!getCachedRel(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getCachedOafRelCount(); i++) {
        if (!getCachedOafRel(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasDatasource()) {
        if (!getDatasource().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasOrganization()) {
        if (!getOrganization().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasProject()) {
        if (!getProject().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasResult()) {
        if (!getResult().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasPerson()) {
        if (!getPerson().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getChildrenCount(); i++) {
        if (!getChildren(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getExtraInfoCount(); i++) {
        if (!getExtraInfo(i).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.writeEnum(1, type_.getNumber());
      }
      for (int i = 0; i < cachedRel_.size(); i++) {
        output.writeMessage(2, cachedRel_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeMessage(3, datasource_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeMessage(4, organization_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeMessage(5, person_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeMessage(6, project_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(7, result_);
      }
      for (int i = 0; i < originalId_.size(); i++) {
        output.writeBytes(8, originalId_.getByteString(i));
      }
      for (int i = 0; i < collectedfrom_.size(); i++) {
        output.writeMessage(9, collectedfrom_.get(i));
      }
      for (int i = 0; i < pid_.size(); i++) {
        output.writeMessage(10, pid_.get(i));
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(11, getDateofcollectionBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(12, getIdBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(13, getDateoftransformationBytes());
      }
      for (int i = 0; i < extraInfo_.size(); i++) {
        output.writeMessage(15, extraInfo_.get(i));
      }
      for (int i = 0; i < children_.size(); i++) {
        output.writeMessage(16, children_.get(i));
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        output.writeMessage(17, oaiprovenance_);
      }
      for (int i = 0; i < cachedOafRel_.size(); i++) {
        output.writeMessage(18, cachedOafRel_.get(i));
      }
      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
          .computeEnumSize(1, type_.getNumber());
      }
      for (int i = 0; i < cachedRel_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, cachedRel_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, datasource_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, organization_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, person_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, project_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, result_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < originalId_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(originalId_.getByteString(i));
        }
        size += dataSize;
        size += 1 * getOriginalIdList().size();
      }
      for (int i = 0; i < collectedfrom_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, collectedfrom_.get(i));
      }
      for (int i = 0; i < pid_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, pid_.get(i));
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(11, getDateofcollectionBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(12, getIdBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(13, getDateoftransformationBytes());
      }
      for (int i = 0; i < extraInfo_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(15, extraInfo_.get(i));
      }
      for (int i = 0; i < children_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(16, children_.get(i));
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(17, oaiprovenance_);
      }
      for (int i = 0; i < cachedOafRel_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(18, cachedOafRel_.get(i));
      }
      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.OafProtos.OafEntity parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafEntity 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.OafProtos.OafEntity parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafEntity 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.OafProtos.OafEntity parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafEntity 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.OafProtos.OafEntity 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.OafProtos.OafEntity 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.OafProtos.OafEntity parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafEntity 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.OafProtos.OafEntity 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.OafProtos.OafEntityOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafEntity_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafEntity_fieldAccessorTable;
      }
      
      // Construct using eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getCollectedfromFieldBuilder();
          getPidFieldBuilder();
          getCachedRelFieldBuilder();
          getCachedOafRelFieldBuilder();
          getDatasourceFieldBuilder();
          getOrganizationFieldBuilder();
          getProjectFieldBuilder();
          getResultFieldBuilder();
          getPersonFieldBuilder();
          getChildrenFieldBuilder();
          getExtraInfoFieldBuilder();
          getOaiprovenanceFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        type_ = eu.dnetlib.data.proto.TypeProtos.Type.datasource;
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        originalId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        if (collectedfromBuilder_ == null) {
          collectedfrom_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          collectedfromBuilder_.clear();
        }
        if (pidBuilder_ == null) {
          pid_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          pidBuilder_.clear();
        }
        dateofcollection_ = "";
        bitField0_ = (bitField0_ & ~0x00000020);
        dateoftransformation_ = "";
        bitField0_ = (bitField0_ & ~0x00000040);
        if (cachedRelBuilder_ == null) {
          cachedRel_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000080);
        } else {
          cachedRelBuilder_.clear();
        }
        if (cachedOafRelBuilder_ == null) {
          cachedOafRel_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
        } else {
          cachedOafRelBuilder_.clear();
        }
        if (datasourceBuilder_ == null) {
          datasource_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance();
        } else {
          datasourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        if (organizationBuilder_ == null) {
          organization_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance();
        } else {
          organizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        if (projectBuilder_ == null) {
          project_ = eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance();
        } else {
          projectBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000800);
        if (resultBuilder_ == null) {
          result_ = eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance();
        } else {
          resultBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00001000);
        if (personBuilder_ == null) {
          person_ = eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance();
        } else {
          personBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00002000);
        if (childrenBuilder_ == null) {
          children_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00004000);
        } else {
          childrenBuilder_.clear();
        }
        if (extraInfoBuilder_ == null) {
          extraInfo_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00008000);
        } else {
          extraInfoBuilder_.clear();
        }
        if (oaiprovenanceBuilder_ == null) {
          oaiprovenance_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance();
        } else {
          oaiprovenanceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00010000);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return eu.dnetlib.data.proto.OafProtos.OafEntity.getDescriptor();
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafEntity getDefaultInstanceForType() {
        return eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafEntity build() {
        eu.dnetlib.data.proto.OafProtos.OafEntity result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private eu.dnetlib.data.proto.OafProtos.OafEntity buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        eu.dnetlib.data.proto.OafProtos.OafEntity result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafEntity buildPartial() {
        eu.dnetlib.data.proto.OafProtos.OafEntity result = new eu.dnetlib.data.proto.OafProtos.OafEntity(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.type_ = type_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.id_ = id_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          originalId_ = new com.google.protobuf.UnmodifiableLazyStringList(
              originalId_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.originalId_ = originalId_;
        if (collectedfromBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            collectedfrom_ = java.util.Collections.unmodifiableList(collectedfrom_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.collectedfrom_ = collectedfrom_;
        } else {
          result.collectedfrom_ = collectedfromBuilder_.build();
        }
        if (pidBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010)) {
            pid_ = java.util.Collections.unmodifiableList(pid_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.pid_ = pid_;
        } else {
          result.pid_ = pidBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000004;
        }
        result.dateofcollection_ = dateofcollection_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000008;
        }
        result.dateoftransformation_ = dateoftransformation_;
        if (cachedRelBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080)) {
            cachedRel_ = java.util.Collections.unmodifiableList(cachedRel_);
            bitField0_ = (bitField0_ & ~0x00000080);
          }
          result.cachedRel_ = cachedRel_;
        } else {
          result.cachedRel_ = cachedRelBuilder_.build();
        }
        if (cachedOafRelBuilder_ == null) {
          if (((bitField0_ & 0x00000100) == 0x00000100)) {
            cachedOafRel_ = java.util.Collections.unmodifiableList(cachedOafRel_);
            bitField0_ = (bitField0_ & ~0x00000100);
          }
          result.cachedOafRel_ = cachedOafRel_;
        } else {
          result.cachedOafRel_ = cachedOafRelBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000010;
        }
        if (datasourceBuilder_ == null) {
          result.datasource_ = datasource_;
        } else {
          result.datasource_ = datasourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000020;
        }
        if (organizationBuilder_ == null) {
          result.organization_ = organization_;
        } else {
          result.organization_ = organizationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
          to_bitField0_ |= 0x00000040;
        }
        if (projectBuilder_ == null) {
          result.project_ = project_;
        } else {
          result.project_ = projectBuilder_.build();
        }
        if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
          to_bitField0_ |= 0x00000080;
        }
        if (resultBuilder_ == null) {
          result.result_ = result_;
        } else {
          result.result_ = resultBuilder_.build();
        }
        if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
          to_bitField0_ |= 0x00000100;
        }
        if (personBuilder_ == null) {
          result.person_ = person_;
        } else {
          result.person_ = personBuilder_.build();
        }
        if (childrenBuilder_ == null) {
          if (((bitField0_ & 0x00004000) == 0x00004000)) {
            children_ = java.util.Collections.unmodifiableList(children_);
            bitField0_ = (bitField0_ & ~0x00004000);
          }
          result.children_ = children_;
        } else {
          result.children_ = childrenBuilder_.build();
        }
        if (extraInfoBuilder_ == null) {
          if (((bitField0_ & 0x00008000) == 0x00008000)) {
            extraInfo_ = java.util.Collections.unmodifiableList(extraInfo_);
            bitField0_ = (bitField0_ & ~0x00008000);
          }
          result.extraInfo_ = extraInfo_;
        } else {
          result.extraInfo_ = extraInfoBuilder_.build();
        }
        if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
          to_bitField0_ |= 0x00000200;
        }
        if (oaiprovenanceBuilder_ == null) {
          result.oaiprovenance_ = oaiprovenance_;
        } else {
          result.oaiprovenance_ = oaiprovenanceBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof eu.dnetlib.data.proto.OafProtos.OafEntity) {
          return mergeFrom((eu.dnetlib.data.proto.OafProtos.OafEntity)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(eu.dnetlib.data.proto.OafProtos.OafEntity other) {
        if (other == eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance()) return this;
        if (other.hasType()) {
          setType(other.getType());
        }
        if (other.hasId()) {
          setId(other.getId());
        }
        if (!other.originalId_.isEmpty()) {
          if (originalId_.isEmpty()) {
            originalId_ = other.originalId_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureOriginalIdIsMutable();
            originalId_.addAll(other.originalId_);
          }
          onChanged();
        }
        if (collectedfromBuilder_ == null) {
          if (!other.collectedfrom_.isEmpty()) {
            if (collectedfrom_.isEmpty()) {
              collectedfrom_ = other.collectedfrom_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureCollectedfromIsMutable();
              collectedfrom_.addAll(other.collectedfrom_);
            }
            onChanged();
          }
        } else {
          if (!other.collectedfrom_.isEmpty()) {
            if (collectedfromBuilder_.isEmpty()) {
              collectedfromBuilder_.dispose();
              collectedfromBuilder_ = null;
              collectedfrom_ = other.collectedfrom_;
              bitField0_ = (bitField0_ & ~0x00000008);
              collectedfromBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getCollectedfromFieldBuilder() : null;
            } else {
              collectedfromBuilder_.addAllMessages(other.collectedfrom_);
            }
          }
        }
        if (pidBuilder_ == null) {
          if (!other.pid_.isEmpty()) {
            if (pid_.isEmpty()) {
              pid_ = other.pid_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensurePidIsMutable();
              pid_.addAll(other.pid_);
            }
            onChanged();
          }
        } else {
          if (!other.pid_.isEmpty()) {
            if (pidBuilder_.isEmpty()) {
              pidBuilder_.dispose();
              pidBuilder_ = null;
              pid_ = other.pid_;
              bitField0_ = (bitField0_ & ~0x00000010);
              pidBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getPidFieldBuilder() : null;
            } else {
              pidBuilder_.addAllMessages(other.pid_);
            }
          }
        }
        if (other.hasDateofcollection()) {
          setDateofcollection(other.getDateofcollection());
        }
        if (other.hasDateoftransformation()) {
          setDateoftransformation(other.getDateoftransformation());
        }
        if (cachedRelBuilder_ == null) {
          if (!other.cachedRel_.isEmpty()) {
            if (cachedRel_.isEmpty()) {
              cachedRel_ = other.cachedRel_;
              bitField0_ = (bitField0_ & ~0x00000080);
            } else {
              ensureCachedRelIsMutable();
              cachedRel_.addAll(other.cachedRel_);
            }
            onChanged();
          }
        } else {
          if (!other.cachedRel_.isEmpty()) {
            if (cachedRelBuilder_.isEmpty()) {
              cachedRelBuilder_.dispose();
              cachedRelBuilder_ = null;
              cachedRel_ = other.cachedRel_;
              bitField0_ = (bitField0_ & ~0x00000080);
              cachedRelBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getCachedRelFieldBuilder() : null;
            } else {
              cachedRelBuilder_.addAllMessages(other.cachedRel_);
            }
          }
        }
        if (cachedOafRelBuilder_ == null) {
          if (!other.cachedOafRel_.isEmpty()) {
            if (cachedOafRel_.isEmpty()) {
              cachedOafRel_ = other.cachedOafRel_;
              bitField0_ = (bitField0_ & ~0x00000100);
            } else {
              ensureCachedOafRelIsMutable();
              cachedOafRel_.addAll(other.cachedOafRel_);
            }
            onChanged();
          }
        } else {
          if (!other.cachedOafRel_.isEmpty()) {
            if (cachedOafRelBuilder_.isEmpty()) {
              cachedOafRelBuilder_.dispose();
              cachedOafRelBuilder_ = null;
              cachedOafRel_ = other.cachedOafRel_;
              bitField0_ = (bitField0_ & ~0x00000100);
              cachedOafRelBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getCachedOafRelFieldBuilder() : null;
            } else {
              cachedOafRelBuilder_.addAllMessages(other.cachedOafRel_);
            }
          }
        }
        if (other.hasDatasource()) {
          mergeDatasource(other.getDatasource());
        }
        if (other.hasOrganization()) {
          mergeOrganization(other.getOrganization());
        }
        if (other.hasProject()) {
          mergeProject(other.getProject());
        }
        if (other.hasResult()) {
          mergeResult(other.getResult());
        }
        if (other.hasPerson()) {
          mergePerson(other.getPerson());
        }
        if (childrenBuilder_ == null) {
          if (!other.children_.isEmpty()) {
            if (children_.isEmpty()) {
              children_ = other.children_;
              bitField0_ = (bitField0_ & ~0x00004000);
            } else {
              ensureChildrenIsMutable();
              children_.addAll(other.children_);
            }
            onChanged();
          }
        } else {
          if (!other.children_.isEmpty()) {
            if (childrenBuilder_.isEmpty()) {
              childrenBuilder_.dispose();
              childrenBuilder_ = null;
              children_ = other.children_;
              bitField0_ = (bitField0_ & ~0x00004000);
              childrenBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getChildrenFieldBuilder() : null;
            } else {
              childrenBuilder_.addAllMessages(other.children_);
            }
          }
        }
        if (extraInfoBuilder_ == null) {
          if (!other.extraInfo_.isEmpty()) {
            if (extraInfo_.isEmpty()) {
              extraInfo_ = other.extraInfo_;
              bitField0_ = (bitField0_ & ~0x00008000);
            } else {
              ensureExtraInfoIsMutable();
              extraInfo_.addAll(other.extraInfo_);
            }
            onChanged();
          }
        } else {
          if (!other.extraInfo_.isEmpty()) {
            if (extraInfoBuilder_.isEmpty()) {
              extraInfoBuilder_.dispose();
              extraInfoBuilder_ = null;
              extraInfo_ = other.extraInfo_;
              bitField0_ = (bitField0_ & ~0x00008000);
              extraInfoBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getExtraInfoFieldBuilder() : null;
            } else {
              extraInfoBuilder_.addAllMessages(other.extraInfo_);
            }
          }
        }
        if (other.hasOaiprovenance()) {
          mergeOaiprovenance(other.getOaiprovenance());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (!hasType()) {
          
          return false;
        }
        if (!hasId()) {
          
          return false;
        }
        for (int i = 0; i < getCollectedfromCount(); i++) {
          if (!getCollectedfrom(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getPidCount(); i++) {
          if (!getPid(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getCachedRelCount(); i++) {
          if (!getCachedRel(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getCachedOafRelCount(); i++) {
          if (!getCachedOafRel(i).isInitialized()) {
            
            return false;
          }
        }
        if (hasDatasource()) {
          if (!getDatasource().isInitialized()) {
            
            return false;
          }
        }
        if (hasOrganization()) {
          if (!getOrganization().isInitialized()) {
            
            return false;
          }
        }
        if (hasProject()) {
          if (!getProject().isInitialized()) {
            
            return false;
          }
        }
        if (hasResult()) {
          if (!getResult().isInitialized()) {
            
            return false;
          }
        }
        if (hasPerson()) {
          if (!getPerson().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getChildrenCount(); i++) {
          if (!getChildren(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getExtraInfoCount(); i++) {
          if (!getExtraInfo(i).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 8: {
              int rawValue = input.readEnum();
              eu.dnetlib.data.proto.TypeProtos.Type value = eu.dnetlib.data.proto.TypeProtos.Type.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(1, rawValue);
              } else {
                bitField0_ |= 0x00000001;
                type_ = value;
              }
              break;
            }
            case 18: {
              eu.dnetlib.data.proto.OafProtos.OafRel.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.OafRel.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addCachedRel(subBuilder.buildPartial());
              break;
            }
            case 26: {
              eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder subBuilder = eu.dnetlib.data.proto.DatasourceProtos.Datasource.newBuilder();
              if (hasDatasource()) {
                subBuilder.mergeFrom(getDatasource());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDatasource(subBuilder.buildPartial());
              break;
            }
            case 34: {
              eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder subBuilder = eu.dnetlib.data.proto.OrganizationProtos.Organization.newBuilder();
              if (hasOrganization()) {
                subBuilder.mergeFrom(getOrganization());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setOrganization(subBuilder.buildPartial());
              break;
            }
            case 42: {
              eu.dnetlib.data.proto.PersonProtos.Person.Builder subBuilder = eu.dnetlib.data.proto.PersonProtos.Person.newBuilder();
              if (hasPerson()) {
                subBuilder.mergeFrom(getPerson());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setPerson(subBuilder.buildPartial());
              break;
            }
            case 50: {
              eu.dnetlib.data.proto.ProjectProtos.Project.Builder subBuilder = eu.dnetlib.data.proto.ProjectProtos.Project.newBuilder();
              if (hasProject()) {
                subBuilder.mergeFrom(getProject());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setProject(subBuilder.buildPartial());
              break;
            }
            case 58: {
              eu.dnetlib.data.proto.ResultProtos.Result.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.newBuilder();
              if (hasResult()) {
                subBuilder.mergeFrom(getResult());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setResult(subBuilder.buildPartial());
              break;
            }
            case 66: {
              ensureOriginalIdIsMutable();
              originalId_.add(input.readBytes());
              break;
            }
            case 74: {
              eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addCollectedfrom(subBuilder.buildPartial());
              break;
            }
            case 82: {
              eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addPid(subBuilder.buildPartial());
              break;
            }
            case 90: {
              bitField0_ |= 0x00000020;
              dateofcollection_ = input.readBytes();
              break;
            }
            case 98: {
              bitField0_ |= 0x00000002;
              id_ = input.readBytes();
              break;
            }
            case 106: {
              bitField0_ |= 0x00000040;
              dateoftransformation_ = input.readBytes();
              break;
            }
            case 122: {
              eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addExtraInfo(subBuilder.buildPartial());
              break;
            }
            case 130: {
              eu.dnetlib.data.proto.OafProtos.OafEntity.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addChildren(subBuilder.buildPartial());
              break;
            }
            case 138: {
              eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.newBuilder();
              if (hasOaiprovenance()) {
                subBuilder.mergeFrom(getOaiprovenance());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setOaiprovenance(subBuilder.buildPartial());
              break;
            }
            case 146: {
              eu.dnetlib.data.proto.OafProtos.Oaf.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.Oaf.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addCachedOafRel(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required .eu.dnetlib.data.proto.Type type = 1;
      private eu.dnetlib.data.proto.TypeProtos.Type type_ = eu.dnetlib.data.proto.TypeProtos.Type.datasource;
      public boolean hasType() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.TypeProtos.Type getType() {
        return type_;
      }
      public Builder setType(eu.dnetlib.data.proto.TypeProtos.Type value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        type_ = value;
        onChanged();
        return this;
      }
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        type_ = eu.dnetlib.data.proto.TypeProtos.Type.datasource;
        onChanged();
        return this;
      }
      
      // required string id = 12;
      private java.lang.Object id_ = "";
      public boolean hasId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setId(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        id_ = value;
        onChanged();
        return this;
      }
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      void setId(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000002;
        id_ = value;
        onChanged();
      }
      
      // repeated string originalId = 8;
      private com.google.protobuf.LazyStringList originalId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureOriginalIdIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          originalId_ = new com.google.protobuf.LazyStringArrayList(originalId_);
          bitField0_ |= 0x00000004;
         }
      }
      public java.util.List<String>
          getOriginalIdList() {
        return java.util.Collections.unmodifiableList(originalId_);
      }
      public int getOriginalIdCount() {
        return originalId_.size();
      }
      public String getOriginalId(int index) {
        return originalId_.get(index);
      }
      public Builder setOriginalId(
          int index, String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureOriginalIdIsMutable();
        originalId_.set(index, value);
        onChanged();
        return this;
      }
      public Builder addOriginalId(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureOriginalIdIsMutable();
        originalId_.add(value);
        onChanged();
        return this;
      }
      public Builder addAllOriginalId(
          java.lang.Iterable<String> values) {
        ensureOriginalIdIsMutable();
        super.addAll(values, originalId_);
        onChanged();
        return this;
      }
      public Builder clearOriginalId() {
        originalId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      void addOriginalId(com.google.protobuf.ByteString value) {
        ensureOriginalIdIsMutable();
        originalId_.add(value);
        onChanged();
      }
      
      // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 9;
      private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> collectedfrom_ =
        java.util.Collections.emptyList();
      private void ensureCollectedfromIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          collectedfrom_ = new java.util.ArrayList<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue>(collectedfrom_);
          bitField0_ |= 0x00000008;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> collectedfromBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> getCollectedfromList() {
        if (collectedfromBuilder_ == null) {
          return java.util.Collections.unmodifiableList(collectedfrom_);
        } else {
          return collectedfromBuilder_.getMessageList();
        }
      }
      public int getCollectedfromCount() {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.size();
        } else {
          return collectedfromBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index) {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.get(index);
        } else {
          return collectedfromBuilder_.getMessage(index);
        }
      }
      public Builder setCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.set(index, value);
          onChanged();
        } else {
          collectedfromBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.set(index, builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addCollectedfrom(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.add(value);
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.add(index, value);
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addCollectedfrom(
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.add(builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.add(index, builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllCollectedfrom(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> values) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          super.addAll(values, collectedfrom_);
          onChanged();
        } else {
          collectedfromBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearCollectedfrom() {
        if (collectedfromBuilder_ == null) {
          collectedfrom_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          collectedfromBuilder_.clear();
        }
        return this;
      }
      public Builder removeCollectedfrom(int index) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.remove(index);
          onChanged();
        } else {
          collectedfromBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder getCollectedfromBuilder(
          int index) {
        return getCollectedfromFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
          int index) {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.get(index);  } else {
          return collectedfromBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
           getCollectedfromOrBuilderList() {
        if (collectedfromBuilder_ != null) {
          return collectedfromBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(collectedfrom_);
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addCollectedfromBuilder() {
        return getCollectedfromFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addCollectedfromBuilder(
          int index) {
        return getCollectedfromFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder> 
           getCollectedfromBuilderList() {
        return getCollectedfromFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
          getCollectedfromFieldBuilder() {
        if (collectedfromBuilder_ == null) {
          collectedfromBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>(
                  collectedfrom_,
                  ((bitField0_ & 0x00000008) == 0x00000008),
                  getParentForChildren(),
                  isClean());
          collectedfrom_ = null;
        }
        return collectedfromBuilder_;
      }
      
      // repeated .eu.dnetlib.data.proto.StructuredProperty pid = 10;
      private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> pid_ =
        java.util.Collections.emptyList();
      private void ensurePidIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          pid_ = new java.util.ArrayList<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty>(pid_);
          bitField0_ |= 0x00000010;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> pidBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> getPidList() {
        if (pidBuilder_ == null) {
          return java.util.Collections.unmodifiableList(pid_);
        } else {
          return pidBuilder_.getMessageList();
        }
      }
      public int getPidCount() {
        if (pidBuilder_ == null) {
          return pid_.size();
        } else {
          return pidBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getPid(int index) {
        if (pidBuilder_ == null) {
          return pid_.get(index);
        } else {
          return pidBuilder_.getMessage(index);
        }
      }
      public Builder setPid(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) {
        if (pidBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePidIsMutable();
          pid_.set(index, value);
          onChanged();
        } else {
          pidBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setPid(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) {
        if (pidBuilder_ == null) {
          ensurePidIsMutable();
          pid_.set(index, builderForValue.build());
          onChanged();
        } else {
          pidBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addPid(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) {
        if (pidBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePidIsMutable();
          pid_.add(value);
          onChanged();
        } else {
          pidBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addPid(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) {
        if (pidBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePidIsMutable();
          pid_.add(index, value);
          onChanged();
        } else {
          pidBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addPid(
          eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) {
        if (pidBuilder_ == null) {
          ensurePidIsMutable();
          pid_.add(builderForValue.build());
          onChanged();
        } else {
          pidBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addPid(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) {
        if (pidBuilder_ == null) {
          ensurePidIsMutable();
          pid_.add(index, builderForValue.build());
          onChanged();
        } else {
          pidBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllPid(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty> values) {
        if (pidBuilder_ == null) {
          ensurePidIsMutable();
          super.addAll(values, pid_);
          onChanged();
        } else {
          pidBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearPid() {
        if (pidBuilder_ == null) {
          pid_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          pidBuilder_.clear();
        }
        return this;
      }
      public Builder removePid(int index) {
        if (pidBuilder_ == null) {
          ensurePidIsMutable();
          pid_.remove(index);
          onChanged();
        } else {
          pidBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getPidBuilder(
          int index) {
        return getPidFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getPidOrBuilder(
          int index) {
        if (pidBuilder_ == null) {
          return pid_.get(index);  } else {
          return pidBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> 
           getPidOrBuilderList() {
        if (pidBuilder_ != null) {
          return pidBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(pid_);
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addPidBuilder() {
        return getPidFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addPidBuilder(
          int index) {
        return getPidFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder> 
           getPidBuilderList() {
        return getPidFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> 
          getPidFieldBuilder() {
        if (pidBuilder_ == null) {
          pidBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>(
                  pid_,
                  ((bitField0_ & 0x00000010) == 0x00000010),
                  getParentForChildren(),
                  isClean());
          pid_ = null;
        }
        return pidBuilder_;
      }
      
      // optional string dateofcollection = 11;
      private java.lang.Object dateofcollection_ = "";
      public boolean hasDateofcollection() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      public String getDateofcollection() {
        java.lang.Object ref = dateofcollection_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          dateofcollection_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setDateofcollection(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        dateofcollection_ = value;
        onChanged();
        return this;
      }
      public Builder clearDateofcollection() {
        bitField0_ = (bitField0_ & ~0x00000020);
        dateofcollection_ = getDefaultInstance().getDateofcollection();
        onChanged();
        return this;
      }
      void setDateofcollection(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000020;
        dateofcollection_ = value;
        onChanged();
      }
      
      // optional string dateoftransformation = 13;
      private java.lang.Object dateoftransformation_ = "";
      public boolean hasDateoftransformation() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      public String getDateoftransformation() {
        java.lang.Object ref = dateoftransformation_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          dateoftransformation_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setDateoftransformation(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
        dateoftransformation_ = value;
        onChanged();
        return this;
      }
      public Builder clearDateoftransformation() {
        bitField0_ = (bitField0_ & ~0x00000040);
        dateoftransformation_ = getDefaultInstance().getDateoftransformation();
        onChanged();
        return this;
      }
      void setDateoftransformation(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000040;
        dateoftransformation_ = value;
        onChanged();
      }
      
      // repeated .eu.dnetlib.data.proto.OafRel cachedRel = 2;
      private java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel> cachedRel_ =
        java.util.Collections.emptyList();
      private void ensureCachedRelIsMutable() {
        if (!((bitField0_ & 0x00000080) == 0x00000080)) {
          cachedRel_ = new java.util.ArrayList<eu.dnetlib.data.proto.OafProtos.OafRel>(cachedRel_);
          bitField0_ |= 0x00000080;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> cachedRelBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel> getCachedRelList() {
        if (cachedRelBuilder_ == null) {
          return java.util.Collections.unmodifiableList(cachedRel_);
        } else {
          return cachedRelBuilder_.getMessageList();
        }
      }
      public int getCachedRelCount() {
        if (cachedRelBuilder_ == null) {
          return cachedRel_.size();
        } else {
          return cachedRelBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel getCachedRel(int index) {
        if (cachedRelBuilder_ == null) {
          return cachedRel_.get(index);
        } else {
          return cachedRelBuilder_.getMessage(index);
        }
      }
      public Builder setCachedRel(
          int index, eu.dnetlib.data.proto.OafProtos.OafRel value) {
        if (cachedRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedRelIsMutable();
          cachedRel_.set(index, value);
          onChanged();
        } else {
          cachedRelBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setCachedRel(
          int index, eu.dnetlib.data.proto.OafProtos.OafRel.Builder builderForValue) {
        if (cachedRelBuilder_ == null) {
          ensureCachedRelIsMutable();
          cachedRel_.set(index, builderForValue.build());
          onChanged();
        } else {
          cachedRelBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addCachedRel(eu.dnetlib.data.proto.OafProtos.OafRel value) {
        if (cachedRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedRelIsMutable();
          cachedRel_.add(value);
          onChanged();
        } else {
          cachedRelBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addCachedRel(
          int index, eu.dnetlib.data.proto.OafProtos.OafRel value) {
        if (cachedRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedRelIsMutable();
          cachedRel_.add(index, value);
          onChanged();
        } else {
          cachedRelBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addCachedRel(
          eu.dnetlib.data.proto.OafProtos.OafRel.Builder builderForValue) {
        if (cachedRelBuilder_ == null) {
          ensureCachedRelIsMutable();
          cachedRel_.add(builderForValue.build());
          onChanged();
        } else {
          cachedRelBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addCachedRel(
          int index, eu.dnetlib.data.proto.OafProtos.OafRel.Builder builderForValue) {
        if (cachedRelBuilder_ == null) {
          ensureCachedRelIsMutable();
          cachedRel_.add(index, builderForValue.build());
          onChanged();
        } else {
          cachedRelBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllCachedRel(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.OafProtos.OafRel> values) {
        if (cachedRelBuilder_ == null) {
          ensureCachedRelIsMutable();
          super.addAll(values, cachedRel_);
          onChanged();
        } else {
          cachedRelBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearCachedRel() {
        if (cachedRelBuilder_ == null) {
          cachedRel_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000080);
          onChanged();
        } else {
          cachedRelBuilder_.clear();
        }
        return this;
      }
      public Builder removeCachedRel(int index) {
        if (cachedRelBuilder_ == null) {
          ensureCachedRelIsMutable();
          cachedRel_.remove(index);
          onChanged();
        } else {
          cachedRelBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel.Builder getCachedRelBuilder(
          int index) {
        return getCachedRelFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getCachedRelOrBuilder(
          int index) {
        if (cachedRelBuilder_ == null) {
          return cachedRel_.get(index);  } else {
          return cachedRelBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> 
           getCachedRelOrBuilderList() {
        if (cachedRelBuilder_ != null) {
          return cachedRelBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(cachedRel_);
        }
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel.Builder addCachedRelBuilder() {
        return getCachedRelFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.OafProtos.OafRel.Builder addCachedRelBuilder(
          int index) {
        return getCachedRelFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.OafProtos.OafRel.Builder> 
           getCachedRelBuilderList() {
        return getCachedRelFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder> 
          getCachedRelFieldBuilder() {
        if (cachedRelBuilder_ == null) {
          cachedRelBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.OafRel, eu.dnetlib.data.proto.OafProtos.OafRel.Builder, eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder>(
                  cachedRel_,
                  ((bitField0_ & 0x00000080) == 0x00000080),
                  getParentForChildren(),
                  isClean());
          cachedRel_ = null;
        }
        return cachedRelBuilder_;
      }
      
      // repeated .eu.dnetlib.data.proto.Oaf cachedOafRel = 18;
      private java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf> cachedOafRel_ =
        java.util.Collections.emptyList();
      private void ensureCachedOafRelIsMutable() {
        if (!((bitField0_ & 0x00000100) == 0x00000100)) {
          cachedOafRel_ = new java.util.ArrayList<eu.dnetlib.data.proto.OafProtos.Oaf>(cachedOafRel_);
          bitField0_ |= 0x00000100;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder> cachedOafRelBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf> getCachedOafRelList() {
        if (cachedOafRelBuilder_ == null) {
          return java.util.Collections.unmodifiableList(cachedOafRel_);
        } else {
          return cachedOafRelBuilder_.getMessageList();
        }
      }
      public int getCachedOafRelCount() {
        if (cachedOafRelBuilder_ == null) {
          return cachedOafRel_.size();
        } else {
          return cachedOafRelBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafRel(int index) {
        if (cachedOafRelBuilder_ == null) {
          return cachedOafRel_.get(index);
        } else {
          return cachedOafRelBuilder_.getMessage(index);
        }
      }
      public Builder setCachedOafRel(
          int index, eu.dnetlib.data.proto.OafProtos.Oaf value) {
        if (cachedOafRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedOafRelIsMutable();
          cachedOafRel_.set(index, value);
          onChanged();
        } else {
          cachedOafRelBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setCachedOafRel(
          int index, eu.dnetlib.data.proto.OafProtos.Oaf.Builder builderForValue) {
        if (cachedOafRelBuilder_ == null) {
          ensureCachedOafRelIsMutable();
          cachedOafRel_.set(index, builderForValue.build());
          onChanged();
        } else {
          cachedOafRelBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addCachedOafRel(eu.dnetlib.data.proto.OafProtos.Oaf value) {
        if (cachedOafRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedOafRelIsMutable();
          cachedOafRel_.add(value);
          onChanged();
        } else {
          cachedOafRelBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addCachedOafRel(
          int index, eu.dnetlib.data.proto.OafProtos.Oaf value) {
        if (cachedOafRelBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCachedOafRelIsMutable();
          cachedOafRel_.add(index, value);
          onChanged();
        } else {
          cachedOafRelBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addCachedOafRel(
          eu.dnetlib.data.proto.OafProtos.Oaf.Builder builderForValue) {
        if (cachedOafRelBuilder_ == null) {
          ensureCachedOafRelIsMutable();
          cachedOafRel_.add(builderForValue.build());
          onChanged();
        } else {
          cachedOafRelBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addCachedOafRel(
          int index, eu.dnetlib.data.proto.OafProtos.Oaf.Builder builderForValue) {
        if (cachedOafRelBuilder_ == null) {
          ensureCachedOafRelIsMutable();
          cachedOafRel_.add(index, builderForValue.build());
          onChanged();
        } else {
          cachedOafRelBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllCachedOafRel(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.OafProtos.Oaf> values) {
        if (cachedOafRelBuilder_ == null) {
          ensureCachedOafRelIsMutable();
          super.addAll(values, cachedOafRel_);
          onChanged();
        } else {
          cachedOafRelBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearCachedOafRel() {
        if (cachedOafRelBuilder_ == null) {
          cachedOafRel_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
          onChanged();
        } else {
          cachedOafRelBuilder_.clear();
        }
        return this;
      }
      public Builder removeCachedOafRel(int index) {
        if (cachedOafRelBuilder_ == null) {
          ensureCachedOafRelIsMutable();
          cachedOafRel_.remove(index);
          onChanged();
        } else {
          cachedOafRelBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf.Builder getCachedOafRelBuilder(
          int index) {
        return getCachedOafRelFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafRelOrBuilder(
          int index) {
        if (cachedOafRelBuilder_ == null) {
          return cachedOafRel_.get(index);  } else {
          return cachedOafRelBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafOrBuilder> 
           getCachedOafRelOrBuilderList() {
        if (cachedOafRelBuilder_ != null) {
          return cachedOafRelBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(cachedOafRel_);
        }
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf.Builder addCachedOafRelBuilder() {
        return getCachedOafRelFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf.Builder addCachedOafRelBuilder(
          int index) {
        return getCachedOafRelFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.OafProtos.Oaf.Builder> 
           getCachedOafRelBuilderList() {
        return getCachedOafRelFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder> 
          getCachedOafRelFieldBuilder() {
        if (cachedOafRelBuilder_ == null) {
          cachedOafRelBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder>(
                  cachedOafRel_,
                  ((bitField0_ & 0x00000100) == 0x00000100),
                  getParentForChildren(),
                  isClean());
          cachedOafRel_ = null;
        }
        return cachedOafRelBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Datasource datasource = 3;
      private eu.dnetlib.data.proto.DatasourceProtos.Datasource datasource_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DatasourceProtos.Datasource, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder, eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder> datasourceBuilder_;
      public boolean hasDatasource() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      public eu.dnetlib.data.proto.DatasourceProtos.Datasource getDatasource() {
        if (datasourceBuilder_ == null) {
          return datasource_;
        } else {
          return datasourceBuilder_.getMessage();
        }
      }
      public Builder setDatasource(eu.dnetlib.data.proto.DatasourceProtos.Datasource value) {
        if (datasourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          datasource_ = value;
          onChanged();
        } else {
          datasourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder setDatasource(
          eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder builderForValue) {
        if (datasourceBuilder_ == null) {
          datasource_ = builderForValue.build();
          onChanged();
        } else {
          datasourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder mergeDatasource(eu.dnetlib.data.proto.DatasourceProtos.Datasource value) {
        if (datasourceBuilder_ == null) {
          if (((bitField0_ & 0x00000200) == 0x00000200) &&
              datasource_ != eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance()) {
            datasource_ =
              eu.dnetlib.data.proto.DatasourceProtos.Datasource.newBuilder(datasource_).mergeFrom(value).buildPartial();
          } else {
            datasource_ = value;
          }
          onChanged();
        } else {
          datasourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder clearDatasource() {
        if (datasourceBuilder_ == null) {
          datasource_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance();
          onChanged();
        } else {
          datasourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        return this;
      }
      public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder getDatasourceBuilder() {
        bitField0_ |= 0x00000200;
        onChanged();
        return getDatasourceFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder getDatasourceOrBuilder() {
        if (datasourceBuilder_ != null) {
          return datasourceBuilder_.getMessageOrBuilder();
        } else {
          return datasource_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DatasourceProtos.Datasource, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder, eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder> 
          getDatasourceFieldBuilder() {
        if (datasourceBuilder_ == null) {
          datasourceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.DatasourceProtos.Datasource, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder, eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder>(
                  datasource_,
                  getParentForChildren(),
                  isClean());
          datasource_ = null;
        }
        return datasourceBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Organization organization = 4;
      private eu.dnetlib.data.proto.OrganizationProtos.Organization organization_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OrganizationProtos.Organization, eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder, eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder> organizationBuilder_;
      public boolean hasOrganization() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      public eu.dnetlib.data.proto.OrganizationProtos.Organization getOrganization() {
        if (organizationBuilder_ == null) {
          return organization_;
        } else {
          return organizationBuilder_.getMessage();
        }
      }
      public Builder setOrganization(eu.dnetlib.data.proto.OrganizationProtos.Organization value) {
        if (organizationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          organization_ = value;
          onChanged();
        } else {
          organizationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder setOrganization(
          eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder builderForValue) {
        if (organizationBuilder_ == null) {
          organization_ = builderForValue.build();
          onChanged();
        } else {
          organizationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder mergeOrganization(eu.dnetlib.data.proto.OrganizationProtos.Organization value) {
        if (organizationBuilder_ == null) {
          if (((bitField0_ & 0x00000400) == 0x00000400) &&
              organization_ != eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance()) {
            organization_ =
              eu.dnetlib.data.proto.OrganizationProtos.Organization.newBuilder(organization_).mergeFrom(value).buildPartial();
          } else {
            organization_ = value;
          }
          onChanged();
        } else {
          organizationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder clearOrganization() {
        if (organizationBuilder_ == null) {
          organization_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance();
          onChanged();
        } else {
          organizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        return this;
      }
      public eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder getOrganizationBuilder() {
        bitField0_ |= 0x00000400;
        onChanged();
        return getOrganizationFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder getOrganizationOrBuilder() {
        if (organizationBuilder_ != null) {
          return organizationBuilder_.getMessageOrBuilder();
        } else {
          return organization_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OrganizationProtos.Organization, eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder, eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder> 
          getOrganizationFieldBuilder() {
        if (organizationBuilder_ == null) {
          organizationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OrganizationProtos.Organization, eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder, eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder>(
                  organization_,
                  getParentForChildren(),
                  isClean());
          organization_ = null;
        }
        return organizationBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Project project = 6;
      private eu.dnetlib.data.proto.ProjectProtos.Project project_ = eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ProjectProtos.Project, eu.dnetlib.data.proto.ProjectProtos.Project.Builder, eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder> projectBuilder_;
      public boolean hasProject() {
        return ((bitField0_ & 0x00000800) == 0x00000800);
      }
      public eu.dnetlib.data.proto.ProjectProtos.Project getProject() {
        if (projectBuilder_ == null) {
          return project_;
        } else {
          return projectBuilder_.getMessage();
        }
      }
      public Builder setProject(eu.dnetlib.data.proto.ProjectProtos.Project value) {
        if (projectBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          project_ = value;
          onChanged();
        } else {
          projectBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder setProject(
          eu.dnetlib.data.proto.ProjectProtos.Project.Builder builderForValue) {
        if (projectBuilder_ == null) {
          project_ = builderForValue.build();
          onChanged();
        } else {
          projectBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder mergeProject(eu.dnetlib.data.proto.ProjectProtos.Project value) {
        if (projectBuilder_ == null) {
          if (((bitField0_ & 0x00000800) == 0x00000800) &&
              project_ != eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance()) {
            project_ =
              eu.dnetlib.data.proto.ProjectProtos.Project.newBuilder(project_).mergeFrom(value).buildPartial();
          } else {
            project_ = value;
          }
          onChanged();
        } else {
          projectBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder clearProject() {
        if (projectBuilder_ == null) {
          project_ = eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance();
          onChanged();
        } else {
          projectBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000800);
        return this;
      }
      public eu.dnetlib.data.proto.ProjectProtos.Project.Builder getProjectBuilder() {
        bitField0_ |= 0x00000800;
        onChanged();
        return getProjectFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder getProjectOrBuilder() {
        if (projectBuilder_ != null) {
          return projectBuilder_.getMessageOrBuilder();
        } else {
          return project_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ProjectProtos.Project, eu.dnetlib.data.proto.ProjectProtos.Project.Builder, eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder> 
          getProjectFieldBuilder() {
        if (projectBuilder_ == null) {
          projectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ProjectProtos.Project, eu.dnetlib.data.proto.ProjectProtos.Project.Builder, eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder>(
                  project_,
                  getParentForChildren(),
                  isClean());
          project_ = null;
        }
        return projectBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Result result = 7;
      private eu.dnetlib.data.proto.ResultProtos.Result result_ = eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultProtos.Result, eu.dnetlib.data.proto.ResultProtos.Result.Builder, eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder> resultBuilder_;
      public boolean hasResult() {
        return ((bitField0_ & 0x00001000) == 0x00001000);
      }
      public eu.dnetlib.data.proto.ResultProtos.Result getResult() {
        if (resultBuilder_ == null) {
          return result_;
        } else {
          return resultBuilder_.getMessage();
        }
      }
      public Builder setResult(eu.dnetlib.data.proto.ResultProtos.Result value) {
        if (resultBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          result_ = value;
          onChanged();
        } else {
          resultBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder setResult(
          eu.dnetlib.data.proto.ResultProtos.Result.Builder builderForValue) {
        if (resultBuilder_ == null) {
          result_ = builderForValue.build();
          onChanged();
        } else {
          resultBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder mergeResult(eu.dnetlib.data.proto.ResultProtos.Result value) {
        if (resultBuilder_ == null) {
          if (((bitField0_ & 0x00001000) == 0x00001000) &&
              result_ != eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance()) {
            result_ =
              eu.dnetlib.data.proto.ResultProtos.Result.newBuilder(result_).mergeFrom(value).buildPartial();
          } else {
            result_ = value;
          }
          onChanged();
        } else {
          resultBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder clearResult() {
        if (resultBuilder_ == null) {
          result_ = eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance();
          onChanged();
        } else {
          resultBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00001000);
        return this;
      }
      public eu.dnetlib.data.proto.ResultProtos.Result.Builder getResultBuilder() {
        bitField0_ |= 0x00001000;
        onChanged();
        return getResultFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder getResultOrBuilder() {
        if (resultBuilder_ != null) {
          return resultBuilder_.getMessageOrBuilder();
        } else {
          return result_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultProtos.Result, eu.dnetlib.data.proto.ResultProtos.Result.Builder, eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder> 
          getResultFieldBuilder() {
        if (resultBuilder_ == null) {
          resultBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultProtos.Result, eu.dnetlib.data.proto.ResultProtos.Result.Builder, eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder>(
                  result_,
                  getParentForChildren(),
                  isClean());
          result_ = null;
        }
        return resultBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Person person = 5;
      private eu.dnetlib.data.proto.PersonProtos.Person person_ = eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.PersonProtos.Person, eu.dnetlib.data.proto.PersonProtos.Person.Builder, eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder> personBuilder_;
      public boolean hasPerson() {
        return ((bitField0_ & 0x00002000) == 0x00002000);
      }
      public eu.dnetlib.data.proto.PersonProtos.Person getPerson() {
        if (personBuilder_ == null) {
          return person_;
        } else {
          return personBuilder_.getMessage();
        }
      }
      public Builder setPerson(eu.dnetlib.data.proto.PersonProtos.Person value) {
        if (personBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          person_ = value;
          onChanged();
        } else {
          personBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder setPerson(
          eu.dnetlib.data.proto.PersonProtos.Person.Builder builderForValue) {
        if (personBuilder_ == null) {
          person_ = builderForValue.build();
          onChanged();
        } else {
          personBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder mergePerson(eu.dnetlib.data.proto.PersonProtos.Person value) {
        if (personBuilder_ == null) {
          if (((bitField0_ & 0x00002000) == 0x00002000) &&
              person_ != eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance()) {
            person_ =
              eu.dnetlib.data.proto.PersonProtos.Person.newBuilder(person_).mergeFrom(value).buildPartial();
          } else {
            person_ = value;
          }
          onChanged();
        } else {
          personBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder clearPerson() {
        if (personBuilder_ == null) {
          person_ = eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance();
          onChanged();
        } else {
          personBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00002000);
        return this;
      }
      public eu.dnetlib.data.proto.PersonProtos.Person.Builder getPersonBuilder() {
        bitField0_ |= 0x00002000;
        onChanged();
        return getPersonFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder getPersonOrBuilder() {
        if (personBuilder_ != null) {
          return personBuilder_.getMessageOrBuilder();
        } else {
          return person_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.PersonProtos.Person, eu.dnetlib.data.proto.PersonProtos.Person.Builder, eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder> 
          getPersonFieldBuilder() {
        if (personBuilder_ == null) {
          personBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.PersonProtos.Person, eu.dnetlib.data.proto.PersonProtos.Person.Builder, eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder>(
                  person_,
                  getParentForChildren(),
                  isClean());
          person_ = null;
        }
        return personBuilder_;
      }
      
      // repeated .eu.dnetlib.data.proto.OafEntity children = 16;
      private java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity> children_ =
        java.util.Collections.emptyList();
      private void ensureChildrenIsMutable() {
        if (!((bitField0_ & 0x00004000) == 0x00004000)) {
          children_ = new java.util.ArrayList<eu.dnetlib.data.proto.OafProtos.OafEntity>(children_);
          bitField0_ |= 0x00004000;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> childrenBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity> getChildrenList() {
        if (childrenBuilder_ == null) {
          return java.util.Collections.unmodifiableList(children_);
        } else {
          return childrenBuilder_.getMessageList();
        }
      }
      public int getChildrenCount() {
        if (childrenBuilder_ == null) {
          return children_.size();
        } else {
          return childrenBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity getChildren(int index) {
        if (childrenBuilder_ == null) {
          return children_.get(index);
        } else {
          return childrenBuilder_.getMessage(index);
        }
      }
      public Builder setChildren(
          int index, eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (childrenBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildrenIsMutable();
          children_.set(index, value);
          onChanged();
        } else {
          childrenBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setChildren(
          int index, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder builderForValue) {
        if (childrenBuilder_ == null) {
          ensureChildrenIsMutable();
          children_.set(index, builderForValue.build());
          onChanged();
        } else {
          childrenBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addChildren(eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (childrenBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildrenIsMutable();
          children_.add(value);
          onChanged();
        } else {
          childrenBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addChildren(
          int index, eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (childrenBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChildrenIsMutable();
          children_.add(index, value);
          onChanged();
        } else {
          childrenBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addChildren(
          eu.dnetlib.data.proto.OafProtos.OafEntity.Builder builderForValue) {
        if (childrenBuilder_ == null) {
          ensureChildrenIsMutable();
          children_.add(builderForValue.build());
          onChanged();
        } else {
          childrenBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addChildren(
          int index, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder builderForValue) {
        if (childrenBuilder_ == null) {
          ensureChildrenIsMutable();
          children_.add(index, builderForValue.build());
          onChanged();
        } else {
          childrenBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllChildren(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.OafProtos.OafEntity> values) {
        if (childrenBuilder_ == null) {
          ensureChildrenIsMutable();
          super.addAll(values, children_);
          onChanged();
        } else {
          childrenBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearChildren() {
        if (childrenBuilder_ == null) {
          children_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00004000);
          onChanged();
        } else {
          childrenBuilder_.clear();
        }
        return this;
      }
      public Builder removeChildren(int index) {
        if (childrenBuilder_ == null) {
          ensureChildrenIsMutable();
          children_.remove(index);
          onChanged();
        } else {
          childrenBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity.Builder getChildrenBuilder(
          int index) {
        return getChildrenFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getChildrenOrBuilder(
          int index) {
        if (childrenBuilder_ == null) {
          return children_.get(index);  } else {
          return childrenBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
           getChildrenOrBuilderList() {
        if (childrenBuilder_ != null) {
          return childrenBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(children_);
        }
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity.Builder addChildrenBuilder() {
        return getChildrenFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity.Builder addChildrenBuilder(
          int index) {
        return getChildrenFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.OafProtos.OafEntity.Builder> 
           getChildrenBuilderList() {
        return getChildrenFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
          getChildrenFieldBuilder() {
        if (childrenBuilder_ == null) {
          childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder>(
                  children_,
                  ((bitField0_ & 0x00004000) == 0x00004000),
                  getParentForChildren(),
                  isClean());
          children_ = null;
        }
        return childrenBuilder_;
      }
      
      // repeated .eu.dnetlib.data.proto.ExtraInfo extraInfo = 15;
      private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> extraInfo_ =
        java.util.Collections.emptyList();
      private void ensureExtraInfoIsMutable() {
        if (!((bitField0_ & 0x00008000) == 0x00008000)) {
          extraInfo_ = new java.util.ArrayList<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo>(extraInfo_);
          bitField0_ |= 0x00008000;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder> extraInfoBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> getExtraInfoList() {
        if (extraInfoBuilder_ == null) {
          return java.util.Collections.unmodifiableList(extraInfo_);
        } else {
          return extraInfoBuilder_.getMessageList();
        }
      }
      public int getExtraInfoCount() {
        if (extraInfoBuilder_ == null) {
          return extraInfo_.size();
        } else {
          return extraInfoBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo getExtraInfo(int index) {
        if (extraInfoBuilder_ == null) {
          return extraInfo_.get(index);
        } else {
          return extraInfoBuilder_.getMessage(index);
        }
      }
      public Builder setExtraInfo(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo value) {
        if (extraInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureExtraInfoIsMutable();
          extraInfo_.set(index, value);
          onChanged();
        } else {
          extraInfoBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setExtraInfo(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder builderForValue) {
        if (extraInfoBuilder_ == null) {
          ensureExtraInfoIsMutable();
          extraInfo_.set(index, builderForValue.build());
          onChanged();
        } else {
          extraInfoBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addExtraInfo(eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo value) {
        if (extraInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureExtraInfoIsMutable();
          extraInfo_.add(value);
          onChanged();
        } else {
          extraInfoBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addExtraInfo(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo value) {
        if (extraInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureExtraInfoIsMutable();
          extraInfo_.add(index, value);
          onChanged();
        } else {
          extraInfoBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addExtraInfo(
          eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder builderForValue) {
        if (extraInfoBuilder_ == null) {
          ensureExtraInfoIsMutable();
          extraInfo_.add(builderForValue.build());
          onChanged();
        } else {
          extraInfoBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addExtraInfo(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder builderForValue) {
        if (extraInfoBuilder_ == null) {
          ensureExtraInfoIsMutable();
          extraInfo_.add(index, builderForValue.build());
          onChanged();
        } else {
          extraInfoBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllExtraInfo(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo> values) {
        if (extraInfoBuilder_ == null) {
          ensureExtraInfoIsMutable();
          super.addAll(values, extraInfo_);
          onChanged();
        } else {
          extraInfoBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearExtraInfo() {
        if (extraInfoBuilder_ == null) {
          extraInfo_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00008000);
          onChanged();
        } else {
          extraInfoBuilder_.clear();
        }
        return this;
      }
      public Builder removeExtraInfo(int index) {
        if (extraInfoBuilder_ == null) {
          ensureExtraInfoIsMutable();
          extraInfo_.remove(index);
          onChanged();
        } else {
          extraInfoBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder getExtraInfoBuilder(
          int index) {
        return getExtraInfoFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder getExtraInfoOrBuilder(
          int index) {
        if (extraInfoBuilder_ == null) {
          return extraInfo_.get(index);  } else {
          return extraInfoBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder> 
           getExtraInfoOrBuilderList() {
        if (extraInfoBuilder_ != null) {
          return extraInfoBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(extraInfo_);
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder addExtraInfoBuilder() {
        return getExtraInfoFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder addExtraInfoBuilder(
          int index) {
        return getExtraInfoFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder> 
           getExtraInfoBuilderList() {
        return getExtraInfoFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder> 
          getExtraInfoFieldBuilder() {
        if (extraInfoBuilder_ == null) {
          extraInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder>(
                  extraInfo_,
                  ((bitField0_ & 0x00008000) == 0x00008000),
                  getParentForChildren(),
                  isClean());
          extraInfo_ = null;
        }
        return extraInfoBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.OAIProvenance oaiprovenance = 17;
      private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance oaiprovenance_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder> oaiprovenanceBuilder_;
      public boolean hasOaiprovenance() {
        return ((bitField0_ & 0x00010000) == 0x00010000);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance getOaiprovenance() {
        if (oaiprovenanceBuilder_ == null) {
          return oaiprovenance_;
        } else {
          return oaiprovenanceBuilder_.getMessage();
        }
      }
      public Builder setOaiprovenance(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance value) {
        if (oaiprovenanceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          oaiprovenance_ = value;
          onChanged();
        } else {
          oaiprovenanceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00010000;
        return this;
      }
      public Builder setOaiprovenance(
          eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder builderForValue) {
        if (oaiprovenanceBuilder_ == null) {
          oaiprovenance_ = builderForValue.build();
          onChanged();
        } else {
          oaiprovenanceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00010000;
        return this;
      }
      public Builder mergeOaiprovenance(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance value) {
        if (oaiprovenanceBuilder_ == null) {
          if (((bitField0_ & 0x00010000) == 0x00010000) &&
              oaiprovenance_ != eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance()) {
            oaiprovenance_ =
              eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.newBuilder(oaiprovenance_).mergeFrom(value).buildPartial();
          } else {
            oaiprovenance_ = value;
          }
          onChanged();
        } else {
          oaiprovenanceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00010000;
        return this;
      }
      public Builder clearOaiprovenance() {
        if (oaiprovenanceBuilder_ == null) {
          oaiprovenance_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance();
          onChanged();
        } else {
          oaiprovenanceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00010000);
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder getOaiprovenanceBuilder() {
        bitField0_ |= 0x00010000;
        onChanged();
        return getOaiprovenanceFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder getOaiprovenanceOrBuilder() {
        if (oaiprovenanceBuilder_ != null) {
          return oaiprovenanceBuilder_.getMessageOrBuilder();
        } else {
          return oaiprovenance_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder> 
          getOaiprovenanceFieldBuilder() {
        if (oaiprovenanceBuilder_ == null) {
          oaiprovenanceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder>(
                  oaiprovenance_,
                  getParentForChildren(),
                  isClean());
          oaiprovenance_ = null;
        }
        return oaiprovenanceBuilder_;
      }
      
      // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.OafEntity)
    }
    
    static {
      defaultInstance = new OafEntity(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.OafEntity)
  }
  
  public interface OafRelOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required .eu.dnetlib.data.proto.RelType relType = 1;
    boolean hasRelType();
    eu.dnetlib.data.proto.RelTypeProtos.RelType getRelType();
    
    // required .eu.dnetlib.data.proto.SubRelType subRelType = 19;
    boolean hasSubRelType();
    eu.dnetlib.data.proto.RelTypeProtos.SubRelType getSubRelType();
    
    // required string relClass = 20;
    boolean hasRelClass();
    String getRelClass();
    
    // required string source = 2;
    boolean hasSource();
    String getSource();
    
    // required string target = 3;
    boolean hasTarget();
    String getTarget();
    
    // required bool child = 4;
    boolean hasChild();
    boolean getChild();
    
    // optional .eu.dnetlib.data.proto.OafEntity cachedTarget = 5;
    boolean hasCachedTarget();
    eu.dnetlib.data.proto.OafProtos.OafEntity getCachedTarget();
    eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getCachedTargetOrBuilder();
    
    // optional .eu.dnetlib.data.proto.Oaf cachedOafTarget = 8;
    boolean hasCachedOafTarget();
    eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafTarget();
    eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafTargetOrBuilder();
    
    // optional .eu.dnetlib.data.proto.DatasourceOrganization datasourceOrganization = 6;
    boolean hasDatasourceOrganization();
    eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization getDatasourceOrganization();
    eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder getDatasourceOrganizationOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ProjectOrganization projectOrganization = 9;
    boolean hasProjectOrganization();
    eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization getProjectOrganization();
    eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder getProjectOrganizationOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultOrganization resultOrganization = 10;
    boolean hasResultOrganization();
    eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization getResultOrganization();
    eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder getResultOrganizationOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultProject resultProject = 11;
    boolean hasResultProject();
    eu.dnetlib.data.proto.ResultProjectProtos.ResultProject getResultProject();
    eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder getResultProjectOrBuilder();
    
    // optional .eu.dnetlib.data.proto.ResultResult resultResult = 16;
    boolean hasResultResult();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResult getResultResult();
    eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder getResultResultOrBuilder();
    
    // optional .eu.dnetlib.data.proto.OrganizationOrganization organizationOrganization = 17;
    boolean hasOrganizationOrganization();
    eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization getOrganizationOrganization();
    eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder getOrganizationOrganizationOrBuilder();
    
    // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 21;
    java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> 
        getCollectedfromList();
    eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index);
    int getCollectedfromCount();
    java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
        getCollectedfromOrBuilderList();
    eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
        int index);
  }
  public static final class OafRel extends
      com.google.protobuf.GeneratedMessage
      implements OafRelOrBuilder {
    // Use OafRel.newBuilder() to construct.
    private OafRel(Builder builder) {
      super(builder);
    }
    private OafRel(boolean noInit) {}
    
    private static final OafRel defaultInstance;
    public static OafRel getDefaultInstance() {
      return defaultInstance;
    }
    
    public OafRel getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafRel_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafRel_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required .eu.dnetlib.data.proto.RelType relType = 1;
    public static final int RELTYPE_FIELD_NUMBER = 1;
    private eu.dnetlib.data.proto.RelTypeProtos.RelType relType_;
    public boolean hasRelType() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public eu.dnetlib.data.proto.RelTypeProtos.RelType getRelType() {
      return relType_;
    }
    
    // required .eu.dnetlib.data.proto.SubRelType subRelType = 19;
    public static final int SUBRELTYPE_FIELD_NUMBER = 19;
    private eu.dnetlib.data.proto.RelTypeProtos.SubRelType subRelType_;
    public boolean hasSubRelType() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public eu.dnetlib.data.proto.RelTypeProtos.SubRelType getSubRelType() {
      return subRelType_;
    }
    
    // required string relClass = 20;
    public static final int RELCLASS_FIELD_NUMBER = 20;
    private java.lang.Object relClass_;
    public boolean hasRelClass() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public String getRelClass() {
      java.lang.Object ref = relClass_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          relClass_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getRelClassBytes() {
      java.lang.Object ref = relClass_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        relClass_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // required string source = 2;
    public static final int SOURCE_FIELD_NUMBER = 2;
    private java.lang.Object source_;
    public boolean hasSource() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    public String getSource() {
      java.lang.Object ref = source_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          source_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getSourceBytes() {
      java.lang.Object ref = source_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        source_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // required string target = 3;
    public static final int TARGET_FIELD_NUMBER = 3;
    private java.lang.Object target_;
    public boolean hasTarget() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    public String getTarget() {
      java.lang.Object ref = target_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          target_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getTargetBytes() {
      java.lang.Object ref = target_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        target_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // required bool child = 4;
    public static final int CHILD_FIELD_NUMBER = 4;
    private boolean child_;
    public boolean hasChild() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    public boolean getChild() {
      return child_;
    }
    
    // optional .eu.dnetlib.data.proto.OafEntity cachedTarget = 5;
    public static final int CACHEDTARGET_FIELD_NUMBER = 5;
    private eu.dnetlib.data.proto.OafProtos.OafEntity cachedTarget_;
    public boolean hasCachedTarget() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntity getCachedTarget() {
      return cachedTarget_;
    }
    public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getCachedTargetOrBuilder() {
      return cachedTarget_;
    }
    
    // optional .eu.dnetlib.data.proto.Oaf cachedOafTarget = 8;
    public static final int CACHEDOAFTARGET_FIELD_NUMBER = 8;
    private eu.dnetlib.data.proto.OafProtos.Oaf cachedOafTarget_;
    public boolean hasCachedOafTarget() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    public eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafTarget() {
      return cachedOafTarget_;
    }
    public eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafTargetOrBuilder() {
      return cachedOafTarget_;
    }
    
    // optional .eu.dnetlib.data.proto.DatasourceOrganization datasourceOrganization = 6;
    public static final int DATASOURCEORGANIZATION_FIELD_NUMBER = 6;
    private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization datasourceOrganization_;
    public boolean hasDatasourceOrganization() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization getDatasourceOrganization() {
      return datasourceOrganization_;
    }
    public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder getDatasourceOrganizationOrBuilder() {
      return datasourceOrganization_;
    }
    
    // optional .eu.dnetlib.data.proto.ProjectOrganization projectOrganization = 9;
    public static final int PROJECTORGANIZATION_FIELD_NUMBER = 9;
    private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization projectOrganization_;
    public boolean hasProjectOrganization() {
      return ((bitField0_ & 0x00000200) == 0x00000200);
    }
    public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization getProjectOrganization() {
      return projectOrganization_;
    }
    public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder getProjectOrganizationOrBuilder() {
      return projectOrganization_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultOrganization resultOrganization = 10;
    public static final int RESULTORGANIZATION_FIELD_NUMBER = 10;
    private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization resultOrganization_;
    public boolean hasResultOrganization() {
      return ((bitField0_ & 0x00000400) == 0x00000400);
    }
    public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization getResultOrganization() {
      return resultOrganization_;
    }
    public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder getResultOrganizationOrBuilder() {
      return resultOrganization_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultProject resultProject = 11;
    public static final int RESULTPROJECT_FIELD_NUMBER = 11;
    private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject resultProject_;
    public boolean hasResultProject() {
      return ((bitField0_ & 0x00000800) == 0x00000800);
    }
    public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject getResultProject() {
      return resultProject_;
    }
    public eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder getResultProjectOrBuilder() {
      return resultProject_;
    }
    
    // optional .eu.dnetlib.data.proto.ResultResult resultResult = 16;
    public static final int RESULTRESULT_FIELD_NUMBER = 16;
    private eu.dnetlib.data.proto.ResultResultProtos.ResultResult resultResult_;
    public boolean hasResultResult() {
      return ((bitField0_ & 0x00001000) == 0x00001000);
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResult getResultResult() {
      return resultResult_;
    }
    public eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder getResultResultOrBuilder() {
      return resultResult_;
    }
    
    // optional .eu.dnetlib.data.proto.OrganizationOrganization organizationOrganization = 17;
    public static final int ORGANIZATIONORGANIZATION_FIELD_NUMBER = 17;
    private eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization organizationOrganization_;
    public boolean hasOrganizationOrganization() {
      return ((bitField0_ & 0x00002000) == 0x00002000);
    }
    public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization getOrganizationOrganization() {
      return organizationOrganization_;
    }
    public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder getOrganizationOrganizationOrBuilder() {
      return organizationOrganization_;
    }
    
    // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 21;
    public static final int COLLECTEDFROM_FIELD_NUMBER = 21;
    private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> collectedfrom_;
    public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> getCollectedfromList() {
      return collectedfrom_;
    }
    public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
        getCollectedfromOrBuilderList() {
      return collectedfrom_;
    }
    public int getCollectedfromCount() {
      return collectedfrom_.size();
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index) {
      return collectedfrom_.get(index);
    }
    public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
        int index) {
      return collectedfrom_.get(index);
    }
    
    private void initFields() {
      relType_ = eu.dnetlib.data.proto.RelTypeProtos.RelType.datasourceOrganization;
      subRelType_ = eu.dnetlib.data.proto.RelTypeProtos.SubRelType.provision;
      relClass_ = "";
      source_ = "";
      target_ = "";
      child_ = false;
      cachedTarget_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
      cachedOafTarget_ = eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance();
      datasourceOrganization_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance();
      projectOrganization_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance();
      resultOrganization_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance();
      resultProject_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance();
      resultResult_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance();
      organizationOrganization_ = eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance();
      collectedfrom_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (!hasRelType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSubRelType()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRelClass()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSource()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTarget()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasChild()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasCachedTarget()) {
        if (!getCachedTarget().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasCachedOafTarget()) {
        if (!getCachedOafTarget().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasDatasourceOrganization()) {
        if (!getDatasourceOrganization().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasProjectOrganization()) {
        if (!getProjectOrganization().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasResultOrganization()) {
        if (!getResultOrganization().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasResultProject()) {
        if (!getResultProject().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasResultResult()) {
        if (!getResultResult().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasOrganizationOrganization()) {
        if (!getOrganizationOrganization().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getCollectedfromCount(); i++) {
        if (!getCollectedfrom(i).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.writeEnum(1, relType_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(2, getSourceBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(3, getTargetBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeBool(4, child_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeMessage(5, cachedTarget_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeMessage(6, datasourceOrganization_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(8, cachedOafTarget_);
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        output.writeMessage(9, projectOrganization_);
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        output.writeMessage(10, resultOrganization_);
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        output.writeMessage(11, resultProject_);
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        output.writeMessage(16, resultResult_);
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        output.writeMessage(17, organizationOrganization_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeEnum(19, subRelType_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(20, getRelClassBytes());
      }
      for (int i = 0; i < collectedfrom_.size(); i++) {
        output.writeMessage(21, collectedfrom_.get(i));
      }
      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
          .computeEnumSize(1, relType_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getSourceBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getTargetBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, child_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, cachedTarget_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, datasourceOrganization_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, cachedOafTarget_);
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, projectOrganization_);
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, resultOrganization_);
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, resultProject_);
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(16, resultResult_);
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(17, organizationOrganization_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(19, subRelType_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(20, getRelClassBytes());
      }
      for (int i = 0; i < collectedfrom_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(21, collectedfrom_.get(i));
      }
      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.OafProtos.OafRel parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafRel 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.OafProtos.OafRel parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafRel 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.OafProtos.OafRel parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafRel 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.OafProtos.OafRel 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.OafProtos.OafRel 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.OafProtos.OafRel parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static eu.dnetlib.data.proto.OafProtos.OafRel 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.OafProtos.OafRel 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.OafProtos.OafRelOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafRel_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return eu.dnetlib.data.proto.OafProtos.internal_static_eu_dnetlib_data_proto_OafRel_fieldAccessorTable;
      }
      
      // Construct using eu.dnetlib.data.proto.OafProtos.OafRel.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getCachedTargetFieldBuilder();
          getCachedOafTargetFieldBuilder();
          getDatasourceOrganizationFieldBuilder();
          getProjectOrganizationFieldBuilder();
          getResultOrganizationFieldBuilder();
          getResultProjectFieldBuilder();
          getResultResultFieldBuilder();
          getOrganizationOrganizationFieldBuilder();
          getCollectedfromFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        relType_ = eu.dnetlib.data.proto.RelTypeProtos.RelType.datasourceOrganization;
        bitField0_ = (bitField0_ & ~0x00000001);
        subRelType_ = eu.dnetlib.data.proto.RelTypeProtos.SubRelType.provision;
        bitField0_ = (bitField0_ & ~0x00000002);
        relClass_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        source_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        target_ = "";
        bitField0_ = (bitField0_ & ~0x00000010);
        child_ = false;
        bitField0_ = (bitField0_ & ~0x00000020);
        if (cachedTargetBuilder_ == null) {
          cachedTarget_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
        } else {
          cachedTargetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        if (cachedOafTargetBuilder_ == null) {
          cachedOafTarget_ = eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance();
        } else {
          cachedOafTargetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        if (datasourceOrganizationBuilder_ == null) {
          datasourceOrganization_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance();
        } else {
          datasourceOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000100);
        if (projectOrganizationBuilder_ == null) {
          projectOrganization_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance();
        } else {
          projectOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        if (resultOrganizationBuilder_ == null) {
          resultOrganization_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance();
        } else {
          resultOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        if (resultProjectBuilder_ == null) {
          resultProject_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance();
        } else {
          resultProjectBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000800);
        if (resultResultBuilder_ == null) {
          resultResult_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance();
        } else {
          resultResultBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00001000);
        if (organizationOrganizationBuilder_ == null) {
          organizationOrganization_ = eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance();
        } else {
          organizationOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00002000);
        if (collectedfromBuilder_ == null) {
          collectedfrom_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00004000);
        } else {
          collectedfromBuilder_.clear();
        }
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return eu.dnetlib.data.proto.OafProtos.OafRel.getDescriptor();
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafRel getDefaultInstanceForType() {
        return eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance();
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafRel build() {
        eu.dnetlib.data.proto.OafProtos.OafRel result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private eu.dnetlib.data.proto.OafProtos.OafRel buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        eu.dnetlib.data.proto.OafProtos.OafRel result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public eu.dnetlib.data.proto.OafProtos.OafRel buildPartial() {
        eu.dnetlib.data.proto.OafProtos.OafRel result = new eu.dnetlib.data.proto.OafProtos.OafRel(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.relType_ = relType_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.subRelType_ = subRelType_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.relClass_ = relClass_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.source_ = source_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.target_ = target_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.child_ = child_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        if (cachedTargetBuilder_ == null) {
          result.cachedTarget_ = cachedTarget_;
        } else {
          result.cachedTarget_ = cachedTargetBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        if (cachedOafTargetBuilder_ == null) {
          result.cachedOafTarget_ = cachedOafTarget_;
        } else {
          result.cachedOafTarget_ = cachedOafTargetBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
          to_bitField0_ |= 0x00000100;
        }
        if (datasourceOrganizationBuilder_ == null) {
          result.datasourceOrganization_ = datasourceOrganization_;
        } else {
          result.datasourceOrganization_ = datasourceOrganizationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000200;
        }
        if (projectOrganizationBuilder_ == null) {
          result.projectOrganization_ = projectOrganization_;
        } else {
          result.projectOrganization_ = projectOrganizationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000400;
        }
        if (resultOrganizationBuilder_ == null) {
          result.resultOrganization_ = resultOrganization_;
        } else {
          result.resultOrganization_ = resultOrganizationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
          to_bitField0_ |= 0x00000800;
        }
        if (resultProjectBuilder_ == null) {
          result.resultProject_ = resultProject_;
        } else {
          result.resultProject_ = resultProjectBuilder_.build();
        }
        if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
          to_bitField0_ |= 0x00001000;
        }
        if (resultResultBuilder_ == null) {
          result.resultResult_ = resultResult_;
        } else {
          result.resultResult_ = resultResultBuilder_.build();
        }
        if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
          to_bitField0_ |= 0x00002000;
        }
        if (organizationOrganizationBuilder_ == null) {
          result.organizationOrganization_ = organizationOrganization_;
        } else {
          result.organizationOrganization_ = organizationOrganizationBuilder_.build();
        }
        if (collectedfromBuilder_ == null) {
          if (((bitField0_ & 0x00004000) == 0x00004000)) {
            collectedfrom_ = java.util.Collections.unmodifiableList(collectedfrom_);
            bitField0_ = (bitField0_ & ~0x00004000);
          }
          result.collectedfrom_ = collectedfrom_;
        } else {
          result.collectedfrom_ = collectedfromBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof eu.dnetlib.data.proto.OafProtos.OafRel) {
          return mergeFrom((eu.dnetlib.data.proto.OafProtos.OafRel)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(eu.dnetlib.data.proto.OafProtos.OafRel other) {
        if (other == eu.dnetlib.data.proto.OafProtos.OafRel.getDefaultInstance()) return this;
        if (other.hasRelType()) {
          setRelType(other.getRelType());
        }
        if (other.hasSubRelType()) {
          setSubRelType(other.getSubRelType());
        }
        if (other.hasRelClass()) {
          setRelClass(other.getRelClass());
        }
        if (other.hasSource()) {
          setSource(other.getSource());
        }
        if (other.hasTarget()) {
          setTarget(other.getTarget());
        }
        if (other.hasChild()) {
          setChild(other.getChild());
        }
        if (other.hasCachedTarget()) {
          mergeCachedTarget(other.getCachedTarget());
        }
        if (other.hasCachedOafTarget()) {
          mergeCachedOafTarget(other.getCachedOafTarget());
        }
        if (other.hasDatasourceOrganization()) {
          mergeDatasourceOrganization(other.getDatasourceOrganization());
        }
        if (other.hasProjectOrganization()) {
          mergeProjectOrganization(other.getProjectOrganization());
        }
        if (other.hasResultOrganization()) {
          mergeResultOrganization(other.getResultOrganization());
        }
        if (other.hasResultProject()) {
          mergeResultProject(other.getResultProject());
        }
        if (other.hasResultResult()) {
          mergeResultResult(other.getResultResult());
        }
        if (other.hasOrganizationOrganization()) {
          mergeOrganizationOrganization(other.getOrganizationOrganization());
        }
        if (collectedfromBuilder_ == null) {
          if (!other.collectedfrom_.isEmpty()) {
            if (collectedfrom_.isEmpty()) {
              collectedfrom_ = other.collectedfrom_;
              bitField0_ = (bitField0_ & ~0x00004000);
            } else {
              ensureCollectedfromIsMutable();
              collectedfrom_.addAll(other.collectedfrom_);
            }
            onChanged();
          }
        } else {
          if (!other.collectedfrom_.isEmpty()) {
            if (collectedfromBuilder_.isEmpty()) {
              collectedfromBuilder_.dispose();
              collectedfromBuilder_ = null;
              collectedfrom_ = other.collectedfrom_;
              bitField0_ = (bitField0_ & ~0x00004000);
              collectedfromBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getCollectedfromFieldBuilder() : null;
            } else {
              collectedfromBuilder_.addAllMessages(other.collectedfrom_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (!hasRelType()) {
          
          return false;
        }
        if (!hasSubRelType()) {
          
          return false;
        }
        if (!hasRelClass()) {
          
          return false;
        }
        if (!hasSource()) {
          
          return false;
        }
        if (!hasTarget()) {
          
          return false;
        }
        if (!hasChild()) {
          
          return false;
        }
        if (hasCachedTarget()) {
          if (!getCachedTarget().isInitialized()) {
            
            return false;
          }
        }
        if (hasCachedOafTarget()) {
          if (!getCachedOafTarget().isInitialized()) {
            
            return false;
          }
        }
        if (hasDatasourceOrganization()) {
          if (!getDatasourceOrganization().isInitialized()) {
            
            return false;
          }
        }
        if (hasProjectOrganization()) {
          if (!getProjectOrganization().isInitialized()) {
            
            return false;
          }
        }
        if (hasResultOrganization()) {
          if (!getResultOrganization().isInitialized()) {
            
            return false;
          }
        }
        if (hasResultProject()) {
          if (!getResultProject().isInitialized()) {
            
            return false;
          }
        }
        if (hasResultResult()) {
          if (!getResultResult().isInitialized()) {
            
            return false;
          }
        }
        if (hasOrganizationOrganization()) {
          if (!getOrganizationOrganization().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getCollectedfromCount(); i++) {
          if (!getCollectedfrom(i).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 8: {
              int rawValue = input.readEnum();
              eu.dnetlib.data.proto.RelTypeProtos.RelType value = eu.dnetlib.data.proto.RelTypeProtos.RelType.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(1, rawValue);
              } else {
                bitField0_ |= 0x00000001;
                relType_ = value;
              }
              break;
            }
            case 18: {
              bitField0_ |= 0x00000008;
              source_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000010;
              target_ = input.readBytes();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000020;
              child_ = input.readBool();
              break;
            }
            case 42: {
              eu.dnetlib.data.proto.OafProtos.OafEntity.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder();
              if (hasCachedTarget()) {
                subBuilder.mergeFrom(getCachedTarget());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setCachedTarget(subBuilder.buildPartial());
              break;
            }
            case 50: {
              eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder subBuilder = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.newBuilder();
              if (hasDatasourceOrganization()) {
                subBuilder.mergeFrom(getDatasourceOrganization());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setDatasourceOrganization(subBuilder.buildPartial());
              break;
            }
            case 66: {
              eu.dnetlib.data.proto.OafProtos.Oaf.Builder subBuilder = eu.dnetlib.data.proto.OafProtos.Oaf.newBuilder();
              if (hasCachedOafTarget()) {
                subBuilder.mergeFrom(getCachedOafTarget());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setCachedOafTarget(subBuilder.buildPartial());
              break;
            }
            case 74: {
              eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder subBuilder = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.newBuilder();
              if (hasProjectOrganization()) {
                subBuilder.mergeFrom(getProjectOrganization());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setProjectOrganization(subBuilder.buildPartial());
              break;
            }
            case 82: {
              eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder subBuilder = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.newBuilder();
              if (hasResultOrganization()) {
                subBuilder.mergeFrom(getResultOrganization());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setResultOrganization(subBuilder.buildPartial());
              break;
            }
            case 90: {
              eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder subBuilder = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.newBuilder();
              if (hasResultProject()) {
                subBuilder.mergeFrom(getResultProject());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setResultProject(subBuilder.buildPartial());
              break;
            }
            case 130: {
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.newBuilder();
              if (hasResultResult()) {
                subBuilder.mergeFrom(getResultResult());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setResultResult(subBuilder.buildPartial());
              break;
            }
            case 138: {
              eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder subBuilder = eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.newBuilder();
              if (hasOrganizationOrganization()) {
                subBuilder.mergeFrom(getOrganizationOrganization());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setOrganizationOrganization(subBuilder.buildPartial());
              break;
            }
            case 152: {
              int rawValue = input.readEnum();
              eu.dnetlib.data.proto.RelTypeProtos.SubRelType value = eu.dnetlib.data.proto.RelTypeProtos.SubRelType.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(19, rawValue);
              } else {
                bitField0_ |= 0x00000002;
                subRelType_ = value;
              }
              break;
            }
            case 162: {
              bitField0_ |= 0x00000004;
              relClass_ = input.readBytes();
              break;
            }
            case 170: {
              eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addCollectedfrom(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required .eu.dnetlib.data.proto.RelType relType = 1;
      private eu.dnetlib.data.proto.RelTypeProtos.RelType relType_ = eu.dnetlib.data.proto.RelTypeProtos.RelType.datasourceOrganization;
      public boolean hasRelType() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public eu.dnetlib.data.proto.RelTypeProtos.RelType getRelType() {
        return relType_;
      }
      public Builder setRelType(eu.dnetlib.data.proto.RelTypeProtos.RelType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        relType_ = value;
        onChanged();
        return this;
      }
      public Builder clearRelType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        relType_ = eu.dnetlib.data.proto.RelTypeProtos.RelType.datasourceOrganization;
        onChanged();
        return this;
      }
      
      // required .eu.dnetlib.data.proto.SubRelType subRelType = 19;
      private eu.dnetlib.data.proto.RelTypeProtos.SubRelType subRelType_ = eu.dnetlib.data.proto.RelTypeProtos.SubRelType.provision;
      public boolean hasSubRelType() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public eu.dnetlib.data.proto.RelTypeProtos.SubRelType getSubRelType() {
        return subRelType_;
      }
      public Builder setSubRelType(eu.dnetlib.data.proto.RelTypeProtos.SubRelType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        subRelType_ = value;
        onChanged();
        return this;
      }
      public Builder clearSubRelType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        subRelType_ = eu.dnetlib.data.proto.RelTypeProtos.SubRelType.provision;
        onChanged();
        return this;
      }
      
      // required string relClass = 20;
      private java.lang.Object relClass_ = "";
      public boolean hasRelClass() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public String getRelClass() {
        java.lang.Object ref = relClass_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          relClass_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setRelClass(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        relClass_ = value;
        onChanged();
        return this;
      }
      public Builder clearRelClass() {
        bitField0_ = (bitField0_ & ~0x00000004);
        relClass_ = getDefaultInstance().getRelClass();
        onChanged();
        return this;
      }
      void setRelClass(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000004;
        relClass_ = value;
        onChanged();
      }
      
      // required string source = 2;
      private java.lang.Object source_ = "";
      public boolean hasSource() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      public String getSource() {
        java.lang.Object ref = source_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          source_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setSource(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        source_ = value;
        onChanged();
        return this;
      }
      public Builder clearSource() {
        bitField0_ = (bitField0_ & ~0x00000008);
        source_ = getDefaultInstance().getSource();
        onChanged();
        return this;
      }
      void setSource(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000008;
        source_ = value;
        onChanged();
      }
      
      // required string target = 3;
      private java.lang.Object target_ = "";
      public boolean hasTarget() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      public String getTarget() {
        java.lang.Object ref = target_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          target_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setTarget(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        target_ = value;
        onChanged();
        return this;
      }
      public Builder clearTarget() {
        bitField0_ = (bitField0_ & ~0x00000010);
        target_ = getDefaultInstance().getTarget();
        onChanged();
        return this;
      }
      void setTarget(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000010;
        target_ = value;
        onChanged();
      }
      
      // required bool child = 4;
      private boolean child_ ;
      public boolean hasChild() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      public boolean getChild() {
        return child_;
      }
      public Builder setChild(boolean value) {
        bitField0_ |= 0x00000020;
        child_ = value;
        onChanged();
        return this;
      }
      public Builder clearChild() {
        bitField0_ = (bitField0_ & ~0x00000020);
        child_ = false;
        onChanged();
        return this;
      }
      
      // optional .eu.dnetlib.data.proto.OafEntity cachedTarget = 5;
      private eu.dnetlib.data.proto.OafProtos.OafEntity cachedTarget_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> cachedTargetBuilder_;
      public boolean hasCachedTarget() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity getCachedTarget() {
        if (cachedTargetBuilder_ == null) {
          return cachedTarget_;
        } else {
          return cachedTargetBuilder_.getMessage();
        }
      }
      public Builder setCachedTarget(eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (cachedTargetBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          cachedTarget_ = value;
          onChanged();
        } else {
          cachedTargetBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder setCachedTarget(
          eu.dnetlib.data.proto.OafProtos.OafEntity.Builder builderForValue) {
        if (cachedTargetBuilder_ == null) {
          cachedTarget_ = builderForValue.build();
          onChanged();
        } else {
          cachedTargetBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder mergeCachedTarget(eu.dnetlib.data.proto.OafProtos.OafEntity value) {
        if (cachedTargetBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040) &&
              cachedTarget_ != eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance()) {
            cachedTarget_ =
              eu.dnetlib.data.proto.OafProtos.OafEntity.newBuilder(cachedTarget_).mergeFrom(value).buildPartial();
          } else {
            cachedTarget_ = value;
          }
          onChanged();
        } else {
          cachedTargetBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      public Builder clearCachedTarget() {
        if (cachedTargetBuilder_ == null) {
          cachedTarget_ = eu.dnetlib.data.proto.OafProtos.OafEntity.getDefaultInstance();
          onChanged();
        } else {
          cachedTargetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntity.Builder getCachedTargetBuilder() {
        bitField0_ |= 0x00000040;
        onChanged();
        return getCachedTargetFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getCachedTargetOrBuilder() {
        if (cachedTargetBuilder_ != null) {
          return cachedTargetBuilder_.getMessageOrBuilder();
        } else {
          return cachedTarget_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder> 
          getCachedTargetFieldBuilder() {
        if (cachedTargetBuilder_ == null) {
          cachedTargetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.OafEntity, eu.dnetlib.data.proto.OafProtos.OafEntity.Builder, eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder>(
                  cachedTarget_,
                  getParentForChildren(),
                  isClean());
          cachedTarget_ = null;
        }
        return cachedTargetBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.Oaf cachedOafTarget = 8;
      private eu.dnetlib.data.proto.OafProtos.Oaf cachedOafTarget_ = eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder> cachedOafTargetBuilder_;
      public boolean hasCachedOafTarget() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafTarget() {
        if (cachedOafTargetBuilder_ == null) {
          return cachedOafTarget_;
        } else {
          return cachedOafTargetBuilder_.getMessage();
        }
      }
      public Builder setCachedOafTarget(eu.dnetlib.data.proto.OafProtos.Oaf value) {
        if (cachedOafTargetBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          cachedOafTarget_ = value;
          onChanged();
        } else {
          cachedOafTargetBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder setCachedOafTarget(
          eu.dnetlib.data.proto.OafProtos.Oaf.Builder builderForValue) {
        if (cachedOafTargetBuilder_ == null) {
          cachedOafTarget_ = builderForValue.build();
          onChanged();
        } else {
          cachedOafTargetBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder mergeCachedOafTarget(eu.dnetlib.data.proto.OafProtos.Oaf value) {
        if (cachedOafTargetBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080) &&
              cachedOafTarget_ != eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance()) {
            cachedOafTarget_ =
              eu.dnetlib.data.proto.OafProtos.Oaf.newBuilder(cachedOafTarget_).mergeFrom(value).buildPartial();
          } else {
            cachedOafTarget_ = value;
          }
          onChanged();
        } else {
          cachedOafTargetBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      public Builder clearCachedOafTarget() {
        if (cachedOafTargetBuilder_ == null) {
          cachedOafTarget_ = eu.dnetlib.data.proto.OafProtos.Oaf.getDefaultInstance();
          onChanged();
        } else {
          cachedOafTargetBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      public eu.dnetlib.data.proto.OafProtos.Oaf.Builder getCachedOafTargetBuilder() {
        bitField0_ |= 0x00000080;
        onChanged();
        return getCachedOafTargetFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OafProtos.OafOrBuilder getCachedOafTargetOrBuilder() {
        if (cachedOafTargetBuilder_ != null) {
          return cachedOafTargetBuilder_.getMessageOrBuilder();
        } else {
          return cachedOafTarget_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder> 
          getCachedOafTargetFieldBuilder() {
        if (cachedOafTargetBuilder_ == null) {
          cachedOafTargetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OafProtos.Oaf, eu.dnetlib.data.proto.OafProtos.Oaf.Builder, eu.dnetlib.data.proto.OafProtos.OafOrBuilder>(
                  cachedOafTarget_,
                  getParentForChildren(),
                  isClean());
          cachedOafTarget_ = null;
        }
        return cachedOafTargetBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.DatasourceOrganization datasourceOrganization = 6;
      private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization datasourceOrganization_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder> datasourceOrganizationBuilder_;
      public boolean hasDatasourceOrganization() {
        return ((bitField0_ & 0x00000100) == 0x00000100);
      }
      public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization getDatasourceOrganization() {
        if (datasourceOrganizationBuilder_ == null) {
          return datasourceOrganization_;
        } else {
          return datasourceOrganizationBuilder_.getMessage();
        }
      }
      public Builder setDatasourceOrganization(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization value) {
        if (datasourceOrganizationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          datasourceOrganization_ = value;
          onChanged();
        } else {
          datasourceOrganizationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000100;
        return this;
      }
      public Builder setDatasourceOrganization(
          eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder builderForValue) {
        if (datasourceOrganizationBuilder_ == null) {
          datasourceOrganization_ = builderForValue.build();
          onChanged();
        } else {
          datasourceOrganizationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000100;
        return this;
      }
      public Builder mergeDatasourceOrganization(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization value) {
        if (datasourceOrganizationBuilder_ == null) {
          if (((bitField0_ & 0x00000100) == 0x00000100) &&
              datasourceOrganization_ != eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance()) {
            datasourceOrganization_ =
              eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.newBuilder(datasourceOrganization_).mergeFrom(value).buildPartial();
          } else {
            datasourceOrganization_ = value;
          }
          onChanged();
        } else {
          datasourceOrganizationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000100;
        return this;
      }
      public Builder clearDatasourceOrganization() {
        if (datasourceOrganizationBuilder_ == null) {
          datasourceOrganization_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance();
          onChanged();
        } else {
          datasourceOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000100);
        return this;
      }
      public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder getDatasourceOrganizationBuilder() {
        bitField0_ |= 0x00000100;
        onChanged();
        return getDatasourceOrganizationFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder getDatasourceOrganizationOrBuilder() {
        if (datasourceOrganizationBuilder_ != null) {
          return datasourceOrganizationBuilder_.getMessageOrBuilder();
        } else {
          return datasourceOrganization_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder> 
          getDatasourceOrganizationFieldBuilder() {
        if (datasourceOrganizationBuilder_ == null) {
          datasourceOrganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder>(
                  datasourceOrganization_,
                  getParentForChildren(),
                  isClean());
          datasourceOrganization_ = null;
        }
        return datasourceOrganizationBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ProjectOrganization projectOrganization = 9;
      private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization projectOrganization_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder> projectOrganizationBuilder_;
      public boolean hasProjectOrganization() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization getProjectOrganization() {
        if (projectOrganizationBuilder_ == null) {
          return projectOrganization_;
        } else {
          return projectOrganizationBuilder_.getMessage();
        }
      }
      public Builder setProjectOrganization(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization value) {
        if (projectOrganizationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          projectOrganization_ = value;
          onChanged();
        } else {
          projectOrganizationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder setProjectOrganization(
          eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder builderForValue) {
        if (projectOrganizationBuilder_ == null) {
          projectOrganization_ = builderForValue.build();
          onChanged();
        } else {
          projectOrganizationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder mergeProjectOrganization(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization value) {
        if (projectOrganizationBuilder_ == null) {
          if (((bitField0_ & 0x00000200) == 0x00000200) &&
              projectOrganization_ != eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance()) {
            projectOrganization_ =
              eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.newBuilder(projectOrganization_).mergeFrom(value).buildPartial();
          } else {
            projectOrganization_ = value;
          }
          onChanged();
        } else {
          projectOrganizationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      public Builder clearProjectOrganization() {
        if (projectOrganizationBuilder_ == null) {
          projectOrganization_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance();
          onChanged();
        } else {
          projectOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        return this;
      }
      public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder getProjectOrganizationBuilder() {
        bitField0_ |= 0x00000200;
        onChanged();
        return getProjectOrganizationFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder getProjectOrganizationOrBuilder() {
        if (projectOrganizationBuilder_ != null) {
          return projectOrganizationBuilder_.getMessageOrBuilder();
        } else {
          return projectOrganization_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder> 
          getProjectOrganizationFieldBuilder() {
        if (projectOrganizationBuilder_ == null) {
          projectOrganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder>(
                  projectOrganization_,
                  getParentForChildren(),
                  isClean());
          projectOrganization_ = null;
        }
        return projectOrganizationBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultOrganization resultOrganization = 10;
      private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization resultOrganization_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder> resultOrganizationBuilder_;
      public boolean hasResultOrganization() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization getResultOrganization() {
        if (resultOrganizationBuilder_ == null) {
          return resultOrganization_;
        } else {
          return resultOrganizationBuilder_.getMessage();
        }
      }
      public Builder setResultOrganization(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization value) {
        if (resultOrganizationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resultOrganization_ = value;
          onChanged();
        } else {
          resultOrganizationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder setResultOrganization(
          eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder builderForValue) {
        if (resultOrganizationBuilder_ == null) {
          resultOrganization_ = builderForValue.build();
          onChanged();
        } else {
          resultOrganizationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder mergeResultOrganization(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization value) {
        if (resultOrganizationBuilder_ == null) {
          if (((bitField0_ & 0x00000400) == 0x00000400) &&
              resultOrganization_ != eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance()) {
            resultOrganization_ =
              eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.newBuilder(resultOrganization_).mergeFrom(value).buildPartial();
          } else {
            resultOrganization_ = value;
          }
          onChanged();
        } else {
          resultOrganizationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      public Builder clearResultOrganization() {
        if (resultOrganizationBuilder_ == null) {
          resultOrganization_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance();
          onChanged();
        } else {
          resultOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        return this;
      }
      public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder getResultOrganizationBuilder() {
        bitField0_ |= 0x00000400;
        onChanged();
        return getResultOrganizationFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder getResultOrganizationOrBuilder() {
        if (resultOrganizationBuilder_ != null) {
          return resultOrganizationBuilder_.getMessageOrBuilder();
        } else {
          return resultOrganization_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder> 
          getResultOrganizationFieldBuilder() {
        if (resultOrganizationBuilder_ == null) {
          resultOrganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder>(
                  resultOrganization_,
                  getParentForChildren(),
                  isClean());
          resultOrganization_ = null;
        }
        return resultOrganizationBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultProject resultProject = 11;
      private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject resultProject_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultProjectProtos.ResultProject, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder> resultProjectBuilder_;
      public boolean hasResultProject() {
        return ((bitField0_ & 0x00000800) == 0x00000800);
      }
      public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject getResultProject() {
        if (resultProjectBuilder_ == null) {
          return resultProject_;
        } else {
          return resultProjectBuilder_.getMessage();
        }
      }
      public Builder setResultProject(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject value) {
        if (resultProjectBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resultProject_ = value;
          onChanged();
        } else {
          resultProjectBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder setResultProject(
          eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder builderForValue) {
        if (resultProjectBuilder_ == null) {
          resultProject_ = builderForValue.build();
          onChanged();
        } else {
          resultProjectBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder mergeResultProject(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject value) {
        if (resultProjectBuilder_ == null) {
          if (((bitField0_ & 0x00000800) == 0x00000800) &&
              resultProject_ != eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance()) {
            resultProject_ =
              eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.newBuilder(resultProject_).mergeFrom(value).buildPartial();
          } else {
            resultProject_ = value;
          }
          onChanged();
        } else {
          resultProjectBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000800;
        return this;
      }
      public Builder clearResultProject() {
        if (resultProjectBuilder_ == null) {
          resultProject_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance();
          onChanged();
        } else {
          resultProjectBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000800);
        return this;
      }
      public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder getResultProjectBuilder() {
        bitField0_ |= 0x00000800;
        onChanged();
        return getResultProjectFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder getResultProjectOrBuilder() {
        if (resultProjectBuilder_ != null) {
          return resultProjectBuilder_.getMessageOrBuilder();
        } else {
          return resultProject_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultProjectProtos.ResultProject, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder> 
          getResultProjectFieldBuilder() {
        if (resultProjectBuilder_ == null) {
          resultProjectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultProjectProtos.ResultProject, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder>(
                  resultProject_,
                  getParentForChildren(),
                  isClean());
          resultProject_ = null;
        }
        return resultProjectBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.ResultResult resultResult = 16;
      private eu.dnetlib.data.proto.ResultResultProtos.ResultResult resultResult_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder> resultResultBuilder_;
      public boolean hasResultResult() {
        return ((bitField0_ & 0x00001000) == 0x00001000);
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult getResultResult() {
        if (resultResultBuilder_ == null) {
          return resultResult_;
        } else {
          return resultResultBuilder_.getMessage();
        }
      }
      public Builder setResultResult(eu.dnetlib.data.proto.ResultResultProtos.ResultResult value) {
        if (resultResultBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resultResult_ = value;
          onChanged();
        } else {
          resultResultBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder setResultResult(
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder builderForValue) {
        if (resultResultBuilder_ == null) {
          resultResult_ = builderForValue.build();
          onChanged();
        } else {
          resultResultBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder mergeResultResult(eu.dnetlib.data.proto.ResultResultProtos.ResultResult value) {
        if (resultResultBuilder_ == null) {
          if (((bitField0_ & 0x00001000) == 0x00001000) &&
              resultResult_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance()) {
            resultResult_ =
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult.newBuilder(resultResult_).mergeFrom(value).buildPartial();
          } else {
            resultResult_ = value;
          }
          onChanged();
        } else {
          resultResultBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00001000;
        return this;
      }
      public Builder clearResultResult() {
        if (resultResultBuilder_ == null) {
          resultResult_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance();
          onChanged();
        } else {
          resultResultBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00001000);
        return this;
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder getResultResultBuilder() {
        bitField0_ |= 0x00001000;
        onChanged();
        return getResultResultFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder getResultResultOrBuilder() {
        if (resultResultBuilder_ != null) {
          return resultResultBuilder_.getMessageOrBuilder();
        } else {
          return resultResult_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.ResultResultProtos.ResultResult, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder> 
          getResultResultFieldBuilder() {
        if (resultResultBuilder_ == null) {
          resultResultBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.ResultResultProtos.ResultResult, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder>(
                  resultResult_,
                  getParentForChildren(),
                  isClean());
          resultResult_ = null;
        }
        return resultResultBuilder_;
      }
      
      // optional .eu.dnetlib.data.proto.OrganizationOrganization organizationOrganization = 17;
      private eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization organizationOrganization_ = eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder> organizationOrganizationBuilder_;
      public boolean hasOrganizationOrganization() {
        return ((bitField0_ & 0x00002000) == 0x00002000);
      }
      public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization getOrganizationOrganization() {
        if (organizationOrganizationBuilder_ == null) {
          return organizationOrganization_;
        } else {
          return organizationOrganizationBuilder_.getMessage();
        }
      }
      public Builder setOrganizationOrganization(eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization value) {
        if (organizationOrganizationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          organizationOrganization_ = value;
          onChanged();
        } else {
          organizationOrganizationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder setOrganizationOrganization(
          eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder builderForValue) {
        if (organizationOrganizationBuilder_ == null) {
          organizationOrganization_ = builderForValue.build();
          onChanged();
        } else {
          organizationOrganizationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder mergeOrganizationOrganization(eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization value) {
        if (organizationOrganizationBuilder_ == null) {
          if (((bitField0_ & 0x00002000) == 0x00002000) &&
              organizationOrganization_ != eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance()) {
            organizationOrganization_ =
              eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.newBuilder(organizationOrganization_).mergeFrom(value).buildPartial();
          } else {
            organizationOrganization_ = value;
          }
          onChanged();
        } else {
          organizationOrganizationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00002000;
        return this;
      }
      public Builder clearOrganizationOrganization() {
        if (organizationOrganizationBuilder_ == null) {
          organizationOrganization_ = eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance();
          onChanged();
        } else {
          organizationOrganizationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00002000);
        return this;
      }
      public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder getOrganizationOrganizationBuilder() {
        bitField0_ |= 0x00002000;
        onChanged();
        return getOrganizationOrganizationFieldBuilder().getBuilder();
      }
      public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder getOrganizationOrganizationOrBuilder() {
        if (organizationOrganizationBuilder_ != null) {
          return organizationOrganizationBuilder_.getMessageOrBuilder();
        } else {
          return organizationOrganization_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder> 
          getOrganizationOrganizationFieldBuilder() {
        if (organizationOrganizationBuilder_ == null) {
          organizationOrganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder, eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder>(
                  organizationOrganization_,
                  getParentForChildren(),
                  isClean());
          organizationOrganization_ = null;
        }
        return organizationOrganizationBuilder_;
      }
      
      // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 21;
      private java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> collectedfrom_ =
        java.util.Collections.emptyList();
      private void ensureCollectedfromIsMutable() {
        if (!((bitField0_ & 0x00004000) == 0x00004000)) {
          collectedfrom_ = new java.util.ArrayList<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue>(collectedfrom_);
          bitField0_ |= 0x00004000;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> collectedfromBuilder_;
      
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> getCollectedfromList() {
        if (collectedfromBuilder_ == null) {
          return java.util.Collections.unmodifiableList(collectedfrom_);
        } else {
          return collectedfromBuilder_.getMessageList();
        }
      }
      public int getCollectedfromCount() {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.size();
        } else {
          return collectedfromBuilder_.getCount();
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index) {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.get(index);
        } else {
          return collectedfromBuilder_.getMessage(index);
        }
      }
      public Builder setCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.set(index, value);
          onChanged();
        } else {
          collectedfromBuilder_.setMessage(index, value);
        }
        return this;
      }
      public Builder setCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.set(index, builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addCollectedfrom(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.add(value);
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(value);
        }
        return this;
      }
      public Builder addCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) {
        if (collectedfromBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCollectedfromIsMutable();
          collectedfrom_.add(index, value);
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(index, value);
        }
        return this;
      }
      public Builder addCollectedfrom(
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.add(builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addCollectedfrom(
          int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.add(index, builderForValue.build());
          onChanged();
        } else {
          collectedfromBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllCollectedfrom(
          java.lang.Iterable<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValue> values) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          super.addAll(values, collectedfrom_);
          onChanged();
        } else {
          collectedfromBuilder_.addAllMessages(values);
        }
        return this;
      }
      public Builder clearCollectedfrom() {
        if (collectedfromBuilder_ == null) {
          collectedfrom_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00004000);
          onChanged();
        } else {
          collectedfromBuilder_.clear();
        }
        return this;
      }
      public Builder removeCollectedfrom(int index) {
        if (collectedfromBuilder_ == null) {
          ensureCollectedfromIsMutable();
          collectedfrom_.remove(index);
          onChanged();
        } else {
          collectedfromBuilder_.remove(index);
        }
        return this;
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder getCollectedfromBuilder(
          int index) {
        return getCollectedfromFieldBuilder().getBuilder(index);
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(
          int index) {
        if (collectedfromBuilder_ == null) {
          return collectedfrom_.get(index);  } else {
          return collectedfromBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List<? extends eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
           getCollectedfromOrBuilderList() {
        if (collectedfromBuilder_ != null) {
          return collectedfromBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(collectedfrom_);
        }
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addCollectedfromBuilder() {
        return getCollectedfromFieldBuilder().addBuilder(
            eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance());
      }
      public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addCollectedfromBuilder(
          int index) {
        return getCollectedfromFieldBuilder().addBuilder(
            index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance());
      }
      public java.util.List<eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder> 
           getCollectedfromBuilderList() {
        return getCollectedfromFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> 
          getCollectedfromFieldBuilder() {
        if (collectedfromBuilder_ == null) {
          collectedfromBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>(
                  collectedfrom_,
                  ((bitField0_ & 0x00004000) == 0x00004000),
                  getParentForChildren(),
                  isClean());
          collectedfrom_ = null;
        }
        return collectedfromBuilder_;
      }
      
      // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.OafRel)
    }
    
    static {
      defaultInstance = new OafRel(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.OafRel)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_Oaf_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_Oaf_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_OafEntity_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_OafEntity_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_eu_dnetlib_data_proto_OafRel_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_eu_dnetlib_data_proto_OafRel_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\017OafParent.proto\022\025eu.dnetlib.data.proto" +
      "\032\nKind.proto\032\017FieldType.proto\032\nType.prot" +
      "o\032\020Datasource.proto\032\022Organization.proto\032" +
      "\rProject.proto\032\014Result.proto\032\014Person.pro" +
      "to\032\rRelType.proto\032\035Datasource_Organizati" +
      "on.proto\032\032Project_Organization.proto\032\031Re" +
      "sult_Organization.proto\032\024Result_Project." +
      "proto\032\023Result_Result.proto\032\037Organization" +
      "_Organization.proto\"\336\001\n\003Oaf\022)\n\004kind\030\001 \002(" +
      "\0162\033.eu.dnetlib.data.proto.Kind\0220\n\006entity",
      "\030\002 \001(\0132 .eu.dnetlib.data.proto.OafEntity" +
      "\022*\n\003rel\030\003 \001(\0132\035.eu.dnetlib.data.proto.Oa" +
      "fRel\0221\n\010dataInfo\030\004 \001(\0132\037.eu.dnetlib.data" +
      ".proto.DataInfo\022\033\n\023lastupdatetimestamp\030\005" +
      " \001(\020\"\211\006\n\tOafEntity\022)\n\004type\030\001 \002(\0162\033.eu.dn" +
      "etlib.data.proto.Type\022\n\n\002id\030\014 \002(\t\022\022\n\nori" +
      "ginalId\030\010 \003(\t\0226\n\rcollectedfrom\030\t \003(\0132\037.e" +
      "u.dnetlib.data.proto.KeyValue\0226\n\003pid\030\n \003" +
      "(\0132).eu.dnetlib.data.proto.StructuredPro" +
      "perty\022\030\n\020dateofcollection\030\013 \001(\t\022\034\n\024dateo",
      "ftransformation\030\r \001(\t\0220\n\tcachedRel\030\002 \003(\013" +
      "2\035.eu.dnetlib.data.proto.OafRel\0220\n\014cache" +
      "dOafRel\030\022 \003(\0132\032.eu.dnetlib.data.proto.Oa" +
      "f\0225\n\ndatasource\030\003 \001(\0132!.eu.dnetlib.data." +
      "proto.Datasource\0229\n\014organization\030\004 \001(\0132#" +
      ".eu.dnetlib.data.proto.Organization\022/\n\007p" +
      "roject\030\006 \001(\0132\036.eu.dnetlib.data.proto.Pro" +
      "ject\022-\n\006result\030\007 \001(\0132\035.eu.dnetlib.data.p" +
      "roto.Result\022-\n\006person\030\005 \001(\0132\035.eu.dnetlib" +
      ".data.proto.Person\0222\n\010children\030\020 \003(\0132 .e",
      "u.dnetlib.data.proto.OafEntity\0223\n\textraI" +
      "nfo\030\017 \003(\0132 .eu.dnetlib.data.proto.ExtraI" +
      "nfo\022;\n\roaiprovenance\030\021 \001(\0132$.eu.dnetlib." +
      "data.proto.OAIProvenance\"\200\006\n\006OafRel\022/\n\007r" +
      "elType\030\001 \002(\0162\036.eu.dnetlib.data.proto.Rel" +
      "Type\0225\n\nsubRelType\030\023 \002(\0162!.eu.dnetlib.da" +
      "ta.proto.SubRelType\022\020\n\010relClass\030\024 \002(\t\022\016\n" +
      "\006source\030\002 \002(\t\022\016\n\006target\030\003 \002(\t\022\r\n\005child\030\004" +
      " \002(\010\0226\n\014cachedTarget\030\005 \001(\0132 .eu.dnetlib." +
      "data.proto.OafEntity\0223\n\017cachedOafTarget\030",
      "\010 \001(\0132\032.eu.dnetlib.data.proto.Oaf\022M\n\026dat" +
      "asourceOrganization\030\006 \001(\0132-.eu.dnetlib.d" +
      "ata.proto.DatasourceOrganization\022G\n\023proj" +
      "ectOrganization\030\t \001(\0132*.eu.dnetlib.data." +
      "proto.ProjectOrganization\022E\n\022resultOrgan" +
      "ization\030\n \001(\0132).eu.dnetlib.data.proto.Re" +
      "sultOrganization\022;\n\rresultProject\030\013 \001(\0132" +
      "$.eu.dnetlib.data.proto.ResultProject\0229\n" +
      "\014resultResult\030\020 \001(\0132#.eu.dnetlib.data.pr" +
      "oto.ResultResult\022Q\n\030organizationOrganiza",
      "tion\030\021 \001(\0132/.eu.dnetlib.data.proto.Organ" +
      "izationOrganization\0226\n\rcollectedfrom\030\025 \003" +
      "(\0132\037.eu.dnetlib.data.proto.KeyValueB\"\n\025e" +
      "u.dnetlib.data.protoB\tOafProtos"
    };
    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_Oaf_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_eu_dnetlib_data_proto_Oaf_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_Oaf_descriptor,
              new java.lang.String[] { "Kind", "Entity", "Rel", "DataInfo", "Lastupdatetimestamp", },
              eu.dnetlib.data.proto.OafProtos.Oaf.class,
              eu.dnetlib.data.proto.OafProtos.Oaf.Builder.class);
          internal_static_eu_dnetlib_data_proto_OafEntity_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_eu_dnetlib_data_proto_OafEntity_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_OafEntity_descriptor,
              new java.lang.String[] { "Type", "Id", "OriginalId", "Collectedfrom", "Pid", "Dateofcollection", "Dateoftransformation", "CachedRel", "CachedOafRel", "Datasource", "Organization", "Project", "Result", "Person", "Children", "ExtraInfo", "Oaiprovenance", },
              eu.dnetlib.data.proto.OafProtos.OafEntity.class,
              eu.dnetlib.data.proto.OafProtos.OafEntity.Builder.class);
          internal_static_eu_dnetlib_data_proto_OafRel_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_eu_dnetlib_data_proto_OafRel_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_eu_dnetlib_data_proto_OafRel_descriptor,
              new java.lang.String[] { "RelType", "SubRelType", "RelClass", "Source", "Target", "Child", "CachedTarget", "CachedOafTarget", "DatasourceOrganization", "ProjectOrganization", "ResultOrganization", "ResultProject", "ResultResult", "OrganizationOrganization", "Collectedfrom", },
              eu.dnetlib.data.proto.OafProtos.OafRel.class,
              eu.dnetlib.data.proto.OafProtos.OafRel.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          eu.dnetlib.data.proto.KindProtos.getDescriptor(),
          eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(),
          eu.dnetlib.data.proto.TypeProtos.getDescriptor(),
          eu.dnetlib.data.proto.DatasourceProtos.getDescriptor(),
          eu.dnetlib.data.proto.OrganizationProtos.getDescriptor(),
          eu.dnetlib.data.proto.ProjectProtos.getDescriptor(),
          eu.dnetlib.data.proto.ResultProtos.getDescriptor(),
          eu.dnetlib.data.proto.PersonProtos.getDescriptor(),
          eu.dnetlib.data.proto.RelTypeProtos.getDescriptor(),
          eu.dnetlib.data.proto.DatasourceOrganizationProtos.getDescriptor(),
          eu.dnetlib.data.proto.ProjectOrganizationProtos.getDescriptor(),
          eu.dnetlib.data.proto.ResultOrganizationProtos.getDescriptor(),
          eu.dnetlib.data.proto.ResultProjectProtos.getDescriptor(),
          eu.dnetlib.data.proto.ResultResultProtos.getDescriptor(),
          eu.dnetlib.data.proto.OrganizationOrganizationProtos.getDescriptor(),
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}
