diff --git a/dnet-openaire-data-protos/deploy.info b/dnet-openaire-data-protos/deploy.info deleted file mode 100644 index b3c6d02..0000000 --- a/dnet-openaire-data-protos/deploy.info +++ /dev/null @@ -1,2 +0,0 @@ -{"type_source": "SVN", "goal": "package -U source:jar", -"url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-openaire-data-protos/trunk/", "deploy_repository": "dnet45-snapshots", "version": "4", "mail": "sandro.labruzzo@isti.cnr.it,michele.artini@isti.cnr.it, claudio.atzori@isti.cnr.it, alessia.bardi@isti.cnr.it", "deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-snapshots", "name": "dnet-openaire-data-protos"} \ No newline at end of file diff --git a/dnet-openaire-data-protos/pom.xml b/dnet-openaire-data-protos/pom.xml deleted file mode 100644 index f247374..0000000 --- a/dnet-openaire-data-protos/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - eu.dnetlib - dnet45-parent - 1.0.0 - - - 4.0.0 - eu.dnetlib - dnet-openaire-data-protos - jar - 3.9.4-proto250 - - - - 2.4.1 - - - - - dnet4-bootstrap-release - http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-release/ - - - - - - - eu.dnetlib - protoc-jar-maven-plugin - 1.1.0 - - - generate-sources - - run - - - ${google.protobuf.version} - - src/main/resources - - src/gen/java - - - - - - - - - com.google.protobuf - protobuf-java - ${google.protobuf.version} - - - diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceOrganizationProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceOrganizationProtos.java deleted file mode 100644 index 6ad51ee..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceOrganizationProtos.java +++ /dev/null @@ -1,1017 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Datasource_Organization.proto - -package eu.dnetlib.data.proto; - -public final class DatasourceOrganizationProtos { - private DatasourceOrganizationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DatasourceOrganizationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.DatasourceOrganization.Provision provision = 1; - boolean hasProvision(); - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision getProvision(); - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder getProvisionOrBuilder(); - } - public static final class DatasourceOrganization extends - com.google.protobuf.GeneratedMessage - implements DatasourceOrganizationOrBuilder { - // Use DatasourceOrganization.newBuilder() to construct. - private DatasourceOrganization(Builder builder) { - super(builder); - } - private DatasourceOrganization(boolean noInit) {} - - private static final DatasourceOrganization defaultInstance; - public static DatasourceOrganization getDefaultInstance() { - return defaultInstance; - } - - public DatasourceOrganization getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_fieldAccessorTable; - } - - public interface ProvisionOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Provision extends - com.google.protobuf.GeneratedMessage - implements ProvisionOrBuilder { - // Use Provision.newBuilder() to construct. - private Provision(Builder builder) { - super(builder); - } - private Provision(boolean noInit) {} - - private static final Provision defaultInstance; - public static Provision getDefaultInstance() { - return defaultInstance; - } - - public Provision getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isProvidedBy(0, 1), - provides(1, 2), - ; - - public static final int isProvidedBy_VALUE = 1; - public static final int provides_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isProvidedBy; - case 2: return provides; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isProvidedBy, provides, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.DatasourceOrganization.Provision.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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.DatasourceOrganizationProtos.DatasourceOrganization.Provision 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 - implements eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDescriptor(); - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision build() { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision buildPartial() { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision result = new eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision) { - return mergeFrom((eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision other) { - if (other == eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.DatasourceOrganization.Provision) - } - - static { - defaultInstance = new Provision(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.DatasourceOrganization.Provision) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.DatasourceOrganization.Provision provision = 1; - public static final int PROVISION_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision provision_; - public boolean hasProvision() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision getProvision() { - return provision_; - } - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder getProvisionOrBuilder() { - return provision_; - } - - private void initFields() { - provision_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasProvision()) { - if (!getProvision().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, provision_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, provision_); - } - 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.DatasourceOrganizationProtos.DatasourceOrganization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization 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.DatasourceOrganizationProtos.DatasourceOrganization 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 - implements eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.internal_static_eu_dnetlib_data_proto_DatasourceOrganization_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getProvisionFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (provisionBuilder_ == null) { - provision_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance(); - } else { - provisionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDescriptor(); - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization build() { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization buildPartial() { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization result = new eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (provisionBuilder_ == null) { - result.provision_ = provision_; - } else { - result.provision_ = provisionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization) { - return mergeFrom((eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization other) { - if (other == eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.getDefaultInstance()) return this; - if (other.hasProvision()) { - mergeProvision(other.getProvision()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasProvision()) { - if (!getProvision().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder subBuilder = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.newBuilder(); - if (hasProvision()) { - subBuilder.mergeFrom(getProvision()); - } - input.readMessage(subBuilder, extensionRegistry); - setProvision(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.DatasourceOrganization.Provision provision = 1; - private eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision provision_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder> provisionBuilder_; - public boolean hasProvision() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision getProvision() { - if (provisionBuilder_ == null) { - return provision_; - } else { - return provisionBuilder_.getMessage(); - } - } - public Builder setProvision(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision value) { - if (provisionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - provision_ = value; - onChanged(); - } else { - provisionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setProvision( - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder builderForValue) { - if (provisionBuilder_ == null) { - provision_ = builderForValue.build(); - onChanged(); - } else { - provisionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeProvision(eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision value) { - if (provisionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - provision_ != eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance()) { - provision_ = - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.newBuilder(provision_).mergeFrom(value).buildPartial(); - } else { - provision_ = value; - } - onChanged(); - } else { - provisionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearProvision() { - if (provisionBuilder_ == null) { - provision_ = eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.getDefaultInstance(); - onChanged(); - } else { - provisionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder getProvisionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getProvisionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder getProvisionOrBuilder() { - if (provisionBuilder_ != null) { - return provisionBuilder_.getMessageOrBuilder(); - } else { - return provision_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder> - getProvisionFieldBuilder() { - if (provisionBuilder_ == null) { - provisionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder, eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.ProvisionOrBuilder>( - provision_, - getParentForChildren(), - isClean()); - provision_ = null; - } - return provisionBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.DatasourceOrganization) - } - - static { - defaultInstance = new DatasourceOrganization(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.DatasourceOrganization) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_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\035Datasource_Organization.proto\022\025eu.dnet" + - "lib.data.proto\032\021RelMetadata.proto\"\325\001\n\026Da" + - "tasourceOrganization\022J\n\tprovision\030\001 \001(\0132" + - "7.eu.dnetlib.data.proto.DatasourceOrgani" + - "zation.Provision\032o\n\tProvision\0227\n\013relMeta" + - "data\030\001 \002(\0132\".eu.dnetlib.data.proto.RelMe" + - "tadata\")\n\007RelName\022\020\n\014isProvidedBy\020\001\022\014\n\010p" + - "rovides\020\002B5\n\025eu.dnetlib.data.protoB\034Data" + - "sourceOrganizationProtos" - }; - 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_DatasourceOrganization_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_descriptor, - new java.lang.String[] { "Provision", }, - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.class, - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Builder.class); - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_descriptor = - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_DatasourceOrganization_Provision_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.class, - eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceProtos.java deleted file mode 100644 index ced36fa..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DatasourceProtos.java +++ /dev/null @@ -1,6758 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Datasource.proto - -package eu.dnetlib.data.proto; - -public final class DatasourceProtos { - private DatasourceProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DatasourceOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Datasource.Metadata metadata = 2; - boolean hasMetadata(); - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata getMetadata(); - eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder getMetadataOrBuilder(); - } - public static final class Datasource extends - com.google.protobuf.GeneratedMessage - implements DatasourceOrBuilder { - // Use Datasource.newBuilder() to construct. - private Datasource(Builder builder) { - super(builder); - } - private Datasource(boolean noInit) {} - - private static final Datasource defaultInstance; - public static Datasource getDefaultInstance() { - return defaultInstance; - } - - public Datasource getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_fieldAccessorTable; - } - - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Qualifier datasourcetype = 15; - boolean hasDatasourcetype(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getDatasourcetype(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getDatasourcetypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier openairecompatibility = 17; - boolean hasOpenairecompatibility(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getOpenairecompatibility(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getOpenairecompatibilityOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField officialname = 1; - boolean hasOfficialname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOfficialname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOfficialnameOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField englishname = 2; - boolean hasEnglishname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnglishname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnglishnameOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - boolean hasWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - boolean hasLogourl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField contactemail = 5; - boolean hasContactemail(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField namespaceprefix = 7; - boolean hasNamespaceprefix(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getNamespaceprefix(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getNamespaceprefixOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField latitude = 18; - boolean hasLatitude(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLatitude(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLatitudeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField longitude = 19; - boolean hasLongitude(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLongitude(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLongitudeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField dateofvalidation = 20; - boolean hasDateofvalidation(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofvalidation(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofvalidationOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField description = 21; - boolean hasDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 45; - java.util.List - getSubjectsList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index); - int getSubjectsCount(); - java.util.List - getSubjectsOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.StringField odnumberofitems = 9; - boolean hasOdnumberofitems(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitems(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField odnumberofitemsdate = 10; - boolean hasOdnumberofitemsdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitemsdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsdateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField odpolicies = 12; - boolean hasOdpolicies(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdpolicies(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdpoliciesOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StringField odlanguages = 13; - java.util.List - getOdlanguagesList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdlanguages(int index); - int getOdlanguagesCount(); - java.util.List - getOdlanguagesOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdlanguagesOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField odcontenttypes = 14; - java.util.List - getOdcontenttypesList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdcontenttypes(int index); - int getOdcontenttypesCount(); - java.util.List - getOdcontenttypesOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdcontenttypesOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField accessinfopackage = 6; - java.util.List - getAccessinfopackageList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getAccessinfopackage(int index); - int getAccessinfopackageCount(); - java.util.List - getAccessinfopackageOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAccessinfopackageOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.StringField releasestartdate = 31; - boolean hasReleasestartdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleasestartdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleasestartdateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField releaseenddate = 32; - boolean hasReleaseenddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleaseenddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleaseenddateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField missionstatementurl = 33; - boolean hasMissionstatementurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getMissionstatementurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMissionstatementurlOrBuilder(); - - // optional .eu.dnetlib.data.proto.BoolField dataprovider = 34; - boolean hasDataprovider(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolField getDataprovider(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getDataproviderOrBuilder(); - - // optional .eu.dnetlib.data.proto.BoolField serviceprovider = 35; - boolean hasServiceprovider(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolField getServiceprovider(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getServiceproviderOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField databaseaccesstype = 36; - boolean hasDatabaseaccesstype(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccesstype(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccesstypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField datauploadtype = 37; - boolean hasDatauploadtype(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadtype(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadtypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField databaseaccessrestriction = 38; - boolean hasDatabaseaccessrestriction(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccessrestriction(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccessrestrictionOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField datauploadrestriction = 39; - boolean hasDatauploadrestriction(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadrestriction(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadrestrictionOrBuilder(); - - // optional .eu.dnetlib.data.proto.BoolField versioning = 40; - boolean hasVersioning(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolField getVersioning(); - eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getVersioningOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField citationguidelineurl = 41; - boolean hasCitationguidelineurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCitationguidelineurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCitationguidelineurlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField qualitymanagementkind = 42; - boolean hasQualitymanagementkind(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getQualitymanagementkind(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getQualitymanagementkindOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField pidsystems = 43; - boolean hasPidsystems(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getPidsystems(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPidsystemsOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField certificates = 44; - boolean hasCertificates(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCertificates(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCertificatesOrBuilder(); - - // repeated .eu.dnetlib.data.proto.KeyValue policies = 46; - java.util.List - getPoliciesList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getPolicies(int index); - int getPoliciesCount(); - java.util.List - getPoliciesOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPoliciesOrBuilder( - int index); - } - public static final class Metadata extends - com.google.protobuf.GeneratedMessage - implements MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(Builder builder) { - super(builder); - } - private Metadata(boolean noInit) {} - - private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { - return defaultInstance; - } - - public Metadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_Metadata_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Qualifier datasourcetype = 15; - public static final int DATASOURCETYPE_FIELD_NUMBER = 15; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier datasourcetype_; - public boolean hasDatasourcetype() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getDatasourcetype() { - return datasourcetype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getDatasourcetypeOrBuilder() { - return datasourcetype_; - } - - // optional .eu.dnetlib.data.proto.Qualifier openairecompatibility = 17; - public static final int OPENAIRECOMPATIBILITY_FIELD_NUMBER = 17; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier openairecompatibility_; - public boolean hasOpenairecompatibility() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getOpenairecompatibility() { - return openairecompatibility_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getOpenairecompatibilityOrBuilder() { - return openairecompatibility_; - } - - // optional .eu.dnetlib.data.proto.StringField officialname = 1; - public static final int OFFICIALNAME_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField officialname_; - public boolean hasOfficialname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOfficialname() { - return officialname_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOfficialnameOrBuilder() { - return officialname_; - } - - // optional .eu.dnetlib.data.proto.StringField englishname = 2; - public static final int ENGLISHNAME_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField englishname_; - public boolean hasEnglishname() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnglishname() { - return englishname_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnglishnameOrBuilder() { - return englishname_; - } - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - public static final int WEBSITEURL_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - return websiteurl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - return websiteurl_; - } - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - public static final int LOGOURL_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField logourl_; - public boolean hasLogourl() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl() { - return logourl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder() { - return logourl_; - } - - // optional .eu.dnetlib.data.proto.StringField contactemail = 5; - public static final int CONTACTEMAIL_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactemail_; - public boolean hasContactemail() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail() { - return contactemail_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder() { - return contactemail_; - } - - // optional .eu.dnetlib.data.proto.StringField namespaceprefix = 7; - public static final int NAMESPACEPREFIX_FIELD_NUMBER = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField namespaceprefix_; - public boolean hasNamespaceprefix() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getNamespaceprefix() { - return namespaceprefix_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getNamespaceprefixOrBuilder() { - return namespaceprefix_; - } - - // optional .eu.dnetlib.data.proto.StringField latitude = 18; - public static final int LATITUDE_FIELD_NUMBER = 18; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField latitude_; - public boolean hasLatitude() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLatitude() { - return latitude_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLatitudeOrBuilder() { - return latitude_; - } - - // optional .eu.dnetlib.data.proto.StringField longitude = 19; - public static final int LONGITUDE_FIELD_NUMBER = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField longitude_; - public boolean hasLongitude() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLongitude() { - return longitude_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLongitudeOrBuilder() { - return longitude_; - } - - // optional .eu.dnetlib.data.proto.StringField dateofvalidation = 20; - public static final int DATEOFVALIDATION_FIELD_NUMBER = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofvalidation_; - public boolean hasDateofvalidation() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofvalidation() { - return dateofvalidation_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofvalidationOrBuilder() { - return dateofvalidation_; - } - - // optional .eu.dnetlib.data.proto.StringField description = 21; - public static final int DESCRIPTION_FIELD_NUMBER = 21; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField description_; - public boolean hasDescription() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription() { - return description_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder() { - return description_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 45; - public static final int SUBJECTS_FIELD_NUMBER = 45; - private java.util.List subjects_; - public java.util.List getSubjectsList() { - return subjects_; - } - public java.util.List - getSubjectsOrBuilderList() { - return subjects_; - } - public int getSubjectsCount() { - return subjects_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index) { - return subjects_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index) { - return subjects_.get(index); - } - - // optional .eu.dnetlib.data.proto.StringField odnumberofitems = 9; - public static final int ODNUMBEROFITEMS_FIELD_NUMBER = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odnumberofitems_; - public boolean hasOdnumberofitems() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitems() { - return odnumberofitems_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsOrBuilder() { - return odnumberofitems_; - } - - // optional .eu.dnetlib.data.proto.StringField odnumberofitemsdate = 10; - public static final int ODNUMBEROFITEMSDATE_FIELD_NUMBER = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odnumberofitemsdate_; - public boolean hasOdnumberofitemsdate() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitemsdate() { - return odnumberofitemsdate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsdateOrBuilder() { - return odnumberofitemsdate_; - } - - // optional .eu.dnetlib.data.proto.StringField odpolicies = 12; - public static final int ODPOLICIES_FIELD_NUMBER = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odpolicies_; - public boolean hasOdpolicies() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdpolicies() { - return odpolicies_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdpoliciesOrBuilder() { - return odpolicies_; - } - - // repeated .eu.dnetlib.data.proto.StringField odlanguages = 13; - public static final int ODLANGUAGES_FIELD_NUMBER = 13; - private java.util.List odlanguages_; - public java.util.List getOdlanguagesList() { - return odlanguages_; - } - public java.util.List - getOdlanguagesOrBuilderList() { - return odlanguages_; - } - public int getOdlanguagesCount() { - return odlanguages_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdlanguages(int index) { - return odlanguages_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdlanguagesOrBuilder( - int index) { - return odlanguages_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField odcontenttypes = 14; - public static final int ODCONTENTTYPES_FIELD_NUMBER = 14; - private java.util.List odcontenttypes_; - public java.util.List getOdcontenttypesList() { - return odcontenttypes_; - } - public java.util.List - getOdcontenttypesOrBuilderList() { - return odcontenttypes_; - } - public int getOdcontenttypesCount() { - return odcontenttypes_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdcontenttypes(int index) { - return odcontenttypes_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdcontenttypesOrBuilder( - int index) { - return odcontenttypes_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField accessinfopackage = 6; - public static final int ACCESSINFOPACKAGE_FIELD_NUMBER = 6; - private java.util.List accessinfopackage_; - public java.util.List getAccessinfopackageList() { - return accessinfopackage_; - } - public java.util.List - getAccessinfopackageOrBuilderList() { - return accessinfopackage_; - } - public int getAccessinfopackageCount() { - return accessinfopackage_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAccessinfopackage(int index) { - return accessinfopackage_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAccessinfopackageOrBuilder( - int index) { - return accessinfopackage_.get(index); - } - - // optional .eu.dnetlib.data.proto.StringField releasestartdate = 31; - public static final int RELEASESTARTDATE_FIELD_NUMBER = 31; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField releasestartdate_; - public boolean hasReleasestartdate() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleasestartdate() { - return releasestartdate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleasestartdateOrBuilder() { - return releasestartdate_; - } - - // optional .eu.dnetlib.data.proto.StringField releaseenddate = 32; - public static final int RELEASEENDDATE_FIELD_NUMBER = 32; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField releaseenddate_; - public boolean hasReleaseenddate() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleaseenddate() { - return releaseenddate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleaseenddateOrBuilder() { - return releaseenddate_; - } - - // optional .eu.dnetlib.data.proto.StringField missionstatementurl = 33; - public static final int MISSIONSTATEMENTURL_FIELD_NUMBER = 33; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField missionstatementurl_; - public boolean hasMissionstatementurl() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getMissionstatementurl() { - return missionstatementurl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMissionstatementurlOrBuilder() { - return missionstatementurl_; - } - - // optional .eu.dnetlib.data.proto.BoolField dataprovider = 34; - public static final int DATAPROVIDER_FIELD_NUMBER = 34; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField dataprovider_; - public boolean hasDataprovider() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getDataprovider() { - return dataprovider_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getDataproviderOrBuilder() { - return dataprovider_; - } - - // optional .eu.dnetlib.data.proto.BoolField serviceprovider = 35; - public static final int SERVICEPROVIDER_FIELD_NUMBER = 35; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField serviceprovider_; - public boolean hasServiceprovider() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getServiceprovider() { - return serviceprovider_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getServiceproviderOrBuilder() { - return serviceprovider_; - } - - // optional .eu.dnetlib.data.proto.StringField databaseaccesstype = 36; - public static final int DATABASEACCESSTYPE_FIELD_NUMBER = 36; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField databaseaccesstype_; - public boolean hasDatabaseaccesstype() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccesstype() { - return databaseaccesstype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccesstypeOrBuilder() { - return databaseaccesstype_; - } - - // optional .eu.dnetlib.data.proto.StringField datauploadtype = 37; - public static final int DATAUPLOADTYPE_FIELD_NUMBER = 37; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField datauploadtype_; - public boolean hasDatauploadtype() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadtype() { - return datauploadtype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadtypeOrBuilder() { - return datauploadtype_; - } - - // optional .eu.dnetlib.data.proto.StringField databaseaccessrestriction = 38; - public static final int DATABASEACCESSRESTRICTION_FIELD_NUMBER = 38; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField databaseaccessrestriction_; - public boolean hasDatabaseaccessrestriction() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccessrestriction() { - return databaseaccessrestriction_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccessrestrictionOrBuilder() { - return databaseaccessrestriction_; - } - - // optional .eu.dnetlib.data.proto.StringField datauploadrestriction = 39; - public static final int DATAUPLOADRESTRICTION_FIELD_NUMBER = 39; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField datauploadrestriction_; - public boolean hasDatauploadrestriction() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadrestriction() { - return datauploadrestriction_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadrestrictionOrBuilder() { - return datauploadrestriction_; - } - - // optional .eu.dnetlib.data.proto.BoolField versioning = 40; - public static final int VERSIONING_FIELD_NUMBER = 40; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField versioning_; - public boolean hasVersioning() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getVersioning() { - return versioning_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getVersioningOrBuilder() { - return versioning_; - } - - // optional .eu.dnetlib.data.proto.StringField citationguidelineurl = 41; - public static final int CITATIONGUIDELINEURL_FIELD_NUMBER = 41; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField citationguidelineurl_; - public boolean hasCitationguidelineurl() { - return ((bitField0_ & 0x02000000) == 0x02000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCitationguidelineurl() { - return citationguidelineurl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCitationguidelineurlOrBuilder() { - return citationguidelineurl_; - } - - // optional .eu.dnetlib.data.proto.StringField qualitymanagementkind = 42; - public static final int QUALITYMANAGEMENTKIND_FIELD_NUMBER = 42; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField qualitymanagementkind_; - public boolean hasQualitymanagementkind() { - return ((bitField0_ & 0x04000000) == 0x04000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getQualitymanagementkind() { - return qualitymanagementkind_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getQualitymanagementkindOrBuilder() { - return qualitymanagementkind_; - } - - // optional .eu.dnetlib.data.proto.StringField pidsystems = 43; - public static final int PIDSYSTEMS_FIELD_NUMBER = 43; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField pidsystems_; - public boolean hasPidsystems() { - return ((bitField0_ & 0x08000000) == 0x08000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getPidsystems() { - return pidsystems_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPidsystemsOrBuilder() { - return pidsystems_; - } - - // optional .eu.dnetlib.data.proto.StringField certificates = 44; - public static final int CERTIFICATES_FIELD_NUMBER = 44; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField certificates_; - public boolean hasCertificates() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCertificates() { - return certificates_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCertificatesOrBuilder() { - return certificates_; - } - - // repeated .eu.dnetlib.data.proto.KeyValue policies = 46; - public static final int POLICIES_FIELD_NUMBER = 46; - private java.util.List policies_; - public java.util.List getPoliciesList() { - return policies_; - } - public java.util.List - getPoliciesOrBuilderList() { - return policies_; - } - public int getPoliciesCount() { - return policies_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getPolicies(int index) { - return policies_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPoliciesOrBuilder( - int index) { - return policies_.get(index); - } - - private void initFields() { - datasourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - openairecompatibility_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - officialname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - englishname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - namespaceprefix_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - latitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - longitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - dateofvalidation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - description_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - subjects_ = java.util.Collections.emptyList(); - odnumberofitems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - odnumberofitemsdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - odpolicies_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - odlanguages_ = java.util.Collections.emptyList(); - odcontenttypes_ = java.util.Collections.emptyList(); - accessinfopackage_ = java.util.Collections.emptyList(); - releasestartdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - releaseenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - missionstatementurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - dataprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - serviceprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - databaseaccesstype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - datauploadtype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - databaseaccessrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - datauploadrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - versioning_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - citationguidelineurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - qualitymanagementkind_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - pidsystems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - certificates_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - policies_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasDatasourcetype()) { - if (!getDatasourcetype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOpenairecompatibility()) { - if (!getOpenairecompatibility().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOfficialname()) { - if (!getOfficialname().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEnglishname()) { - if (!getEnglishname().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLogourl()) { - if (!getLogourl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContactemail()) { - if (!getContactemail().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasNamespaceprefix()) { - if (!getNamespaceprefix().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLatitude()) { - if (!getLatitude().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLongitude()) { - if (!getLongitude().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDateofvalidation()) { - if (!getDateofvalidation().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDescription()) { - if (!getDescription().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getSubjectsCount(); i++) { - if (!getSubjects(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOdnumberofitems()) { - if (!getOdnumberofitems().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOdnumberofitemsdate()) { - if (!getOdnumberofitemsdate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOdpolicies()) { - if (!getOdpolicies().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getOdlanguagesCount(); i++) { - if (!getOdlanguages(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getOdcontenttypesCount(); i++) { - if (!getOdcontenttypes(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAccessinfopackageCount(); i++) { - if (!getAccessinfopackage(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasReleasestartdate()) { - if (!getReleasestartdate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasReleaseenddate()) { - if (!getReleaseenddate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasMissionstatementurl()) { - if (!getMissionstatementurl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDataprovider()) { - if (!getDataprovider().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasServiceprovider()) { - if (!getServiceprovider().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDatabaseaccesstype()) { - if (!getDatabaseaccesstype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDatauploadtype()) { - if (!getDatauploadtype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDatabaseaccessrestriction()) { - if (!getDatabaseaccessrestriction().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDatauploadrestriction()) { - if (!getDatauploadrestriction().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasVersioning()) { - if (!getVersioning().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCitationguidelineurl()) { - if (!getCitationguidelineurl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasQualitymanagementkind()) { - if (!getQualitymanagementkind().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPidsystems()) { - if (!getPidsystems().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCertificates()) { - if (!getCertificates().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getPoliciesCount(); i++) { - if (!getPolicies(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_ & 0x00000004) == 0x00000004)) { - output.writeMessage(1, officialname_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(2, englishname_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(3, websiteurl_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(4, logourl_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(5, contactemail_); - } - for (int i = 0; i < accessinfopackage_.size(); i++) { - output.writeMessage(6, accessinfopackage_.get(i)); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(7, namespaceprefix_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(9, odnumberofitems_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(10, odnumberofitemsdate_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(12, odpolicies_); - } - for (int i = 0; i < odlanguages_.size(); i++) { - output.writeMessage(13, odlanguages_.get(i)); - } - for (int i = 0; i < odcontenttypes_.size(); i++) { - output.writeMessage(14, odcontenttypes_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(15, datasourcetype_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(17, openairecompatibility_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(18, latitude_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(19, longitude_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(20, dateofvalidation_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(21, description_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(31, releasestartdate_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(32, releaseenddate_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(33, missionstatementurl_); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(34, dataprovider_); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(35, serviceprovider_); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeMessage(36, databaseaccesstype_); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeMessage(37, datauploadtype_); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeMessage(38, databaseaccessrestriction_); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeMessage(39, datauploadrestriction_); - } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeMessage(40, versioning_); - } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - output.writeMessage(41, citationguidelineurl_); - } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - output.writeMessage(42, qualitymanagementkind_); - } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - output.writeMessage(43, pidsystems_); - } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(44, certificates_); - } - for (int i = 0; i < subjects_.size(); i++) { - output.writeMessage(45, subjects_.get(i)); - } - for (int i = 0; i < policies_.size(); i++) { - output.writeMessage(46, policies_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, officialname_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, englishname_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, websiteurl_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logourl_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, contactemail_); - } - for (int i = 0; i < accessinfopackage_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, accessinfopackage_.get(i)); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, namespaceprefix_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, odnumberofitems_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, odnumberofitemsdate_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, odpolicies_); - } - for (int i = 0; i < odlanguages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, odlanguages_.get(i)); - } - for (int i = 0; i < odcontenttypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, odcontenttypes_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, datasourcetype_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, openairecompatibility_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, latitude_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, longitude_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, dateofvalidation_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, description_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, releasestartdate_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, releaseenddate_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, missionstatementurl_); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, dataprovider_); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, serviceprovider_); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, databaseaccesstype_); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, datauploadtype_); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, databaseaccessrestriction_); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, datauploadrestriction_); - } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, versioning_); - } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, citationguidelineurl_); - } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, qualitymanagementkind_); - } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, pidsystems_); - } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, certificates_); - } - for (int i = 0; i < subjects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, subjects_.get(i)); - } - for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, policies_.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.DatasourceProtos.Datasource.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata 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.DatasourceProtos.Datasource.Metadata 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 - implements eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_Metadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDatasourcetypeFieldBuilder(); - getOpenairecompatibilityFieldBuilder(); - getOfficialnameFieldBuilder(); - getEnglishnameFieldBuilder(); - getWebsiteurlFieldBuilder(); - getLogourlFieldBuilder(); - getContactemailFieldBuilder(); - getNamespaceprefixFieldBuilder(); - getLatitudeFieldBuilder(); - getLongitudeFieldBuilder(); - getDateofvalidationFieldBuilder(); - getDescriptionFieldBuilder(); - getSubjectsFieldBuilder(); - getOdnumberofitemsFieldBuilder(); - getOdnumberofitemsdateFieldBuilder(); - getOdpoliciesFieldBuilder(); - getOdlanguagesFieldBuilder(); - getOdcontenttypesFieldBuilder(); - getAccessinfopackageFieldBuilder(); - getReleasestartdateFieldBuilder(); - getReleaseenddateFieldBuilder(); - getMissionstatementurlFieldBuilder(); - getDataproviderFieldBuilder(); - getServiceproviderFieldBuilder(); - getDatabaseaccesstypeFieldBuilder(); - getDatauploadtypeFieldBuilder(); - getDatabaseaccessrestrictionFieldBuilder(); - getDatauploadrestrictionFieldBuilder(); - getVersioningFieldBuilder(); - getCitationguidelineurlFieldBuilder(); - getQualitymanagementkindFieldBuilder(); - getPidsystemsFieldBuilder(); - getCertificatesFieldBuilder(); - getPoliciesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (datasourcetypeBuilder_ == null) { - datasourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - datasourcetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (openairecompatibilityBuilder_ == null) { - openairecompatibility_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - openairecompatibilityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (officialnameBuilder_ == null) { - officialname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - officialnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (englishnameBuilder_ == null) { - englishname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - englishnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (logourlBuilder_ == null) { - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - logourlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (contactemailBuilder_ == null) { - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - contactemailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (namespaceprefixBuilder_ == null) { - namespaceprefix_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - namespaceprefixBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (latitudeBuilder_ == null) { - latitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - latitudeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (longitudeBuilder_ == null) { - longitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - longitudeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (dateofvalidationBuilder_ == null) { - dateofvalidation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - dateofvalidationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (descriptionBuilder_ == null) { - description_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - descriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - if (subjectsBuilder_ == null) { - subjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - } else { - subjectsBuilder_.clear(); - } - if (odnumberofitemsBuilder_ == null) { - odnumberofitems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - odnumberofitemsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - if (odnumberofitemsdateBuilder_ == null) { - odnumberofitemsdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - odnumberofitemsdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - if (odpoliciesBuilder_ == null) { - odpolicies_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - odpoliciesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - if (odlanguagesBuilder_ == null) { - odlanguages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - } else { - odlanguagesBuilder_.clear(); - } - if (odcontenttypesBuilder_ == null) { - odcontenttypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - } else { - odcontenttypesBuilder_.clear(); - } - if (accessinfopackageBuilder_ == null) { - accessinfopackage_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); - } else { - accessinfopackageBuilder_.clear(); - } - if (releasestartdateBuilder_ == null) { - releasestartdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - releasestartdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - if (releaseenddateBuilder_ == null) { - releaseenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - releaseenddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - if (missionstatementurlBuilder_ == null) { - missionstatementurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - missionstatementurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - if (dataproviderBuilder_ == null) { - dataprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - } else { - dataproviderBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00400000); - if (serviceproviderBuilder_ == null) { - serviceprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - } else { - serviceproviderBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00800000); - if (databaseaccesstypeBuilder_ == null) { - databaseaccesstype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - databaseaccesstypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x01000000); - if (datauploadtypeBuilder_ == null) { - datauploadtype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - datauploadtypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x02000000); - if (databaseaccessrestrictionBuilder_ == null) { - databaseaccessrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - databaseaccessrestrictionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x04000000); - if (datauploadrestrictionBuilder_ == null) { - datauploadrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - datauploadrestrictionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x08000000); - if (versioningBuilder_ == null) { - versioning_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - } else { - versioningBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x10000000); - if (citationguidelineurlBuilder_ == null) { - citationguidelineurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - citationguidelineurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x20000000); - if (qualitymanagementkindBuilder_ == null) { - qualitymanagementkind_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - qualitymanagementkindBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x40000000); - if (pidsystemsBuilder_ == null) { - pidsystems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - pidsystemsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x80000000); - if (certificatesBuilder_ == null) { - certificates_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - certificatesBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00000001); - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000002); - } else { - policiesBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata build() { - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata buildPartial() { - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata result = new eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata(this); - int from_bitField0_ = bitField0_; - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (datasourcetypeBuilder_ == null) { - result.datasourcetype_ = datasourcetype_; - } else { - result.datasourcetype_ = datasourcetypeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (openairecompatibilityBuilder_ == null) { - result.openairecompatibility_ = openairecompatibility_; - } else { - result.openairecompatibility_ = openairecompatibilityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (officialnameBuilder_ == null) { - result.officialname_ = officialname_; - } else { - result.officialname_ = officialnameBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (englishnameBuilder_ == null) { - result.englishname_ = englishname_; - } else { - result.englishname_ = englishnameBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (websiteurlBuilder_ == null) { - result.websiteurl_ = websiteurl_; - } else { - result.websiteurl_ = websiteurlBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (logourlBuilder_ == null) { - result.logourl_ = logourl_; - } else { - result.logourl_ = logourlBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (contactemailBuilder_ == null) { - result.contactemail_ = contactemail_; - } else { - result.contactemail_ = contactemailBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (namespaceprefixBuilder_ == null) { - result.namespaceprefix_ = namespaceprefix_; - } else { - result.namespaceprefix_ = namespaceprefixBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (latitudeBuilder_ == null) { - result.latitude_ = latitude_; - } else { - result.latitude_ = latitudeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - if (longitudeBuilder_ == null) { - result.longitude_ = longitude_; - } else { - result.longitude_ = longitudeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - if (dateofvalidationBuilder_ == null) { - result.dateofvalidation_ = dateofvalidation_; - } else { - result.dateofvalidation_ = dateofvalidationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - if (subjectsBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subjects_ = java.util.Collections.unmodifiableList(subjects_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.subjects_ = subjects_; - } else { - result.subjects_ = subjectsBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00001000; - } - if (odnumberofitemsBuilder_ == null) { - result.odnumberofitems_ = odnumberofitems_; - } else { - result.odnumberofitems_ = odnumberofitemsBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - if (odnumberofitemsdateBuilder_ == null) { - result.odnumberofitemsdate_ = odnumberofitemsdate_; - } else { - result.odnumberofitemsdate_ = odnumberofitemsdateBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - if (odpoliciesBuilder_ == null) { - result.odpolicies_ = odpolicies_; - } else { - result.odpolicies_ = odpoliciesBuilder_.build(); - } - if (odlanguagesBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000)) { - odlanguages_ = java.util.Collections.unmodifiableList(odlanguages_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.odlanguages_ = odlanguages_; - } else { - result.odlanguages_ = odlanguagesBuilder_.build(); - } - if (odcontenttypesBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000)) { - odcontenttypes_ = java.util.Collections.unmodifiableList(odcontenttypes_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.odcontenttypes_ = odcontenttypes_; - } else { - result.odcontenttypes_ = odcontenttypesBuilder_.build(); - } - if (accessinfopackageBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000)) { - accessinfopackage_ = java.util.Collections.unmodifiableList(accessinfopackage_); - bitField0_ = (bitField0_ & ~0x00040000); - } - result.accessinfopackage_ = accessinfopackage_; - } else { - result.accessinfopackage_ = accessinfopackageBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00008000; - } - if (releasestartdateBuilder_ == null) { - result.releasestartdate_ = releasestartdate_; - } else { - result.releasestartdate_ = releasestartdateBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00010000; - } - if (releaseenddateBuilder_ == null) { - result.releaseenddate_ = releaseenddate_; - } else { - result.releaseenddate_ = releaseenddateBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00020000; - } - if (missionstatementurlBuilder_ == null) { - result.missionstatementurl_ = missionstatementurl_; - } else { - result.missionstatementurl_ = missionstatementurlBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00040000; - } - if (dataproviderBuilder_ == null) { - result.dataprovider_ = dataprovider_; - } else { - result.dataprovider_ = dataproviderBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { - to_bitField0_ |= 0x00080000; - } - if (serviceproviderBuilder_ == null) { - result.serviceprovider_ = serviceprovider_; - } else { - result.serviceprovider_ = serviceproviderBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x00100000; - } - if (databaseaccesstypeBuilder_ == null) { - result.databaseaccesstype_ = databaseaccesstype_; - } else { - result.databaseaccesstype_ = databaseaccesstypeBuilder_.build(); - } - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x00200000; - } - if (datauploadtypeBuilder_ == null) { - result.datauploadtype_ = datauploadtype_; - } else { - result.datauploadtype_ = datauploadtypeBuilder_.build(); - } - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x00400000; - } - if (databaseaccessrestrictionBuilder_ == null) { - result.databaseaccessrestriction_ = databaseaccessrestriction_; - } else { - result.databaseaccessrestriction_ = databaseaccessrestrictionBuilder_.build(); - } - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { - to_bitField0_ |= 0x00800000; - } - if (datauploadrestrictionBuilder_ == null) { - result.datauploadrestriction_ = datauploadrestriction_; - } else { - result.datauploadrestriction_ = datauploadrestrictionBuilder_.build(); - } - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { - to_bitField0_ |= 0x01000000; - } - if (versioningBuilder_ == null) { - result.versioning_ = versioning_; - } else { - result.versioning_ = versioningBuilder_.build(); - } - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { - to_bitField0_ |= 0x02000000; - } - if (citationguidelineurlBuilder_ == null) { - result.citationguidelineurl_ = citationguidelineurl_; - } else { - result.citationguidelineurl_ = citationguidelineurlBuilder_.build(); - } - if (((from_bitField0_ & 0x40000000) == 0x40000000)) { - to_bitField0_ |= 0x04000000; - } - if (qualitymanagementkindBuilder_ == null) { - result.qualitymanagementkind_ = qualitymanagementkind_; - } else { - result.qualitymanagementkind_ = qualitymanagementkindBuilder_.build(); - } - if (((from_bitField0_ & 0x80000000) == 0x80000000)) { - to_bitField0_ |= 0x08000000; - } - if (pidsystemsBuilder_ == null) { - result.pidsystems_ = pidsystems_; - } else { - result.pidsystems_ = pidsystemsBuilder_.build(); - } - if (((from_bitField1_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x10000000; - } - if (certificatesBuilder_ == null) { - result.certificates_ = certificates_; - } else { - result.certificates_ = certificatesBuilder_.build(); - } - if (policiesBuilder_ == null) { - if (((bitField1_ & 0x00000002) == 0x00000002)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - bitField1_ = (bitField1_ & ~0x00000002); - } - result.policies_ = policies_; - } else { - result.policies_ = policiesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata) { - return mergeFrom((eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata other) { - if (other == eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance()) return this; - if (other.hasDatasourcetype()) { - mergeDatasourcetype(other.getDatasourcetype()); - } - if (other.hasOpenairecompatibility()) { - mergeOpenairecompatibility(other.getOpenairecompatibility()); - } - if (other.hasOfficialname()) { - mergeOfficialname(other.getOfficialname()); - } - if (other.hasEnglishname()) { - mergeEnglishname(other.getEnglishname()); - } - if (other.hasWebsiteurl()) { - mergeWebsiteurl(other.getWebsiteurl()); - } - if (other.hasLogourl()) { - mergeLogourl(other.getLogourl()); - } - if (other.hasContactemail()) { - mergeContactemail(other.getContactemail()); - } - if (other.hasNamespaceprefix()) { - mergeNamespaceprefix(other.getNamespaceprefix()); - } - if (other.hasLatitude()) { - mergeLatitude(other.getLatitude()); - } - if (other.hasLongitude()) { - mergeLongitude(other.getLongitude()); - } - if (other.hasDateofvalidation()) { - mergeDateofvalidation(other.getDateofvalidation()); - } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - if (subjectsBuilder_ == null) { - if (!other.subjects_.isEmpty()) { - if (subjects_.isEmpty()) { - subjects_ = other.subjects_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureSubjectsIsMutable(); - subjects_.addAll(other.subjects_); - } - onChanged(); - } - } else { - if (!other.subjects_.isEmpty()) { - if (subjectsBuilder_.isEmpty()) { - subjectsBuilder_.dispose(); - subjectsBuilder_ = null; - subjects_ = other.subjects_; - bitField0_ = (bitField0_ & ~0x00001000); - subjectsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSubjectsFieldBuilder() : null; - } else { - subjectsBuilder_.addAllMessages(other.subjects_); - } - } - } - if (other.hasOdnumberofitems()) { - mergeOdnumberofitems(other.getOdnumberofitems()); - } - if (other.hasOdnumberofitemsdate()) { - mergeOdnumberofitemsdate(other.getOdnumberofitemsdate()); - } - if (other.hasOdpolicies()) { - mergeOdpolicies(other.getOdpolicies()); - } - if (odlanguagesBuilder_ == null) { - if (!other.odlanguages_.isEmpty()) { - if (odlanguages_.isEmpty()) { - odlanguages_ = other.odlanguages_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureOdlanguagesIsMutable(); - odlanguages_.addAll(other.odlanguages_); - } - onChanged(); - } - } else { - if (!other.odlanguages_.isEmpty()) { - if (odlanguagesBuilder_.isEmpty()) { - odlanguagesBuilder_.dispose(); - odlanguagesBuilder_ = null; - odlanguages_ = other.odlanguages_; - bitField0_ = (bitField0_ & ~0x00010000); - odlanguagesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getOdlanguagesFieldBuilder() : null; - } else { - odlanguagesBuilder_.addAllMessages(other.odlanguages_); - } - } - } - if (odcontenttypesBuilder_ == null) { - if (!other.odcontenttypes_.isEmpty()) { - if (odcontenttypes_.isEmpty()) { - odcontenttypes_ = other.odcontenttypes_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureOdcontenttypesIsMutable(); - odcontenttypes_.addAll(other.odcontenttypes_); - } - onChanged(); - } - } else { - if (!other.odcontenttypes_.isEmpty()) { - if (odcontenttypesBuilder_.isEmpty()) { - odcontenttypesBuilder_.dispose(); - odcontenttypesBuilder_ = null; - odcontenttypes_ = other.odcontenttypes_; - bitField0_ = (bitField0_ & ~0x00020000); - odcontenttypesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getOdcontenttypesFieldBuilder() : null; - } else { - odcontenttypesBuilder_.addAllMessages(other.odcontenttypes_); - } - } - } - if (accessinfopackageBuilder_ == null) { - if (!other.accessinfopackage_.isEmpty()) { - if (accessinfopackage_.isEmpty()) { - accessinfopackage_ = other.accessinfopackage_; - bitField0_ = (bitField0_ & ~0x00040000); - } else { - ensureAccessinfopackageIsMutable(); - accessinfopackage_.addAll(other.accessinfopackage_); - } - onChanged(); - } - } else { - if (!other.accessinfopackage_.isEmpty()) { - if (accessinfopackageBuilder_.isEmpty()) { - accessinfopackageBuilder_.dispose(); - accessinfopackageBuilder_ = null; - accessinfopackage_ = other.accessinfopackage_; - bitField0_ = (bitField0_ & ~0x00040000); - accessinfopackageBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAccessinfopackageFieldBuilder() : null; - } else { - accessinfopackageBuilder_.addAllMessages(other.accessinfopackage_); - } - } - } - if (other.hasReleasestartdate()) { - mergeReleasestartdate(other.getReleasestartdate()); - } - if (other.hasReleaseenddate()) { - mergeReleaseenddate(other.getReleaseenddate()); - } - if (other.hasMissionstatementurl()) { - mergeMissionstatementurl(other.getMissionstatementurl()); - } - if (other.hasDataprovider()) { - mergeDataprovider(other.getDataprovider()); - } - if (other.hasServiceprovider()) { - mergeServiceprovider(other.getServiceprovider()); - } - if (other.hasDatabaseaccesstype()) { - mergeDatabaseaccesstype(other.getDatabaseaccesstype()); - } - if (other.hasDatauploadtype()) { - mergeDatauploadtype(other.getDatauploadtype()); - } - if (other.hasDatabaseaccessrestriction()) { - mergeDatabaseaccessrestriction(other.getDatabaseaccessrestriction()); - } - if (other.hasDatauploadrestriction()) { - mergeDatauploadrestriction(other.getDatauploadrestriction()); - } - if (other.hasVersioning()) { - mergeVersioning(other.getVersioning()); - } - if (other.hasCitationguidelineurl()) { - mergeCitationguidelineurl(other.getCitationguidelineurl()); - } - if (other.hasQualitymanagementkind()) { - mergeQualitymanagementkind(other.getQualitymanagementkind()); - } - if (other.hasPidsystems()) { - mergePidsystems(other.getPidsystems()); - } - if (other.hasCertificates()) { - mergeCertificates(other.getCertificates()); - } - if (policiesBuilder_ == null) { - if (!other.policies_.isEmpty()) { - if (policies_.isEmpty()) { - policies_ = other.policies_; - bitField1_ = (bitField1_ & ~0x00000002); - } else { - ensurePoliciesIsMutable(); - policies_.addAll(other.policies_); - } - onChanged(); - } - } else { - if (!other.policies_.isEmpty()) { - if (policiesBuilder_.isEmpty()) { - policiesBuilder_.dispose(); - policiesBuilder_ = null; - policies_ = other.policies_; - bitField1_ = (bitField1_ & ~0x00000002); - policiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPoliciesFieldBuilder() : null; - } else { - policiesBuilder_.addAllMessages(other.policies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasDatasourcetype()) { - if (!getDatasourcetype().isInitialized()) { - - return false; - } - } - if (hasOpenairecompatibility()) { - if (!getOpenairecompatibility().isInitialized()) { - - return false; - } - } - if (hasOfficialname()) { - if (!getOfficialname().isInitialized()) { - - return false; - } - } - if (hasEnglishname()) { - if (!getEnglishname().isInitialized()) { - - return false; - } - } - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - - return false; - } - } - if (hasLogourl()) { - if (!getLogourl().isInitialized()) { - - return false; - } - } - if (hasContactemail()) { - if (!getContactemail().isInitialized()) { - - return false; - } - } - if (hasNamespaceprefix()) { - if (!getNamespaceprefix().isInitialized()) { - - return false; - } - } - if (hasLatitude()) { - if (!getLatitude().isInitialized()) { - - return false; - } - } - if (hasLongitude()) { - if (!getLongitude().isInitialized()) { - - return false; - } - } - if (hasDateofvalidation()) { - if (!getDateofvalidation().isInitialized()) { - - return false; - } - } - if (hasDescription()) { - if (!getDescription().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getSubjectsCount(); i++) { - if (!getSubjects(i).isInitialized()) { - - return false; - } - } - if (hasOdnumberofitems()) { - if (!getOdnumberofitems().isInitialized()) { - - return false; - } - } - if (hasOdnumberofitemsdate()) { - if (!getOdnumberofitemsdate().isInitialized()) { - - return false; - } - } - if (hasOdpolicies()) { - if (!getOdpolicies().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getOdlanguagesCount(); i++) { - if (!getOdlanguages(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getOdcontenttypesCount(); i++) { - if (!getOdcontenttypes(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getAccessinfopackageCount(); i++) { - if (!getAccessinfopackage(i).isInitialized()) { - - return false; - } - } - if (hasReleasestartdate()) { - if (!getReleasestartdate().isInitialized()) { - - return false; - } - } - if (hasReleaseenddate()) { - if (!getReleaseenddate().isInitialized()) { - - return false; - } - } - if (hasMissionstatementurl()) { - if (!getMissionstatementurl().isInitialized()) { - - return false; - } - } - if (hasDataprovider()) { - if (!getDataprovider().isInitialized()) { - - return false; - } - } - if (hasServiceprovider()) { - if (!getServiceprovider().isInitialized()) { - - return false; - } - } - if (hasDatabaseaccesstype()) { - if (!getDatabaseaccesstype().isInitialized()) { - - return false; - } - } - if (hasDatauploadtype()) { - if (!getDatauploadtype().isInitialized()) { - - return false; - } - } - if (hasDatabaseaccessrestriction()) { - if (!getDatabaseaccessrestriction().isInitialized()) { - - return false; - } - } - if (hasDatauploadrestriction()) { - if (!getDatauploadrestriction().isInitialized()) { - - return false; - } - } - if (hasVersioning()) { - if (!getVersioning().isInitialized()) { - - return false; - } - } - if (hasCitationguidelineurl()) { - if (!getCitationguidelineurl().isInitialized()) { - - return false; - } - } - if (hasQualitymanagementkind()) { - if (!getQualitymanagementkind().isInitialized()) { - - return false; - } - } - if (hasPidsystems()) { - if (!getPidsystems().isInitialized()) { - - return false; - } - } - if (hasCertificates()) { - if (!getCertificates().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getPoliciesCount(); i++) { - if (!getPolicies(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 10: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOfficialname()) { - subBuilder.mergeFrom(getOfficialname()); - } - input.readMessage(subBuilder, extensionRegistry); - setOfficialname(subBuilder.buildPartial()); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEnglishname()) { - subBuilder.mergeFrom(getEnglishname()); - } - input.readMessage(subBuilder, extensionRegistry); - setEnglishname(subBuilder.buildPartial()); - break; - } - case 26: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasWebsiteurl()) { - subBuilder.mergeFrom(getWebsiteurl()); - } - input.readMessage(subBuilder, extensionRegistry); - setWebsiteurl(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLogourl()) { - subBuilder.mergeFrom(getLogourl()); - } - input.readMessage(subBuilder, extensionRegistry); - setLogourl(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasContactemail()) { - subBuilder.mergeFrom(getContactemail()); - } - input.readMessage(subBuilder, extensionRegistry); - setContactemail(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addAccessinfopackage(subBuilder.buildPartial()); - break; - } - case 58: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasNamespaceprefix()) { - subBuilder.mergeFrom(getNamespaceprefix()); - } - input.readMessage(subBuilder, extensionRegistry); - setNamespaceprefix(subBuilder.buildPartial()); - break; - } - case 74: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOdnumberofitems()) { - subBuilder.mergeFrom(getOdnumberofitems()); - } - input.readMessage(subBuilder, extensionRegistry); - setOdnumberofitems(subBuilder.buildPartial()); - break; - } - case 82: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOdnumberofitemsdate()) { - subBuilder.mergeFrom(getOdnumberofitemsdate()); - } - input.readMessage(subBuilder, extensionRegistry); - setOdnumberofitemsdate(subBuilder.buildPartial()); - break; - } - case 98: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOdpolicies()) { - subBuilder.mergeFrom(getOdpolicies()); - } - input.readMessage(subBuilder, extensionRegistry); - setOdpolicies(subBuilder.buildPartial()); - break; - } - case 106: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addOdlanguages(subBuilder.buildPartial()); - break; - } - case 114: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addOdcontenttypes(subBuilder.buildPartial()); - break; - } - case 122: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasDatasourcetype()) { - subBuilder.mergeFrom(getDatasourcetype()); - } - input.readMessage(subBuilder, extensionRegistry); - setDatasourcetype(subBuilder.buildPartial()); - break; - } - case 138: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasOpenairecompatibility()) { - subBuilder.mergeFrom(getOpenairecompatibility()); - } - input.readMessage(subBuilder, extensionRegistry); - setOpenairecompatibility(subBuilder.buildPartial()); - break; - } - case 146: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLatitude()) { - subBuilder.mergeFrom(getLatitude()); - } - input.readMessage(subBuilder, extensionRegistry); - setLatitude(subBuilder.buildPartial()); - break; - } - case 154: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLongitude()) { - subBuilder.mergeFrom(getLongitude()); - } - input.readMessage(subBuilder, extensionRegistry); - setLongitude(subBuilder.buildPartial()); - break; - } - case 162: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDateofvalidation()) { - subBuilder.mergeFrom(getDateofvalidation()); - } - input.readMessage(subBuilder, extensionRegistry); - setDateofvalidation(subBuilder.buildPartial()); - break; - } - case 170: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDescription()) { - subBuilder.mergeFrom(getDescription()); - } - input.readMessage(subBuilder, extensionRegistry); - setDescription(subBuilder.buildPartial()); - break; - } - case 250: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasReleasestartdate()) { - subBuilder.mergeFrom(getReleasestartdate()); - } - input.readMessage(subBuilder, extensionRegistry); - setReleasestartdate(subBuilder.buildPartial()); - break; - } - case 258: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasReleaseenddate()) { - subBuilder.mergeFrom(getReleaseenddate()); - } - input.readMessage(subBuilder, extensionRegistry); - setReleaseenddate(subBuilder.buildPartial()); - break; - } - case 266: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasMissionstatementurl()) { - subBuilder.mergeFrom(getMissionstatementurl()); - } - input.readMessage(subBuilder, extensionRegistry); - setMissionstatementurl(subBuilder.buildPartial()); - break; - } - case 274: { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(); - if (hasDataprovider()) { - subBuilder.mergeFrom(getDataprovider()); - } - input.readMessage(subBuilder, extensionRegistry); - setDataprovider(subBuilder.buildPartial()); - break; - } - case 282: { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(); - if (hasServiceprovider()) { - subBuilder.mergeFrom(getServiceprovider()); - } - input.readMessage(subBuilder, extensionRegistry); - setServiceprovider(subBuilder.buildPartial()); - break; - } - case 290: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDatabaseaccesstype()) { - subBuilder.mergeFrom(getDatabaseaccesstype()); - } - input.readMessage(subBuilder, extensionRegistry); - setDatabaseaccesstype(subBuilder.buildPartial()); - break; - } - case 298: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDatauploadtype()) { - subBuilder.mergeFrom(getDatauploadtype()); - } - input.readMessage(subBuilder, extensionRegistry); - setDatauploadtype(subBuilder.buildPartial()); - break; - } - case 306: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDatabaseaccessrestriction()) { - subBuilder.mergeFrom(getDatabaseaccessrestriction()); - } - input.readMessage(subBuilder, extensionRegistry); - setDatabaseaccessrestriction(subBuilder.buildPartial()); - break; - } - case 314: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDatauploadrestriction()) { - subBuilder.mergeFrom(getDatauploadrestriction()); - } - input.readMessage(subBuilder, extensionRegistry); - setDatauploadrestriction(subBuilder.buildPartial()); - break; - } - case 322: { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(); - if (hasVersioning()) { - subBuilder.mergeFrom(getVersioning()); - } - input.readMessage(subBuilder, extensionRegistry); - setVersioning(subBuilder.buildPartial()); - break; - } - case 330: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasCitationguidelineurl()) { - subBuilder.mergeFrom(getCitationguidelineurl()); - } - input.readMessage(subBuilder, extensionRegistry); - setCitationguidelineurl(subBuilder.buildPartial()); - break; - } - case 338: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasQualitymanagementkind()) { - subBuilder.mergeFrom(getQualitymanagementkind()); - } - input.readMessage(subBuilder, extensionRegistry); - setQualitymanagementkind(subBuilder.buildPartial()); - break; - } - case 346: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasPidsystems()) { - subBuilder.mergeFrom(getPidsystems()); - } - input.readMessage(subBuilder, extensionRegistry); - setPidsystems(subBuilder.buildPartial()); - break; - } - case 354: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasCertificates()) { - subBuilder.mergeFrom(getCertificates()); - } - input.readMessage(subBuilder, extensionRegistry); - setCertificates(subBuilder.buildPartial()); - break; - } - case 362: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addSubjects(subBuilder.buildPartial()); - break; - } - case 370: { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addPolicies(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - private int bitField1_; - - // optional .eu.dnetlib.data.proto.Qualifier datasourcetype = 15; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier datasourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> datasourcetypeBuilder_; - public boolean hasDatasourcetype() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getDatasourcetype() { - if (datasourcetypeBuilder_ == null) { - return datasourcetype_; - } else { - return datasourcetypeBuilder_.getMessage(); - } - } - public Builder setDatasourcetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (datasourcetypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datasourcetype_ = value; - onChanged(); - } else { - datasourcetypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setDatasourcetype( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (datasourcetypeBuilder_ == null) { - datasourcetype_ = builderForValue.build(); - onChanged(); - } else { - datasourcetypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeDatasourcetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (datasourcetypeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - datasourcetype_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - datasourcetype_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(datasourcetype_).mergeFrom(value).buildPartial(); - } else { - datasourcetype_ = value; - } - onChanged(); - } else { - datasourcetypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearDatasourcetype() { - if (datasourcetypeBuilder_ == null) { - datasourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - datasourcetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getDatasourcetypeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDatasourcetypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getDatasourcetypeOrBuilder() { - if (datasourcetypeBuilder_ != null) { - return datasourcetypeBuilder_.getMessageOrBuilder(); - } else { - return datasourcetype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getDatasourcetypeFieldBuilder() { - if (datasourcetypeBuilder_ == null) { - datasourcetypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - datasourcetype_, - getParentForChildren(), - isClean()); - datasourcetype_ = null; - } - return datasourcetypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier openairecompatibility = 17; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier openairecompatibility_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> openairecompatibilityBuilder_; - public boolean hasOpenairecompatibility() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getOpenairecompatibility() { - if (openairecompatibilityBuilder_ == null) { - return openairecompatibility_; - } else { - return openairecompatibilityBuilder_.getMessage(); - } - } - public Builder setOpenairecompatibility(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (openairecompatibilityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - openairecompatibility_ = value; - onChanged(); - } else { - openairecompatibilityBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setOpenairecompatibility( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (openairecompatibilityBuilder_ == null) { - openairecompatibility_ = builderForValue.build(); - onChanged(); - } else { - openairecompatibilityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeOpenairecompatibility(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (openairecompatibilityBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - openairecompatibility_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - openairecompatibility_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(openairecompatibility_).mergeFrom(value).buildPartial(); - } else { - openairecompatibility_ = value; - } - onChanged(); - } else { - openairecompatibilityBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearOpenairecompatibility() { - if (openairecompatibilityBuilder_ == null) { - openairecompatibility_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - openairecompatibilityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getOpenairecompatibilityBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getOpenairecompatibilityFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getOpenairecompatibilityOrBuilder() { - if (openairecompatibilityBuilder_ != null) { - return openairecompatibilityBuilder_.getMessageOrBuilder(); - } else { - return openairecompatibility_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getOpenairecompatibilityFieldBuilder() { - if (openairecompatibilityBuilder_ == null) { - openairecompatibilityBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - openairecompatibility_, - getParentForChildren(), - isClean()); - openairecompatibility_ = null; - } - return openairecompatibilityBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField officialname = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField officialname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> officialnameBuilder_; - public boolean hasOfficialname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOfficialname() { - if (officialnameBuilder_ == null) { - return officialname_; - } else { - return officialnameBuilder_.getMessage(); - } - } - public Builder setOfficialname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (officialnameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - officialname_ = value; - onChanged(); - } else { - officialnameBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder setOfficialname( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (officialnameBuilder_ == null) { - officialname_ = builderForValue.build(); - onChanged(); - } else { - officialnameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder mergeOfficialname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (officialnameBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - officialname_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - officialname_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(officialname_).mergeFrom(value).buildPartial(); - } else { - officialname_ = value; - } - onChanged(); - } else { - officialnameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder clearOfficialname() { - if (officialnameBuilder_ == null) { - officialname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - officialnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOfficialnameBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOfficialnameFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOfficialnameOrBuilder() { - if (officialnameBuilder_ != null) { - return officialnameBuilder_.getMessageOrBuilder(); - } else { - return officialname_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOfficialnameFieldBuilder() { - if (officialnameBuilder_ == null) { - officialnameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - officialname_, - getParentForChildren(), - isClean()); - officialname_ = null; - } - return officialnameBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField englishname = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField englishname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> englishnameBuilder_; - public boolean hasEnglishname() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnglishname() { - if (englishnameBuilder_ == null) { - return englishname_; - } else { - return englishnameBuilder_.getMessage(); - } - } - public Builder setEnglishname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (englishnameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - englishname_ = value; - onChanged(); - } else { - englishnameBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder setEnglishname( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (englishnameBuilder_ == null) { - englishname_ = builderForValue.build(); - onChanged(); - } else { - englishnameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder mergeEnglishname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (englishnameBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - englishname_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - englishname_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(englishname_).mergeFrom(value).buildPartial(); - } else { - englishname_ = value; - } - onChanged(); - } else { - englishnameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder clearEnglishname() { - if (englishnameBuilder_ == null) { - englishname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - englishnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEnglishnameBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getEnglishnameFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnglishnameOrBuilder() { - if (englishnameBuilder_ != null) { - return englishnameBuilder_.getMessageOrBuilder(); - } else { - return englishname_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEnglishnameFieldBuilder() { - if (englishnameBuilder_ == null) { - englishnameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - englishname_, - getParentForChildren(), - isClean()); - englishname_ = null; - } - return englishnameBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> websiteurlBuilder_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - if (websiteurlBuilder_ == null) { - return websiteurl_; - } else { - return websiteurlBuilder_.getMessage(); - } - } - public Builder setWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - websiteurl_ = value; - onChanged(); - } else { - websiteurlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder setWebsiteurl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (websiteurlBuilder_ == null) { - websiteurl_ = builderForValue.build(); - onChanged(); - } else { - websiteurlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder mergeWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - websiteurl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - websiteurl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(websiteurl_).mergeFrom(value).buildPartial(); - } else { - websiteurl_ = value; - } - onChanged(); - } else { - websiteurlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder clearWebsiteurl() { - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getWebsiteurlBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getWebsiteurlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - if (websiteurlBuilder_ != null) { - return websiteurlBuilder_.getMessageOrBuilder(); - } else { - return websiteurl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getWebsiteurlFieldBuilder() { - if (websiteurlBuilder_ == null) { - websiteurlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - websiteurl_, - getParentForChildren(), - isClean()); - websiteurl_ = null; - } - return websiteurlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> logourlBuilder_; - public boolean hasLogourl() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl() { - if (logourlBuilder_ == null) { - return logourl_; - } else { - return logourlBuilder_.getMessage(); - } - } - public Builder setLogourl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (logourlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - logourl_ = value; - onChanged(); - } else { - logourlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder setLogourl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (logourlBuilder_ == null) { - logourl_ = builderForValue.build(); - onChanged(); - } else { - logourlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder mergeLogourl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (logourlBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - logourl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - logourl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(logourl_).mergeFrom(value).buildPartial(); - } else { - logourl_ = value; - } - onChanged(); - } else { - logourlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder clearLogourl() { - if (logourlBuilder_ == null) { - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - logourlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLogourlBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getLogourlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder() { - if (logourlBuilder_ != null) { - return logourlBuilder_.getMessageOrBuilder(); - } else { - return logourl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLogourlFieldBuilder() { - if (logourlBuilder_ == null) { - logourlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - logourl_, - getParentForChildren(), - isClean()); - logourl_ = null; - } - return logourlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField contactemail = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactemailBuilder_; - public boolean hasContactemail() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail() { - if (contactemailBuilder_ == null) { - return contactemail_; - } else { - return contactemailBuilder_.getMessage(); - } - } - public Builder setContactemail(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactemailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactemail_ = value; - onChanged(); - } else { - contactemailBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setContactemail( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactemailBuilder_ == null) { - contactemail_ = builderForValue.build(); - onChanged(); - } else { - contactemailBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeContactemail(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactemailBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - contactemail_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - contactemail_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(contactemail_).mergeFrom(value).buildPartial(); - } else { - contactemail_ = value; - } - onChanged(); - } else { - contactemailBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearContactemail() { - if (contactemailBuilder_ == null) { - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - contactemailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactemailBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getContactemailFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder() { - if (contactemailBuilder_ != null) { - return contactemailBuilder_.getMessageOrBuilder(); - } else { - return contactemail_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactemailFieldBuilder() { - if (contactemailBuilder_ == null) { - contactemailBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactemail_, - getParentForChildren(), - isClean()); - contactemail_ = null; - } - return contactemailBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField namespaceprefix = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField namespaceprefix_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> namespaceprefixBuilder_; - public boolean hasNamespaceprefix() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getNamespaceprefix() { - if (namespaceprefixBuilder_ == null) { - return namespaceprefix_; - } else { - return namespaceprefixBuilder_.getMessage(); - } - } - public Builder setNamespaceprefix(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (namespaceprefixBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespaceprefix_ = value; - onChanged(); - } else { - namespaceprefixBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setNamespaceprefix( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (namespaceprefixBuilder_ == null) { - namespaceprefix_ = builderForValue.build(); - onChanged(); - } else { - namespaceprefixBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeNamespaceprefix(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (namespaceprefixBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - namespaceprefix_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - namespaceprefix_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(namespaceprefix_).mergeFrom(value).buildPartial(); - } else { - namespaceprefix_ = value; - } - onChanged(); - } else { - namespaceprefixBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearNamespaceprefix() { - if (namespaceprefixBuilder_ == null) { - namespaceprefix_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - namespaceprefixBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getNamespaceprefixBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getNamespaceprefixFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getNamespaceprefixOrBuilder() { - if (namespaceprefixBuilder_ != null) { - return namespaceprefixBuilder_.getMessageOrBuilder(); - } else { - return namespaceprefix_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getNamespaceprefixFieldBuilder() { - if (namespaceprefixBuilder_ == null) { - namespaceprefixBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - namespaceprefix_, - getParentForChildren(), - isClean()); - namespaceprefix_ = null; - } - return namespaceprefixBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField latitude = 18; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField latitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> latitudeBuilder_; - public boolean hasLatitude() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLatitude() { - if (latitudeBuilder_ == null) { - return latitude_; - } else { - return latitudeBuilder_.getMessage(); - } - } - public Builder setLatitude(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (latitudeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - latitude_ = value; - onChanged(); - } else { - latitudeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder setLatitude( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (latitudeBuilder_ == null) { - latitude_ = builderForValue.build(); - onChanged(); - } else { - latitudeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder mergeLatitude(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (latitudeBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - latitude_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - latitude_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(latitude_).mergeFrom(value).buildPartial(); - } else { - latitude_ = value; - } - onChanged(); - } else { - latitudeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder clearLatitude() { - if (latitudeBuilder_ == null) { - latitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - latitudeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLatitudeBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getLatitudeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLatitudeOrBuilder() { - if (latitudeBuilder_ != null) { - return latitudeBuilder_.getMessageOrBuilder(); - } else { - return latitude_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLatitudeFieldBuilder() { - if (latitudeBuilder_ == null) { - latitudeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - latitude_, - getParentForChildren(), - isClean()); - latitude_ = null; - } - return latitudeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField longitude = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField longitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> longitudeBuilder_; - public boolean hasLongitude() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLongitude() { - if (longitudeBuilder_ == null) { - return longitude_; - } else { - return longitudeBuilder_.getMessage(); - } - } - public Builder setLongitude(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (longitudeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - longitude_ = value; - onChanged(); - } else { - longitudeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder setLongitude( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (longitudeBuilder_ == null) { - longitude_ = builderForValue.build(); - onChanged(); - } else { - longitudeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder mergeLongitude(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (longitudeBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - longitude_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - longitude_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(longitude_).mergeFrom(value).buildPartial(); - } else { - longitude_ = value; - } - onChanged(); - } else { - longitudeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder clearLongitude() { - if (longitudeBuilder_ == null) { - longitude_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - longitudeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLongitudeBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getLongitudeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLongitudeOrBuilder() { - if (longitudeBuilder_ != null) { - return longitudeBuilder_.getMessageOrBuilder(); - } else { - return longitude_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLongitudeFieldBuilder() { - if (longitudeBuilder_ == null) { - longitudeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - longitude_, - getParentForChildren(), - isClean()); - longitude_ = null; - } - return longitudeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField dateofvalidation = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofvalidation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> dateofvalidationBuilder_; - public boolean hasDateofvalidation() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofvalidation() { - if (dateofvalidationBuilder_ == null) { - return dateofvalidation_; - } else { - return dateofvalidationBuilder_.getMessage(); - } - } - public Builder setDateofvalidation(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofvalidationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dateofvalidation_ = value; - onChanged(); - } else { - dateofvalidationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder setDateofvalidation( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (dateofvalidationBuilder_ == null) { - dateofvalidation_ = builderForValue.build(); - onChanged(); - } else { - dateofvalidationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder mergeDateofvalidation(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofvalidationBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - dateofvalidation_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - dateofvalidation_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(dateofvalidation_).mergeFrom(value).buildPartial(); - } else { - dateofvalidation_ = value; - } - onChanged(); - } else { - dateofvalidationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder clearDateofvalidation() { - if (dateofvalidationBuilder_ == null) { - dateofvalidation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - dateofvalidationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDateofvalidationBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getDateofvalidationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofvalidationOrBuilder() { - if (dateofvalidationBuilder_ != null) { - return dateofvalidationBuilder_.getMessageOrBuilder(); - } else { - return dateofvalidation_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDateofvalidationFieldBuilder() { - if (dateofvalidationBuilder_ == null) { - dateofvalidationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - dateofvalidation_, - getParentForChildren(), - isClean()); - dateofvalidation_ = null; - } - return dateofvalidationBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField description = 21; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField description_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> descriptionBuilder_; - public boolean hasDescription() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription() { - if (descriptionBuilder_ == null) { - return description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - public Builder setDescription(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder setDescription( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder mergeDescription(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (descriptionBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - description_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - description_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - descriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDescriptionBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - description_, - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 45; - private java.util.List subjects_ = - java.util.Collections.emptyList(); - private void ensureSubjectsIsMutable() { - if (!((bitField0_ & 0x00001000) == 0x00001000)) { - subjects_ = new java.util.ArrayList(subjects_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> subjectsBuilder_; - - public java.util.List getSubjectsList() { - if (subjectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subjects_); - } else { - return subjectsBuilder_.getMessageList(); - } - } - public int getSubjectsCount() { - if (subjectsBuilder_ == null) { - return subjects_.size(); - } else { - return subjectsBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index) { - if (subjectsBuilder_ == null) { - return subjects_.get(index); - } else { - return subjectsBuilder_.getMessage(index); - } - } - public Builder setSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.set(index, value); - onChanged(); - } else { - subjectsBuilder_.setMessage(index, value); - } - return this; - } - public Builder setSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.set(index, builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addSubjects(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(value); - onChanged(); - } else { - subjectsBuilder_.addMessage(value); - } - return this; - } - public Builder addSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(index, value); - onChanged(); - } else { - subjectsBuilder_.addMessage(index, value); - } - return this; - } - public Builder addSubjects( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.add(builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.add(index, builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllSubjects( - java.lang.Iterable values) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - super.addAll(values, subjects_); - onChanged(); - } else { - subjectsBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearSubjects() { - if (subjectsBuilder_ == null) { - subjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - subjectsBuilder_.clear(); - } - return this; - } - public Builder removeSubjects(int index) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.remove(index); - onChanged(); - } else { - subjectsBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getSubjectsBuilder( - int index) { - return getSubjectsFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index) { - if (subjectsBuilder_ == null) { - return subjects_.get(index); } else { - return subjectsBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getSubjectsOrBuilderList() { - if (subjectsBuilder_ != null) { - return subjectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subjects_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectsBuilder() { - return getSubjectsFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectsBuilder( - int index) { - return getSubjectsFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getSubjectsBuilderList() { - return getSubjectsFieldBuilder().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> - getSubjectsFieldBuilder() { - if (subjectsBuilder_ == null) { - subjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - subjects_, - ((bitField0_ & 0x00001000) == 0x00001000), - getParentForChildren(), - isClean()); - subjects_ = null; - } - return subjectsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField odnumberofitems = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odnumberofitems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> odnumberofitemsBuilder_; - public boolean hasOdnumberofitems() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitems() { - if (odnumberofitemsBuilder_ == null) { - return odnumberofitems_; - } else { - return odnumberofitemsBuilder_.getMessage(); - } - } - public Builder setOdnumberofitems(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odnumberofitemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - odnumberofitems_ = value; - onChanged(); - } else { - odnumberofitemsBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder setOdnumberofitems( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odnumberofitemsBuilder_ == null) { - odnumberofitems_ = builderForValue.build(); - onChanged(); - } else { - odnumberofitemsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder mergeOdnumberofitems(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odnumberofitemsBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - odnumberofitems_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - odnumberofitems_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(odnumberofitems_).mergeFrom(value).buildPartial(); - } else { - odnumberofitems_ = value; - } - onChanged(); - } else { - odnumberofitemsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder clearOdnumberofitems() { - if (odnumberofitemsBuilder_ == null) { - odnumberofitems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - odnumberofitemsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOdnumberofitemsBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getOdnumberofitemsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsOrBuilder() { - if (odnumberofitemsBuilder_ != null) { - return odnumberofitemsBuilder_.getMessageOrBuilder(); - } else { - return odnumberofitems_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOdnumberofitemsFieldBuilder() { - if (odnumberofitemsBuilder_ == null) { - odnumberofitemsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - odnumberofitems_, - getParentForChildren(), - isClean()); - odnumberofitems_ = null; - } - return odnumberofitemsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField odnumberofitemsdate = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odnumberofitemsdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> odnumberofitemsdateBuilder_; - public boolean hasOdnumberofitemsdate() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdnumberofitemsdate() { - if (odnumberofitemsdateBuilder_ == null) { - return odnumberofitemsdate_; - } else { - return odnumberofitemsdateBuilder_.getMessage(); - } - } - public Builder setOdnumberofitemsdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odnumberofitemsdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - odnumberofitemsdate_ = value; - onChanged(); - } else { - odnumberofitemsdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder setOdnumberofitemsdate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odnumberofitemsdateBuilder_ == null) { - odnumberofitemsdate_ = builderForValue.build(); - onChanged(); - } else { - odnumberofitemsdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder mergeOdnumberofitemsdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odnumberofitemsdateBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - odnumberofitemsdate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - odnumberofitemsdate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(odnumberofitemsdate_).mergeFrom(value).buildPartial(); - } else { - odnumberofitemsdate_ = value; - } - onChanged(); - } else { - odnumberofitemsdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder clearOdnumberofitemsdate() { - if (odnumberofitemsdateBuilder_ == null) { - odnumberofitemsdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - odnumberofitemsdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOdnumberofitemsdateBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getOdnumberofitemsdateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdnumberofitemsdateOrBuilder() { - if (odnumberofitemsdateBuilder_ != null) { - return odnumberofitemsdateBuilder_.getMessageOrBuilder(); - } else { - return odnumberofitemsdate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOdnumberofitemsdateFieldBuilder() { - if (odnumberofitemsdateBuilder_ == null) { - odnumberofitemsdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - odnumberofitemsdate_, - getParentForChildren(), - isClean()); - odnumberofitemsdate_ = null; - } - return odnumberofitemsdateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField odpolicies = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField odpolicies_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> odpoliciesBuilder_; - public boolean hasOdpolicies() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdpolicies() { - if (odpoliciesBuilder_ == null) { - return odpolicies_; - } else { - return odpoliciesBuilder_.getMessage(); - } - } - public Builder setOdpolicies(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odpoliciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - odpolicies_ = value; - onChanged(); - } else { - odpoliciesBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder setOdpolicies( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odpoliciesBuilder_ == null) { - odpolicies_ = builderForValue.build(); - onChanged(); - } else { - odpoliciesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder mergeOdpolicies(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odpoliciesBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - odpolicies_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - odpolicies_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(odpolicies_).mergeFrom(value).buildPartial(); - } else { - odpolicies_ = value; - } - onChanged(); - } else { - odpoliciesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder clearOdpolicies() { - if (odpoliciesBuilder_ == null) { - odpolicies_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - odpoliciesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOdpoliciesBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getOdpoliciesFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdpoliciesOrBuilder() { - if (odpoliciesBuilder_ != null) { - return odpoliciesBuilder_.getMessageOrBuilder(); - } else { - return odpolicies_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOdpoliciesFieldBuilder() { - if (odpoliciesBuilder_ == null) { - odpoliciesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - odpolicies_, - getParentForChildren(), - isClean()); - odpolicies_ = null; - } - return odpoliciesBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField odlanguages = 13; - private java.util.List odlanguages_ = - java.util.Collections.emptyList(); - private void ensureOdlanguagesIsMutable() { - if (!((bitField0_ & 0x00010000) == 0x00010000)) { - odlanguages_ = new java.util.ArrayList(odlanguages_); - bitField0_ |= 0x00010000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> odlanguagesBuilder_; - - public java.util.List getOdlanguagesList() { - if (odlanguagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(odlanguages_); - } else { - return odlanguagesBuilder_.getMessageList(); - } - } - public int getOdlanguagesCount() { - if (odlanguagesBuilder_ == null) { - return odlanguages_.size(); - } else { - return odlanguagesBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdlanguages(int index) { - if (odlanguagesBuilder_ == null) { - return odlanguages_.get(index); - } else { - return odlanguagesBuilder_.getMessage(index); - } - } - public Builder setOdlanguages( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odlanguagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdlanguagesIsMutable(); - odlanguages_.set(index, value); - onChanged(); - } else { - odlanguagesBuilder_.setMessage(index, value); - } - return this; - } - public Builder setOdlanguages( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odlanguagesBuilder_ == null) { - ensureOdlanguagesIsMutable(); - odlanguages_.set(index, builderForValue.build()); - onChanged(); - } else { - odlanguagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addOdlanguages(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odlanguagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdlanguagesIsMutable(); - odlanguages_.add(value); - onChanged(); - } else { - odlanguagesBuilder_.addMessage(value); - } - return this; - } - public Builder addOdlanguages( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odlanguagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdlanguagesIsMutable(); - odlanguages_.add(index, value); - onChanged(); - } else { - odlanguagesBuilder_.addMessage(index, value); - } - return this; - } - public Builder addOdlanguages( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odlanguagesBuilder_ == null) { - ensureOdlanguagesIsMutable(); - odlanguages_.add(builderForValue.build()); - onChanged(); - } else { - odlanguagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addOdlanguages( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odlanguagesBuilder_ == null) { - ensureOdlanguagesIsMutable(); - odlanguages_.add(index, builderForValue.build()); - onChanged(); - } else { - odlanguagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllOdlanguages( - java.lang.Iterable values) { - if (odlanguagesBuilder_ == null) { - ensureOdlanguagesIsMutable(); - super.addAll(values, odlanguages_); - onChanged(); - } else { - odlanguagesBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearOdlanguages() { - if (odlanguagesBuilder_ == null) { - odlanguages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - } else { - odlanguagesBuilder_.clear(); - } - return this; - } - public Builder removeOdlanguages(int index) { - if (odlanguagesBuilder_ == null) { - ensureOdlanguagesIsMutable(); - odlanguages_.remove(index); - onChanged(); - } else { - odlanguagesBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOdlanguagesBuilder( - int index) { - return getOdlanguagesFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdlanguagesOrBuilder( - int index) { - if (odlanguagesBuilder_ == null) { - return odlanguages_.get(index); } else { - return odlanguagesBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getOdlanguagesOrBuilderList() { - if (odlanguagesBuilder_ != null) { - return odlanguagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(odlanguages_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addOdlanguagesBuilder() { - return getOdlanguagesFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addOdlanguagesBuilder( - int index) { - return getOdlanguagesFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getOdlanguagesBuilderList() { - return getOdlanguagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOdlanguagesFieldBuilder() { - if (odlanguagesBuilder_ == null) { - odlanguagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - odlanguages_, - ((bitField0_ & 0x00010000) == 0x00010000), - getParentForChildren(), - isClean()); - odlanguages_ = null; - } - return odlanguagesBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField odcontenttypes = 14; - private java.util.List odcontenttypes_ = - java.util.Collections.emptyList(); - private void ensureOdcontenttypesIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - odcontenttypes_ = new java.util.ArrayList(odcontenttypes_); - bitField0_ |= 0x00020000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> odcontenttypesBuilder_; - - public java.util.List getOdcontenttypesList() { - if (odcontenttypesBuilder_ == null) { - return java.util.Collections.unmodifiableList(odcontenttypes_); - } else { - return odcontenttypesBuilder_.getMessageList(); - } - } - public int getOdcontenttypesCount() { - if (odcontenttypesBuilder_ == null) { - return odcontenttypes_.size(); - } else { - return odcontenttypesBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOdcontenttypes(int index) { - if (odcontenttypesBuilder_ == null) { - return odcontenttypes_.get(index); - } else { - return odcontenttypesBuilder_.getMessage(index); - } - } - public Builder setOdcontenttypes( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odcontenttypesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdcontenttypesIsMutable(); - odcontenttypes_.set(index, value); - onChanged(); - } else { - odcontenttypesBuilder_.setMessage(index, value); - } - return this; - } - public Builder setOdcontenttypes( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odcontenttypesBuilder_ == null) { - ensureOdcontenttypesIsMutable(); - odcontenttypes_.set(index, builderForValue.build()); - onChanged(); - } else { - odcontenttypesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addOdcontenttypes(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odcontenttypesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdcontenttypesIsMutable(); - odcontenttypes_.add(value); - onChanged(); - } else { - odcontenttypesBuilder_.addMessage(value); - } - return this; - } - public Builder addOdcontenttypes( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (odcontenttypesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOdcontenttypesIsMutable(); - odcontenttypes_.add(index, value); - onChanged(); - } else { - odcontenttypesBuilder_.addMessage(index, value); - } - return this; - } - public Builder addOdcontenttypes( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odcontenttypesBuilder_ == null) { - ensureOdcontenttypesIsMutable(); - odcontenttypes_.add(builderForValue.build()); - onChanged(); - } else { - odcontenttypesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addOdcontenttypes( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (odcontenttypesBuilder_ == null) { - ensureOdcontenttypesIsMutable(); - odcontenttypes_.add(index, builderForValue.build()); - onChanged(); - } else { - odcontenttypesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllOdcontenttypes( - java.lang.Iterable values) { - if (odcontenttypesBuilder_ == null) { - ensureOdcontenttypesIsMutable(); - super.addAll(values, odcontenttypes_); - onChanged(); - } else { - odcontenttypesBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearOdcontenttypes() { - if (odcontenttypesBuilder_ == null) { - odcontenttypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - } else { - odcontenttypesBuilder_.clear(); - } - return this; - } - public Builder removeOdcontenttypes(int index) { - if (odcontenttypesBuilder_ == null) { - ensureOdcontenttypesIsMutable(); - odcontenttypes_.remove(index); - onChanged(); - } else { - odcontenttypesBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOdcontenttypesBuilder( - int index) { - return getOdcontenttypesFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOdcontenttypesOrBuilder( - int index) { - if (odcontenttypesBuilder_ == null) { - return odcontenttypes_.get(index); } else { - return odcontenttypesBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getOdcontenttypesOrBuilderList() { - if (odcontenttypesBuilder_ != null) { - return odcontenttypesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(odcontenttypes_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addOdcontenttypesBuilder() { - return getOdcontenttypesFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addOdcontenttypesBuilder( - int index) { - return getOdcontenttypesFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getOdcontenttypesBuilderList() { - return getOdcontenttypesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOdcontenttypesFieldBuilder() { - if (odcontenttypesBuilder_ == null) { - odcontenttypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - odcontenttypes_, - ((bitField0_ & 0x00020000) == 0x00020000), - getParentForChildren(), - isClean()); - odcontenttypes_ = null; - } - return odcontenttypesBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField accessinfopackage = 6; - private java.util.List accessinfopackage_ = - java.util.Collections.emptyList(); - private void ensureAccessinfopackageIsMutable() { - if (!((bitField0_ & 0x00040000) == 0x00040000)) { - accessinfopackage_ = new java.util.ArrayList(accessinfopackage_); - bitField0_ |= 0x00040000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> accessinfopackageBuilder_; - - public java.util.List getAccessinfopackageList() { - if (accessinfopackageBuilder_ == null) { - return java.util.Collections.unmodifiableList(accessinfopackage_); - } else { - return accessinfopackageBuilder_.getMessageList(); - } - } - public int getAccessinfopackageCount() { - if (accessinfopackageBuilder_ == null) { - return accessinfopackage_.size(); - } else { - return accessinfopackageBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAccessinfopackage(int index) { - if (accessinfopackageBuilder_ == null) { - return accessinfopackage_.get(index); - } else { - return accessinfopackageBuilder_.getMessage(index); - } - } - public Builder setAccessinfopackage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (accessinfopackageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessinfopackageIsMutable(); - accessinfopackage_.set(index, value); - onChanged(); - } else { - accessinfopackageBuilder_.setMessage(index, value); - } - return this; - } - public Builder setAccessinfopackage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (accessinfopackageBuilder_ == null) { - ensureAccessinfopackageIsMutable(); - accessinfopackage_.set(index, builderForValue.build()); - onChanged(); - } else { - accessinfopackageBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAccessinfopackage(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (accessinfopackageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessinfopackageIsMutable(); - accessinfopackage_.add(value); - onChanged(); - } else { - accessinfopackageBuilder_.addMessage(value); - } - return this; - } - public Builder addAccessinfopackage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (accessinfopackageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessinfopackageIsMutable(); - accessinfopackage_.add(index, value); - onChanged(); - } else { - accessinfopackageBuilder_.addMessage(index, value); - } - return this; - } - public Builder addAccessinfopackage( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (accessinfopackageBuilder_ == null) { - ensureAccessinfopackageIsMutable(); - accessinfopackage_.add(builderForValue.build()); - onChanged(); - } else { - accessinfopackageBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addAccessinfopackage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (accessinfopackageBuilder_ == null) { - ensureAccessinfopackageIsMutable(); - accessinfopackage_.add(index, builderForValue.build()); - onChanged(); - } else { - accessinfopackageBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllAccessinfopackage( - java.lang.Iterable values) { - if (accessinfopackageBuilder_ == null) { - ensureAccessinfopackageIsMutable(); - super.addAll(values, accessinfopackage_); - onChanged(); - } else { - accessinfopackageBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearAccessinfopackage() { - if (accessinfopackageBuilder_ == null) { - accessinfopackage_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - } else { - accessinfopackageBuilder_.clear(); - } - return this; - } - public Builder removeAccessinfopackage(int index) { - if (accessinfopackageBuilder_ == null) { - ensureAccessinfopackageIsMutable(); - accessinfopackage_.remove(index); - onChanged(); - } else { - accessinfopackageBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getAccessinfopackageBuilder( - int index) { - return getAccessinfopackageFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAccessinfopackageOrBuilder( - int index) { - if (accessinfopackageBuilder_ == null) { - return accessinfopackage_.get(index); } else { - return accessinfopackageBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getAccessinfopackageOrBuilderList() { - if (accessinfopackageBuilder_ != null) { - return accessinfopackageBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accessinfopackage_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAccessinfopackageBuilder() { - return getAccessinfopackageFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAccessinfopackageBuilder( - int index) { - return getAccessinfopackageFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getAccessinfopackageBuilderList() { - return getAccessinfopackageFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getAccessinfopackageFieldBuilder() { - if (accessinfopackageBuilder_ == null) { - accessinfopackageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - accessinfopackage_, - ((bitField0_ & 0x00040000) == 0x00040000), - getParentForChildren(), - isClean()); - accessinfopackage_ = null; - } - return accessinfopackageBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField releasestartdate = 31; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField releasestartdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> releasestartdateBuilder_; - public boolean hasReleasestartdate() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleasestartdate() { - if (releasestartdateBuilder_ == null) { - return releasestartdate_; - } else { - return releasestartdateBuilder_.getMessage(); - } - } - public Builder setReleasestartdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (releasestartdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releasestartdate_ = value; - onChanged(); - } else { - releasestartdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder setReleasestartdate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (releasestartdateBuilder_ == null) { - releasestartdate_ = builderForValue.build(); - onChanged(); - } else { - releasestartdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder mergeReleasestartdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (releasestartdateBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - releasestartdate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - releasestartdate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(releasestartdate_).mergeFrom(value).buildPartial(); - } else { - releasestartdate_ = value; - } - onChanged(); - } else { - releasestartdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder clearReleasestartdate() { - if (releasestartdateBuilder_ == null) { - releasestartdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - releasestartdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getReleasestartdateBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getReleasestartdateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleasestartdateOrBuilder() { - if (releasestartdateBuilder_ != null) { - return releasestartdateBuilder_.getMessageOrBuilder(); - } else { - return releasestartdate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getReleasestartdateFieldBuilder() { - if (releasestartdateBuilder_ == null) { - releasestartdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - releasestartdate_, - getParentForChildren(), - isClean()); - releasestartdate_ = null; - } - return releasestartdateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField releaseenddate = 32; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField releaseenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> releaseenddateBuilder_; - public boolean hasReleaseenddate() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getReleaseenddate() { - if (releaseenddateBuilder_ == null) { - return releaseenddate_; - } else { - return releaseenddateBuilder_.getMessage(); - } - } - public Builder setReleaseenddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (releaseenddateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseenddate_ = value; - onChanged(); - } else { - releaseenddateBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder setReleaseenddate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (releaseenddateBuilder_ == null) { - releaseenddate_ = builderForValue.build(); - onChanged(); - } else { - releaseenddateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder mergeReleaseenddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (releaseenddateBuilder_ == null) { - if (((bitField0_ & 0x00100000) == 0x00100000) && - releaseenddate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - releaseenddate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(releaseenddate_).mergeFrom(value).buildPartial(); - } else { - releaseenddate_ = value; - } - onChanged(); - } else { - releaseenddateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder clearReleaseenddate() { - if (releaseenddateBuilder_ == null) { - releaseenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - releaseenddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getReleaseenddateBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getReleaseenddateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getReleaseenddateOrBuilder() { - if (releaseenddateBuilder_ != null) { - return releaseenddateBuilder_.getMessageOrBuilder(); - } else { - return releaseenddate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getReleaseenddateFieldBuilder() { - if (releaseenddateBuilder_ == null) { - releaseenddateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - releaseenddate_, - getParentForChildren(), - isClean()); - releaseenddate_ = null; - } - return releaseenddateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField missionstatementurl = 33; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField missionstatementurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> missionstatementurlBuilder_; - public boolean hasMissionstatementurl() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getMissionstatementurl() { - if (missionstatementurlBuilder_ == null) { - return missionstatementurl_; - } else { - return missionstatementurlBuilder_.getMessage(); - } - } - public Builder setMissionstatementurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (missionstatementurlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - missionstatementurl_ = value; - onChanged(); - } else { - missionstatementurlBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder setMissionstatementurl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (missionstatementurlBuilder_ == null) { - missionstatementurl_ = builderForValue.build(); - onChanged(); - } else { - missionstatementurlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder mergeMissionstatementurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (missionstatementurlBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000) && - missionstatementurl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - missionstatementurl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(missionstatementurl_).mergeFrom(value).buildPartial(); - } else { - missionstatementurl_ = value; - } - onChanged(); - } else { - missionstatementurlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder clearMissionstatementurl() { - if (missionstatementurlBuilder_ == null) { - missionstatementurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - missionstatementurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getMissionstatementurlBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getMissionstatementurlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMissionstatementurlOrBuilder() { - if (missionstatementurlBuilder_ != null) { - return missionstatementurlBuilder_.getMessageOrBuilder(); - } else { - return missionstatementurl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getMissionstatementurlFieldBuilder() { - if (missionstatementurlBuilder_ == null) { - missionstatementurlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - missionstatementurl_, - getParentForChildren(), - isClean()); - missionstatementurl_ = null; - } - return missionstatementurlBuilder_; - } - - // optional .eu.dnetlib.data.proto.BoolField dataprovider = 34; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField dataprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> dataproviderBuilder_; - public boolean hasDataprovider() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getDataprovider() { - if (dataproviderBuilder_ == null) { - return dataprovider_; - } else { - return dataproviderBuilder_.getMessage(); - } - } - public Builder setDataprovider(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (dataproviderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataprovider_ = value; - onChanged(); - } else { - dataproviderBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder setDataprovider( - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder builderForValue) { - if (dataproviderBuilder_ == null) { - dataprovider_ = builderForValue.build(); - onChanged(); - } else { - dataproviderBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder mergeDataprovider(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (dataproviderBuilder_ == null) { - if (((bitField0_ & 0x00400000) == 0x00400000) && - dataprovider_ != eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance()) { - dataprovider_ = - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(dataprovider_).mergeFrom(value).buildPartial(); - } else { - dataprovider_ = value; - } - onChanged(); - } else { - dataproviderBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder clearDataprovider() { - if (dataproviderBuilder_ == null) { - dataprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - onChanged(); - } else { - dataproviderBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00400000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder getDataproviderBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getDataproviderFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getDataproviderOrBuilder() { - if (dataproviderBuilder_ != null) { - return dataproviderBuilder_.getMessageOrBuilder(); - } else { - return dataprovider_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> - getDataproviderFieldBuilder() { - if (dataproviderBuilder_ == null) { - dataproviderBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder>( - dataprovider_, - getParentForChildren(), - isClean()); - dataprovider_ = null; - } - return dataproviderBuilder_; - } - - // optional .eu.dnetlib.data.proto.BoolField serviceprovider = 35; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField serviceprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> serviceproviderBuilder_; - public boolean hasServiceprovider() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getServiceprovider() { - if (serviceproviderBuilder_ == null) { - return serviceprovider_; - } else { - return serviceproviderBuilder_.getMessage(); - } - } - public Builder setServiceprovider(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (serviceproviderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceprovider_ = value; - onChanged(); - } else { - serviceproviderBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder setServiceprovider( - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder builderForValue) { - if (serviceproviderBuilder_ == null) { - serviceprovider_ = builderForValue.build(); - onChanged(); - } else { - serviceproviderBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder mergeServiceprovider(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (serviceproviderBuilder_ == null) { - if (((bitField0_ & 0x00800000) == 0x00800000) && - serviceprovider_ != eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance()) { - serviceprovider_ = - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(serviceprovider_).mergeFrom(value).buildPartial(); - } else { - serviceprovider_ = value; - } - onChanged(); - } else { - serviceproviderBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder clearServiceprovider() { - if (serviceproviderBuilder_ == null) { - serviceprovider_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - onChanged(); - } else { - serviceproviderBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00800000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder getServiceproviderBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getServiceproviderFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getServiceproviderOrBuilder() { - if (serviceproviderBuilder_ != null) { - return serviceproviderBuilder_.getMessageOrBuilder(); - } else { - return serviceprovider_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> - getServiceproviderFieldBuilder() { - if (serviceproviderBuilder_ == null) { - serviceproviderBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder>( - serviceprovider_, - getParentForChildren(), - isClean()); - serviceprovider_ = null; - } - return serviceproviderBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField databaseaccesstype = 36; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField databaseaccesstype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> databaseaccesstypeBuilder_; - public boolean hasDatabaseaccesstype() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccesstype() { - if (databaseaccesstypeBuilder_ == null) { - return databaseaccesstype_; - } else { - return databaseaccesstypeBuilder_.getMessage(); - } - } - public Builder setDatabaseaccesstype(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (databaseaccesstypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseaccesstype_ = value; - onChanged(); - } else { - databaseaccesstypeBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder setDatabaseaccesstype( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (databaseaccesstypeBuilder_ == null) { - databaseaccesstype_ = builderForValue.build(); - onChanged(); - } else { - databaseaccesstypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder mergeDatabaseaccesstype(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (databaseaccesstypeBuilder_ == null) { - if (((bitField0_ & 0x01000000) == 0x01000000) && - databaseaccesstype_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - databaseaccesstype_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(databaseaccesstype_).mergeFrom(value).buildPartial(); - } else { - databaseaccesstype_ = value; - } - onChanged(); - } else { - databaseaccesstypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder clearDatabaseaccesstype() { - if (databaseaccesstypeBuilder_ == null) { - databaseaccesstype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - databaseaccesstypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x01000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDatabaseaccesstypeBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return getDatabaseaccesstypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccesstypeOrBuilder() { - if (databaseaccesstypeBuilder_ != null) { - return databaseaccesstypeBuilder_.getMessageOrBuilder(); - } else { - return databaseaccesstype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDatabaseaccesstypeFieldBuilder() { - if (databaseaccesstypeBuilder_ == null) { - databaseaccesstypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - databaseaccesstype_, - getParentForChildren(), - isClean()); - databaseaccesstype_ = null; - } - return databaseaccesstypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField datauploadtype = 37; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField datauploadtype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> datauploadtypeBuilder_; - public boolean hasDatauploadtype() { - return ((bitField0_ & 0x02000000) == 0x02000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadtype() { - if (datauploadtypeBuilder_ == null) { - return datauploadtype_; - } else { - return datauploadtypeBuilder_.getMessage(); - } - } - public Builder setDatauploadtype(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (datauploadtypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datauploadtype_ = value; - onChanged(); - } else { - datauploadtypeBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - return this; - } - public Builder setDatauploadtype( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (datauploadtypeBuilder_ == null) { - datauploadtype_ = builderForValue.build(); - onChanged(); - } else { - datauploadtypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - return this; - } - public Builder mergeDatauploadtype(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (datauploadtypeBuilder_ == null) { - if (((bitField0_ & 0x02000000) == 0x02000000) && - datauploadtype_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - datauploadtype_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(datauploadtype_).mergeFrom(value).buildPartial(); - } else { - datauploadtype_ = value; - } - onChanged(); - } else { - datauploadtypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x02000000; - return this; - } - public Builder clearDatauploadtype() { - if (datauploadtypeBuilder_ == null) { - datauploadtype_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - datauploadtypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x02000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDatauploadtypeBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return getDatauploadtypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadtypeOrBuilder() { - if (datauploadtypeBuilder_ != null) { - return datauploadtypeBuilder_.getMessageOrBuilder(); - } else { - return datauploadtype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDatauploadtypeFieldBuilder() { - if (datauploadtypeBuilder_ == null) { - datauploadtypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - datauploadtype_, - getParentForChildren(), - isClean()); - datauploadtype_ = null; - } - return datauploadtypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField databaseaccessrestriction = 38; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField databaseaccessrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> databaseaccessrestrictionBuilder_; - public boolean hasDatabaseaccessrestriction() { - return ((bitField0_ & 0x04000000) == 0x04000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatabaseaccessrestriction() { - if (databaseaccessrestrictionBuilder_ == null) { - return databaseaccessrestriction_; - } else { - return databaseaccessrestrictionBuilder_.getMessage(); - } - } - public Builder setDatabaseaccessrestriction(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (databaseaccessrestrictionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseaccessrestriction_ = value; - onChanged(); - } else { - databaseaccessrestrictionBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - return this; - } - public Builder setDatabaseaccessrestriction( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (databaseaccessrestrictionBuilder_ == null) { - databaseaccessrestriction_ = builderForValue.build(); - onChanged(); - } else { - databaseaccessrestrictionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - return this; - } - public Builder mergeDatabaseaccessrestriction(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (databaseaccessrestrictionBuilder_ == null) { - if (((bitField0_ & 0x04000000) == 0x04000000) && - databaseaccessrestriction_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - databaseaccessrestriction_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(databaseaccessrestriction_).mergeFrom(value).buildPartial(); - } else { - databaseaccessrestriction_ = value; - } - onChanged(); - } else { - databaseaccessrestrictionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x04000000; - return this; - } - public Builder clearDatabaseaccessrestriction() { - if (databaseaccessrestrictionBuilder_ == null) { - databaseaccessrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - databaseaccessrestrictionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x04000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDatabaseaccessrestrictionBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getDatabaseaccessrestrictionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatabaseaccessrestrictionOrBuilder() { - if (databaseaccessrestrictionBuilder_ != null) { - return databaseaccessrestrictionBuilder_.getMessageOrBuilder(); - } else { - return databaseaccessrestriction_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDatabaseaccessrestrictionFieldBuilder() { - if (databaseaccessrestrictionBuilder_ == null) { - databaseaccessrestrictionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - databaseaccessrestriction_, - getParentForChildren(), - isClean()); - databaseaccessrestriction_ = null; - } - return databaseaccessrestrictionBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField datauploadrestriction = 39; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField datauploadrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> datauploadrestrictionBuilder_; - public boolean hasDatauploadrestriction() { - return ((bitField0_ & 0x08000000) == 0x08000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDatauploadrestriction() { - if (datauploadrestrictionBuilder_ == null) { - return datauploadrestriction_; - } else { - return datauploadrestrictionBuilder_.getMessage(); - } - } - public Builder setDatauploadrestriction(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (datauploadrestrictionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datauploadrestriction_ = value; - onChanged(); - } else { - datauploadrestrictionBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - return this; - } - public Builder setDatauploadrestriction( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (datauploadrestrictionBuilder_ == null) { - datauploadrestriction_ = builderForValue.build(); - onChanged(); - } else { - datauploadrestrictionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - return this; - } - public Builder mergeDatauploadrestriction(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (datauploadrestrictionBuilder_ == null) { - if (((bitField0_ & 0x08000000) == 0x08000000) && - datauploadrestriction_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - datauploadrestriction_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(datauploadrestriction_).mergeFrom(value).buildPartial(); - } else { - datauploadrestriction_ = value; - } - onChanged(); - } else { - datauploadrestrictionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x08000000; - return this; - } - public Builder clearDatauploadrestriction() { - if (datauploadrestrictionBuilder_ == null) { - datauploadrestriction_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - datauploadrestrictionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x08000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDatauploadrestrictionBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getDatauploadrestrictionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDatauploadrestrictionOrBuilder() { - if (datauploadrestrictionBuilder_ != null) { - return datauploadrestrictionBuilder_.getMessageOrBuilder(); - } else { - return datauploadrestriction_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDatauploadrestrictionFieldBuilder() { - if (datauploadrestrictionBuilder_ == null) { - datauploadrestrictionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - datauploadrestriction_, - getParentForChildren(), - isClean()); - datauploadrestriction_ = null; - } - return datauploadrestrictionBuilder_; - } - - // optional .eu.dnetlib.data.proto.BoolField versioning = 40; - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField versioning_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> versioningBuilder_; - public boolean hasVersioning() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getVersioning() { - if (versioningBuilder_ == null) { - return versioning_; - } else { - return versioningBuilder_.getMessage(); - } - } - public Builder setVersioning(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (versioningBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - versioning_ = value; - onChanged(); - } else { - versioningBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder setVersioning( - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder builderForValue) { - if (versioningBuilder_ == null) { - versioning_ = builderForValue.build(); - onChanged(); - } else { - versioningBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder mergeVersioning(eu.dnetlib.data.proto.FieldTypeProtos.BoolField value) { - if (versioningBuilder_ == null) { - if (((bitField0_ & 0x10000000) == 0x10000000) && - versioning_ != eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance()) { - versioning_ = - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder(versioning_).mergeFrom(value).buildPartial(); - } else { - versioning_ = value; - } - onChanged(); - } else { - versioningBuilder_.mergeFrom(value); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder clearVersioning() { - if (versioningBuilder_ == null) { - versioning_ = eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - onChanged(); - } else { - versioningBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x10000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder getVersioningBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getVersioningFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder getVersioningOrBuilder() { - if (versioningBuilder_ != null) { - return versioningBuilder_.getMessageOrBuilder(); - } else { - return versioning_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder> - getVersioningFieldBuilder() { - if (versioningBuilder_ == null) { - versioningBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.BoolField, eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder>( - versioning_, - getParentForChildren(), - isClean()); - versioning_ = null; - } - return versioningBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField citationguidelineurl = 41; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField citationguidelineurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> citationguidelineurlBuilder_; - public boolean hasCitationguidelineurl() { - return ((bitField0_ & 0x20000000) == 0x20000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCitationguidelineurl() { - if (citationguidelineurlBuilder_ == null) { - return citationguidelineurl_; - } else { - return citationguidelineurlBuilder_.getMessage(); - } - } - public Builder setCitationguidelineurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (citationguidelineurlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - citationguidelineurl_ = value; - onChanged(); - } else { - citationguidelineurlBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder setCitationguidelineurl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (citationguidelineurlBuilder_ == null) { - citationguidelineurl_ = builderForValue.build(); - onChanged(); - } else { - citationguidelineurlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder mergeCitationguidelineurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (citationguidelineurlBuilder_ == null) { - if (((bitField0_ & 0x20000000) == 0x20000000) && - citationguidelineurl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - citationguidelineurl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(citationguidelineurl_).mergeFrom(value).buildPartial(); - } else { - citationguidelineurl_ = value; - } - onChanged(); - } else { - citationguidelineurlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder clearCitationguidelineurl() { - if (citationguidelineurlBuilder_ == null) { - citationguidelineurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - citationguidelineurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x20000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCitationguidelineurlBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getCitationguidelineurlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCitationguidelineurlOrBuilder() { - if (citationguidelineurlBuilder_ != null) { - return citationguidelineurlBuilder_.getMessageOrBuilder(); - } else { - return citationguidelineurl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCitationguidelineurlFieldBuilder() { - if (citationguidelineurlBuilder_ == null) { - citationguidelineurlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - citationguidelineurl_, - getParentForChildren(), - isClean()); - citationguidelineurl_ = null; - } - return citationguidelineurlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField qualitymanagementkind = 42; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField qualitymanagementkind_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> qualitymanagementkindBuilder_; - public boolean hasQualitymanagementkind() { - return ((bitField0_ & 0x40000000) == 0x40000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getQualitymanagementkind() { - if (qualitymanagementkindBuilder_ == null) { - return qualitymanagementkind_; - } else { - return qualitymanagementkindBuilder_.getMessage(); - } - } - public Builder setQualitymanagementkind(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (qualitymanagementkindBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualitymanagementkind_ = value; - onChanged(); - } else { - qualitymanagementkindBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - return this; - } - public Builder setQualitymanagementkind( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (qualitymanagementkindBuilder_ == null) { - qualitymanagementkind_ = builderForValue.build(); - onChanged(); - } else { - qualitymanagementkindBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - return this; - } - public Builder mergeQualitymanagementkind(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (qualitymanagementkindBuilder_ == null) { - if (((bitField0_ & 0x40000000) == 0x40000000) && - qualitymanagementkind_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - qualitymanagementkind_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(qualitymanagementkind_).mergeFrom(value).buildPartial(); - } else { - qualitymanagementkind_ = value; - } - onChanged(); - } else { - qualitymanagementkindBuilder_.mergeFrom(value); - } - bitField0_ |= 0x40000000; - return this; - } - public Builder clearQualitymanagementkind() { - if (qualitymanagementkindBuilder_ == null) { - qualitymanagementkind_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - qualitymanagementkindBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x40000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getQualitymanagementkindBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getQualitymanagementkindFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getQualitymanagementkindOrBuilder() { - if (qualitymanagementkindBuilder_ != null) { - return qualitymanagementkindBuilder_.getMessageOrBuilder(); - } else { - return qualitymanagementkind_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getQualitymanagementkindFieldBuilder() { - if (qualitymanagementkindBuilder_ == null) { - qualitymanagementkindBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - qualitymanagementkind_, - getParentForChildren(), - isClean()); - qualitymanagementkind_ = null; - } - return qualitymanagementkindBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField pidsystems = 43; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField pidsystems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> pidsystemsBuilder_; - public boolean hasPidsystems() { - return ((bitField0_ & 0x80000000) == 0x80000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getPidsystems() { - if (pidsystemsBuilder_ == null) { - return pidsystems_; - } else { - return pidsystemsBuilder_.getMessage(); - } - } - public Builder setPidsystems(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (pidsystemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pidsystems_ = value; - onChanged(); - } else { - pidsystemsBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - return this; - } - public Builder setPidsystems( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (pidsystemsBuilder_ == null) { - pidsystems_ = builderForValue.build(); - onChanged(); - } else { - pidsystemsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - return this; - } - public Builder mergePidsystems(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (pidsystemsBuilder_ == null) { - if (((bitField0_ & 0x80000000) == 0x80000000) && - pidsystems_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - pidsystems_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(pidsystems_).mergeFrom(value).buildPartial(); - } else { - pidsystems_ = value; - } - onChanged(); - } else { - pidsystemsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x80000000; - return this; - } - public Builder clearPidsystems() { - if (pidsystemsBuilder_ == null) { - pidsystems_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - pidsystemsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x80000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getPidsystemsBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getPidsystemsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPidsystemsOrBuilder() { - if (pidsystemsBuilder_ != null) { - return pidsystemsBuilder_.getMessageOrBuilder(); - } else { - return pidsystems_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getPidsystemsFieldBuilder() { - if (pidsystemsBuilder_ == null) { - pidsystemsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - pidsystems_, - getParentForChildren(), - isClean()); - pidsystems_ = null; - } - return pidsystemsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField certificates = 44; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField certificates_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> certificatesBuilder_; - public boolean hasCertificates() { - return ((bitField1_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCertificates() { - if (certificatesBuilder_ == null) { - return certificates_; - } else { - return certificatesBuilder_.getMessage(); - } - } - public Builder setCertificates(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (certificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - certificates_ = value; - onChanged(); - } else { - certificatesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - return this; - } - public Builder setCertificates( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (certificatesBuilder_ == null) { - certificates_ = builderForValue.build(); - onChanged(); - } else { - certificatesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - return this; - } - public Builder mergeCertificates(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (certificatesBuilder_ == null) { - if (((bitField1_ & 0x00000001) == 0x00000001) && - certificates_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - certificates_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(certificates_).mergeFrom(value).buildPartial(); - } else { - certificates_ = value; - } - onChanged(); - } else { - certificatesBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000001; - return this; - } - public Builder clearCertificates() { - if (certificatesBuilder_ == null) { - certificates_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - certificatesBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCertificatesBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getCertificatesFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCertificatesOrBuilder() { - if (certificatesBuilder_ != null) { - return certificatesBuilder_.getMessageOrBuilder(); - } else { - return certificates_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCertificatesFieldBuilder() { - if (certificatesBuilder_ == null) { - certificatesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - certificates_, - getParentForChildren(), - isClean()); - certificates_ = null; - } - return certificatesBuilder_; - } - - // repeated .eu.dnetlib.data.proto.KeyValue policies = 46; - private java.util.List policies_ = - java.util.Collections.emptyList(); - private void ensurePoliciesIsMutable() { - if (!((bitField1_ & 0x00000002) == 0x00000002)) { - policies_ = new java.util.ArrayList(policies_); - bitField1_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> policiesBuilder_; - - public java.util.List getPoliciesList() { - if (policiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policies_); - } else { - return policiesBuilder_.getMessageList(); - } - } - public int getPoliciesCount() { - if (policiesBuilder_ == null) { - return policies_.size(); - } else { - return policiesBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getPolicies(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessage(index); - } - } - public Builder setPolicies( - int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.set(index, value); - onChanged(); - } else { - policiesBuilder_.setMessage(index, value); - } - return this; - } - public Builder setPolicies( - int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.set(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addPolicies(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(value); - onChanged(); - } else { - policiesBuilder_.addMessage(value); - } - return this; - } - public Builder addPolicies( - int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(index, value); - onChanged(); - } else { - policiesBuilder_.addMessage(index, value); - } - return this; - } - public Builder addPolicies( - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addPolicies( - int index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllPolicies( - java.lang.Iterable values) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - super.addAll(values, policies_); - onChanged(); - } else { - policiesBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearPolicies() { - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000002); - onChanged(); - } else { - policiesBuilder_.clear(); - } - return this; - } - public Builder removePolicies(int index) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.remove(index); - onChanged(); - } else { - policiesBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder getPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPoliciesOrBuilder( - int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); } else { - return policiesBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getPoliciesOrBuilderList() { - if (policiesBuilder_ != null) { - return policiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policies_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()); - } - public java.util.List - getPoliciesBuilderList() { - return getPoliciesFieldBuilder().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> - getPoliciesFieldBuilder() { - if (policiesBuilder_ == null) { - policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>( - policies_, - ((bitField1_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - policies_ = null; - } - return policiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Datasource.Metadata) - } - - static { - defaultInstance = new Metadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Datasource.Metadata) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Datasource.Metadata metadata = 2; - public static final int METADATA_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata metadata_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata getMetadata() { - return metadata_; - } - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder getMetadataOrBuilder() { - return metadata_; - } - - private void initFields() { - metadata_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, metadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metadata_); - } - 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.DatasourceProtos.Datasource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DatasourceProtos.Datasource 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.DatasourceProtos.Datasource 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 - implements eu.dnetlib.data.proto.DatasourceProtos.DatasourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DatasourceProtos.internal_static_eu_dnetlib_data_proto_Datasource_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DatasourceProtos.Datasource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDescriptor(); - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource build() { - eu.dnetlib.data.proto.DatasourceProtos.Datasource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DatasourceProtos.Datasource buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DatasourceProtos.Datasource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DatasourceProtos.Datasource buildPartial() { - eu.dnetlib.data.proto.DatasourceProtos.Datasource result = new eu.dnetlib.data.proto.DatasourceProtos.Datasource(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DatasourceProtos.Datasource) { - return mergeFrom((eu.dnetlib.data.proto.DatasourceProtos.Datasource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DatasourceProtos.Datasource other) { - if (other == eu.dnetlib.data.proto.DatasourceProtos.Datasource.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 18: { - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder subBuilder = eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.newBuilder(); - if (hasMetadata()) { - subBuilder.mergeFrom(getMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Datasource.Metadata metadata = 2; - private eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata metadata_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder, eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder> metadataBuilder_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - public Builder setMetadata(eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setMetadata( - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeMetadata(eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance()) { - metadata_ = - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.getDefaultInstance(); - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder, eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata, eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder, eu.dnetlib.data.proto.DatasourceProtos.Datasource.MetadataOrBuilder>( - metadata_, - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Datasource) - } - - static { - defaultInstance = new Datasource(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Datasource) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Datasource_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Datasource_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Datasource_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Datasource_Metadata_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\020Datasource.proto\022\025eu.dnetlib.data.prot" + - "o\032\017FieldType.proto\"\310\020\n\nDatasource\022<\n\010met" + - "adata\030\002 \001(\0132*.eu.dnetlib.data.proto.Data" + - "source.Metadata\032\373\017\n\010Metadata\0228\n\016datasour" + - "cetype\030\017 \001(\0132 .eu.dnetlib.data.proto.Qua" + - "lifier\022?\n\025openairecompatibility\030\021 \001(\0132 ." + - "eu.dnetlib.data.proto.Qualifier\0228\n\014offic" + - "ialname\030\001 \001(\0132\".eu.dnetlib.data.proto.St" + - "ringField\0227\n\013englishname\030\002 \001(\0132\".eu.dnet" + - "lib.data.proto.StringField\0226\n\nwebsiteurl", - "\030\003 \001(\0132\".eu.dnetlib.data.proto.StringFie" + - "ld\0223\n\007logourl\030\004 \001(\0132\".eu.dnetlib.data.pr" + - "oto.StringField\0228\n\014contactemail\030\005 \001(\0132\"." + - "eu.dnetlib.data.proto.StringField\022;\n\017nam" + - "espaceprefix\030\007 \001(\0132\".eu.dnetlib.data.pro" + - "to.StringField\0224\n\010latitude\030\022 \001(\0132\".eu.dn" + - "etlib.data.proto.StringField\0225\n\tlongitud" + - "e\030\023 \001(\0132\".eu.dnetlib.data.proto.StringFi" + - "eld\022<\n\020dateofvalidation\030\024 \001(\0132\".eu.dnetl" + - "ib.data.proto.StringField\0227\n\013description", - "\030\025 \001(\0132\".eu.dnetlib.data.proto.StringFie" + - "ld\022;\n\010subjects\030- \003(\0132).eu.dnetlib.data.p" + - "roto.StructuredProperty\022;\n\017odnumberofite" + - "ms\030\t \001(\0132\".eu.dnetlib.data.proto.StringF" + - "ield\022?\n\023odnumberofitemsdate\030\n \001(\0132\".eu.d" + - "netlib.data.proto.StringField\0226\n\nodpolic" + - "ies\030\014 \001(\0132\".eu.dnetlib.data.proto.String" + - "Field\0227\n\013odlanguages\030\r \003(\0132\".eu.dnetlib." + - "data.proto.StringField\022:\n\016odcontenttypes" + - "\030\016 \003(\0132\".eu.dnetlib.data.proto.StringFie", - "ld\022=\n\021accessinfopackage\030\006 \003(\0132\".eu.dnetl" + - "ib.data.proto.StringField\022<\n\020releasestar" + - "tdate\030\037 \001(\0132\".eu.dnetlib.data.proto.Stri" + - "ngField\022:\n\016releaseenddate\030 \001(\0132\".eu.dne" + - "tlib.data.proto.StringField\022?\n\023missionst" + - "atementurl\030! \001(\0132\".eu.dnetlib.data.proto" + - ".StringField\0226\n\014dataprovider\030\" \001(\0132 .eu." + - "dnetlib.data.proto.BoolField\0229\n\017servicep" + - "rovider\030# \001(\0132 .eu.dnetlib.data.proto.Bo" + - "olField\022>\n\022databaseaccesstype\030$ \001(\0132\".eu", - ".dnetlib.data.proto.StringField\022:\n\016datau" + - "ploadtype\030% \001(\0132\".eu.dnetlib.data.proto." + - "StringField\022E\n\031databaseaccessrestriction" + - "\030& \001(\0132\".eu.dnetlib.data.proto.StringFie" + - "ld\022A\n\025datauploadrestriction\030\' \001(\0132\".eu.d" + - "netlib.data.proto.StringField\0224\n\nversion" + - "ing\030( \001(\0132 .eu.dnetlib.data.proto.BoolFi" + - "eld\022@\n\024citationguidelineurl\030) \001(\0132\".eu.d" + - "netlib.data.proto.StringField\022A\n\025quality" + - "managementkind\030* \001(\0132\".eu.dnetlib.data.p", - "roto.StringField\0226\n\npidsystems\030+ \001(\0132\".e" + - "u.dnetlib.data.proto.StringField\0228\n\014cert" + - "ificates\030, \001(\0132\".eu.dnetlib.data.proto.S" + - "tringField\0221\n\010policies\030. \003(\0132\037.eu.dnetli" + - "b.data.proto.KeyValueB)\n\025eu.dnetlib.data" + - ".protoB\020DatasourceProtos" - }; - 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_Datasource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Datasource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Datasource_descriptor, - new java.lang.String[] { "Metadata", }, - eu.dnetlib.data.proto.DatasourceProtos.Datasource.class, - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Builder.class); - internal_static_eu_dnetlib_data_proto_Datasource_Metadata_descriptor = - internal_static_eu_dnetlib_data_proto_Datasource_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_Datasource_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Datasource_Metadata_descriptor, - new java.lang.String[] { "Datasourcetype", "Openairecompatibility", "Officialname", "Englishname", "Websiteurl", "Logourl", "Contactemail", "Namespaceprefix", "Latitude", "Longitude", "Dateofvalidation", "Description", "Subjects", "Odnumberofitems", "Odnumberofitemsdate", "Odpolicies", "Odlanguages", "Odcontenttypes", "Accessinfopackage", "Releasestartdate", "Releaseenddate", "Missionstatementurl", "Dataprovider", "Serviceprovider", "Databaseaccesstype", "Datauploadtype", "Databaseaccessrestriction", "Datauploadrestriction", "Versioning", "Citationguidelineurl", "Qualitymanagementkind", "Pidsystems", "Certificates", "Policies", }, - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.class, - eu.dnetlib.data.proto.DatasourceProtos.Datasource.Metadata.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupProtos.java deleted file mode 100644 index 67eba7d..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupProtos.java +++ /dev/null @@ -1,564 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Dedup.proto - -package eu.dnetlib.data.proto; - -public final class DedupProtos { - private DedupProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DedupOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Dedup extends - com.google.protobuf.GeneratedMessage - implements DedupOrBuilder { - // Use Dedup.newBuilder() to construct. - private Dedup(Builder builder) { - super(builder); - } - private Dedup(boolean noInit) {} - - private static final Dedup defaultInstance; - public static Dedup getDefaultInstance() { - return defaultInstance; - } - - public Dedup getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupProtos.internal_static_eu_dnetlib_data_proto_Dedup_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DedupProtos.internal_static_eu_dnetlib_data_proto_Dedup_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isMergedIn(0, 1), - merges(1, 2), - ; - - public static final int isMergedIn_VALUE = 1; - public static final int merges_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isMergedIn; - case 2: return merges; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupProtos.Dedup.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isMergedIn, merges, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.Dedup.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.DedupProtos.Dedup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupProtos.Dedup 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.DedupProtos.Dedup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupProtos.Dedup 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.DedupProtos.Dedup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupProtos.Dedup 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.DedupProtos.Dedup 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.DedupProtos.Dedup 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.DedupProtos.Dedup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupProtos.Dedup 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.DedupProtos.Dedup 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 - implements eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupProtos.internal_static_eu_dnetlib_data_proto_Dedup_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DedupProtos.internal_static_eu_dnetlib_data_proto_Dedup_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DedupProtos.Dedup.getDescriptor(); - } - - public eu.dnetlib.data.proto.DedupProtos.Dedup getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DedupProtos.Dedup build() { - eu.dnetlib.data.proto.DedupProtos.Dedup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DedupProtos.Dedup buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DedupProtos.Dedup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DedupProtos.Dedup buildPartial() { - eu.dnetlib.data.proto.DedupProtos.Dedup result = new eu.dnetlib.data.proto.DedupProtos.Dedup(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DedupProtos.Dedup) { - return mergeFrom((eu.dnetlib.data.proto.DedupProtos.Dedup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DedupProtos.Dedup other) { - if (other == eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Dedup) - } - - static { - defaultInstance = new Dedup(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Dedup) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Dedup_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Dedup_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\013Dedup.proto\022\025eu.dnetlib.data.proto\032\021Re" + - "lMetadata.proto\"g\n\005Dedup\0227\n\013relMetadata\030" + - "\001 \002(\0132\".eu.dnetlib.data.proto.RelMetadat" + - "a\"%\n\007RelName\022\016\n\nisMergedIn\020\001\022\n\n\006merges\020\002" + - "B$\n\025eu.dnetlib.data.protoB\013DedupProtos" - }; - 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_Dedup_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Dedup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Dedup_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.DedupProtos.Dedup.class, - eu.dnetlib.data.proto.DedupProtos.Dedup.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupSimilarityProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupSimilarityProtos.java deleted file mode 100644 index ff08018..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/DedupSimilarityProtos.java +++ /dev/null @@ -1,562 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DedupSimilarity.proto - -package eu.dnetlib.data.proto; - -public final class DedupSimilarityProtos { - private DedupSimilarityProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DedupSimilarityOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class DedupSimilarity extends - com.google.protobuf.GeneratedMessage - implements DedupSimilarityOrBuilder { - // Use DedupSimilarity.newBuilder() to construct. - private DedupSimilarity(Builder builder) { - super(builder); - } - private DedupSimilarity(boolean noInit) {} - - private static final DedupSimilarity defaultInstance; - public static DedupSimilarity getDefaultInstance() { - return defaultInstance; - } - - public DedupSimilarity getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.internal_static_eu_dnetlib_data_proto_DedupSimilarity_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.internal_static_eu_dnetlib_data_proto_DedupSimilarity_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isSimilarTo(0, 1), - ; - - public static final int isSimilarTo_VALUE = 1; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isSimilarTo; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isSimilarTo, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.DedupSimilarity.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity 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.DedupSimilarityProtos.DedupSimilarity 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 - implements eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.internal_static_eu_dnetlib_data_proto_DedupSimilarity_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.internal_static_eu_dnetlib_data_proto_DedupSimilarity_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDescriptor(); - } - - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDefaultInstanceForType() { - return eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity build() { - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity buildPartial() { - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity result = new eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity) { - return mergeFrom((eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity other) { - if (other == eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.DedupSimilarity) - } - - static { - defaultInstance = new DedupSimilarity(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.DedupSimilarity) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_DedupSimilarity_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_DedupSimilarity_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\025DedupSimilarity.proto\022\025eu.dnetlib.data" + - ".proto\032\021RelMetadata.proto\"f\n\017DedupSimila" + - "rity\0227\n\013relMetadata\030\001 \002(\0132\".eu.dnetlib.d" + - "ata.proto.RelMetadata\"\032\n\007RelName\022\017\n\013isSi" + - "milarTo\020\001B.\n\025eu.dnetlib.data.protoB\025Dedu" + - "pSimilarityProtos" - }; - 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_DedupSimilarity_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_DedupSimilarity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_DedupSimilarity_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.class, - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/FieldTypeProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/FieldTypeProtos.java deleted file mode 100644 index 03ca7f4..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/FieldTypeProtos.java +++ /dev/null @@ -1,8049 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: FieldType.proto - -package eu.dnetlib.data.proto; - -public final class FieldTypeProtos { - private FieldTypeProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface StringFieldOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string value = 1; - boolean hasValue(); - String getValue(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class StringField extends - com.google.protobuf.GeneratedMessage - implements StringFieldOrBuilder { - // Use StringField.newBuilder() to construct. - private StringField(Builder builder) { - super(builder); - } - private StringField(boolean noInit) {} - - private static final StringField defaultInstance; - public static StringField getDefaultInstance() { - return defaultInstance; - } - - public StringField getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StringField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StringField_fieldAccessorTable; - } - - private int bitField0_; - // required string value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private java.lang.Object value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getValue() { - java.lang.Object ref = value_; - 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)) { - value_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - public static final int DATAINFO_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - value_ = ""; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasValue()) { - 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.writeBytes(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, dataInfo_); - } - 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 - .computeBytesSize(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dataInfo_); - } - 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.FieldTypeProtos.StringField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StringField 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.FieldTypeProtos.StringField 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StringField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StringField_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StringField build() { - eu.dnetlib.data.proto.FieldTypeProtos.StringField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.StringField buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.StringField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StringField buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.StringField result = new eu.dnetlib.data.proto.FieldTypeProtos.StringField(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.StringField) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.StringField)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.StringField other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasValue()) { - - 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 10: { - bitField0_ |= 0x00000001; - value_ = input.readBytes(); - break; - } - case 18: { - 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; - } - } - } - } - - private int bitField0_; - - // required string value = 1; - private java.lang.Object value_ = ""; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - value_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setValue(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - void setValue(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - 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_ & 0x00000002) == 0x00000002); - } - 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_ |= 0x00000002; - 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_ |= 0x00000002; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - 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_ |= 0x00000002; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000002; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.StringField) - } - - static { - defaultInstance = new StringField(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.StringField) - } - - public interface BoolFieldOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bool value = 1; - boolean hasValue(); - boolean getValue(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class BoolField extends - com.google.protobuf.GeneratedMessage - implements BoolFieldOrBuilder { - // Use BoolField.newBuilder() to construct. - private BoolField(Builder builder) { - super(builder); - } - private BoolField(boolean noInit) {} - - private static final BoolField defaultInstance; - public static BoolField getDefaultInstance() { - return defaultInstance; - } - - public BoolField getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_BoolField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_BoolField_fieldAccessorTable; - } - - private int bitField0_; - // required bool value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private boolean value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public boolean getValue() { - return value_; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - public static final int DATAINFO_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - value_ = false; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasValue()) { - 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.writeBool(1, value_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, dataInfo_); - } - 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 - .computeBoolSize(1, value_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dataInfo_); - } - 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.FieldTypeProtos.BoolField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.BoolField 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.FieldTypeProtos.BoolField 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.BoolFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_BoolField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_BoolField_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.BoolField.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField build() { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.BoolField buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.BoolField buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.BoolField result = new eu.dnetlib.data.proto.FieldTypeProtos.BoolField(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.BoolField) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.BoolField)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.BoolField other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.BoolField.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasValue()) { - - 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: { - bitField0_ |= 0x00000001; - value_ = input.readBool(); - break; - } - case 18: { - 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; - } - } - } - } - - private int bitField0_; - - // required bool value = 1; - private boolean value_ ; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public boolean getValue() { - return value_; - } - public Builder setValue(boolean value) { - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = false; - onChanged(); - return this; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - 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_ & 0x00000002) == 0x00000002); - } - 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_ |= 0x00000002; - 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_ |= 0x00000002; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - 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_ |= 0x00000002; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000002; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.BoolField) - } - - static { - defaultInstance = new BoolField(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.BoolField) - } - - public interface IntFieldOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required int32 value = 1; - boolean hasValue(); - int getValue(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class IntField extends - com.google.protobuf.GeneratedMessage - implements IntFieldOrBuilder { - // Use IntField.newBuilder() to construct. - private IntField(Builder builder) { - super(builder); - } - private IntField(boolean noInit) {} - - private static final IntField defaultInstance; - public static IntField getDefaultInstance() { - return defaultInstance; - } - - public IntField getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_IntField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_IntField_fieldAccessorTable; - } - - private int bitField0_; - // required int32 value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public int getValue() { - return value_; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - public static final int DATAINFO_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - value_ = 0; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasValue()) { - 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.writeInt32(1, value_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, dataInfo_); - } - 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 - .computeInt32Size(1, value_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dataInfo_); - } - 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.FieldTypeProtos.IntField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.IntField 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.FieldTypeProtos.IntField 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.IntFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_IntField_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_IntField_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.IntField.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.IntField.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.IntField getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.IntField.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.IntField build() { - eu.dnetlib.data.proto.FieldTypeProtos.IntField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.IntField buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.IntField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.IntField buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.IntField result = new eu.dnetlib.data.proto.FieldTypeProtos.IntField(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.IntField) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.IntField)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.IntField other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.IntField.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasValue()) { - - 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: { - bitField0_ |= 0x00000001; - value_ = input.readInt32(); - break; - } - case 18: { - 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; - } - } - } - } - - private int bitField0_; - - // required int32 value = 1; - private int value_ ; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public int getValue() { - return value_; - } - public Builder setValue(int value) { - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0; - onChanged(); - return this; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - 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_ & 0x00000002) == 0x00000002); - } - 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_ |= 0x00000002; - 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_ |= 0x00000002; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - 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_ |= 0x00000002; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000002; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.IntField) - } - - static { - defaultInstance = new IntField(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.IntField) - } - - public interface StructuredPropertyOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string value = 1; - boolean hasValue(); - String getValue(); - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 2; - boolean hasQualifier(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class StructuredProperty extends - com.google.protobuf.GeneratedMessage - implements StructuredPropertyOrBuilder { - // Use StructuredProperty.newBuilder() to construct. - private StructuredProperty(Builder builder) { - super(builder); - } - private StructuredProperty(boolean noInit) {} - - private static final StructuredProperty defaultInstance; - public static StructuredProperty getDefaultInstance() { - return defaultInstance; - } - - public StructuredProperty getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StructuredProperty_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StructuredProperty_fieldAccessorTable; - } - - private int bitField0_; - // required string value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private java.lang.Object value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getValue() { - java.lang.Object ref = value_; - 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)) { - value_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 2; - public static final int QUALIFIER_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier qualifier_; - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier() { - return qualifier_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder() { - return qualifier_; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - public static final int DATAINFO_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - value_ = ""; - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasValue()) { - memoizedIsInitialized = 0; - return false; - } - if (hasQualifier()) { - if (!getQualifier().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.writeBytes(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, qualifier_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, dataInfo_); - } - 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 - .computeBytesSize(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, qualifier_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, dataInfo_); - } - 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.FieldTypeProtos.StructuredProperty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty 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.FieldTypeProtos.StructuredProperty 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StructuredProperty_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_StructuredProperty_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getQualifierFieldBuilder(); - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (qualifierBuilder_ == null) { - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - qualifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty build() { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty result = new eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (qualifierBuilder_ == null) { - result.qualifier_ = qualifier_; - } else { - result.qualifier_ = qualifierBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasQualifier()) { - mergeQualifier(other.getQualifier()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasValue()) { - - return false; - } - if (hasQualifier()) { - if (!getQualifier().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 10: { - bitField0_ |= 0x00000001; - value_ = input.readBytes(); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasQualifier()) { - subBuilder.mergeFrom(getQualifier()); - } - input.readMessage(subBuilder, extensionRegistry); - setQualifier(subBuilder.buildPartial()); - break; - } - case 26: { - 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; - } - } - } - } - - private int bitField0_; - - // required string value = 1; - private java.lang.Object value_ = ""; - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - value_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setValue(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - void setValue(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> qualifierBuilder_; - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier() { - if (qualifierBuilder_ == null) { - return qualifier_; - } else { - return qualifierBuilder_.getMessage(); - } - } - public Builder setQualifier(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (qualifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualifier_ = value; - onChanged(); - } else { - qualifierBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setQualifier( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (qualifierBuilder_ == null) { - qualifier_ = builderForValue.build(); - onChanged(); - } else { - qualifierBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeQualifier(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (qualifierBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - qualifier_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - qualifier_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(qualifier_).mergeFrom(value).buildPartial(); - } else { - qualifier_ = value; - } - onChanged(); - } else { - qualifierBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearQualifier() { - if (qualifierBuilder_ == null) { - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - qualifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getQualifierBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getQualifierFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder() { - if (qualifierBuilder_ != null) { - return qualifierBuilder_.getMessageOrBuilder(); - } else { - return qualifier_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getQualifierFieldBuilder() { - if (qualifierBuilder_ == null) { - qualifierBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - qualifier_, - getParentForChildren(), - isClean()); - qualifier_ = null; - } - return qualifierBuilder_; - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - 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_ & 0x00000004) == 0x00000004); - } - 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_ |= 0x00000004; - 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_ |= 0x00000004; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - 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_ |= 0x00000004; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000004; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.StructuredProperty) - } - - static { - defaultInstance = new StructuredProperty(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.StructuredProperty) - } - - public interface KeyValueOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string key = 1; - boolean hasKey(); - String getKey(); - - // optional string value = 2; - boolean hasValue(); - String getValue(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class KeyValue extends - com.google.protobuf.GeneratedMessage - implements KeyValueOrBuilder { - // Use KeyValue.newBuilder() to construct. - private KeyValue(Builder builder) { - super(builder); - } - private KeyValue(boolean noInit) {} - - private static final KeyValue defaultInstance; - public static KeyValue getDefaultInstance() { - return defaultInstance; - } - - public KeyValue getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_KeyValue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_KeyValue_fieldAccessorTable; - } - - private int bitField0_; - // required string key = 1; - public static final int KEY_FIELD_NUMBER = 1; - private java.lang.Object key_; - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getKey() { - java.lang.Object ref = key_; - 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)) { - key_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string value = 2; - public static final int VALUE_FIELD_NUMBER = 2; - private java.lang.Object value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getValue() { - java.lang.Object ref = value_; - 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)) { - value_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - public static final int DATAINFO_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - key_ = ""; - value_ = ""; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasKey()) { - 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.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getValueBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, dataInfo_); - } - 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 - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getValueBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, dataInfo_); - } - 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.FieldTypeProtos.KeyValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.KeyValue 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.FieldTypeProtos.KeyValue 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_KeyValue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_KeyValue_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue build() { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.KeyValue buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue result = new eu.dnetlib.data.proto.FieldTypeProtos.KeyValue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.KeyValue) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.KeyValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()) return this; - if (other.hasKey()) { - setKey(other.getKey()); - } - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasKey()) { - - 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 10: { - bitField0_ |= 0x00000001; - key_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } - case 26: { - 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; - } - } - } - } - - private int bitField0_; - - // required string key = 1; - private java.lang.Object key_ = ""; - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - key_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setKey(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - void setKey(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - } - - // optional string value = 2; - private java.lang.Object value_ = ""; - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - value_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setValue(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - void setValue(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 3; - 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_ & 0x00000004) == 0x00000004); - } - 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_ |= 0x00000004; - 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_ |= 0x00000004; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - 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_ |= 0x00000004; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000004; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.KeyValue) - } - - static { - defaultInstance = new KeyValue(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.KeyValue) - } - - public interface QualifierOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string classid = 1; - boolean hasClassid(); - String getClassid(); - - // optional string classname = 2; - boolean hasClassname(); - String getClassname(); - - // optional string schemeid = 3; - boolean hasSchemeid(); - String getSchemeid(); - - // optional string schemename = 4; - boolean hasSchemename(); - String getSchemename(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class Qualifier extends - com.google.protobuf.GeneratedMessage - implements QualifierOrBuilder { - // Use Qualifier.newBuilder() to construct. - private Qualifier(Builder builder) { - super(builder); - } - private Qualifier(boolean noInit) {} - - private static final Qualifier defaultInstance; - public static Qualifier getDefaultInstance() { - return defaultInstance; - } - - public Qualifier getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Qualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Qualifier_fieldAccessorTable; - } - - private int bitField0_; - // optional string classid = 1; - public static final int CLASSID_FIELD_NUMBER = 1; - private java.lang.Object classid_; - public boolean hasClassid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getClassid() { - java.lang.Object ref = classid_; - 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)) { - classid_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getClassidBytes() { - java.lang.Object ref = classid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - classid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string classname = 2; - public static final int CLASSNAME_FIELD_NUMBER = 2; - private java.lang.Object classname_; - public boolean hasClassname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getClassname() { - java.lang.Object ref = classname_; - 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)) { - classname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getClassnameBytes() { - java.lang.Object ref = classname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - classname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string schemeid = 3; - public static final int SCHEMEID_FIELD_NUMBER = 3; - private java.lang.Object schemeid_; - public boolean hasSchemeid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getSchemeid() { - java.lang.Object ref = schemeid_; - 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)) { - schemeid_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSchemeidBytes() { - java.lang.Object ref = schemeid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - schemeid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string schemename = 4; - public static final int SCHEMENAME_FIELD_NUMBER = 4; - private java.lang.Object schemename_; - public boolean hasSchemename() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getSchemename() { - java.lang.Object ref = schemename_; - 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)) { - schemename_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSchemenameBytes() { - java.lang.Object ref = schemename_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - schemename_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - public static final int DATAINFO_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - classid_ = ""; - classname_ = ""; - schemeid_ = ""; - schemename_ = ""; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - 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.writeBytes(1, getClassidBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getClassnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSchemeidBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getSchemenameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, dataInfo_); - } - 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 - .computeBytesSize(1, getClassidBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getClassnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSchemeidBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getSchemenameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, dataInfo_); - } - 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.FieldTypeProtos.Qualifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Qualifier 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.FieldTypeProtos.Qualifier 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Qualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Qualifier_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - classid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - classname_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - schemeid_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - schemename_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier build() { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier result = new eu.dnetlib.data.proto.FieldTypeProtos.Qualifier(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.classid_ = classid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.classname_ = classname_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.schemeid_ = schemeid_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.schemename_ = schemename_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.Qualifier) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.Qualifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) return this; - if (other.hasClassid()) { - setClassid(other.getClassid()); - } - if (other.hasClassname()) { - setClassname(other.getClassname()); - } - if (other.hasSchemeid()) { - setSchemeid(other.getSchemeid()); - } - if (other.hasSchemename()) { - setSchemename(other.getSchemename()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - 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 10: { - bitField0_ |= 0x00000001; - classid_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - classname_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - schemeid_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - schemename_ = input.readBytes(); - break; - } - case 42: { - 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; - } - } - } - } - - private int bitField0_; - - // optional string classid = 1; - private java.lang.Object classid_ = ""; - public boolean hasClassid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getClassid() { - java.lang.Object ref = classid_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - classid_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setClassid(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - classid_ = value; - onChanged(); - return this; - } - public Builder clearClassid() { - bitField0_ = (bitField0_ & ~0x00000001); - classid_ = getDefaultInstance().getClassid(); - onChanged(); - return this; - } - void setClassid(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - classid_ = value; - onChanged(); - } - - // optional string classname = 2; - private java.lang.Object classname_ = ""; - public boolean hasClassname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getClassname() { - java.lang.Object ref = classname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - classname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setClassname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - classname_ = value; - onChanged(); - return this; - } - public Builder clearClassname() { - bitField0_ = (bitField0_ & ~0x00000002); - classname_ = getDefaultInstance().getClassname(); - onChanged(); - return this; - } - void setClassname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - classname_ = value; - onChanged(); - } - - // optional string schemeid = 3; - private java.lang.Object schemeid_ = ""; - public boolean hasSchemeid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getSchemeid() { - java.lang.Object ref = schemeid_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - schemeid_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setSchemeid(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - schemeid_ = value; - onChanged(); - return this; - } - public Builder clearSchemeid() { - bitField0_ = (bitField0_ & ~0x00000004); - schemeid_ = getDefaultInstance().getSchemeid(); - onChanged(); - return this; - } - void setSchemeid(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - schemeid_ = value; - onChanged(); - } - - // optional string schemename = 4; - private java.lang.Object schemename_ = ""; - public boolean hasSchemename() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getSchemename() { - java.lang.Object ref = schemename_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - schemename_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setSchemename(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - schemename_ = value; - onChanged(); - return this; - } - public Builder clearSchemename() { - bitField0_ = (bitField0_ & ~0x00000008); - schemename_ = getDefaultInstance().getSchemename(); - onChanged(); - return this; - } - void setSchemename(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - schemename_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - 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_ & 0x00000010) == 0x00000010); - } - 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_ |= 0x00000010; - 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_ |= 0x00000010; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - 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_ |= 0x00000010; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000010; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Qualifier) - } - - static { - defaultInstance = new Qualifier(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Qualifier) - } - - public interface DataInfoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bool invisible = 6 [default = false]; - boolean hasInvisible(); - boolean getInvisible(); - - // optional bool inferred = 1; - boolean hasInferred(); - boolean getInferred(); - - // optional bool deletedbyinference = 2; - boolean hasDeletedbyinference(); - boolean getDeletedbyinference(); - - // optional string trust = 3; - boolean hasTrust(); - String getTrust(); - - // optional string inferenceprovenance = 4; - boolean hasInferenceprovenance(); - String getInferenceprovenance(); - - // required .eu.dnetlib.data.proto.Qualifier provenanceaction = 5; - boolean hasProvenanceaction(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProvenanceaction(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProvenanceactionOrBuilder(); - } - public static final class DataInfo extends - com.google.protobuf.GeneratedMessage - implements DataInfoOrBuilder { - // Use DataInfo.newBuilder() to construct. - private DataInfo(Builder builder) { - super(builder); - } - private DataInfo(boolean noInit) {} - - private static final DataInfo defaultInstance; - public static DataInfo getDefaultInstance() { - return defaultInstance; - } - - public DataInfo getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_DataInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_DataInfo_fieldAccessorTable; - } - - private int bitField0_; - // optional bool invisible = 6 [default = false]; - public static final int INVISIBLE_FIELD_NUMBER = 6; - private boolean invisible_; - public boolean hasInvisible() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public boolean getInvisible() { - return invisible_; - } - - // optional bool inferred = 1; - public static final int INFERRED_FIELD_NUMBER = 1; - private boolean inferred_; - public boolean hasInferred() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public boolean getInferred() { - return inferred_; - } - - // optional bool deletedbyinference = 2; - public static final int DELETEDBYINFERENCE_FIELD_NUMBER = 2; - private boolean deletedbyinference_; - public boolean hasDeletedbyinference() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public boolean getDeletedbyinference() { - return deletedbyinference_; - } - - // optional string trust = 3; - public static final int TRUST_FIELD_NUMBER = 3; - private java.lang.Object trust_; - public boolean hasTrust() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getTrust() { - java.lang.Object ref = trust_; - 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)) { - trust_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getTrustBytes() { - java.lang.Object ref = trust_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - trust_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string inferenceprovenance = 4; - public static final int INFERENCEPROVENANCE_FIELD_NUMBER = 4; - private java.lang.Object inferenceprovenance_; - public boolean hasInferenceprovenance() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getInferenceprovenance() { - java.lang.Object ref = inferenceprovenance_; - 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)) { - inferenceprovenance_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getInferenceprovenanceBytes() { - java.lang.Object ref = inferenceprovenance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - inferenceprovenance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required .eu.dnetlib.data.proto.Qualifier provenanceaction = 5; - public static final int PROVENANCEACTION_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier provenanceaction_; - public boolean hasProvenanceaction() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProvenanceaction() { - return provenanceaction_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProvenanceactionOrBuilder() { - return provenanceaction_; - } - - private void initFields() { - invisible_ = false; - inferred_ = false; - deletedbyinference_ = false; - trust_ = ""; - inferenceprovenance_ = ""; - provenanceaction_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasProvenanceaction()) { - memoizedIsInitialized = 0; - return false; - } - if (!getProvenanceaction().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(1, inferred_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(2, deletedbyinference_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(3, getTrustBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(4, getInferenceprovenanceBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(5, provenanceaction_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(6, invisible_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, inferred_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, deletedbyinference_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTrustBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getInferenceprovenanceBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, provenanceaction_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, invisible_); - } - 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.FieldTypeProtos.DataInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.DataInfo 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.FieldTypeProtos.DataInfo 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_DataInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_DataInfo_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getProvenanceactionFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - invisible_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - inferred_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - deletedbyinference_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - trust_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - inferenceprovenance_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - if (provenanceactionBuilder_ == null) { - provenanceaction_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - provenanceactionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo build() { - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo result = new eu.dnetlib.data.proto.FieldTypeProtos.DataInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.invisible_ = invisible_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.inferred_ = inferred_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.deletedbyinference_ = deletedbyinference_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.trust_ = trust_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.inferenceprovenance_ = inferenceprovenance_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (provenanceactionBuilder_ == null) { - result.provenanceaction_ = provenanceaction_; - } else { - result.provenanceaction_ = provenanceactionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.DataInfo) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.DataInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance()) return this; - if (other.hasInvisible()) { - setInvisible(other.getInvisible()); - } - if (other.hasInferred()) { - setInferred(other.getInferred()); - } - if (other.hasDeletedbyinference()) { - setDeletedbyinference(other.getDeletedbyinference()); - } - if (other.hasTrust()) { - setTrust(other.getTrust()); - } - if (other.hasInferenceprovenance()) { - setInferenceprovenance(other.getInferenceprovenance()); - } - if (other.hasProvenanceaction()) { - mergeProvenanceaction(other.getProvenanceaction()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasProvenanceaction()) { - - return false; - } - if (!getProvenanceaction().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: { - bitField0_ |= 0x00000002; - inferred_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000004; - deletedbyinference_ = input.readBool(); - break; - } - case 26: { - bitField0_ |= 0x00000008; - trust_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000010; - inferenceprovenance_ = input.readBytes(); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasProvenanceaction()) { - subBuilder.mergeFrom(getProvenanceaction()); - } - input.readMessage(subBuilder, extensionRegistry); - setProvenanceaction(subBuilder.buildPartial()); - break; - } - case 48: { - bitField0_ |= 0x00000001; - invisible_ = input.readBool(); - break; - } - } - } - } - - private int bitField0_; - - // optional bool invisible = 6 [default = false]; - private boolean invisible_ ; - public boolean hasInvisible() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public boolean getInvisible() { - return invisible_; - } - public Builder setInvisible(boolean value) { - bitField0_ |= 0x00000001; - invisible_ = value; - onChanged(); - return this; - } - public Builder clearInvisible() { - bitField0_ = (bitField0_ & ~0x00000001); - invisible_ = false; - onChanged(); - return this; - } - - // optional bool inferred = 1; - private boolean inferred_ ; - public boolean hasInferred() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public boolean getInferred() { - return inferred_; - } - public Builder setInferred(boolean value) { - bitField0_ |= 0x00000002; - inferred_ = value; - onChanged(); - return this; - } - public Builder clearInferred() { - bitField0_ = (bitField0_ & ~0x00000002); - inferred_ = false; - onChanged(); - return this; - } - - // optional bool deletedbyinference = 2; - private boolean deletedbyinference_ ; - public boolean hasDeletedbyinference() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public boolean getDeletedbyinference() { - return deletedbyinference_; - } - public Builder setDeletedbyinference(boolean value) { - bitField0_ |= 0x00000004; - deletedbyinference_ = value; - onChanged(); - return this; - } - public Builder clearDeletedbyinference() { - bitField0_ = (bitField0_ & ~0x00000004); - deletedbyinference_ = false; - onChanged(); - return this; - } - - // optional string trust = 3; - private java.lang.Object trust_ = ""; - public boolean hasTrust() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getTrust() { - java.lang.Object ref = trust_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - trust_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setTrust(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - trust_ = value; - onChanged(); - return this; - } - public Builder clearTrust() { - bitField0_ = (bitField0_ & ~0x00000008); - trust_ = getDefaultInstance().getTrust(); - onChanged(); - return this; - } - void setTrust(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - trust_ = value; - onChanged(); - } - - // optional string inferenceprovenance = 4; - private java.lang.Object inferenceprovenance_ = ""; - public boolean hasInferenceprovenance() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getInferenceprovenance() { - java.lang.Object ref = inferenceprovenance_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - inferenceprovenance_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setInferenceprovenance(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - inferenceprovenance_ = value; - onChanged(); - return this; - } - public Builder clearInferenceprovenance() { - bitField0_ = (bitField0_ & ~0x00000010); - inferenceprovenance_ = getDefaultInstance().getInferenceprovenance(); - onChanged(); - return this; - } - void setInferenceprovenance(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; - inferenceprovenance_ = value; - onChanged(); - } - - // required .eu.dnetlib.data.proto.Qualifier provenanceaction = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier provenanceaction_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> provenanceactionBuilder_; - public boolean hasProvenanceaction() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProvenanceaction() { - if (provenanceactionBuilder_ == null) { - return provenanceaction_; - } else { - return provenanceactionBuilder_.getMessage(); - } - } - public Builder setProvenanceaction(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (provenanceactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - provenanceaction_ = value; - onChanged(); - } else { - provenanceactionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder setProvenanceaction( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (provenanceactionBuilder_ == null) { - provenanceaction_ = builderForValue.build(); - onChanged(); - } else { - provenanceactionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder mergeProvenanceaction(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (provenanceactionBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - provenanceaction_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - provenanceaction_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(provenanceaction_).mergeFrom(value).buildPartial(); - } else { - provenanceaction_ = value; - } - onChanged(); - } else { - provenanceactionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder clearProvenanceaction() { - if (provenanceactionBuilder_ == null) { - provenanceaction_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - provenanceactionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getProvenanceactionBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getProvenanceactionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProvenanceactionOrBuilder() { - if (provenanceactionBuilder_ != null) { - return provenanceactionBuilder_.getMessageOrBuilder(); - } else { - return provenanceaction_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getProvenanceactionFieldBuilder() { - if (provenanceactionBuilder_ == null) { - provenanceactionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - provenanceaction_, - getParentForChildren(), - isClean()); - provenanceaction_ = null; - } - return provenanceactionBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.DataInfo) - } - - static { - defaultInstance = new DataInfo(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.DataInfo) - } - - public interface OAIProvenanceOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 1; - boolean hasOriginDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder(); - } - public static final class OAIProvenance extends - com.google.protobuf.GeneratedMessage - implements OAIProvenanceOrBuilder { - // Use OAIProvenance.newBuilder() to construct. - private OAIProvenance(Builder builder) { - super(builder); - } - private OAIProvenance(boolean noInit) {} - - private static final OAIProvenance defaultInstance; - public static OAIProvenance getDefaultInstance() { - return defaultInstance; - } - - public OAIProvenance getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_fieldAccessorTable; - } - - public interface OriginDescriptionOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string harvestDate = 1; - boolean hasHarvestDate(); - String getHarvestDate(); - - // optional bool altered = 2 [default = true]; - boolean hasAltered(); - boolean getAltered(); - - // optional string baseURL = 3; - boolean hasBaseURL(); - String getBaseURL(); - - // optional string identifier = 4; - boolean hasIdentifier(); - String getIdentifier(); - - // optional string datestamp = 5; - boolean hasDatestamp(); - String getDatestamp(); - - // optional string metadataNamespace = 6; - boolean hasMetadataNamespace(); - String getMetadataNamespace(); - - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 7; - boolean hasOriginDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription(); - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder(); - } - public static final class OriginDescription extends - com.google.protobuf.GeneratedMessage - implements OriginDescriptionOrBuilder { - // Use OriginDescription.newBuilder() to construct. - private OriginDescription(Builder builder) { - super(builder); - } - private OriginDescription(boolean noInit) {} - - private static final OriginDescription defaultInstance; - public static OriginDescription getDefaultInstance() { - return defaultInstance; - } - - public OriginDescription getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_fieldAccessorTable; - } - - private int bitField0_; - // optional string harvestDate = 1; - public static final int HARVESTDATE_FIELD_NUMBER = 1; - private java.lang.Object harvestDate_; - public boolean hasHarvestDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getHarvestDate() { - java.lang.Object ref = harvestDate_; - 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)) { - harvestDate_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getHarvestDateBytes() { - java.lang.Object ref = harvestDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - harvestDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional bool altered = 2 [default = true]; - public static final int ALTERED_FIELD_NUMBER = 2; - private boolean altered_; - public boolean hasAltered() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public boolean getAltered() { - return altered_; - } - - // optional string baseURL = 3; - public static final int BASEURL_FIELD_NUMBER = 3; - private java.lang.Object baseURL_; - public boolean hasBaseURL() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getBaseURL() { - java.lang.Object ref = baseURL_; - 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)) { - baseURL_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getBaseURLBytes() { - java.lang.Object ref = baseURL_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - baseURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string identifier = 4; - public static final int IDENTIFIER_FIELD_NUMBER = 4; - private java.lang.Object identifier_; - public boolean hasIdentifier() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getIdentifier() { - java.lang.Object ref = identifier_; - 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)) { - identifier_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getIdentifierBytes() { - java.lang.Object ref = identifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - identifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string datestamp = 5; - public static final int DATESTAMP_FIELD_NUMBER = 5; - private java.lang.Object datestamp_; - public boolean hasDatestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getDatestamp() { - java.lang.Object ref = datestamp_; - 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)) { - datestamp_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getDatestampBytes() { - java.lang.Object ref = datestamp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - datestamp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string metadataNamespace = 6; - public static final int METADATANAMESPACE_FIELD_NUMBER = 6; - private java.lang.Object metadataNamespace_; - public boolean hasMetadataNamespace() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getMetadataNamespace() { - java.lang.Object ref = metadataNamespace_; - 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)) { - metadataNamespace_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getMetadataNamespaceBytes() { - java.lang.Object ref = metadataNamespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - metadataNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 7; - public static final int ORIGINDESCRIPTION_FIELD_NUMBER = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription originDescription_; - public boolean hasOriginDescription() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription() { - return originDescription_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder() { - return originDescription_; - } - - private void initFields() { - harvestDate_ = ""; - altered_ = true; - baseURL_ = ""; - identifier_ = ""; - datestamp_ = ""; - metadataNamespace_ = ""; - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getHarvestDateBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, altered_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getBaseURLBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getIdentifierBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getDatestampBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getMetadataNamespaceBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, originDescription_); - } - 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 - .computeBytesSize(1, getHarvestDateBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, altered_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getBaseURLBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getIdentifierBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getDatestampBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMetadataNamespaceBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, originDescription_); - } - 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.FieldTypeProtos.OAIProvenance.OriginDescription parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription 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.FieldTypeProtos.OAIProvenance.OriginDescription 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getOriginDescriptionFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - harvestDate_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - altered_ = true; - bitField0_ = (bitField0_ & ~0x00000002); - baseURL_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - identifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - datestamp_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - metadataNamespace_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (originDescriptionBuilder_ == null) { - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - } else { - originDescriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription build() { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription result = new eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.harvestDate_ = harvestDate_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.altered_ = altered_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.baseURL_ = baseURL_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.identifier_ = identifier_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.datestamp_ = datestamp_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.metadataNamespace_ = metadataNamespace_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (originDescriptionBuilder_ == null) { - result.originDescription_ = originDescription_; - } else { - result.originDescription_ = originDescriptionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance()) return this; - if (other.hasHarvestDate()) { - setHarvestDate(other.getHarvestDate()); - } - if (other.hasAltered()) { - setAltered(other.getAltered()); - } - if (other.hasBaseURL()) { - setBaseURL(other.getBaseURL()); - } - if (other.hasIdentifier()) { - setIdentifier(other.getIdentifier()); - } - if (other.hasDatestamp()) { - setDatestamp(other.getDatestamp()); - } - if (other.hasMetadataNamespace()) { - setMetadataNamespace(other.getMetadataNamespace()); - } - if (other.hasOriginDescription()) { - mergeOriginDescription(other.getOriginDescription()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - harvestDate_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - altered_ = input.readBool(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - baseURL_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - identifier_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - datestamp_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - metadataNamespace_ = input.readBytes(); - break; - } - case 58: { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.newBuilder(); - if (hasOriginDescription()) { - subBuilder.mergeFrom(getOriginDescription()); - } - input.readMessage(subBuilder, extensionRegistry); - setOriginDescription(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional string harvestDate = 1; - private java.lang.Object harvestDate_ = ""; - public boolean hasHarvestDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getHarvestDate() { - java.lang.Object ref = harvestDate_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - harvestDate_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setHarvestDate(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - harvestDate_ = value; - onChanged(); - return this; - } - public Builder clearHarvestDate() { - bitField0_ = (bitField0_ & ~0x00000001); - harvestDate_ = getDefaultInstance().getHarvestDate(); - onChanged(); - return this; - } - void setHarvestDate(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - harvestDate_ = value; - onChanged(); - } - - // optional bool altered = 2 [default = true]; - private boolean altered_ = true; - public boolean hasAltered() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public boolean getAltered() { - return altered_; - } - public Builder setAltered(boolean value) { - bitField0_ |= 0x00000002; - altered_ = value; - onChanged(); - return this; - } - public Builder clearAltered() { - bitField0_ = (bitField0_ & ~0x00000002); - altered_ = true; - onChanged(); - return this; - } - - // optional string baseURL = 3; - private java.lang.Object baseURL_ = ""; - public boolean hasBaseURL() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getBaseURL() { - java.lang.Object ref = baseURL_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - baseURL_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setBaseURL(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - baseURL_ = value; - onChanged(); - return this; - } - public Builder clearBaseURL() { - bitField0_ = (bitField0_ & ~0x00000004); - baseURL_ = getDefaultInstance().getBaseURL(); - onChanged(); - return this; - } - void setBaseURL(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - baseURL_ = value; - onChanged(); - } - - // optional string identifier = 4; - private java.lang.Object identifier_ = ""; - public boolean hasIdentifier() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getIdentifier() { - java.lang.Object ref = identifier_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - identifier_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setIdentifier(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - identifier_ = value; - onChanged(); - return this; - } - public Builder clearIdentifier() { - bitField0_ = (bitField0_ & ~0x00000008); - identifier_ = getDefaultInstance().getIdentifier(); - onChanged(); - return this; - } - void setIdentifier(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - identifier_ = value; - onChanged(); - } - - // optional string datestamp = 5; - private java.lang.Object datestamp_ = ""; - public boolean hasDatestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getDatestamp() { - java.lang.Object ref = datestamp_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - datestamp_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setDatestamp(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - datestamp_ = value; - onChanged(); - return this; - } - public Builder clearDatestamp() { - bitField0_ = (bitField0_ & ~0x00000010); - datestamp_ = getDefaultInstance().getDatestamp(); - onChanged(); - return this; - } - void setDatestamp(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; - datestamp_ = value; - onChanged(); - } - - // optional string metadataNamespace = 6; - private java.lang.Object metadataNamespace_ = ""; - public boolean hasMetadataNamespace() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getMetadataNamespace() { - java.lang.Object ref = metadataNamespace_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - metadataNamespace_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setMetadataNamespace(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - metadataNamespace_ = value; - onChanged(); - return this; - } - public Builder clearMetadataNamespace() { - bitField0_ = (bitField0_ & ~0x00000020); - metadataNamespace_ = getDefaultInstance().getMetadataNamespace(); - onChanged(); - return this; - } - void setMetadataNamespace(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000020; - metadataNamespace_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder> originDescriptionBuilder_; - public boolean hasOriginDescription() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription() { - if (originDescriptionBuilder_ == null) { - return originDescription_; - } else { - return originDescriptionBuilder_.getMessage(); - } - } - public Builder setOriginDescription(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription value) { - if (originDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - originDescription_ = value; - onChanged(); - } else { - originDescriptionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setOriginDescription( - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder builderForValue) { - if (originDescriptionBuilder_ == null) { - originDescription_ = builderForValue.build(); - onChanged(); - } else { - originDescriptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeOriginDescription(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription value) { - if (originDescriptionBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - originDescription_ != eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance()) { - originDescription_ = - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.newBuilder(originDescription_).mergeFrom(value).buildPartial(); - } else { - originDescription_ = value; - } - onChanged(); - } else { - originDescriptionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearOriginDescription() { - if (originDescriptionBuilder_ == null) { - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - onChanged(); - } else { - originDescriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder getOriginDescriptionBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getOriginDescriptionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder() { - if (originDescriptionBuilder_ != null) { - return originDescriptionBuilder_.getMessageOrBuilder(); - } else { - return originDescription_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder> - getOriginDescriptionFieldBuilder() { - if (originDescriptionBuilder_ == null) { - originDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder>( - originDescription_, - getParentForChildren(), - isClean()); - originDescription_ = null; - } - return originDescriptionBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.OAIProvenance.OriginDescription) - } - - static { - defaultInstance = new OriginDescription(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.OAIProvenance.OriginDescription) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 1; - public static final int ORIGINDESCRIPTION_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription originDescription_; - public boolean hasOriginDescription() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription() { - return originDescription_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder() { - return originDescription_; - } - - private void initFields() { - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, originDescription_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, originDescription_); - } - 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.FieldTypeProtos.OAIProvenance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance 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.FieldTypeProtos.OAIProvenance 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_OAIProvenance_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getOriginDescriptionFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (originDescriptionBuilder_ == null) { - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - } else { - originDescriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance build() { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance result = new eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (originDescriptionBuilder_ == null) { - result.originDescription_ = originDescription_; - } else { - result.originDescription_ = originDescriptionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.getDefaultInstance()) return this; - if (other.hasOriginDescription()) { - mergeOriginDescription(other.getOriginDescription()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.newBuilder(); - if (hasOriginDescription()) { - subBuilder.mergeFrom(getOriginDescription()); - } - input.readMessage(subBuilder, extensionRegistry); - setOriginDescription(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.OAIProvenance.OriginDescription originDescription = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder> originDescriptionBuilder_; - public boolean hasOriginDescription() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription getOriginDescription() { - if (originDescriptionBuilder_ == null) { - return originDescription_; - } else { - return originDescriptionBuilder_.getMessage(); - } - } - public Builder setOriginDescription(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription value) { - if (originDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - originDescription_ = value; - onChanged(); - } else { - originDescriptionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setOriginDescription( - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder builderForValue) { - if (originDescriptionBuilder_ == null) { - originDescription_ = builderForValue.build(); - onChanged(); - } else { - originDescriptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeOriginDescription(eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription value) { - if (originDescriptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - originDescription_ != eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance()) { - originDescription_ = - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.newBuilder(originDescription_).mergeFrom(value).buildPartial(); - } else { - originDescription_ = value; - } - onChanged(); - } else { - originDescriptionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearOriginDescription() { - if (originDescriptionBuilder_ == null) { - originDescription_ = eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.getDefaultInstance(); - onChanged(); - } else { - originDescriptionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder getOriginDescriptionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getOriginDescriptionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder getOriginDescriptionOrBuilder() { - if (originDescriptionBuilder_ != null) { - return originDescriptionBuilder_.getMessageOrBuilder(); - } else { - return originDescription_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder> - getOriginDescriptionFieldBuilder() { - if (originDescriptionBuilder_ == null) { - originDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder, eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescriptionOrBuilder>( - originDescription_, - getParentForChildren(), - isClean()); - originDescription_ = null; - } - return originDescriptionBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.OAIProvenance) - } - - static { - defaultInstance = new OAIProvenance(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.OAIProvenance) - } - - public interface ExtraInfoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string name = 1; - boolean hasName(); - String getName(); - - // required string typology = 2; - boolean hasTypology(); - String getTypology(); - - // required string provenance = 3; - boolean hasProvenance(); - String getProvenance(); - - // optional string trust = 4; - boolean hasTrust(); - String getTrust(); - - // optional string value = 5; - boolean hasValue(); - String getValue(); - } - public static final class ExtraInfo extends - com.google.protobuf.GeneratedMessage - implements ExtraInfoOrBuilder { - // Use ExtraInfo.newBuilder() to construct. - private ExtraInfo(Builder builder) { - super(builder); - } - private ExtraInfo(boolean noInit) {} - - private static final ExtraInfo defaultInstance; - public static ExtraInfo getDefaultInstance() { - return defaultInstance; - } - - public ExtraInfo getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_ExtraInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_ExtraInfo_fieldAccessorTable; - } - - private int bitField0_; - // required string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - java.lang.Object ref = name_; - 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)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string typology = 2; - public static final int TYPOLOGY_FIELD_NUMBER = 2; - private java.lang.Object typology_; - public boolean hasTypology() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getTypology() { - java.lang.Object ref = typology_; - 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)) { - typology_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getTypologyBytes() { - java.lang.Object ref = typology_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - typology_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string provenance = 3; - public static final int PROVENANCE_FIELD_NUMBER = 3; - private java.lang.Object provenance_; - public boolean hasProvenance() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getProvenance() { - java.lang.Object ref = provenance_; - 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)) { - provenance_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getProvenanceBytes() { - java.lang.Object ref = provenance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - provenance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string trust = 4; - public static final int TRUST_FIELD_NUMBER = 4; - private java.lang.Object trust_; - public boolean hasTrust() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getTrust() { - java.lang.Object ref = trust_; - 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)) { - trust_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getTrustBytes() { - java.lang.Object ref = trust_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - trust_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string value = 5; - public static final int VALUE_FIELD_NUMBER = 5; - private java.lang.Object value_; - public boolean hasValue() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getValue() { - java.lang.Object ref = value_; - 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)) { - value_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - name_ = ""; - typology_ = ""; - provenance_ = ""; - trust_ = ""; - value_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTypology()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasProvenance()) { - 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.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTypologyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getProvenanceBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTrustBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getValueBytes()); - } - 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 - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTypologyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getProvenanceBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTrustBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getValueBytes()); - } - 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.FieldTypeProtos.ExtraInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo 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.FieldTypeProtos.ExtraInfo 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_ExtraInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_ExtraInfo_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - typology_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - provenance_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - trust_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo build() { - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo result = new eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.typology_ = typology_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.provenance_ = provenance_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.trust_ = trust_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.value_ = value_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.getDefaultInstance()) return this; - if (other.hasName()) { - setName(other.getName()); - } - if (other.hasTypology()) { - setTypology(other.getTypology()); - } - if (other.hasProvenance()) { - setProvenance(other.getProvenance()); - } - if (other.hasTrust()) { - setTrust(other.getTrust()); - } - if (other.hasValue()) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasName()) { - - return false; - } - if (!hasTypology()) { - - return false; - } - if (!hasProvenance()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - typology_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - provenance_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - trust_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - value_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string name = 1; - private java.lang.Object name_ = ""; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - name_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setName(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - } - - // required string typology = 2; - private java.lang.Object typology_ = ""; - public boolean hasTypology() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getTypology() { - java.lang.Object ref = typology_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - typology_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setTypology(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - typology_ = value; - onChanged(); - return this; - } - public Builder clearTypology() { - bitField0_ = (bitField0_ & ~0x00000002); - typology_ = getDefaultInstance().getTypology(); - onChanged(); - return this; - } - void setTypology(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - typology_ = value; - onChanged(); - } - - // required string provenance = 3; - private java.lang.Object provenance_ = ""; - public boolean hasProvenance() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getProvenance() { - java.lang.Object ref = provenance_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - provenance_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setProvenance(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - provenance_ = value; - onChanged(); - return this; - } - public Builder clearProvenance() { - bitField0_ = (bitField0_ & ~0x00000004); - provenance_ = getDefaultInstance().getProvenance(); - onChanged(); - return this; - } - void setProvenance(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - provenance_ = value; - onChanged(); - } - - // optional string trust = 4; - private java.lang.Object trust_ = ""; - public boolean hasTrust() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getTrust() { - java.lang.Object ref = trust_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - trust_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setTrust(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - trust_ = value; - onChanged(); - return this; - } - public Builder clearTrust() { - bitField0_ = (bitField0_ & ~0x00000008); - trust_ = getDefaultInstance().getTrust(); - onChanged(); - return this; - } - void setTrust(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - trust_ = value; - onChanged(); - } - - // optional string value = 5; - private java.lang.Object value_ = ""; - public boolean hasValue() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - value_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setValue(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - value_ = value; - onChanged(); - return this; - } - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000010); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - void setValue(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; - value_ = value; - onChanged(); - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ExtraInfo) - } - - static { - defaultInstance = new ExtraInfo(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ExtraInfo) - } - - public interface AuthorOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string fullname = 1; - boolean hasFullname(); - String getFullname(); - - // optional string name = 2; - boolean hasName(); - String getName(); - - // optional string surname = 3; - boolean hasSurname(); - String getSurname(); - - // required int32 rank = 4; - boolean hasRank(); - int getRank(); - - // repeated .eu.dnetlib.data.proto.KeyValue pid = 5; - java.util.List - getPidList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getPid(int index); - int getPidCount(); - java.util.List - getPidOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPidOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField affiliation = 6; - java.util.List - getAffiliationList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getAffiliation(int index); - int getAffiliationCount(); - java.util.List - getAffiliationOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAffiliationOrBuilder( - int index); - } - public static final class Author extends - com.google.protobuf.GeneratedMessage - implements AuthorOrBuilder { - // Use Author.newBuilder() to construct. - private Author(Builder builder) { - super(builder); - } - private Author(boolean noInit) {} - - private static final Author defaultInstance; - public static Author getDefaultInstance() { - return defaultInstance; - } - - public Author getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Author_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Author_fieldAccessorTable; - } - - private int bitField0_; - // required string fullname = 1; - public static final int FULLNAME_FIELD_NUMBER = 1; - private java.lang.Object fullname_; - public boolean hasFullname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getFullname() { - java.lang.Object ref = fullname_; - 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)) { - fullname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getFullnameBytes() { - java.lang.Object ref = fullname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - fullname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string name = 2; - public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getName() { - java.lang.Object ref = name_; - 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)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string surname = 3; - public static final int SURNAME_FIELD_NUMBER = 3; - private java.lang.Object surname_; - public boolean hasSurname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getSurname() { - java.lang.Object ref = surname_; - 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)) { - surname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSurnameBytes() { - java.lang.Object ref = surname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - surname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required int32 rank = 4; - public static final int RANK_FIELD_NUMBER = 4; - private int rank_; - public boolean hasRank() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public int getRank() { - return rank_; - } - - // repeated .eu.dnetlib.data.proto.KeyValue pid = 5; - public static final int PID_FIELD_NUMBER = 5; - private java.util.List pid_; - public java.util.List getPidList() { - return pid_; - } - public java.util.List - getPidOrBuilderList() { - return pid_; - } - public int getPidCount() { - return pid_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getPid(int index) { - return pid_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPidOrBuilder( - int index) { - return pid_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField affiliation = 6; - public static final int AFFILIATION_FIELD_NUMBER = 6; - private java.util.List affiliation_; - public java.util.List getAffiliationList() { - return affiliation_; - } - public java.util.List - getAffiliationOrBuilderList() { - return affiliation_; - } - public int getAffiliationCount() { - return affiliation_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAffiliation(int index) { - return affiliation_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAffiliationOrBuilder( - int index) { - return affiliation_.get(index); - } - - private void initFields() { - fullname_ = ""; - name_ = ""; - surname_ = ""; - rank_ = 0; - pid_ = java.util.Collections.emptyList(); - affiliation_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasFullname()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRank()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getPidCount(); i++) { - if (!getPid(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAffiliationCount(); i++) { - if (!getAffiliation(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.writeBytes(1, getFullnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSurnameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, rank_); - } - for (int i = 0; i < pid_.size(); i++) { - output.writeMessage(5, pid_.get(i)); - } - for (int i = 0; i < affiliation_.size(); i++) { - output.writeMessage(6, affiliation_.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 - .computeBytesSize(1, getFullnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSurnameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, rank_); - } - for (int i = 0; i < pid_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, pid_.get(i)); - } - for (int i = 0; i < affiliation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, affiliation_.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.FieldTypeProtos.Author parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Author 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.FieldTypeProtos.Author parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Author 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.FieldTypeProtos.Author parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Author 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.FieldTypeProtos.Author 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.FieldTypeProtos.Author 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.FieldTypeProtos.Author parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.FieldTypeProtos.Author 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.FieldTypeProtos.Author 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 - implements eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Author_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.FieldTypeProtos.internal_static_eu_dnetlib_data_proto_Author_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.FieldTypeProtos.Author.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPidFieldBuilder(); - getAffiliationFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - fullname_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - surname_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - rank_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - if (pidBuilder_ == null) { - pid_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - pidBuilder_.clear(); - } - if (affiliationBuilder_ == null) { - affiliation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - affiliationBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.Author.getDescriptor(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Author getDefaultInstanceForType() { - return eu.dnetlib.data.proto.FieldTypeProtos.Author.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Author build() { - eu.dnetlib.data.proto.FieldTypeProtos.Author result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.FieldTypeProtos.Author buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.FieldTypeProtos.Author result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.FieldTypeProtos.Author buildPartial() { - eu.dnetlib.data.proto.FieldTypeProtos.Author result = new eu.dnetlib.data.proto.FieldTypeProtos.Author(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.fullname_ = fullname_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.surname_ = surname_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.rank_ = rank_; - 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 (affiliationBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - affiliation_ = java.util.Collections.unmodifiableList(affiliation_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.affiliation_ = affiliation_; - } else { - result.affiliation_ = affiliationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.FieldTypeProtos.Author) { - return mergeFrom((eu.dnetlib.data.proto.FieldTypeProtos.Author)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.FieldTypeProtos.Author other) { - if (other == eu.dnetlib.data.proto.FieldTypeProtos.Author.getDefaultInstance()) return this; - if (other.hasFullname()) { - setFullname(other.getFullname()); - } - if (other.hasName()) { - setName(other.getName()); - } - if (other.hasSurname()) { - setSurname(other.getSurname()); - } - if (other.hasRank()) { - setRank(other.getRank()); - } - 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 (affiliationBuilder_ == null) { - if (!other.affiliation_.isEmpty()) { - if (affiliation_.isEmpty()) { - affiliation_ = other.affiliation_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAffiliationIsMutable(); - affiliation_.addAll(other.affiliation_); - } - onChanged(); - } - } else { - if (!other.affiliation_.isEmpty()) { - if (affiliationBuilder_.isEmpty()) { - affiliationBuilder_.dispose(); - affiliationBuilder_ = null; - affiliation_ = other.affiliation_; - bitField0_ = (bitField0_ & ~0x00000020); - affiliationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAffiliationFieldBuilder() : null; - } else { - affiliationBuilder_.addAllMessages(other.affiliation_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasFullname()) { - - return false; - } - if (!hasRank()) { - - return false; - } - for (int i = 0; i < getPidCount(); i++) { - if (!getPid(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getAffiliationCount(); i++) { - if (!getAffiliation(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 10: { - bitField0_ |= 0x00000001; - fullname_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - name_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - surname_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - rank_ = input.readInt32(); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addPid(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addAffiliation(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required string fullname = 1; - private java.lang.Object fullname_ = ""; - public boolean hasFullname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getFullname() { - java.lang.Object ref = fullname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - fullname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setFullname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - fullname_ = value; - onChanged(); - return this; - } - public Builder clearFullname() { - bitField0_ = (bitField0_ & ~0x00000001); - fullname_ = getDefaultInstance().getFullname(); - onChanged(); - return this; - } - void setFullname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - fullname_ = value; - onChanged(); - } - - // optional string name = 2; - private java.lang.Object name_ = ""; - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - name_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setName(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - } - - // optional string surname = 3; - private java.lang.Object surname_ = ""; - public boolean hasSurname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getSurname() { - java.lang.Object ref = surname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - surname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setSurname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - surname_ = value; - onChanged(); - return this; - } - public Builder clearSurname() { - bitField0_ = (bitField0_ & ~0x00000004); - surname_ = getDefaultInstance().getSurname(); - onChanged(); - return this; - } - void setSurname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - surname_ = value; - onChanged(); - } - - // required int32 rank = 4; - private int rank_ ; - public boolean hasRank() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public int getRank() { - return rank_; - } - public Builder setRank(int value) { - bitField0_ |= 0x00000008; - rank_ = value; - onChanged(); - return this; - } - public Builder clearRank() { - bitField0_ = (bitField0_ & ~0x00000008); - rank_ = 0; - onChanged(); - return this; - } - - // repeated .eu.dnetlib.data.proto.KeyValue pid = 5; - private java.util.List pid_ = - java.util.Collections.emptyList(); - private void ensurePidIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - pid_ = new java.util.ArrayList(pid_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> pidBuilder_; - - public java.util.List 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.KeyValue 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.KeyValue 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.KeyValue.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.KeyValue 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.KeyValue 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.KeyValue.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.KeyValue.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 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.KeyValue.Builder getPidBuilder( - int index) { - return getPidFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getPidOrBuilder( - int index) { - if (pidBuilder_ == null) { - return pid_.get(index); } else { - return pidBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getPidOrBuilderList() { - if (pidBuilder_ != null) { - return pidBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pid_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addPidBuilder() { - return getPidFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder addPidBuilder( - int index) { - return getPidFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()); - } - public java.util.List - getPidBuilderList() { - return getPidFieldBuilder().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> - getPidFieldBuilder() { - if (pidBuilder_ == null) { - pidBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>( - pid_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - pid_ = null; - } - return pidBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField affiliation = 6; - private java.util.List affiliation_ = - java.util.Collections.emptyList(); - private void ensureAffiliationIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - affiliation_ = new java.util.ArrayList(affiliation_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> affiliationBuilder_; - - public java.util.List getAffiliationList() { - if (affiliationBuilder_ == null) { - return java.util.Collections.unmodifiableList(affiliation_); - } else { - return affiliationBuilder_.getMessageList(); - } - } - public int getAffiliationCount() { - if (affiliationBuilder_ == null) { - return affiliation_.size(); - } else { - return affiliationBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAffiliation(int index) { - if (affiliationBuilder_ == null) { - return affiliation_.get(index); - } else { - return affiliationBuilder_.getMessage(index); - } - } - public Builder setAffiliation( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (affiliationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffiliationIsMutable(); - affiliation_.set(index, value); - onChanged(); - } else { - affiliationBuilder_.setMessage(index, value); - } - return this; - } - public Builder setAffiliation( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (affiliationBuilder_ == null) { - ensureAffiliationIsMutable(); - affiliation_.set(index, builderForValue.build()); - onChanged(); - } else { - affiliationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAffiliation(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (affiliationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffiliationIsMutable(); - affiliation_.add(value); - onChanged(); - } else { - affiliationBuilder_.addMessage(value); - } - return this; - } - public Builder addAffiliation( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (affiliationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffiliationIsMutable(); - affiliation_.add(index, value); - onChanged(); - } else { - affiliationBuilder_.addMessage(index, value); - } - return this; - } - public Builder addAffiliation( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (affiliationBuilder_ == null) { - ensureAffiliationIsMutable(); - affiliation_.add(builderForValue.build()); - onChanged(); - } else { - affiliationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addAffiliation( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (affiliationBuilder_ == null) { - ensureAffiliationIsMutable(); - affiliation_.add(index, builderForValue.build()); - onChanged(); - } else { - affiliationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllAffiliation( - java.lang.Iterable values) { - if (affiliationBuilder_ == null) { - ensureAffiliationIsMutable(); - super.addAll(values, affiliation_); - onChanged(); - } else { - affiliationBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearAffiliation() { - if (affiliationBuilder_ == null) { - affiliation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - affiliationBuilder_.clear(); - } - return this; - } - public Builder removeAffiliation(int index) { - if (affiliationBuilder_ == null) { - ensureAffiliationIsMutable(); - affiliation_.remove(index); - onChanged(); - } else { - affiliationBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getAffiliationBuilder( - int index) { - return getAffiliationFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAffiliationOrBuilder( - int index) { - if (affiliationBuilder_ == null) { - return affiliation_.get(index); } else { - return affiliationBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getAffiliationOrBuilderList() { - if (affiliationBuilder_ != null) { - return affiliationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(affiliation_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAffiliationBuilder() { - return getAffiliationFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAffiliationBuilder( - int index) { - return getAffiliationFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getAffiliationBuilderList() { - return getAffiliationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getAffiliationFieldBuilder() { - if (affiliationBuilder_ == null) { - affiliationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - affiliation_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - affiliation_ = null; - } - return affiliationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Author) - } - - static { - defaultInstance = new Author(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Author) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_StringField_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_StringField_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_BoolField_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_BoolField_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_IntField_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_IntField_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_StructuredProperty_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_StructuredProperty_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_KeyValue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_KeyValue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Qualifier_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Qualifier_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_DataInfo_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_DataInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_OAIProvenance_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ExtraInfo_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ExtraInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Author_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Author_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\017FieldType.proto\022\025eu.dnetlib.data.proto" + - "\"O\n\013StringField\022\r\n\005value\030\001 \002(\t\0221\n\010dataIn" + - "fo\030\002 \001(\0132\037.eu.dnetlib.data.proto.DataInf" + - "o\"M\n\tBoolField\022\r\n\005value\030\001 \002(\010\0221\n\010dataInf" + - "o\030\002 \001(\0132\037.eu.dnetlib.data.proto.DataInfo" + - "\"L\n\010IntField\022\r\n\005value\030\001 \002(\005\0221\n\010dataInfo\030" + - "\002 \001(\0132\037.eu.dnetlib.data.proto.DataInfo\"\213" + - "\001\n\022StructuredProperty\022\r\n\005value\030\001 \002(\t\0223\n\t" + - "qualifier\030\002 \001(\0132 .eu.dnetlib.data.proto." + - "Qualifier\0221\n\010dataInfo\030\003 \001(\0132\037.eu.dnetlib", - ".data.proto.DataInfo\"Y\n\010KeyValue\022\013\n\003key\030" + - "\001 \002(\t\022\r\n\005value\030\002 \001(\t\0221\n\010dataInfo\030\003 \001(\0132\037" + - ".eu.dnetlib.data.proto.DataInfo\"\210\001\n\tQual" + - "ifier\022\017\n\007classid\030\001 \001(\t\022\021\n\tclassname\030\002 \001(" + - "\t\022\020\n\010schemeid\030\003 \001(\t\022\022\n\nschemename\030\004 \001(\t\022" + - "1\n\010dataInfo\030\005 \001(\0132\037.eu.dnetlib.data.prot" + - "o.DataInfo\"\272\001\n\010DataInfo\022\030\n\tinvisible\030\006 \001" + - "(\010:\005false\022\020\n\010inferred\030\001 \001(\010\022\032\n\022deletedby" + - "inference\030\002 \001(\010\022\r\n\005trust\030\003 \001(\t\022\033\n\023infere" + - "nceprovenance\030\004 \001(\t\022:\n\020provenanceaction\030", - "\005 \002(\0132 .eu.dnetlib.data.proto.Qualifier\"" + - "\312\002\n\rOAIProvenance\022Q\n\021originDescription\030\001" + - " \001(\01326.eu.dnetlib.data.proto.OAIProvenan" + - "ce.OriginDescription\032\345\001\n\021OriginDescripti" + - "on\022\023\n\013harvestDate\030\001 \001(\t\022\025\n\007altered\030\002 \001(\010" + - ":\004true\022\017\n\007baseURL\030\003 \001(\t\022\022\n\nidentifier\030\004 " + - "\001(\t\022\021\n\tdatestamp\030\005 \001(\t\022\031\n\021metadataNamesp" + - "ace\030\006 \001(\t\022Q\n\021originDescription\030\007 \001(\01326.e" + - "u.dnetlib.data.proto.OAIProvenance.Origi" + - "nDescription\"]\n\tExtraInfo\022\014\n\004name\030\001 \002(\t\022", - "\020\n\010typology\030\002 \002(\t\022\022\n\nprovenance\030\003 \002(\t\022\r\n" + - "\005trust\030\004 \001(\t\022\r\n\005value\030\005 \001(\t\"\256\001\n\006Author\022\020" + - "\n\010fullname\030\001 \002(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007surnam" + - "e\030\003 \001(\t\022\014\n\004rank\030\004 \002(\005\022,\n\003pid\030\005 \003(\0132\037.eu." + - "dnetlib.data.proto.KeyValue\0227\n\013affiliati" + - "on\030\006 \003(\0132\".eu.dnetlib.data.proto.StringF" + - "ieldB(\n\025eu.dnetlib.data.protoB\017FieldType" + - "Protos" - }; - 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_StringField_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_StringField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_StringField_descriptor, - new java.lang.String[] { "Value", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.StringField.class, - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder.class); - internal_static_eu_dnetlib_data_proto_BoolField_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_eu_dnetlib_data_proto_BoolField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_BoolField_descriptor, - new java.lang.String[] { "Value", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.class, - eu.dnetlib.data.proto.FieldTypeProtos.BoolField.Builder.class); - internal_static_eu_dnetlib_data_proto_IntField_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_eu_dnetlib_data_proto_IntField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_IntField_descriptor, - new java.lang.String[] { "Value", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.IntField.class, - eu.dnetlib.data.proto.FieldTypeProtos.IntField.Builder.class); - internal_static_eu_dnetlib_data_proto_StructuredProperty_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_eu_dnetlib_data_proto_StructuredProperty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_StructuredProperty_descriptor, - new java.lang.String[] { "Value", "Qualifier", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.class, - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder.class); - internal_static_eu_dnetlib_data_proto_KeyValue_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_eu_dnetlib_data_proto_KeyValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_KeyValue_descriptor, - new java.lang.String[] { "Key", "Value", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.class, - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder.class); - internal_static_eu_dnetlib_data_proto_Qualifier_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_eu_dnetlib_data_proto_Qualifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Qualifier_descriptor, - new java.lang.String[] { "Classid", "Classname", "Schemeid", "Schemename", "DataInfo", }, - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.class, - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder.class); - internal_static_eu_dnetlib_data_proto_DataInfo_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_eu_dnetlib_data_proto_DataInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_DataInfo_descriptor, - new java.lang.String[] { "Invisible", "Inferred", "Deletedbyinference", "Trust", "Inferenceprovenance", "Provenanceaction", }, - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.class, - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder.class); - internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_eu_dnetlib_data_proto_OAIProvenance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor, - new java.lang.String[] { "OriginDescription", }, - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.class, - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.Builder.class); - internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_descriptor = - internal_static_eu_dnetlib_data_proto_OAIProvenance_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_OAIProvenance_OriginDescription_descriptor, - new java.lang.String[] { "HarvestDate", "Altered", "BaseURL", "Identifier", "Datestamp", "MetadataNamespace", "OriginDescription", }, - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.class, - eu.dnetlib.data.proto.FieldTypeProtos.OAIProvenance.OriginDescription.Builder.class); - internal_static_eu_dnetlib_data_proto_ExtraInfo_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_eu_dnetlib_data_proto_ExtraInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ExtraInfo_descriptor, - new java.lang.String[] { "Name", "Typology", "Provenance", "Trust", "Value", }, - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.class, - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo.Builder.class); - internal_static_eu_dnetlib_data_proto_Author_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_eu_dnetlib_data_proto_Author_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Author_descriptor, - new java.lang.String[] { "Fullname", "Name", "Surname", "Rank", "Pid", "Affiliation", }, - eu.dnetlib.data.proto.FieldTypeProtos.Author.class, - eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/KindProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/KindProtos.java deleted file mode 100644 index ccd35de..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/KindProtos.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Kind.proto - -package eu.dnetlib.data.proto; - -public final class KindProtos { - private KindProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public enum Kind - implements com.google.protobuf.ProtocolMessageEnum { - entity(0, 1), - relation(1, 2), - ; - - public static final int entity_VALUE = 1; - public static final int relation_VALUE = 2; - - - public final int getNumber() { return value; } - - public static Kind valueOf(int value) { - switch (value) { - case 1: return entity; - case 2: return relation; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Kind findValueByNumber(int number) { - return Kind.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.KindProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final Kind[] VALUES = { - entity, relation, - }; - - public static Kind valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Kind(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.Kind) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nKind.proto\022\025eu.dnetlib.data.proto* \n\004K" + - "ind\022\n\n\006entity\020\001\022\014\n\010relation\020\002B#\n\025eu.dnet" + - "lib.data.protoB\nKindProtos" - }; - 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; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OafProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OafProtos.java deleted file mode 100644 index d9e370b..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OafProtos.java +++ /dev/null @@ -1,6730 +0,0 @@ -// 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 - 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 getOriginalIdList(); - int getOriginalIdCount(); - String getOriginalId(int index); - - // repeated .eu.dnetlib.data.proto.KeyValue collectedfrom = 9; - java.util.List - getCollectedfromList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index); - int getCollectedfromCount(); - java.util.List - getCollectedfromOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StructuredProperty pid = 10; - java.util.List - getPidList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getPid(int index); - int getPidCount(); - java.util.List - 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 - getCachedRelList(); - eu.dnetlib.data.proto.OafProtos.OafRel getCachedRel(int index); - int getCachedRelCount(); - java.util.List - getCachedRelOrBuilderList(); - eu.dnetlib.data.proto.OafProtos.OafRelOrBuilder getCachedRelOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.Oaf cachedOafRel = 18; - java.util.List - getCachedOafRelList(); - eu.dnetlib.data.proto.OafProtos.Oaf getCachedOafRel(int index); - int getCachedOafRelCount(); - java.util.List - 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 - getChildrenList(); - eu.dnetlib.data.proto.OafProtos.OafEntity getChildren(int index); - int getChildrenCount(); - java.util.List - getChildrenOrBuilderList(); - eu.dnetlib.data.proto.OafProtos.OafEntityOrBuilder getChildrenOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.ExtraInfo extraInfo = 15; - java.util.List - getExtraInfoList(); - eu.dnetlib.data.proto.FieldTypeProtos.ExtraInfo getExtraInfo(int index); - int getExtraInfoCount(); - java.util.List - 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 - 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 collectedfrom_; - public java.util.List getCollectedfromList() { - return collectedfrom_; - } - public java.util.List - 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 pid_; - public java.util.List getPidList() { - return pid_; - } - public java.util.List - 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 cachedRel_; - public java.util.List getCachedRelList() { - return cachedRel_; - } - public java.util.List - 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 cachedOafRel_; - public java.util.List getCachedOafRelList() { - return cachedOafRel_; - } - public java.util.List - 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 children_; - public java.util.List getChildrenList() { - return children_; - } - public java.util.List - 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 extraInfo_; - public java.util.List getExtraInfoList() { - return extraInfo_; - } - public java.util.List - 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 - 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 - 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 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 collectedfrom_ = - java.util.Collections.emptyList(); - private void ensureCollectedfromIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - collectedfrom_ = new java.util.ArrayList(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 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 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 - 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 - 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 pid_ = - java.util.Collections.emptyList(); - private void ensurePidIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - pid_ = new java.util.ArrayList(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 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 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 - 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 - 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 cachedRel_ = - java.util.Collections.emptyList(); - private void ensureCachedRelIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - cachedRel_ = new java.util.ArrayList(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 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 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 - 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 - 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 cachedOafRel_ = - java.util.Collections.emptyList(); - private void ensureCachedOafRelIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - cachedOafRel_ = new java.util.ArrayList(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 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 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 - 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 - 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 children_ = - java.util.Collections.emptyList(); - private void ensureChildrenIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - children_ = new java.util.ArrayList(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 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 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 - 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 - 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 extraInfo_ = - java.util.Collections.emptyList(); - private void ensureExtraInfoIsMutable() { - if (!((bitField0_ & 0x00008000) == 0x00008000)) { - extraInfo_ = new java.util.ArrayList(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 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 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 - 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 - 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 - getCollectedfromList(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(int index); - int getCollectedfromCount(); - java.util.List - 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 collectedfrom_; - public java.util.List getCollectedfromList() { - return collectedfrom_; - } - public java.util.List - 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 - 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 collectedfrom_ = - java.util.Collections.emptyList(); - private void ensureCollectedfromIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - collectedfrom_ = new java.util.ArrayList(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 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 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 - 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 - 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) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationOrganizationProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationOrganizationProtos.java deleted file mode 100644 index b04807e..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationOrganizationProtos.java +++ /dev/null @@ -1,651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Organization_Organization.proto - -package eu.dnetlib.data.proto; - -public final class OrganizationOrganizationProtos { - private OrganizationOrganizationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface OrganizationOrganizationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Dedup dedup = 1; - boolean hasDedup(); - eu.dnetlib.data.proto.DedupProtos.Dedup getDedup(); - eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder(); - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 2; - boolean hasDedupSimilarity(); - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity(); - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder(); - } - public static final class OrganizationOrganization extends - com.google.protobuf.GeneratedMessage - implements OrganizationOrganizationOrBuilder { - // Use OrganizationOrganization.newBuilder() to construct. - private OrganizationOrganization(Builder builder) { - super(builder); - } - private OrganizationOrganization(boolean noInit) {} - - private static final OrganizationOrganization defaultInstance; - public static OrganizationOrganization getDefaultInstance() { - return defaultInstance; - } - - public OrganizationOrganization getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.internal_static_eu_dnetlib_data_proto_OrganizationOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.internal_static_eu_dnetlib_data_proto_OrganizationOrganization_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Dedup dedup = 1; - public static final int DEDUP_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_; - public boolean hasDedup() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() { - return dedup_; - } - public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() { - return dedup_; - } - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 2; - public static final int DEDUPSIMILARITY_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_; - public boolean hasDedupSimilarity() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() { - return dedupSimilarity_; - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() { - return dedupSimilarity_; - } - - private void initFields() { - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasDedup()) { - if (!getDedup().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDedupSimilarity()) { - if (!getDedupSimilarity().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, dedup_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, dedupSimilarity_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dedup_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dedupSimilarity_); - } - 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.OrganizationOrganizationProtos.OrganizationOrganization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization 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.OrganizationOrganizationProtos.OrganizationOrganization 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 - implements eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.internal_static_eu_dnetlib_data_proto_OrganizationOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.internal_static_eu_dnetlib_data_proto_OrganizationOrganization_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDedupFieldBuilder(); - getDedupSimilarityFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (dedupBuilder_ == null) { - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - } else { - dedupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - } else { - dedupSimilarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDescriptor(); - } - - public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization getDefaultInstanceForType() { - return eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization build() { - eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization buildPartial() { - eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization result = new eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (dedupBuilder_ == null) { - result.dedup_ = dedup_; - } else { - result.dedup_ = dedupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (dedupSimilarityBuilder_ == null) { - result.dedupSimilarity_ = dedupSimilarity_; - } else { - result.dedupSimilarity_ = dedupSimilarityBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization) { - return mergeFrom((eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization other) { - if (other == eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.getDefaultInstance()) return this; - if (other.hasDedup()) { - mergeDedup(other.getDedup()); - } - if (other.hasDedupSimilarity()) { - mergeDedupSimilarity(other.getDedupSimilarity()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasDedup()) { - if (!getDedup().isInitialized()) { - - return false; - } - } - if (hasDedupSimilarity()) { - if (!getDedupSimilarity().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.DedupProtos.Dedup.Builder subBuilder = eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder(); - if (hasDedup()) { - subBuilder.mergeFrom(getDedup()); - } - input.readMessage(subBuilder, extensionRegistry); - setDedup(subBuilder.buildPartial()); - break; - } - case 18: { - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder subBuilder = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder(); - if (hasDedupSimilarity()) { - subBuilder.mergeFrom(getDedupSimilarity()); - } - input.readMessage(subBuilder, extensionRegistry); - setDedupSimilarity(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Dedup dedup = 1; - private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> dedupBuilder_; - public boolean hasDedup() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() { - if (dedupBuilder_ == null) { - return dedup_; - } else { - return dedupBuilder_.getMessage(); - } - } - public Builder setDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) { - if (dedupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dedup_ = value; - onChanged(); - } else { - dedupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setDedup( - eu.dnetlib.data.proto.DedupProtos.Dedup.Builder builderForValue) { - if (dedupBuilder_ == null) { - dedup_ = builderForValue.build(); - onChanged(); - } else { - dedupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) { - if (dedupBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - dedup_ != eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance()) { - dedup_ = - eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder(dedup_).mergeFrom(value).buildPartial(); - } else { - dedup_ = value; - } - onChanged(); - } else { - dedupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearDedup() { - if (dedupBuilder_ == null) { - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - onChanged(); - } else { - dedupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.DedupProtos.Dedup.Builder getDedupBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDedupFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() { - if (dedupBuilder_ != null) { - return dedupBuilder_.getMessageOrBuilder(); - } else { - return dedup_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> - getDedupFieldBuilder() { - if (dedupBuilder_ == null) { - dedupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder>( - dedup_, - getParentForChildren(), - isClean()); - dedup_ = null; - } - return dedupBuilder_; - } - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 2; - private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> dedupSimilarityBuilder_; - public boolean hasDedupSimilarity() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() { - if (dedupSimilarityBuilder_ == null) { - return dedupSimilarity_; - } else { - return dedupSimilarityBuilder_.getMessage(); - } - } - public Builder setDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) { - if (dedupSimilarityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dedupSimilarity_ = value; - onChanged(); - } else { - dedupSimilarityBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setDedupSimilarity( - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder builderForValue) { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = builderForValue.build(); - onChanged(); - } else { - dedupSimilarityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) { - if (dedupSimilarityBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - dedupSimilarity_ != eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance()) { - dedupSimilarity_ = - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder(dedupSimilarity_).mergeFrom(value).buildPartial(); - } else { - dedupSimilarity_ = value; - } - onChanged(); - } else { - dedupSimilarityBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearDedupSimilarity() { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - onChanged(); - } else { - dedupSimilarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder getDedupSimilarityBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDedupSimilarityFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() { - if (dedupSimilarityBuilder_ != null) { - return dedupSimilarityBuilder_.getMessageOrBuilder(); - } else { - return dedupSimilarity_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> - getDedupSimilarityFieldBuilder() { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarityBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder>( - dedupSimilarity_, - getParentForChildren(), - isClean()); - dedupSimilarity_ = null; - } - return dedupSimilarityBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.OrganizationOrganization) - } - - static { - defaultInstance = new OrganizationOrganization(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.OrganizationOrganization) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_OrganizationOrganization_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_OrganizationOrganization_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\037Organization_Organization.proto\022\025eu.dn" + - "etlib.data.proto\032\021RelMetadata.proto\032\013Ded" + - "up.proto\032\025DedupSimilarity.proto\"\210\001\n\030Orga" + - "nizationOrganization\022+\n\005dedup\030\001 \001(\0132\034.eu" + - ".dnetlib.data.proto.Dedup\022?\n\017dedupSimila" + - "rity\030\002 \001(\0132&.eu.dnetlib.data.proto.Dedup" + - "SimilarityB7\n\025eu.dnetlib.data.protoB\036Org" + - "anizationOrganizationProtos" - }; - 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_OrganizationOrganization_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_OrganizationOrganization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_OrganizationOrganization_descriptor, - new java.lang.String[] { "Dedup", "DedupSimilarity", }, - eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.class, - eu.dnetlib.data.proto.OrganizationOrganizationProtos.OrganizationOrganization.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - eu.dnetlib.data.proto.DedupProtos.getDescriptor(), - eu.dnetlib.data.proto.DedupSimilarityProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationProtos.java deleted file mode 100644 index 2b27423..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/OrganizationProtos.java +++ /dev/null @@ -1,3420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Organization.proto - -package eu.dnetlib.data.proto; - -public final class OrganizationProtos { - private OrganizationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface OrganizationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Organization.Metadata metadata = 2; - boolean hasMetadata(); - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata getMetadata(); - eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder getMetadataOrBuilder(); - } - public static final class Organization extends - com.google.protobuf.GeneratedMessage - implements OrganizationOrBuilder { - // Use Organization.newBuilder() to construct. - private Organization(Builder builder) { - super(builder); - } - private Organization(boolean noInit) {} - - private static final Organization defaultInstance; - public static Organization getDefaultInstance() { - return defaultInstance; - } - - public Organization getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_fieldAccessorTable; - } - - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.StringField legalshortname = 1; - boolean hasLegalshortname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalshortname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalshortnameOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField legalname = 2; - boolean hasLegalname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalnameOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StringField alternativeNames = 17; - java.util.List - getAlternativeNamesList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getAlternativeNames(int index); - int getAlternativeNamesCount(); - java.util.List - getAlternativeNamesOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAlternativeNamesOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - boolean hasWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - boolean hasLogourl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField eclegalbody = 5; - boolean hasEclegalbody(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalbody(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalbodyOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField eclegalperson = 6; - boolean hasEclegalperson(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalperson(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalpersonOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecnonprofit = 7; - boolean hasEcnonprofit(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnonprofit(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnonprofitOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecresearchorganization = 8; - boolean hasEcresearchorganization(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcresearchorganization(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcresearchorganizationOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField echighereducation = 9; - boolean hasEchighereducation(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEchighereducation(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEchighereducationOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganizationeurinterests = 10; - boolean hasEcinternationalorganizationeurinterests(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganizationeurinterests(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationeurinterestsOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganization = 11; - boolean hasEcinternationalorganization(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganization(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecenterprise = 12; - boolean hasEcenterprise(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcenterprise(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcenterpriseOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecsmevalidated = 13; - boolean hasEcsmevalidated(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsmevalidated(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsmevalidatedOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecnutscode = 14; - boolean hasEcnutscode(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnutscode(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnutscodeOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier country = 16; - boolean hasCountry(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder(); - } - public static final class Metadata extends - com.google.protobuf.GeneratedMessage - implements MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(Builder builder) { - super(builder); - } - private Metadata(boolean noInit) {} - - private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { - return defaultInstance; - } - - public Metadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_Metadata_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.StringField legalshortname = 1; - public static final int LEGALSHORTNAME_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField legalshortname_; - public boolean hasLegalshortname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalshortname() { - return legalshortname_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalshortnameOrBuilder() { - return legalshortname_; - } - - // optional .eu.dnetlib.data.proto.StringField legalname = 2; - public static final int LEGALNAME_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField legalname_; - public boolean hasLegalname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalname() { - return legalname_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalnameOrBuilder() { - return legalname_; - } - - // repeated .eu.dnetlib.data.proto.StringField alternativeNames = 17; - public static final int ALTERNATIVENAMES_FIELD_NUMBER = 17; - private java.util.List alternativeNames_; - public java.util.List getAlternativeNamesList() { - return alternativeNames_; - } - public java.util.List - getAlternativeNamesOrBuilderList() { - return alternativeNames_; - } - public int getAlternativeNamesCount() { - return alternativeNames_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAlternativeNames(int index) { - return alternativeNames_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAlternativeNamesOrBuilder( - int index) { - return alternativeNames_.get(index); - } - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - public static final int WEBSITEURL_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - return websiteurl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - return websiteurl_; - } - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - public static final int LOGOURL_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField logourl_; - public boolean hasLogourl() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl() { - return logourl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder() { - return logourl_; - } - - // optional .eu.dnetlib.data.proto.StringField eclegalbody = 5; - public static final int ECLEGALBODY_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField eclegalbody_; - public boolean hasEclegalbody() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalbody() { - return eclegalbody_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalbodyOrBuilder() { - return eclegalbody_; - } - - // optional .eu.dnetlib.data.proto.StringField eclegalperson = 6; - public static final int ECLEGALPERSON_FIELD_NUMBER = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField eclegalperson_; - public boolean hasEclegalperson() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalperson() { - return eclegalperson_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalpersonOrBuilder() { - return eclegalperson_; - } - - // optional .eu.dnetlib.data.proto.StringField ecnonprofit = 7; - public static final int ECNONPROFIT_FIELD_NUMBER = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecnonprofit_; - public boolean hasEcnonprofit() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnonprofit() { - return ecnonprofit_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnonprofitOrBuilder() { - return ecnonprofit_; - } - - // optional .eu.dnetlib.data.proto.StringField ecresearchorganization = 8; - public static final int ECRESEARCHORGANIZATION_FIELD_NUMBER = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecresearchorganization_; - public boolean hasEcresearchorganization() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcresearchorganization() { - return ecresearchorganization_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcresearchorganizationOrBuilder() { - return ecresearchorganization_; - } - - // optional .eu.dnetlib.data.proto.StringField echighereducation = 9; - public static final int ECHIGHEREDUCATION_FIELD_NUMBER = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField echighereducation_; - public boolean hasEchighereducation() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEchighereducation() { - return echighereducation_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEchighereducationOrBuilder() { - return echighereducation_; - } - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganizationeurinterests = 10; - public static final int ECINTERNATIONALORGANIZATIONEURINTERESTS_FIELD_NUMBER = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecinternationalorganizationeurinterests_; - public boolean hasEcinternationalorganizationeurinterests() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganizationeurinterests() { - return ecinternationalorganizationeurinterests_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationeurinterestsOrBuilder() { - return ecinternationalorganizationeurinterests_; - } - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganization = 11; - public static final int ECINTERNATIONALORGANIZATION_FIELD_NUMBER = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecinternationalorganization_; - public boolean hasEcinternationalorganization() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganization() { - return ecinternationalorganization_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationOrBuilder() { - return ecinternationalorganization_; - } - - // optional .eu.dnetlib.data.proto.StringField ecenterprise = 12; - public static final int ECENTERPRISE_FIELD_NUMBER = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecenterprise_; - public boolean hasEcenterprise() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcenterprise() { - return ecenterprise_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcenterpriseOrBuilder() { - return ecenterprise_; - } - - // optional .eu.dnetlib.data.proto.StringField ecsmevalidated = 13; - public static final int ECSMEVALIDATED_FIELD_NUMBER = 13; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecsmevalidated_; - public boolean hasEcsmevalidated() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsmevalidated() { - return ecsmevalidated_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsmevalidatedOrBuilder() { - return ecsmevalidated_; - } - - // optional .eu.dnetlib.data.proto.StringField ecnutscode = 14; - public static final int ECNUTSCODE_FIELD_NUMBER = 14; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecnutscode_; - public boolean hasEcnutscode() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnutscode() { - return ecnutscode_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnutscodeOrBuilder() { - return ecnutscode_; - } - - // optional .eu.dnetlib.data.proto.Qualifier country = 16; - public static final int COUNTRY_FIELD_NUMBER = 16; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier country_; - public boolean hasCountry() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry() { - return country_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder() { - return country_; - } - - private void initFields() { - legalshortname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - legalname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - alternativeNames_ = java.util.Collections.emptyList(); - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - eclegalbody_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - eclegalperson_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecnonprofit_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecresearchorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - echighereducation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecinternationalorganizationeurinterests_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecinternationalorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecenterprise_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecsmevalidated_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecnutscode_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - country_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasLegalshortname()) { - if (!getLegalshortname().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLegalname()) { - if (!getLegalname().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAlternativeNamesCount(); i++) { - if (!getAlternativeNames(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLogourl()) { - if (!getLogourl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEclegalbody()) { - if (!getEclegalbody().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEclegalperson()) { - if (!getEclegalperson().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcnonprofit()) { - if (!getEcnonprofit().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcresearchorganization()) { - if (!getEcresearchorganization().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEchighereducation()) { - if (!getEchighereducation().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcinternationalorganizationeurinterests()) { - if (!getEcinternationalorganizationeurinterests().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcinternationalorganization()) { - if (!getEcinternationalorganization().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcenterprise()) { - if (!getEcenterprise().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcsmevalidated()) { - if (!getEcsmevalidated().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcnutscode()) { - if (!getEcnutscode().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCountry()) { - if (!getCountry().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, legalshortname_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, legalname_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, websiteurl_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, logourl_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, eclegalbody_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, eclegalperson_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, ecnonprofit_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, ecresearchorganization_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, echighereducation_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, ecinternationalorganizationeurinterests_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, ecinternationalorganization_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, ecenterprise_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, ecsmevalidated_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(14, ecnutscode_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(16, country_); - } - for (int i = 0; i < alternativeNames_.size(); i++) { - output.writeMessage(17, alternativeNames_.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 - .computeMessageSize(1, legalshortname_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, legalname_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, websiteurl_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logourl_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, eclegalbody_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, eclegalperson_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ecnonprofit_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, ecresearchorganization_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, echighereducation_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, ecinternationalorganizationeurinterests_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, ecinternationalorganization_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, ecenterprise_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, ecsmevalidated_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, ecnutscode_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, country_); - } - for (int i = 0; i < alternativeNames_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, alternativeNames_.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.OrganizationProtos.Organization.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata 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.OrganizationProtos.Organization.Metadata 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 - implements eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_Metadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLegalshortnameFieldBuilder(); - getLegalnameFieldBuilder(); - getAlternativeNamesFieldBuilder(); - getWebsiteurlFieldBuilder(); - getLogourlFieldBuilder(); - getEclegalbodyFieldBuilder(); - getEclegalpersonFieldBuilder(); - getEcnonprofitFieldBuilder(); - getEcresearchorganizationFieldBuilder(); - getEchighereducationFieldBuilder(); - getEcinternationalorganizationeurinterestsFieldBuilder(); - getEcinternationalorganizationFieldBuilder(); - getEcenterpriseFieldBuilder(); - getEcsmevalidatedFieldBuilder(); - getEcnutscodeFieldBuilder(); - getCountryFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (legalshortnameBuilder_ == null) { - legalshortname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - legalshortnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (legalnameBuilder_ == null) { - legalname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - legalnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (alternativeNamesBuilder_ == null) { - alternativeNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - alternativeNamesBuilder_.clear(); - } - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (logourlBuilder_ == null) { - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - logourlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (eclegalbodyBuilder_ == null) { - eclegalbody_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - eclegalbodyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (eclegalpersonBuilder_ == null) { - eclegalperson_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - eclegalpersonBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (ecnonprofitBuilder_ == null) { - ecnonprofit_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecnonprofitBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (ecresearchorganizationBuilder_ == null) { - ecresearchorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecresearchorganizationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (echighereducationBuilder_ == null) { - echighereducation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - echighereducationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - ecinternationalorganizationeurinterests_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecinternationalorganizationeurinterestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (ecinternationalorganizationBuilder_ == null) { - ecinternationalorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecinternationalorganizationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - if (ecenterpriseBuilder_ == null) { - ecenterprise_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecenterpriseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - if (ecsmevalidatedBuilder_ == null) { - ecsmevalidated_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecsmevalidatedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - if (ecnutscodeBuilder_ == null) { - ecnutscode_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecnutscodeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - if (countryBuilder_ == null) { - country_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - countryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata build() { - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata buildPartial() { - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata result = new eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (legalshortnameBuilder_ == null) { - result.legalshortname_ = legalshortname_; - } else { - result.legalshortname_ = legalshortnameBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (legalnameBuilder_ == null) { - result.legalname_ = legalname_; - } else { - result.legalname_ = legalnameBuilder_.build(); - } - if (alternativeNamesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - alternativeNames_ = java.util.Collections.unmodifiableList(alternativeNames_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.alternativeNames_ = alternativeNames_; - } else { - result.alternativeNames_ = alternativeNamesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - if (websiteurlBuilder_ == null) { - result.websiteurl_ = websiteurl_; - } else { - result.websiteurl_ = websiteurlBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - if (logourlBuilder_ == null) { - result.logourl_ = logourl_; - } else { - result.logourl_ = logourlBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - if (eclegalbodyBuilder_ == null) { - result.eclegalbody_ = eclegalbody_; - } else { - result.eclegalbody_ = eclegalbodyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - if (eclegalpersonBuilder_ == null) { - result.eclegalperson_ = eclegalperson_; - } else { - result.eclegalperson_ = eclegalpersonBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - if (ecnonprofitBuilder_ == null) { - result.ecnonprofit_ = ecnonprofit_; - } else { - result.ecnonprofit_ = ecnonprofitBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000080; - } - if (ecresearchorganizationBuilder_ == null) { - result.ecresearchorganization_ = ecresearchorganization_; - } else { - result.ecresearchorganization_ = ecresearchorganizationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000100; - } - if (echighereducationBuilder_ == null) { - result.echighereducation_ = echighereducation_; - } else { - result.echighereducation_ = echighereducationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - result.ecinternationalorganizationeurinterests_ = ecinternationalorganizationeurinterests_; - } else { - result.ecinternationalorganizationeurinterests_ = ecinternationalorganizationeurinterestsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000400; - } - if (ecinternationalorganizationBuilder_ == null) { - result.ecinternationalorganization_ = ecinternationalorganization_; - } else { - result.ecinternationalorganization_ = ecinternationalorganizationBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000800; - } - if (ecenterpriseBuilder_ == null) { - result.ecenterprise_ = ecenterprise_; - } else { - result.ecenterprise_ = ecenterpriseBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00001000; - } - if (ecsmevalidatedBuilder_ == null) { - result.ecsmevalidated_ = ecsmevalidated_; - } else { - result.ecsmevalidated_ = ecsmevalidatedBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - if (ecnutscodeBuilder_ == null) { - result.ecnutscode_ = ecnutscode_; - } else { - result.ecnutscode_ = ecnutscodeBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - if (countryBuilder_ == null) { - result.country_ = country_; - } else { - result.country_ = countryBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata) { - return mergeFrom((eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata other) { - if (other == eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance()) return this; - if (other.hasLegalshortname()) { - mergeLegalshortname(other.getLegalshortname()); - } - if (other.hasLegalname()) { - mergeLegalname(other.getLegalname()); - } - if (alternativeNamesBuilder_ == null) { - if (!other.alternativeNames_.isEmpty()) { - if (alternativeNames_.isEmpty()) { - alternativeNames_ = other.alternativeNames_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAlternativeNamesIsMutable(); - alternativeNames_.addAll(other.alternativeNames_); - } - onChanged(); - } - } else { - if (!other.alternativeNames_.isEmpty()) { - if (alternativeNamesBuilder_.isEmpty()) { - alternativeNamesBuilder_.dispose(); - alternativeNamesBuilder_ = null; - alternativeNames_ = other.alternativeNames_; - bitField0_ = (bitField0_ & ~0x00000004); - alternativeNamesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAlternativeNamesFieldBuilder() : null; - } else { - alternativeNamesBuilder_.addAllMessages(other.alternativeNames_); - } - } - } - if (other.hasWebsiteurl()) { - mergeWebsiteurl(other.getWebsiteurl()); - } - if (other.hasLogourl()) { - mergeLogourl(other.getLogourl()); - } - if (other.hasEclegalbody()) { - mergeEclegalbody(other.getEclegalbody()); - } - if (other.hasEclegalperson()) { - mergeEclegalperson(other.getEclegalperson()); - } - if (other.hasEcnonprofit()) { - mergeEcnonprofit(other.getEcnonprofit()); - } - if (other.hasEcresearchorganization()) { - mergeEcresearchorganization(other.getEcresearchorganization()); - } - if (other.hasEchighereducation()) { - mergeEchighereducation(other.getEchighereducation()); - } - if (other.hasEcinternationalorganizationeurinterests()) { - mergeEcinternationalorganizationeurinterests(other.getEcinternationalorganizationeurinterests()); - } - if (other.hasEcinternationalorganization()) { - mergeEcinternationalorganization(other.getEcinternationalorganization()); - } - if (other.hasEcenterprise()) { - mergeEcenterprise(other.getEcenterprise()); - } - if (other.hasEcsmevalidated()) { - mergeEcsmevalidated(other.getEcsmevalidated()); - } - if (other.hasEcnutscode()) { - mergeEcnutscode(other.getEcnutscode()); - } - if (other.hasCountry()) { - mergeCountry(other.getCountry()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasLegalshortname()) { - if (!getLegalshortname().isInitialized()) { - - return false; - } - } - if (hasLegalname()) { - if (!getLegalname().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getAlternativeNamesCount(); i++) { - if (!getAlternativeNames(i).isInitialized()) { - - return false; - } - } - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - - return false; - } - } - if (hasLogourl()) { - if (!getLogourl().isInitialized()) { - - return false; - } - } - if (hasEclegalbody()) { - if (!getEclegalbody().isInitialized()) { - - return false; - } - } - if (hasEclegalperson()) { - if (!getEclegalperson().isInitialized()) { - - return false; - } - } - if (hasEcnonprofit()) { - if (!getEcnonprofit().isInitialized()) { - - return false; - } - } - if (hasEcresearchorganization()) { - if (!getEcresearchorganization().isInitialized()) { - - return false; - } - } - if (hasEchighereducation()) { - if (!getEchighereducation().isInitialized()) { - - return false; - } - } - if (hasEcinternationalorganizationeurinterests()) { - if (!getEcinternationalorganizationeurinterests().isInitialized()) { - - return false; - } - } - if (hasEcinternationalorganization()) { - if (!getEcinternationalorganization().isInitialized()) { - - return false; - } - } - if (hasEcenterprise()) { - if (!getEcenterprise().isInitialized()) { - - return false; - } - } - if (hasEcsmevalidated()) { - if (!getEcsmevalidated().isInitialized()) { - - return false; - } - } - if (hasEcnutscode()) { - if (!getEcnutscode().isInitialized()) { - - return false; - } - } - if (hasCountry()) { - if (!getCountry().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLegalshortname()) { - subBuilder.mergeFrom(getLegalshortname()); - } - input.readMessage(subBuilder, extensionRegistry); - setLegalshortname(subBuilder.buildPartial()); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLegalname()) { - subBuilder.mergeFrom(getLegalname()); - } - input.readMessage(subBuilder, extensionRegistry); - setLegalname(subBuilder.buildPartial()); - break; - } - case 26: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasWebsiteurl()) { - subBuilder.mergeFrom(getWebsiteurl()); - } - input.readMessage(subBuilder, extensionRegistry); - setWebsiteurl(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLogourl()) { - subBuilder.mergeFrom(getLogourl()); - } - input.readMessage(subBuilder, extensionRegistry); - setLogourl(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEclegalbody()) { - subBuilder.mergeFrom(getEclegalbody()); - } - input.readMessage(subBuilder, extensionRegistry); - setEclegalbody(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEclegalperson()) { - subBuilder.mergeFrom(getEclegalperson()); - } - input.readMessage(subBuilder, extensionRegistry); - setEclegalperson(subBuilder.buildPartial()); - break; - } - case 58: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcnonprofit()) { - subBuilder.mergeFrom(getEcnonprofit()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcnonprofit(subBuilder.buildPartial()); - break; - } - case 66: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcresearchorganization()) { - subBuilder.mergeFrom(getEcresearchorganization()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcresearchorganization(subBuilder.buildPartial()); - break; - } - case 74: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEchighereducation()) { - subBuilder.mergeFrom(getEchighereducation()); - } - input.readMessage(subBuilder, extensionRegistry); - setEchighereducation(subBuilder.buildPartial()); - break; - } - case 82: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcinternationalorganizationeurinterests()) { - subBuilder.mergeFrom(getEcinternationalorganizationeurinterests()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcinternationalorganizationeurinterests(subBuilder.buildPartial()); - break; - } - case 90: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcinternationalorganization()) { - subBuilder.mergeFrom(getEcinternationalorganization()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcinternationalorganization(subBuilder.buildPartial()); - break; - } - case 98: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcenterprise()) { - subBuilder.mergeFrom(getEcenterprise()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcenterprise(subBuilder.buildPartial()); - break; - } - case 106: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcsmevalidated()) { - subBuilder.mergeFrom(getEcsmevalidated()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcsmevalidated(subBuilder.buildPartial()); - break; - } - case 114: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcnutscode()) { - subBuilder.mergeFrom(getEcnutscode()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcnutscode(subBuilder.buildPartial()); - break; - } - case 130: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasCountry()) { - subBuilder.mergeFrom(getCountry()); - } - input.readMessage(subBuilder, extensionRegistry); - setCountry(subBuilder.buildPartial()); - break; - } - case 138: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addAlternativeNames(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.StringField legalshortname = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField legalshortname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> legalshortnameBuilder_; - public boolean hasLegalshortname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalshortname() { - if (legalshortnameBuilder_ == null) { - return legalshortname_; - } else { - return legalshortnameBuilder_.getMessage(); - } - } - public Builder setLegalshortname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (legalshortnameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - legalshortname_ = value; - onChanged(); - } else { - legalshortnameBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setLegalshortname( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (legalshortnameBuilder_ == null) { - legalshortname_ = builderForValue.build(); - onChanged(); - } else { - legalshortnameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeLegalshortname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (legalshortnameBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - legalshortname_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - legalshortname_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(legalshortname_).mergeFrom(value).buildPartial(); - } else { - legalshortname_ = value; - } - onChanged(); - } else { - legalshortnameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearLegalshortname() { - if (legalshortnameBuilder_ == null) { - legalshortname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - legalshortnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLegalshortnameBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getLegalshortnameFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalshortnameOrBuilder() { - if (legalshortnameBuilder_ != null) { - return legalshortnameBuilder_.getMessageOrBuilder(); - } else { - return legalshortname_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLegalshortnameFieldBuilder() { - if (legalshortnameBuilder_ == null) { - legalshortnameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - legalshortname_, - getParentForChildren(), - isClean()); - legalshortname_ = null; - } - return legalshortnameBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField legalname = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField legalname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> legalnameBuilder_; - public boolean hasLegalname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLegalname() { - if (legalnameBuilder_ == null) { - return legalname_; - } else { - return legalnameBuilder_.getMessage(); - } - } - public Builder setLegalname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (legalnameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - legalname_ = value; - onChanged(); - } else { - legalnameBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setLegalname( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (legalnameBuilder_ == null) { - legalname_ = builderForValue.build(); - onChanged(); - } else { - legalnameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeLegalname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (legalnameBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - legalname_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - legalname_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(legalname_).mergeFrom(value).buildPartial(); - } else { - legalname_ = value; - } - onChanged(); - } else { - legalnameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearLegalname() { - if (legalnameBuilder_ == null) { - legalname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - legalnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLegalnameBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getLegalnameFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLegalnameOrBuilder() { - if (legalnameBuilder_ != null) { - return legalnameBuilder_.getMessageOrBuilder(); - } else { - return legalname_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLegalnameFieldBuilder() { - if (legalnameBuilder_ == null) { - legalnameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - legalname_, - getParentForChildren(), - isClean()); - legalname_ = null; - } - return legalnameBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField alternativeNames = 17; - private java.util.List alternativeNames_ = - java.util.Collections.emptyList(); - private void ensureAlternativeNamesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - alternativeNames_ = new java.util.ArrayList(alternativeNames_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> alternativeNamesBuilder_; - - public java.util.List getAlternativeNamesList() { - if (alternativeNamesBuilder_ == null) { - return java.util.Collections.unmodifiableList(alternativeNames_); - } else { - return alternativeNamesBuilder_.getMessageList(); - } - } - public int getAlternativeNamesCount() { - if (alternativeNamesBuilder_ == null) { - return alternativeNames_.size(); - } else { - return alternativeNamesBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAlternativeNames(int index) { - if (alternativeNamesBuilder_ == null) { - return alternativeNames_.get(index); - } else { - return alternativeNamesBuilder_.getMessage(index); - } - } - public Builder setAlternativeNames( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (alternativeNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeNamesIsMutable(); - alternativeNames_.set(index, value); - onChanged(); - } else { - alternativeNamesBuilder_.setMessage(index, value); - } - return this; - } - public Builder setAlternativeNames( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (alternativeNamesBuilder_ == null) { - ensureAlternativeNamesIsMutable(); - alternativeNames_.set(index, builderForValue.build()); - onChanged(); - } else { - alternativeNamesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAlternativeNames(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (alternativeNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeNamesIsMutable(); - alternativeNames_.add(value); - onChanged(); - } else { - alternativeNamesBuilder_.addMessage(value); - } - return this; - } - public Builder addAlternativeNames( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (alternativeNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeNamesIsMutable(); - alternativeNames_.add(index, value); - onChanged(); - } else { - alternativeNamesBuilder_.addMessage(index, value); - } - return this; - } - public Builder addAlternativeNames( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (alternativeNamesBuilder_ == null) { - ensureAlternativeNamesIsMutable(); - alternativeNames_.add(builderForValue.build()); - onChanged(); - } else { - alternativeNamesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addAlternativeNames( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (alternativeNamesBuilder_ == null) { - ensureAlternativeNamesIsMutable(); - alternativeNames_.add(index, builderForValue.build()); - onChanged(); - } else { - alternativeNamesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllAlternativeNames( - java.lang.Iterable values) { - if (alternativeNamesBuilder_ == null) { - ensureAlternativeNamesIsMutable(); - super.addAll(values, alternativeNames_); - onChanged(); - } else { - alternativeNamesBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearAlternativeNames() { - if (alternativeNamesBuilder_ == null) { - alternativeNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - alternativeNamesBuilder_.clear(); - } - return this; - } - public Builder removeAlternativeNames(int index) { - if (alternativeNamesBuilder_ == null) { - ensureAlternativeNamesIsMutable(); - alternativeNames_.remove(index); - onChanged(); - } else { - alternativeNamesBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getAlternativeNamesBuilder( - int index) { - return getAlternativeNamesFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAlternativeNamesOrBuilder( - int index) { - if (alternativeNamesBuilder_ == null) { - return alternativeNames_.get(index); } else { - return alternativeNamesBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getAlternativeNamesOrBuilderList() { - if (alternativeNamesBuilder_ != null) { - return alternativeNamesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(alternativeNames_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAlternativeNamesBuilder() { - return getAlternativeNamesFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addAlternativeNamesBuilder( - int index) { - return getAlternativeNamesFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getAlternativeNamesBuilderList() { - return getAlternativeNamesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getAlternativeNamesFieldBuilder() { - if (alternativeNamesBuilder_ == null) { - alternativeNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - alternativeNames_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - alternativeNames_ = null; - } - return alternativeNamesBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> websiteurlBuilder_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - if (websiteurlBuilder_ == null) { - return websiteurl_; - } else { - return websiteurlBuilder_.getMessage(); - } - } - public Builder setWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - websiteurl_ = value; - onChanged(); - } else { - websiteurlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder setWebsiteurl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (websiteurlBuilder_ == null) { - websiteurl_ = builderForValue.build(); - onChanged(); - } else { - websiteurlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder mergeWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - websiteurl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - websiteurl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(websiteurl_).mergeFrom(value).buildPartial(); - } else { - websiteurl_ = value; - } - onChanged(); - } else { - websiteurlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder clearWebsiteurl() { - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getWebsiteurlBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getWebsiteurlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - if (websiteurlBuilder_ != null) { - return websiteurlBuilder_.getMessageOrBuilder(); - } else { - return websiteurl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getWebsiteurlFieldBuilder() { - if (websiteurlBuilder_ == null) { - websiteurlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - websiteurl_, - getParentForChildren(), - isClean()); - websiteurl_ = null; - } - return websiteurlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField logourl = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> logourlBuilder_; - public boolean hasLogourl() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLogourl() { - if (logourlBuilder_ == null) { - return logourl_; - } else { - return logourlBuilder_.getMessage(); - } - } - public Builder setLogourl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (logourlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - logourl_ = value; - onChanged(); - } else { - logourlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder setLogourl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (logourlBuilder_ == null) { - logourl_ = builderForValue.build(); - onChanged(); - } else { - logourlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder mergeLogourl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (logourlBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - logourl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - logourl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(logourl_).mergeFrom(value).buildPartial(); - } else { - logourl_ = value; - } - onChanged(); - } else { - logourlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder clearLogourl() { - if (logourlBuilder_ == null) { - logourl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - logourlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLogourlBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getLogourlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLogourlOrBuilder() { - if (logourlBuilder_ != null) { - return logourlBuilder_.getMessageOrBuilder(); - } else { - return logourl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLogourlFieldBuilder() { - if (logourlBuilder_ == null) { - logourlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - logourl_, - getParentForChildren(), - isClean()); - logourl_ = null; - } - return logourlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField eclegalbody = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField eclegalbody_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> eclegalbodyBuilder_; - public boolean hasEclegalbody() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalbody() { - if (eclegalbodyBuilder_ == null) { - return eclegalbody_; - } else { - return eclegalbodyBuilder_.getMessage(); - } - } - public Builder setEclegalbody(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (eclegalbodyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eclegalbody_ = value; - onChanged(); - } else { - eclegalbodyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder setEclegalbody( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (eclegalbodyBuilder_ == null) { - eclegalbody_ = builderForValue.build(); - onChanged(); - } else { - eclegalbodyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder mergeEclegalbody(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (eclegalbodyBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - eclegalbody_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - eclegalbody_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(eclegalbody_).mergeFrom(value).buildPartial(); - } else { - eclegalbody_ = value; - } - onChanged(); - } else { - eclegalbodyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder clearEclegalbody() { - if (eclegalbodyBuilder_ == null) { - eclegalbody_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - eclegalbodyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEclegalbodyBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEclegalbodyFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalbodyOrBuilder() { - if (eclegalbodyBuilder_ != null) { - return eclegalbodyBuilder_.getMessageOrBuilder(); - } else { - return eclegalbody_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEclegalbodyFieldBuilder() { - if (eclegalbodyBuilder_ == null) { - eclegalbodyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - eclegalbody_, - getParentForChildren(), - isClean()); - eclegalbody_ = null; - } - return eclegalbodyBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField eclegalperson = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField eclegalperson_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> eclegalpersonBuilder_; - public boolean hasEclegalperson() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEclegalperson() { - if (eclegalpersonBuilder_ == null) { - return eclegalperson_; - } else { - return eclegalpersonBuilder_.getMessage(); - } - } - public Builder setEclegalperson(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (eclegalpersonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eclegalperson_ = value; - onChanged(); - } else { - eclegalpersonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setEclegalperson( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (eclegalpersonBuilder_ == null) { - eclegalperson_ = builderForValue.build(); - onChanged(); - } else { - eclegalpersonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeEclegalperson(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (eclegalpersonBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - eclegalperson_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - eclegalperson_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(eclegalperson_).mergeFrom(value).buildPartial(); - } else { - eclegalperson_ = value; - } - onChanged(); - } else { - eclegalpersonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearEclegalperson() { - if (eclegalpersonBuilder_ == null) { - eclegalperson_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - eclegalpersonBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEclegalpersonBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getEclegalpersonFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEclegalpersonOrBuilder() { - if (eclegalpersonBuilder_ != null) { - return eclegalpersonBuilder_.getMessageOrBuilder(); - } else { - return eclegalperson_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEclegalpersonFieldBuilder() { - if (eclegalpersonBuilder_ == null) { - eclegalpersonBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - eclegalperson_, - getParentForChildren(), - isClean()); - eclegalperson_ = null; - } - return eclegalpersonBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecnonprofit = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecnonprofit_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecnonprofitBuilder_; - public boolean hasEcnonprofit() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnonprofit() { - if (ecnonprofitBuilder_ == null) { - return ecnonprofit_; - } else { - return ecnonprofitBuilder_.getMessage(); - } - } - public Builder setEcnonprofit(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecnonprofitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecnonprofit_ = value; - onChanged(); - } else { - ecnonprofitBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setEcnonprofit( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecnonprofitBuilder_ == null) { - ecnonprofit_ = builderForValue.build(); - onChanged(); - } else { - ecnonprofitBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeEcnonprofit(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecnonprofitBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - ecnonprofit_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecnonprofit_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecnonprofit_).mergeFrom(value).buildPartial(); - } else { - ecnonprofit_ = value; - } - onChanged(); - } else { - ecnonprofitBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearEcnonprofit() { - if (ecnonprofitBuilder_ == null) { - ecnonprofit_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecnonprofitBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcnonprofitBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getEcnonprofitFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnonprofitOrBuilder() { - if (ecnonprofitBuilder_ != null) { - return ecnonprofitBuilder_.getMessageOrBuilder(); - } else { - return ecnonprofit_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcnonprofitFieldBuilder() { - if (ecnonprofitBuilder_ == null) { - ecnonprofitBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecnonprofit_, - getParentForChildren(), - isClean()); - ecnonprofit_ = null; - } - return ecnonprofitBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecresearchorganization = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecresearchorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecresearchorganizationBuilder_; - public boolean hasEcresearchorganization() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcresearchorganization() { - if (ecresearchorganizationBuilder_ == null) { - return ecresearchorganization_; - } else { - return ecresearchorganizationBuilder_.getMessage(); - } - } - public Builder setEcresearchorganization(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecresearchorganizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecresearchorganization_ = value; - onChanged(); - } else { - ecresearchorganizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder setEcresearchorganization( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecresearchorganizationBuilder_ == null) { - ecresearchorganization_ = builderForValue.build(); - onChanged(); - } else { - ecresearchorganizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder mergeEcresearchorganization(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecresearchorganizationBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - ecresearchorganization_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecresearchorganization_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecresearchorganization_).mergeFrom(value).buildPartial(); - } else { - ecresearchorganization_ = value; - } - onChanged(); - } else { - ecresearchorganizationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder clearEcresearchorganization() { - if (ecresearchorganizationBuilder_ == null) { - ecresearchorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecresearchorganizationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcresearchorganizationBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getEcresearchorganizationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcresearchorganizationOrBuilder() { - if (ecresearchorganizationBuilder_ != null) { - return ecresearchorganizationBuilder_.getMessageOrBuilder(); - } else { - return ecresearchorganization_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcresearchorganizationFieldBuilder() { - if (ecresearchorganizationBuilder_ == null) { - ecresearchorganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecresearchorganization_, - getParentForChildren(), - isClean()); - ecresearchorganization_ = null; - } - return ecresearchorganizationBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField echighereducation = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField echighereducation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> echighereducationBuilder_; - public boolean hasEchighereducation() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEchighereducation() { - if (echighereducationBuilder_ == null) { - return echighereducation_; - } else { - return echighereducationBuilder_.getMessage(); - } - } - public Builder setEchighereducation(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (echighereducationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - echighereducation_ = value; - onChanged(); - } else { - echighereducationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder setEchighereducation( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (echighereducationBuilder_ == null) { - echighereducation_ = builderForValue.build(); - onChanged(); - } else { - echighereducationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder mergeEchighereducation(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (echighereducationBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - echighereducation_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - echighereducation_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(echighereducation_).mergeFrom(value).buildPartial(); - } else { - echighereducation_ = value; - } - onChanged(); - } else { - echighereducationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder clearEchighereducation() { - if (echighereducationBuilder_ == null) { - echighereducation_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - echighereducationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEchighereducationBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getEchighereducationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEchighereducationOrBuilder() { - if (echighereducationBuilder_ != null) { - return echighereducationBuilder_.getMessageOrBuilder(); - } else { - return echighereducation_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEchighereducationFieldBuilder() { - if (echighereducationBuilder_ == null) { - echighereducationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - echighereducation_, - getParentForChildren(), - isClean()); - echighereducation_ = null; - } - return echighereducationBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganizationeurinterests = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecinternationalorganizationeurinterests_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecinternationalorganizationeurinterestsBuilder_; - public boolean hasEcinternationalorganizationeurinterests() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganizationeurinterests() { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - return ecinternationalorganizationeurinterests_; - } else { - return ecinternationalorganizationeurinterestsBuilder_.getMessage(); - } - } - public Builder setEcinternationalorganizationeurinterests(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecinternationalorganizationeurinterests_ = value; - onChanged(); - } else { - ecinternationalorganizationeurinterestsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder setEcinternationalorganizationeurinterests( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - ecinternationalorganizationeurinterests_ = builderForValue.build(); - onChanged(); - } else { - ecinternationalorganizationeurinterestsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder mergeEcinternationalorganizationeurinterests(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - ecinternationalorganizationeurinterests_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecinternationalorganizationeurinterests_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecinternationalorganizationeurinterests_).mergeFrom(value).buildPartial(); - } else { - ecinternationalorganizationeurinterests_ = value; - } - onChanged(); - } else { - ecinternationalorganizationeurinterestsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder clearEcinternationalorganizationeurinterests() { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - ecinternationalorganizationeurinterests_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecinternationalorganizationeurinterestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcinternationalorganizationeurinterestsBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getEcinternationalorganizationeurinterestsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationeurinterestsOrBuilder() { - if (ecinternationalorganizationeurinterestsBuilder_ != null) { - return ecinternationalorganizationeurinterestsBuilder_.getMessageOrBuilder(); - } else { - return ecinternationalorganizationeurinterests_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcinternationalorganizationeurinterestsFieldBuilder() { - if (ecinternationalorganizationeurinterestsBuilder_ == null) { - ecinternationalorganizationeurinterestsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecinternationalorganizationeurinterests_, - getParentForChildren(), - isClean()); - ecinternationalorganizationeurinterests_ = null; - } - return ecinternationalorganizationeurinterestsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecinternationalorganization = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecinternationalorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecinternationalorganizationBuilder_; - public boolean hasEcinternationalorganization() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcinternationalorganization() { - if (ecinternationalorganizationBuilder_ == null) { - return ecinternationalorganization_; - } else { - return ecinternationalorganizationBuilder_.getMessage(); - } - } - public Builder setEcinternationalorganization(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecinternationalorganizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecinternationalorganization_ = value; - onChanged(); - } else { - ecinternationalorganizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder setEcinternationalorganization( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecinternationalorganizationBuilder_ == null) { - ecinternationalorganization_ = builderForValue.build(); - onChanged(); - } else { - ecinternationalorganizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder mergeEcinternationalorganization(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecinternationalorganizationBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - ecinternationalorganization_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecinternationalorganization_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecinternationalorganization_).mergeFrom(value).buildPartial(); - } else { - ecinternationalorganization_ = value; - } - onChanged(); - } else { - ecinternationalorganizationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder clearEcinternationalorganization() { - if (ecinternationalorganizationBuilder_ == null) { - ecinternationalorganization_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecinternationalorganizationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcinternationalorganizationBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getEcinternationalorganizationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcinternationalorganizationOrBuilder() { - if (ecinternationalorganizationBuilder_ != null) { - return ecinternationalorganizationBuilder_.getMessageOrBuilder(); - } else { - return ecinternationalorganization_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcinternationalorganizationFieldBuilder() { - if (ecinternationalorganizationBuilder_ == null) { - ecinternationalorganizationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecinternationalorganization_, - getParentForChildren(), - isClean()); - ecinternationalorganization_ = null; - } - return ecinternationalorganizationBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecenterprise = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecenterprise_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecenterpriseBuilder_; - public boolean hasEcenterprise() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcenterprise() { - if (ecenterpriseBuilder_ == null) { - return ecenterprise_; - } else { - return ecenterpriseBuilder_.getMessage(); - } - } - public Builder setEcenterprise(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecenterpriseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecenterprise_ = value; - onChanged(); - } else { - ecenterpriseBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - return this; - } - public Builder setEcenterprise( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecenterpriseBuilder_ == null) { - ecenterprise_ = builderForValue.build(); - onChanged(); - } else { - ecenterpriseBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - return this; - } - public Builder mergeEcenterprise(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecenterpriseBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - ecenterprise_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecenterprise_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecenterprise_).mergeFrom(value).buildPartial(); - } else { - ecenterprise_ = value; - } - onChanged(); - } else { - ecenterpriseBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00001000; - return this; - } - public Builder clearEcenterprise() { - if (ecenterpriseBuilder_ == null) { - ecenterprise_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecenterpriseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcenterpriseBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getEcenterpriseFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcenterpriseOrBuilder() { - if (ecenterpriseBuilder_ != null) { - return ecenterpriseBuilder_.getMessageOrBuilder(); - } else { - return ecenterprise_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcenterpriseFieldBuilder() { - if (ecenterpriseBuilder_ == null) { - ecenterpriseBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecenterprise_, - getParentForChildren(), - isClean()); - ecenterprise_ = null; - } - return ecenterpriseBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecsmevalidated = 13; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecsmevalidated_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecsmevalidatedBuilder_; - public boolean hasEcsmevalidated() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsmevalidated() { - if (ecsmevalidatedBuilder_ == null) { - return ecsmevalidated_; - } else { - return ecsmevalidatedBuilder_.getMessage(); - } - } - public Builder setEcsmevalidated(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecsmevalidatedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecsmevalidated_ = value; - onChanged(); - } else { - ecsmevalidatedBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder setEcsmevalidated( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecsmevalidatedBuilder_ == null) { - ecsmevalidated_ = builderForValue.build(); - onChanged(); - } else { - ecsmevalidatedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder mergeEcsmevalidated(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecsmevalidatedBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - ecsmevalidated_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecsmevalidated_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecsmevalidated_).mergeFrom(value).buildPartial(); - } else { - ecsmevalidated_ = value; - } - onChanged(); - } else { - ecsmevalidatedBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - return this; - } - public Builder clearEcsmevalidated() { - if (ecsmevalidatedBuilder_ == null) { - ecsmevalidated_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecsmevalidatedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcsmevalidatedBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getEcsmevalidatedFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsmevalidatedOrBuilder() { - if (ecsmevalidatedBuilder_ != null) { - return ecsmevalidatedBuilder_.getMessageOrBuilder(); - } else { - return ecsmevalidated_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcsmevalidatedFieldBuilder() { - if (ecsmevalidatedBuilder_ == null) { - ecsmevalidatedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecsmevalidated_, - getParentForChildren(), - isClean()); - ecsmevalidated_ = null; - } - return ecsmevalidatedBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecnutscode = 14; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecnutscode_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecnutscodeBuilder_; - public boolean hasEcnutscode() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcnutscode() { - if (ecnutscodeBuilder_ == null) { - return ecnutscode_; - } else { - return ecnutscodeBuilder_.getMessage(); - } - } - public Builder setEcnutscode(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecnutscodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecnutscode_ = value; - onChanged(); - } else { - ecnutscodeBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder setEcnutscode( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecnutscodeBuilder_ == null) { - ecnutscode_ = builderForValue.build(); - onChanged(); - } else { - ecnutscodeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder mergeEcnutscode(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecnutscodeBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - ecnutscode_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecnutscode_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecnutscode_).mergeFrom(value).buildPartial(); - } else { - ecnutscode_ = value; - } - onChanged(); - } else { - ecnutscodeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder clearEcnutscode() { - if (ecnutscodeBuilder_ == null) { - ecnutscode_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecnutscodeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcnutscodeBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getEcnutscodeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcnutscodeOrBuilder() { - if (ecnutscodeBuilder_ != null) { - return ecnutscodeBuilder_.getMessageOrBuilder(); - } else { - return ecnutscode_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcnutscodeFieldBuilder() { - if (ecnutscodeBuilder_ == null) { - ecnutscodeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecnutscode_, - getParentForChildren(), - isClean()); - ecnutscode_ = null; - } - return ecnutscodeBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier country = 16; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier country_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> countryBuilder_; - public boolean hasCountry() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry() { - if (countryBuilder_ == null) { - return country_; - } else { - return countryBuilder_.getMessage(); - } - } - public Builder setCountry(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (countryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - country_ = value; - onChanged(); - } else { - countryBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder setCountry( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (countryBuilder_ == null) { - country_ = builderForValue.build(); - onChanged(); - } else { - countryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder mergeCountry(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (countryBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - country_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - country_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(country_).mergeFrom(value).buildPartial(); - } else { - country_ = value; - } - onChanged(); - } else { - countryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder clearCountry() { - if (countryBuilder_ == null) { - country_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - countryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getCountryBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getCountryFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder() { - if (countryBuilder_ != null) { - return countryBuilder_.getMessageOrBuilder(); - } else { - return country_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getCountryFieldBuilder() { - if (countryBuilder_ == null) { - countryBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - country_, - getParentForChildren(), - isClean()); - country_ = null; - } - return countryBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Organization.Metadata) - } - - static { - defaultInstance = new Metadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Organization.Metadata) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Organization.Metadata metadata = 2; - public static final int METADATA_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata metadata_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata getMetadata() { - return metadata_; - } - public eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder getMetadataOrBuilder() { - return metadata_; - } - - private void initFields() { - metadata_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, metadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metadata_); - } - 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.OrganizationProtos.Organization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization 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.OrganizationProtos.Organization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization 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.OrganizationProtos.Organization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization 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.OrganizationProtos.Organization 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.OrganizationProtos.Organization 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.OrganizationProtos.Organization parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.OrganizationProtos.Organization 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.OrganizationProtos.Organization 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 - implements eu.dnetlib.data.proto.OrganizationProtos.OrganizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.OrganizationProtos.internal_static_eu_dnetlib_data_proto_Organization_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.OrganizationProtos.Organization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.OrganizationProtos.Organization.getDescriptor(); - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization getDefaultInstanceForType() { - return eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization build() { - eu.dnetlib.data.proto.OrganizationProtos.Organization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.OrganizationProtos.Organization buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.OrganizationProtos.Organization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.OrganizationProtos.Organization buildPartial() { - eu.dnetlib.data.proto.OrganizationProtos.Organization result = new eu.dnetlib.data.proto.OrganizationProtos.Organization(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.OrganizationProtos.Organization) { - return mergeFrom((eu.dnetlib.data.proto.OrganizationProtos.Organization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.OrganizationProtos.Organization other) { - if (other == eu.dnetlib.data.proto.OrganizationProtos.Organization.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 18: { - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder subBuilder = eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.newBuilder(); - if (hasMetadata()) { - subBuilder.mergeFrom(getMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Organization.Metadata metadata = 2; - private eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata metadata_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata, eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder, eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder> metadataBuilder_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - public Builder setMetadata(eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setMetadata( - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeMetadata(eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance()) { - metadata_ = - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.getDefaultInstance(); - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata, eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder, eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata, eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder, eu.dnetlib.data.proto.OrganizationProtos.Organization.MetadataOrBuilder>( - metadata_, - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Organization) - } - - static { - defaultInstance = new Organization(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Organization) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Organization_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Organization_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Organization_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Organization_Metadata_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\022Organization.proto\022\025eu.dnetlib.data.pr" + - "oto\032\017FieldType.proto\"\250\010\n\014Organization\022>\n" + - "\010metadata\030\002 \001(\0132,.eu.dnetlib.data.proto." + - "Organization.Metadata\032\327\007\n\010Metadata\022:\n\016le" + - "galshortname\030\001 \001(\0132\".eu.dnetlib.data.pro" + - "to.StringField\0225\n\tlegalname\030\002 \001(\0132\".eu.d" + - "netlib.data.proto.StringField\022<\n\020alterna" + - "tiveNames\030\021 \003(\0132\".eu.dnetlib.data.proto." + - "StringField\0226\n\nwebsiteurl\030\003 \001(\0132\".eu.dne" + - "tlib.data.proto.StringField\0223\n\007logourl\030\004", - " \001(\0132\".eu.dnetlib.data.proto.StringField" + - "\0227\n\013eclegalbody\030\005 \001(\0132\".eu.dnetlib.data." + - "proto.StringField\0229\n\reclegalperson\030\006 \001(\013" + - "2\".eu.dnetlib.data.proto.StringField\0227\n\013" + - "ecnonprofit\030\007 \001(\0132\".eu.dnetlib.data.prot" + - "o.StringField\022B\n\026ecresearchorganization\030" + - "\010 \001(\0132\".eu.dnetlib.data.proto.StringFiel" + - "d\022=\n\021echighereducation\030\t \001(\0132\".eu.dnetli" + - "b.data.proto.StringField\022S\n\'ecinternatio" + - "nalorganizationeurinterests\030\n \001(\0132\".eu.d", - "netlib.data.proto.StringField\022G\n\033ecinter" + - "nationalorganization\030\013 \001(\0132\".eu.dnetlib." + - "data.proto.StringField\0228\n\014ecenterprise\030\014" + - " \001(\0132\".eu.dnetlib.data.proto.StringField" + - "\022:\n\016ecsmevalidated\030\r \001(\0132\".eu.dnetlib.da" + - "ta.proto.StringField\0226\n\necnutscode\030\016 \001(\013" + - "2\".eu.dnetlib.data.proto.StringField\0221\n\007" + - "country\030\020 \001(\0132 .eu.dnetlib.data.proto.Qu" + - "alifierB+\n\025eu.dnetlib.data.protoB\022Organi" + - "zationProtos" - }; - 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_Organization_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Organization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Organization_descriptor, - new java.lang.String[] { "Metadata", }, - eu.dnetlib.data.proto.OrganizationProtos.Organization.class, - eu.dnetlib.data.proto.OrganizationProtos.Organization.Builder.class); - internal_static_eu_dnetlib_data_proto_Organization_Metadata_descriptor = - internal_static_eu_dnetlib_data_proto_Organization_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_Organization_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Organization_Metadata_descriptor, - new java.lang.String[] { "Legalshortname", "Legalname", "AlternativeNames", "Websiteurl", "Logourl", "Eclegalbody", "Eclegalperson", "Ecnonprofit", "Ecresearchorganization", "Echighereducation", "Ecinternationalorganizationeurinterests", "Ecinternationalorganization", "Ecenterprise", "Ecsmevalidated", "Ecnutscode", "Country", }, - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.class, - eu.dnetlib.data.proto.OrganizationProtos.Organization.Metadata.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/PersonProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/PersonProtos.java deleted file mode 100644 index 2c997d8..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/PersonProtos.java +++ /dev/null @@ -1,1752 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Person.proto - -package eu.dnetlib.data.proto; - -public final class PersonProtos { - private PersonProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface PersonOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Person.Metadata metadata = 2; - boolean hasMetadata(); - eu.dnetlib.data.proto.PersonProtos.Person.Metadata getMetadata(); - eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder getMetadataOrBuilder(); - } - public static final class Person extends - com.google.protobuf.GeneratedMessage - implements PersonOrBuilder { - // Use Person.newBuilder() to construct. - private Person(Builder builder) { - super(builder); - } - private Person(boolean noInit) {} - - private static final Person defaultInstance; - public static Person getDefaultInstance() { - return defaultInstance; - } - - public Person getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_fieldAccessorTable; - } - - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string fullname = 1; - boolean hasFullname(); - String getFullname(); - - // optional string firstname = 2; - boolean hasFirstname(); - String getFirstname(); - - // optional string lastname = 3; - boolean hasLastname(); - String getLastname(); - - // required string pubID = 4; - boolean hasPubID(); - String getPubID(); - - // optional string pubDOI = 5; - boolean hasPubDOI(); - String getPubDOI(); - - // optional string orcid = 6; - boolean hasOrcid(); - String getOrcid(); - - // required int32 rank = 7; - boolean hasRank(); - int getRank(); - - // repeated string coauthors = 8; - java.util.List getCoauthorsList(); - int getCoauthorsCount(); - String getCoauthors(int index); - - // repeated double topics = 9; - java.util.List getTopicsList(); - int getTopicsCount(); - double getTopics(int index); - - // required string area = 10; - boolean hasArea(); - String getArea(); - } - public static final class Metadata extends - com.google.protobuf.GeneratedMessage - implements MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(Builder builder) { - super(builder); - } - private Metadata(boolean noInit) {} - - private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { - return defaultInstance; - } - - public Metadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_Metadata_fieldAccessorTable; - } - - private int bitField0_; - // required string fullname = 1; - public static final int FULLNAME_FIELD_NUMBER = 1; - private java.lang.Object fullname_; - public boolean hasFullname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getFullname() { - java.lang.Object ref = fullname_; - 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)) { - fullname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getFullnameBytes() { - java.lang.Object ref = fullname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - fullname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string firstname = 2; - public static final int FIRSTNAME_FIELD_NUMBER = 2; - private java.lang.Object firstname_; - public boolean hasFirstname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getFirstname() { - java.lang.Object ref = firstname_; - 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)) { - firstname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getFirstnameBytes() { - java.lang.Object ref = firstname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - firstname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string lastname = 3; - public static final int LASTNAME_FIELD_NUMBER = 3; - private java.lang.Object lastname_; - public boolean hasLastname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getLastname() { - java.lang.Object ref = lastname_; - 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)) { - lastname_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getLastnameBytes() { - java.lang.Object ref = lastname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - lastname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string pubID = 4; - public static final int PUBID_FIELD_NUMBER = 4; - private java.lang.Object pubID_; - public boolean hasPubID() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getPubID() { - java.lang.Object ref = pubID_; - 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)) { - pubID_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPubIDBytes() { - java.lang.Object ref = pubID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - pubID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string pubDOI = 5; - public static final int PUBDOI_FIELD_NUMBER = 5; - private java.lang.Object pubDOI_; - public boolean hasPubDOI() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getPubDOI() { - java.lang.Object ref = pubDOI_; - 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)) { - pubDOI_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPubDOIBytes() { - java.lang.Object ref = pubDOI_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - pubDOI_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string orcid = 6; - public static final int ORCID_FIELD_NUMBER = 6; - private java.lang.Object orcid_; - public boolean hasOrcid() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getOrcid() { - java.lang.Object ref = orcid_; - 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)) { - orcid_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getOrcidBytes() { - java.lang.Object ref = orcid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - orcid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required int32 rank = 7; - public static final int RANK_FIELD_NUMBER = 7; - private int rank_; - public boolean hasRank() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public int getRank() { - return rank_; - } - - // repeated string coauthors = 8; - public static final int COAUTHORS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList coauthors_; - public java.util.List - getCoauthorsList() { - return coauthors_; - } - public int getCoauthorsCount() { - return coauthors_.size(); - } - public String getCoauthors(int index) { - return coauthors_.get(index); - } - - // repeated double topics = 9; - public static final int TOPICS_FIELD_NUMBER = 9; - private java.util.List topics_; - public java.util.List - getTopicsList() { - return topics_; - } - public int getTopicsCount() { - return topics_.size(); - } - public double getTopics(int index) { - return topics_.get(index); - } - - // required string area = 10; - public static final int AREA_FIELD_NUMBER = 10; - private java.lang.Object area_; - public boolean hasArea() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public String getArea() { - java.lang.Object ref = area_; - 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)) { - area_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getAreaBytes() { - java.lang.Object ref = area_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - area_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - fullname_ = ""; - firstname_ = ""; - lastname_ = ""; - pubID_ = ""; - pubDOI_ = ""; - orcid_ = ""; - rank_ = 0; - coauthors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - topics_ = java.util.Collections.emptyList();; - area_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasFullname()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPubID()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRank()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasArea()) { - 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.writeBytes(1, getFullnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFirstnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLastnameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getPubIDBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getPubDOIBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getOrcidBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, rank_); - } - for (int i = 0; i < coauthors_.size(); i++) { - output.writeBytes(8, coauthors_.getByteString(i)); - } - for (int i = 0; i < topics_.size(); i++) { - output.writeDouble(9, topics_.get(i)); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(10, getAreaBytes()); - } - 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 - .computeBytesSize(1, getFullnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFirstnameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLastnameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getPubIDBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getPubDOIBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getOrcidBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, rank_); - } - { - int dataSize = 0; - for (int i = 0; i < coauthors_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(coauthors_.getByteString(i)); - } - size += dataSize; - size += 1 * getCoauthorsList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getTopicsList().size(); - size += dataSize; - size += 1 * getTopicsList().size(); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getAreaBytes()); - } - 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.PersonProtos.Person.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person.Metadata 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.PersonProtos.Person.Metadata 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 - implements eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_Metadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.PersonProtos.Person.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - fullname_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - firstname_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - lastname_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - pubID_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - pubDOI_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - orcid_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - rank_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - coauthors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - topics_ = java.util.Collections.emptyList();; - bitField0_ = (bitField0_ & ~0x00000100); - area_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata build() { - eu.dnetlib.data.proto.PersonProtos.Person.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.PersonProtos.Person.Metadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.PersonProtos.Person.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata buildPartial() { - eu.dnetlib.data.proto.PersonProtos.Person.Metadata result = new eu.dnetlib.data.proto.PersonProtos.Person.Metadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.fullname_ = fullname_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.firstname_ = firstname_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lastname_ = lastname_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.pubID_ = pubID_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.pubDOI_ = pubDOI_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.orcid_ = orcid_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.rank_ = rank_; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - coauthors_ = new com.google.protobuf.UnmodifiableLazyStringList( - coauthors_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.coauthors_ = coauthors_; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - topics_ = java.util.Collections.unmodifiableList(topics_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.topics_ = topics_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; - } - result.area_ = area_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.PersonProtos.Person.Metadata) { - return mergeFrom((eu.dnetlib.data.proto.PersonProtos.Person.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.PersonProtos.Person.Metadata other) { - if (other == eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance()) return this; - if (other.hasFullname()) { - setFullname(other.getFullname()); - } - if (other.hasFirstname()) { - setFirstname(other.getFirstname()); - } - if (other.hasLastname()) { - setLastname(other.getLastname()); - } - if (other.hasPubID()) { - setPubID(other.getPubID()); - } - if (other.hasPubDOI()) { - setPubDOI(other.getPubDOI()); - } - if (other.hasOrcid()) { - setOrcid(other.getOrcid()); - } - if (other.hasRank()) { - setRank(other.getRank()); - } - if (!other.coauthors_.isEmpty()) { - if (coauthors_.isEmpty()) { - coauthors_ = other.coauthors_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureCoauthorsIsMutable(); - coauthors_.addAll(other.coauthors_); - } - onChanged(); - } - if (!other.topics_.isEmpty()) { - if (topics_.isEmpty()) { - topics_ = other.topics_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureTopicsIsMutable(); - topics_.addAll(other.topics_); - } - onChanged(); - } - if (other.hasArea()) { - setArea(other.getArea()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasFullname()) { - - return false; - } - if (!hasPubID()) { - - return false; - } - if (!hasRank()) { - - return false; - } - if (!hasArea()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - fullname_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - firstname_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - lastname_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - pubID_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - pubDOI_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - orcid_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - rank_ = input.readInt32(); - break; - } - case 66: { - ensureCoauthorsIsMutable(); - coauthors_.add(input.readBytes()); - break; - } - case 73: { - ensureTopicsIsMutable(); - topics_.add(input.readDouble()); - break; - } - case 74: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - addTopics(input.readDouble()); - } - input.popLimit(limit); - break; - } - case 82: { - bitField0_ |= 0x00000200; - area_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required string fullname = 1; - private java.lang.Object fullname_ = ""; - public boolean hasFullname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getFullname() { - java.lang.Object ref = fullname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - fullname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setFullname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - fullname_ = value; - onChanged(); - return this; - } - public Builder clearFullname() { - bitField0_ = (bitField0_ & ~0x00000001); - fullname_ = getDefaultInstance().getFullname(); - onChanged(); - return this; - } - void setFullname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - fullname_ = value; - onChanged(); - } - - // optional string firstname = 2; - private java.lang.Object firstname_ = ""; - public boolean hasFirstname() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getFirstname() { - java.lang.Object ref = firstname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - firstname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setFirstname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - firstname_ = value; - onChanged(); - return this; - } - public Builder clearFirstname() { - bitField0_ = (bitField0_ & ~0x00000002); - firstname_ = getDefaultInstance().getFirstname(); - onChanged(); - return this; - } - void setFirstname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - firstname_ = value; - onChanged(); - } - - // optional string lastname = 3; - private java.lang.Object lastname_ = ""; - public boolean hasLastname() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getLastname() { - java.lang.Object ref = lastname_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - lastname_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setLastname(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - lastname_ = value; - onChanged(); - return this; - } - public Builder clearLastname() { - bitField0_ = (bitField0_ & ~0x00000004); - lastname_ = getDefaultInstance().getLastname(); - onChanged(); - return this; - } - void setLastname(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - lastname_ = value; - onChanged(); - } - - // required string pubID = 4; - private java.lang.Object pubID_ = ""; - public boolean hasPubID() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getPubID() { - java.lang.Object ref = pubID_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - pubID_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setPubID(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - pubID_ = value; - onChanged(); - return this; - } - public Builder clearPubID() { - bitField0_ = (bitField0_ & ~0x00000008); - pubID_ = getDefaultInstance().getPubID(); - onChanged(); - return this; - } - void setPubID(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - pubID_ = value; - onChanged(); - } - - // optional string pubDOI = 5; - private java.lang.Object pubDOI_ = ""; - public boolean hasPubDOI() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getPubDOI() { - java.lang.Object ref = pubDOI_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - pubDOI_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setPubDOI(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - pubDOI_ = value; - onChanged(); - return this; - } - public Builder clearPubDOI() { - bitField0_ = (bitField0_ & ~0x00000010); - pubDOI_ = getDefaultInstance().getPubDOI(); - onChanged(); - return this; - } - void setPubDOI(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; - pubDOI_ = value; - onChanged(); - } - - // optional string orcid = 6; - private java.lang.Object orcid_ = ""; - public boolean hasOrcid() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getOrcid() { - java.lang.Object ref = orcid_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - orcid_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setOrcid(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - orcid_ = value; - onChanged(); - return this; - } - public Builder clearOrcid() { - bitField0_ = (bitField0_ & ~0x00000020); - orcid_ = getDefaultInstance().getOrcid(); - onChanged(); - return this; - } - void setOrcid(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000020; - orcid_ = value; - onChanged(); - } - - // required int32 rank = 7; - private int rank_ ; - public boolean hasRank() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public int getRank() { - return rank_; - } - public Builder setRank(int value) { - bitField0_ |= 0x00000040; - rank_ = value; - onChanged(); - return this; - } - public Builder clearRank() { - bitField0_ = (bitField0_ & ~0x00000040); - rank_ = 0; - onChanged(); - return this; - } - - // repeated string coauthors = 8; - private com.google.protobuf.LazyStringList coauthors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCoauthorsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - coauthors_ = new com.google.protobuf.LazyStringArrayList(coauthors_); - bitField0_ |= 0x00000080; - } - } - public java.util.List - getCoauthorsList() { - return java.util.Collections.unmodifiableList(coauthors_); - } - public int getCoauthorsCount() { - return coauthors_.size(); - } - public String getCoauthors(int index) { - return coauthors_.get(index); - } - public Builder setCoauthors( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoauthorsIsMutable(); - coauthors_.set(index, value); - onChanged(); - return this; - } - public Builder addCoauthors(String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoauthorsIsMutable(); - coauthors_.add(value); - onChanged(); - return this; - } - public Builder addAllCoauthors( - java.lang.Iterable values) { - ensureCoauthorsIsMutable(); - super.addAll(values, coauthors_); - onChanged(); - return this; - } - public Builder clearCoauthors() { - coauthors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - void addCoauthors(com.google.protobuf.ByteString value) { - ensureCoauthorsIsMutable(); - coauthors_.add(value); - onChanged(); - } - - // repeated double topics = 9; - private java.util.List topics_ = java.util.Collections.emptyList();; - private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - topics_ = new java.util.ArrayList(topics_); - bitField0_ |= 0x00000100; - } - } - public java.util.List - getTopicsList() { - return java.util.Collections.unmodifiableList(topics_); - } - public int getTopicsCount() { - return topics_.size(); - } - public double getTopics(int index) { - return topics_.get(index); - } - public Builder setTopics( - int index, double value) { - ensureTopicsIsMutable(); - topics_.set(index, value); - onChanged(); - return this; - } - public Builder addTopics(double value) { - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - public Builder addAllTopics( - java.lang.Iterable values) { - ensureTopicsIsMutable(); - super.addAll(values, topics_); - onChanged(); - return this; - } - public Builder clearTopics() { - topics_ = java.util.Collections.emptyList();; - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - // required string area = 10; - private java.lang.Object area_ = ""; - public boolean hasArea() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public String getArea() { - java.lang.Object ref = area_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - area_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setArea(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - area_ = value; - onChanged(); - return this; - } - public Builder clearArea() { - bitField0_ = (bitField0_ & ~0x00000200); - area_ = getDefaultInstance().getArea(); - onChanged(); - return this; - } - void setArea(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000200; - area_ = value; - onChanged(); - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Person.Metadata) - } - - static { - defaultInstance = new Metadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Person.Metadata) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Person.Metadata metadata = 2; - public static final int METADATA_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.PersonProtos.Person.Metadata metadata_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata getMetadata() { - return metadata_; - } - public eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder getMetadataOrBuilder() { - return metadata_; - } - - private void initFields() { - metadata_ = eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, metadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metadata_); - } - 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.PersonProtos.Person parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person 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.PersonProtos.Person parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person 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.PersonProtos.Person parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person 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.PersonProtos.Person 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.PersonProtos.Person 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.PersonProtos.Person parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.PersonProtos.Person 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.PersonProtos.Person 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 - implements eu.dnetlib.data.proto.PersonProtos.PersonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.PersonProtos.internal_static_eu_dnetlib_data_proto_Person_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.PersonProtos.Person.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.PersonProtos.Person.getDescriptor(); - } - - public eu.dnetlib.data.proto.PersonProtos.Person getDefaultInstanceForType() { - return eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.PersonProtos.Person build() { - eu.dnetlib.data.proto.PersonProtos.Person result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.PersonProtos.Person buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.PersonProtos.Person result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.PersonProtos.Person buildPartial() { - eu.dnetlib.data.proto.PersonProtos.Person result = new eu.dnetlib.data.proto.PersonProtos.Person(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.PersonProtos.Person) { - return mergeFrom((eu.dnetlib.data.proto.PersonProtos.Person)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.PersonProtos.Person other) { - if (other == eu.dnetlib.data.proto.PersonProtos.Person.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 18: { - eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder subBuilder = eu.dnetlib.data.proto.PersonProtos.Person.Metadata.newBuilder(); - if (hasMetadata()) { - subBuilder.mergeFrom(getMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Person.Metadata metadata = 2; - private eu.dnetlib.data.proto.PersonProtos.Person.Metadata metadata_ = eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.PersonProtos.Person.Metadata, eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder, eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder> metadataBuilder_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - public Builder setMetadata(eu.dnetlib.data.proto.PersonProtos.Person.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setMetadata( - eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeMetadata(eu.dnetlib.data.proto.PersonProtos.Person.Metadata value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance()) { - metadata_ = - eu.dnetlib.data.proto.PersonProtos.Person.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.PersonProtos.Person.Metadata.getDefaultInstance(); - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.PersonProtos.Person.Metadata, eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder, eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.PersonProtos.Person.Metadata, eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder, eu.dnetlib.data.proto.PersonProtos.Person.MetadataOrBuilder>( - metadata_, - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Person) - } - - static { - defaultInstance = new Person(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Person) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Person_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Person_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Person_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Person_Metadata_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\014Person.proto\022\025eu.dnetlib.data.proto\032\017F" + - "ieldType.proto\"\363\001\n\006Person\0228\n\010metadata\030\002 " + - "\001(\0132&.eu.dnetlib.data.proto.Person.Metad" + - "ata\032\256\001\n\010Metadata\022\020\n\010fullname\030\001 \002(\t\022\021\n\tfi" + - "rstname\030\002 \001(\t\022\020\n\010lastname\030\003 \001(\t\022\r\n\005pubID" + - "\030\004 \002(\t\022\016\n\006pubDOI\030\005 \001(\t\022\r\n\005orcid\030\006 \001(\t\022\014\n" + - "\004rank\030\007 \002(\005\022\021\n\tcoauthors\030\010 \003(\t\022\016\n\006topics" + - "\030\t \003(\001\022\014\n\004area\030\n \002(\tB%\n\025eu.dnetlib.data." + - "protoB\014PersonProtos" - }; - 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_Person_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Person_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Person_descriptor, - new java.lang.String[] { "Metadata", }, - eu.dnetlib.data.proto.PersonProtos.Person.class, - eu.dnetlib.data.proto.PersonProtos.Person.Builder.class); - internal_static_eu_dnetlib_data_proto_Person_Metadata_descriptor = - internal_static_eu_dnetlib_data_proto_Person_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_Person_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Person_Metadata_descriptor, - new java.lang.String[] { "Fullname", "Firstname", "Lastname", "PubID", "PubDOI", "Orcid", "Rank", "Coauthors", "Topics", "Area", }, - eu.dnetlib.data.proto.PersonProtos.Person.Metadata.class, - eu.dnetlib.data.proto.PersonProtos.Person.Metadata.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectOrganizationProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectOrganizationProtos.java deleted file mode 100644 index 7604c67..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectOrganizationProtos.java +++ /dev/null @@ -1,1112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Project_Organization.proto - -package eu.dnetlib.data.proto; - -public final class ProjectOrganizationProtos { - private ProjectOrganizationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ProjectOrganizationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.ProjectOrganization.Participation participation = 1; - boolean hasParticipation(); - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation getParticipation(); - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder getParticipationOrBuilder(); - } - public static final class ProjectOrganization extends - com.google.protobuf.GeneratedMessage - implements ProjectOrganizationOrBuilder { - // Use ProjectOrganization.newBuilder() to construct. - private ProjectOrganization(Builder builder) { - super(builder); - } - private ProjectOrganization(boolean noInit) {} - - private static final ProjectOrganization defaultInstance; - public static ProjectOrganization getDefaultInstance() { - return defaultInstance; - } - - public ProjectOrganization getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_fieldAccessorTable; - } - - public interface ParticipationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - - // optional string participantnumber = 2; - boolean hasParticipantnumber(); - String getParticipantnumber(); - } - public static final class Participation extends - com.google.protobuf.GeneratedMessage - implements ParticipationOrBuilder { - // Use Participation.newBuilder() to construct. - private Participation(Builder builder) { - super(builder); - } - private Participation(boolean noInit) {} - - private static final Participation defaultInstance; - public static Participation getDefaultInstance() { - return defaultInstance; - } - - public Participation getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isParticipant(0, 1), - hasParticipant(1, 2), - ; - - public static final int isParticipant_VALUE = 1; - public static final int hasParticipant_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isParticipant; - case 2: return hasParticipant; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isParticipant, hasParticipant, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ProjectOrganization.Participation.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - // optional string participantnumber = 2; - public static final int PARTICIPANTNUMBER_FIELD_NUMBER = 2; - private java.lang.Object participantnumber_; - public boolean hasParticipantnumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getParticipantnumber() { - java.lang.Object ref = participantnumber_; - 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)) { - participantnumber_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getParticipantnumberBytes() { - java.lang.Object ref = participantnumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - participantnumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - participantnumber_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getParticipantnumberBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getParticipantnumberBytes()); - } - 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.ProjectOrganizationProtos.ProjectOrganization.Participation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation 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.ProjectOrganizationProtos.ProjectOrganization.Participation 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 - implements eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - participantnumber_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDescriptor(); - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation build() { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation buildPartial() { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation result = new eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.participantnumber_ = participantnumber_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation) { - return mergeFrom((eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation other) { - if (other == eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - if (other.hasParticipantnumber()) { - setParticipantnumber(other.getParticipantnumber()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - case 18: { - bitField0_ |= 0x00000002; - participantnumber_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // optional string participantnumber = 2; - private java.lang.Object participantnumber_ = ""; - public boolean hasParticipantnumber() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getParticipantnumber() { - java.lang.Object ref = participantnumber_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - participantnumber_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setParticipantnumber(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - participantnumber_ = value; - onChanged(); - return this; - } - public Builder clearParticipantnumber() { - bitField0_ = (bitField0_ & ~0x00000002); - participantnumber_ = getDefaultInstance().getParticipantnumber(); - onChanged(); - return this; - } - void setParticipantnumber(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - participantnumber_ = value; - onChanged(); - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ProjectOrganization.Participation) - } - - static { - defaultInstance = new Participation(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ProjectOrganization.Participation) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.ProjectOrganization.Participation participation = 1; - public static final int PARTICIPATION_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation participation_; - public boolean hasParticipation() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation getParticipation() { - return participation_; - } - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder getParticipationOrBuilder() { - return participation_; - } - - private void initFields() { - participation_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasParticipation()) { - if (!getParticipation().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, participation_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, participation_); - } - 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.ProjectOrganizationProtos.ProjectOrganization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization 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.ProjectOrganizationProtos.ProjectOrganization 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 - implements eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.internal_static_eu_dnetlib_data_proto_ProjectOrganization_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getParticipationFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (participationBuilder_ == null) { - participation_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance(); - } else { - participationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDescriptor(); - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization build() { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization buildPartial() { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization result = new eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (participationBuilder_ == null) { - result.participation_ = participation_; - } else { - result.participation_ = participationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization) { - return mergeFrom((eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization other) { - if (other == eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.getDefaultInstance()) return this; - if (other.hasParticipation()) { - mergeParticipation(other.getParticipation()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasParticipation()) { - if (!getParticipation().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder subBuilder = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.newBuilder(); - if (hasParticipation()) { - subBuilder.mergeFrom(getParticipation()); - } - input.readMessage(subBuilder, extensionRegistry); - setParticipation(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.ProjectOrganization.Participation participation = 1; - private eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation participation_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder> participationBuilder_; - public boolean hasParticipation() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation getParticipation() { - if (participationBuilder_ == null) { - return participation_; - } else { - return participationBuilder_.getMessage(); - } - } - public Builder setParticipation(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation value) { - if (participationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - participation_ = value; - onChanged(); - } else { - participationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setParticipation( - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder builderForValue) { - if (participationBuilder_ == null) { - participation_ = builderForValue.build(); - onChanged(); - } else { - participationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeParticipation(eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation value) { - if (participationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - participation_ != eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance()) { - participation_ = - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.newBuilder(participation_).mergeFrom(value).buildPartial(); - } else { - participation_ = value; - } - onChanged(); - } else { - participationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearParticipation() { - if (participationBuilder_ == null) { - participation_ = eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.getDefaultInstance(); - onChanged(); - } else { - participationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder getParticipationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getParticipationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder getParticipationOrBuilder() { - if (participationBuilder_ != null) { - return participationBuilder_.getMessageOrBuilder(); - } else { - return participation_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder> - getParticipationFieldBuilder() { - if (participationBuilder_ == null) { - participationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder, eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.ParticipationOrBuilder>( - participation_, - getParentForChildren(), - isClean()); - participation_ = null; - } - return participationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ProjectOrganization) - } - - static { - defaultInstance = new ProjectOrganization(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ProjectOrganization) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ProjectOrganization_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ProjectOrganization_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_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\032Project_Organization.proto\022\025eu.dnetlib" + - ".data.proto\032\021RelMetadata.proto\"\376\001\n\023Proje" + - "ctOrganization\022O\n\rparticipation\030\001 \001(\01328." + - "eu.dnetlib.data.proto.ProjectOrganizatio" + - "n.Participation\032\225\001\n\rParticipation\0227\n\013rel" + - "Metadata\030\001 \002(\0132\".eu.dnetlib.data.proto.R" + - "elMetadata\022\031\n\021participantnumber\030\002 \001(\t\"0\n" + - "\007RelName\022\021\n\risParticipant\020\001\022\022\n\016hasPartic" + - "ipant\020\002B2\n\025eu.dnetlib.data.protoB\031Projec" + - "tOrganizationProtos" - }; - 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_ProjectOrganization_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_ProjectOrganization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ProjectOrganization_descriptor, - new java.lang.String[] { "Participation", }, - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.class, - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Builder.class); - internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_descriptor = - internal_static_eu_dnetlib_data_proto_ProjectOrganization_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ProjectOrganization_Participation_descriptor, - new java.lang.String[] { "RelMetadata", "Participantnumber", }, - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.class, - eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectProtos.java deleted file mode 100644 index 27ba77d..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ProjectProtos.java +++ /dev/null @@ -1,4486 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Project.proto - -package eu.dnetlib.data.proto; - -public final class ProjectProtos { - private ProjectProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ProjectOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Project.Metadata metadata = 2; - boolean hasMetadata(); - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata getMetadata(); - eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder getMetadataOrBuilder(); - } - public static final class Project extends - com.google.protobuf.GeneratedMessage - implements ProjectOrBuilder { - // Use Project.newBuilder() to construct. - private Project(Builder builder) { - super(builder); - } - private Project(boolean noInit) {} - - private static final Project defaultInstance; - public static Project getDefaultInstance() { - return defaultInstance; - } - - public Project getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_fieldAccessorTable; - } - - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 1; - boolean hasWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField code = 2; - boolean hasCode(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCode(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField acronym = 3; - boolean hasAcronym(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getAcronym(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAcronymOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField title = 4; - boolean hasTitle(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getTitle(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getTitleOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField startdate = 5; - boolean hasStartdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getStartdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStartdateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField enddate = 6; - boolean hasEnddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnddateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField callidentifier = 7; - boolean hasCallidentifier(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCallidentifier(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCallidentifierOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField keywords = 8; - boolean hasKeywords(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getKeywords(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getKeywordsOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField duration = 9; - boolean hasDuration(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDuration(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDurationOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecsc39 = 10; - boolean hasEcsc39(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsc39(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsc39OrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField oamandatepublications = 11; - boolean hasOamandatepublications(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOamandatepublications(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOamandatepublicationsOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField ecarticle29_3 = 12; - boolean hasEcarticle293(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcarticle293(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcarticle293OrBuilder(); - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 14; - java.util.List - getSubjectsList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index); - int getSubjectsCount(); - java.util.List - getSubjectsOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField fundingtree = 15; - java.util.List - getFundingtreeList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getFundingtree(int index); - int getFundingtreeCount(); - java.util.List - getFundingtreeOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFundingtreeOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.Qualifier contracttype = 13; - boolean hasContracttype(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getContracttype(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getContracttypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField optional1 = 16; - boolean hasOptional1(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional1(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional1OrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField optional2 = 17; - boolean hasOptional2(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional2(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional2OrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField jsonextrainfo = 18; - boolean hasJsonextrainfo(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getJsonextrainfo(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getJsonextrainfoOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField contactfullname = 19; - boolean hasContactfullname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfullname(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfullnameOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField contactfax = 20; - boolean hasContactfax(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfax(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfaxOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField contactphone = 21; - boolean hasContactphone(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactphone(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactphoneOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField contactemail = 22; - boolean hasContactemail(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder(); - } - public static final class Metadata extends - com.google.protobuf.GeneratedMessage - implements MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(Builder builder) { - super(builder); - } - private Metadata(boolean noInit) {} - - private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { - return defaultInstance; - } - - public Metadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_Metadata_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.StringField websiteurl = 1; - public static final int WEBSITEURL_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - return websiteurl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - return websiteurl_; - } - - // optional .eu.dnetlib.data.proto.StringField code = 2; - public static final int CODE_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField code_; - public boolean hasCode() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCode() { - return code_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeOrBuilder() { - return code_; - } - - // optional .eu.dnetlib.data.proto.StringField acronym = 3; - public static final int ACRONYM_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField acronym_; - public boolean hasAcronym() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAcronym() { - return acronym_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAcronymOrBuilder() { - return acronym_; - } - - // optional .eu.dnetlib.data.proto.StringField title = 4; - public static final int TITLE_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField title_; - public boolean hasTitle() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getTitle() { - return title_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getTitleOrBuilder() { - return title_; - } - - // optional .eu.dnetlib.data.proto.StringField startdate = 5; - public static final int STARTDATE_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField startdate_; - public boolean hasStartdate() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getStartdate() { - return startdate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStartdateOrBuilder() { - return startdate_; - } - - // optional .eu.dnetlib.data.proto.StringField enddate = 6; - public static final int ENDDATE_FIELD_NUMBER = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField enddate_; - public boolean hasEnddate() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnddate() { - return enddate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnddateOrBuilder() { - return enddate_; - } - - // optional .eu.dnetlib.data.proto.StringField callidentifier = 7; - public static final int CALLIDENTIFIER_FIELD_NUMBER = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField callidentifier_; - public boolean hasCallidentifier() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCallidentifier() { - return callidentifier_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCallidentifierOrBuilder() { - return callidentifier_; - } - - // optional .eu.dnetlib.data.proto.StringField keywords = 8; - public static final int KEYWORDS_FIELD_NUMBER = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField keywords_; - public boolean hasKeywords() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getKeywords() { - return keywords_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getKeywordsOrBuilder() { - return keywords_; - } - - // optional .eu.dnetlib.data.proto.StringField duration = 9; - public static final int DURATION_FIELD_NUMBER = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField duration_; - public boolean hasDuration() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDuration() { - return duration_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDurationOrBuilder() { - return duration_; - } - - // optional .eu.dnetlib.data.proto.StringField ecsc39 = 10; - public static final int ECSC39_FIELD_NUMBER = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecsc39_; - public boolean hasEcsc39() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsc39() { - return ecsc39_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsc39OrBuilder() { - return ecsc39_; - } - - // optional .eu.dnetlib.data.proto.StringField oamandatepublications = 11; - public static final int OAMANDATEPUBLICATIONS_FIELD_NUMBER = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField oamandatepublications_; - public boolean hasOamandatepublications() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOamandatepublications() { - return oamandatepublications_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOamandatepublicationsOrBuilder() { - return oamandatepublications_; - } - - // optional .eu.dnetlib.data.proto.StringField ecarticle29_3 = 12; - public static final int ECARTICLE29_3_FIELD_NUMBER = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecarticle293_; - public boolean hasEcarticle293() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcarticle293() { - return ecarticle293_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcarticle293OrBuilder() { - return ecarticle293_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 14; - public static final int SUBJECTS_FIELD_NUMBER = 14; - private java.util.List subjects_; - public java.util.List getSubjectsList() { - return subjects_; - } - public java.util.List - getSubjectsOrBuilderList() { - return subjects_; - } - public int getSubjectsCount() { - return subjects_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index) { - return subjects_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index) { - return subjects_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField fundingtree = 15; - public static final int FUNDINGTREE_FIELD_NUMBER = 15; - private java.util.List fundingtree_; - public java.util.List getFundingtreeList() { - return fundingtree_; - } - public java.util.List - getFundingtreeOrBuilderList() { - return fundingtree_; - } - public int getFundingtreeCount() { - return fundingtree_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFundingtree(int index) { - return fundingtree_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFundingtreeOrBuilder( - int index) { - return fundingtree_.get(index); - } - - // optional .eu.dnetlib.data.proto.Qualifier contracttype = 13; - public static final int CONTRACTTYPE_FIELD_NUMBER = 13; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier contracttype_; - public boolean hasContracttype() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getContracttype() { - return contracttype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getContracttypeOrBuilder() { - return contracttype_; - } - - // optional .eu.dnetlib.data.proto.StringField optional1 = 16; - public static final int OPTIONAL1_FIELD_NUMBER = 16; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField optional1_; - public boolean hasOptional1() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional1() { - return optional1_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional1OrBuilder() { - return optional1_; - } - - // optional .eu.dnetlib.data.proto.StringField optional2 = 17; - public static final int OPTIONAL2_FIELD_NUMBER = 17; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField optional2_; - public boolean hasOptional2() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional2() { - return optional2_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional2OrBuilder() { - return optional2_; - } - - // optional .eu.dnetlib.data.proto.StringField jsonextrainfo = 18; - public static final int JSONEXTRAINFO_FIELD_NUMBER = 18; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField jsonextrainfo_; - public boolean hasJsonextrainfo() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getJsonextrainfo() { - return jsonextrainfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getJsonextrainfoOrBuilder() { - return jsonextrainfo_; - } - - // optional .eu.dnetlib.data.proto.StringField contactfullname = 19; - public static final int CONTACTFULLNAME_FIELD_NUMBER = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactfullname_; - public boolean hasContactfullname() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfullname() { - return contactfullname_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfullnameOrBuilder() { - return contactfullname_; - } - - // optional .eu.dnetlib.data.proto.StringField contactfax = 20; - public static final int CONTACTFAX_FIELD_NUMBER = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactfax_; - public boolean hasContactfax() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfax() { - return contactfax_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfaxOrBuilder() { - return contactfax_; - } - - // optional .eu.dnetlib.data.proto.StringField contactphone = 21; - public static final int CONTACTPHONE_FIELD_NUMBER = 21; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactphone_; - public boolean hasContactphone() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactphone() { - return contactphone_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactphoneOrBuilder() { - return contactphone_; - } - - // optional .eu.dnetlib.data.proto.StringField contactemail = 22; - public static final int CONTACTEMAIL_FIELD_NUMBER = 22; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactemail_; - public boolean hasContactemail() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail() { - return contactemail_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder() { - return contactemail_; - } - - private void initFields() { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - code_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - acronym_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - title_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - startdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - enddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - callidentifier_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - keywords_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - duration_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecsc39_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - oamandatepublications_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - ecarticle293_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - subjects_ = java.util.Collections.emptyList(); - fundingtree_ = java.util.Collections.emptyList(); - contracttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - optional1_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - optional2_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - jsonextrainfo_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - contactfullname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - contactfax_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - contactphone_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCode()) { - if (!getCode().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAcronym()) { - if (!getAcronym().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasTitle()) { - if (!getTitle().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasStartdate()) { - if (!getStartdate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEnddate()) { - if (!getEnddate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCallidentifier()) { - if (!getCallidentifier().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasKeywords()) { - if (!getKeywords().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDuration()) { - if (!getDuration().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcsc39()) { - if (!getEcsc39().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOamandatepublications()) { - if (!getOamandatepublications().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEcarticle293()) { - if (!getEcarticle293().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getSubjectsCount(); i++) { - if (!getSubjects(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getFundingtreeCount(); i++) { - if (!getFundingtree(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContracttype()) { - if (!getContracttype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptional1()) { - if (!getOptional1().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptional2()) { - if (!getOptional2().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasJsonextrainfo()) { - if (!getJsonextrainfo().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContactfullname()) { - if (!getContactfullname().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContactfax()) { - if (!getContactfax().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContactphone()) { - if (!getContactphone().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasContactemail()) { - if (!getContactemail().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, websiteurl_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, code_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, acronym_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, title_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, startdate_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, enddate_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, callidentifier_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, keywords_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, duration_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, ecsc39_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, oamandatepublications_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, ecarticle293_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, contracttype_); - } - for (int i = 0; i < subjects_.size(); i++) { - output.writeMessage(14, subjects_.get(i)); - } - for (int i = 0; i < fundingtree_.size(); i++) { - output.writeMessage(15, fundingtree_.get(i)); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(16, optional1_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(17, optional2_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(18, jsonextrainfo_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(19, contactfullname_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(20, contactfax_); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(21, contactphone_); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(22, contactemail_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, websiteurl_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, code_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, acronym_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, title_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, startdate_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, enddate_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, callidentifier_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, keywords_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, duration_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, ecsc39_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, oamandatepublications_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, ecarticle293_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, contracttype_); - } - for (int i = 0; i < subjects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, subjects_.get(i)); - } - for (int i = 0; i < fundingtree_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, fundingtree_.get(i)); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, optional1_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, optional2_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, jsonextrainfo_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, contactfullname_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, contactfax_); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, contactphone_); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, contactemail_); - } - 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.ProjectProtos.Project.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project.Metadata 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.ProjectProtos.Project.Metadata 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 - implements eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_Metadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getWebsiteurlFieldBuilder(); - getCodeFieldBuilder(); - getAcronymFieldBuilder(); - getTitleFieldBuilder(); - getStartdateFieldBuilder(); - getEnddateFieldBuilder(); - getCallidentifierFieldBuilder(); - getKeywordsFieldBuilder(); - getDurationFieldBuilder(); - getEcsc39FieldBuilder(); - getOamandatepublicationsFieldBuilder(); - getEcarticle293FieldBuilder(); - getSubjectsFieldBuilder(); - getFundingtreeFieldBuilder(); - getContracttypeFieldBuilder(); - getOptional1FieldBuilder(); - getOptional2FieldBuilder(); - getJsonextrainfoFieldBuilder(); - getContactfullnameFieldBuilder(); - getContactfaxFieldBuilder(); - getContactphoneFieldBuilder(); - getContactemailFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (codeBuilder_ == null) { - code_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - codeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (acronymBuilder_ == null) { - acronym_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - acronymBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (titleBuilder_ == null) { - title_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - titleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (startdateBuilder_ == null) { - startdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - startdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (enddateBuilder_ == null) { - enddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - enddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (callidentifierBuilder_ == null) { - callidentifier_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - callidentifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (keywordsBuilder_ == null) { - keywords_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - keywordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (durationBuilder_ == null) { - duration_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - durationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (ecsc39Builder_ == null) { - ecsc39_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecsc39Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (oamandatepublicationsBuilder_ == null) { - oamandatepublications_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - oamandatepublicationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (ecarticle293Builder_ == null) { - ecarticle293_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - ecarticle293Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - if (subjectsBuilder_ == null) { - subjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - } else { - subjectsBuilder_.clear(); - } - if (fundingtreeBuilder_ == null) { - fundingtree_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - } else { - fundingtreeBuilder_.clear(); - } - if (contracttypeBuilder_ == null) { - contracttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - contracttypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - if (optional1Builder_ == null) { - optional1_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - optional1Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - if (optional2Builder_ == null) { - optional2_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - optional2Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00010000); - if (jsonextrainfoBuilder_ == null) { - jsonextrainfo_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - jsonextrainfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00020000); - if (contactfullnameBuilder_ == null) { - contactfullname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - contactfullnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - if (contactfaxBuilder_ == null) { - contactfax_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - contactfaxBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - if (contactphoneBuilder_ == null) { - contactphone_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - contactphoneBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - if (contactemailBuilder_ == null) { - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - contactemailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata build() { - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ProjectProtos.Project.Metadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata buildPartial() { - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata result = new eu.dnetlib.data.proto.ProjectProtos.Project.Metadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (websiteurlBuilder_ == null) { - result.websiteurl_ = websiteurl_; - } else { - result.websiteurl_ = websiteurlBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (codeBuilder_ == null) { - result.code_ = code_; - } else { - result.code_ = codeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (acronymBuilder_ == null) { - result.acronym_ = acronym_; - } else { - result.acronym_ = acronymBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (titleBuilder_ == null) { - result.title_ = title_; - } else { - result.title_ = titleBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (startdateBuilder_ == null) { - result.startdate_ = startdate_; - } else { - result.startdate_ = startdateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (enddateBuilder_ == null) { - result.enddate_ = enddate_; - } else { - result.enddate_ = enddateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (callidentifierBuilder_ == null) { - result.callidentifier_ = callidentifier_; - } else { - result.callidentifier_ = callidentifierBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (keywordsBuilder_ == null) { - result.keywords_ = keywords_; - } else { - result.keywords_ = keywordsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - if (ecsc39Builder_ == null) { - result.ecsc39_ = ecsc39_; - } else { - result.ecsc39_ = ecsc39Builder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - if (oamandatepublicationsBuilder_ == null) { - result.oamandatepublications_ = oamandatepublications_; - } else { - result.oamandatepublications_ = oamandatepublicationsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - if (ecarticle293Builder_ == null) { - result.ecarticle293_ = ecarticle293_; - } else { - result.ecarticle293_ = ecarticle293Builder_.build(); - } - if (subjectsBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000)) { - subjects_ = java.util.Collections.unmodifiableList(subjects_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.subjects_ = subjects_; - } else { - result.subjects_ = subjectsBuilder_.build(); - } - if (fundingtreeBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000)) { - fundingtree_ = java.util.Collections.unmodifiableList(fundingtree_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.fundingtree_ = fundingtree_; - } else { - result.fundingtree_ = fundingtreeBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00001000; - } - if (contracttypeBuilder_ == null) { - result.contracttype_ = contracttype_; - } else { - result.contracttype_ = contracttypeBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00002000; - } - if (optional1Builder_ == null) { - result.optional1_ = optional1_; - } else { - result.optional1_ = optional1Builder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00004000; - } - if (optional2Builder_ == null) { - result.optional2_ = optional2_; - } else { - result.optional2_ = optional2Builder_.build(); - } - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00008000; - } - if (jsonextrainfoBuilder_ == null) { - result.jsonextrainfo_ = jsonextrainfo_; - } else { - result.jsonextrainfo_ = jsonextrainfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00010000; - } - if (contactfullnameBuilder_ == null) { - result.contactfullname_ = contactfullname_; - } else { - result.contactfullname_ = contactfullnameBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00020000; - } - if (contactfaxBuilder_ == null) { - result.contactfax_ = contactfax_; - } else { - result.contactfax_ = contactfaxBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00040000; - } - if (contactphoneBuilder_ == null) { - result.contactphone_ = contactphone_; - } else { - result.contactphone_ = contactphoneBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00080000; - } - if (contactemailBuilder_ == null) { - result.contactemail_ = contactemail_; - } else { - result.contactemail_ = contactemailBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ProjectProtos.Project.Metadata) { - return mergeFrom((eu.dnetlib.data.proto.ProjectProtos.Project.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ProjectProtos.Project.Metadata other) { - if (other == eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance()) return this; - if (other.hasWebsiteurl()) { - mergeWebsiteurl(other.getWebsiteurl()); - } - if (other.hasCode()) { - mergeCode(other.getCode()); - } - if (other.hasAcronym()) { - mergeAcronym(other.getAcronym()); - } - if (other.hasTitle()) { - mergeTitle(other.getTitle()); - } - if (other.hasStartdate()) { - mergeStartdate(other.getStartdate()); - } - if (other.hasEnddate()) { - mergeEnddate(other.getEnddate()); - } - if (other.hasCallidentifier()) { - mergeCallidentifier(other.getCallidentifier()); - } - if (other.hasKeywords()) { - mergeKeywords(other.getKeywords()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasEcsc39()) { - mergeEcsc39(other.getEcsc39()); - } - if (other.hasOamandatepublications()) { - mergeOamandatepublications(other.getOamandatepublications()); - } - if (other.hasEcarticle293()) { - mergeEcarticle293(other.getEcarticle293()); - } - if (subjectsBuilder_ == null) { - if (!other.subjects_.isEmpty()) { - if (subjects_.isEmpty()) { - subjects_ = other.subjects_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureSubjectsIsMutable(); - subjects_.addAll(other.subjects_); - } - onChanged(); - } - } else { - if (!other.subjects_.isEmpty()) { - if (subjectsBuilder_.isEmpty()) { - subjectsBuilder_.dispose(); - subjectsBuilder_ = null; - subjects_ = other.subjects_; - bitField0_ = (bitField0_ & ~0x00001000); - subjectsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSubjectsFieldBuilder() : null; - } else { - subjectsBuilder_.addAllMessages(other.subjects_); - } - } - } - if (fundingtreeBuilder_ == null) { - if (!other.fundingtree_.isEmpty()) { - if (fundingtree_.isEmpty()) { - fundingtree_ = other.fundingtree_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureFundingtreeIsMutable(); - fundingtree_.addAll(other.fundingtree_); - } - onChanged(); - } - } else { - if (!other.fundingtree_.isEmpty()) { - if (fundingtreeBuilder_.isEmpty()) { - fundingtreeBuilder_.dispose(); - fundingtreeBuilder_ = null; - fundingtree_ = other.fundingtree_; - bitField0_ = (bitField0_ & ~0x00002000); - fundingtreeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFundingtreeFieldBuilder() : null; - } else { - fundingtreeBuilder_.addAllMessages(other.fundingtree_); - } - } - } - if (other.hasContracttype()) { - mergeContracttype(other.getContracttype()); - } - if (other.hasOptional1()) { - mergeOptional1(other.getOptional1()); - } - if (other.hasOptional2()) { - mergeOptional2(other.getOptional2()); - } - if (other.hasJsonextrainfo()) { - mergeJsonextrainfo(other.getJsonextrainfo()); - } - if (other.hasContactfullname()) { - mergeContactfullname(other.getContactfullname()); - } - if (other.hasContactfax()) { - mergeContactfax(other.getContactfax()); - } - if (other.hasContactphone()) { - mergeContactphone(other.getContactphone()); - } - if (other.hasContactemail()) { - mergeContactemail(other.getContactemail()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasWebsiteurl()) { - if (!getWebsiteurl().isInitialized()) { - - return false; - } - } - if (hasCode()) { - if (!getCode().isInitialized()) { - - return false; - } - } - if (hasAcronym()) { - if (!getAcronym().isInitialized()) { - - return false; - } - } - if (hasTitle()) { - if (!getTitle().isInitialized()) { - - return false; - } - } - if (hasStartdate()) { - if (!getStartdate().isInitialized()) { - - return false; - } - } - if (hasEnddate()) { - if (!getEnddate().isInitialized()) { - - return false; - } - } - if (hasCallidentifier()) { - if (!getCallidentifier().isInitialized()) { - - return false; - } - } - if (hasKeywords()) { - if (!getKeywords().isInitialized()) { - - return false; - } - } - if (hasDuration()) { - if (!getDuration().isInitialized()) { - - return false; - } - } - if (hasEcsc39()) { - if (!getEcsc39().isInitialized()) { - - return false; - } - } - if (hasOamandatepublications()) { - if (!getOamandatepublications().isInitialized()) { - - return false; - } - } - if (hasEcarticle293()) { - if (!getEcarticle293().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getSubjectsCount(); i++) { - if (!getSubjects(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getFundingtreeCount(); i++) { - if (!getFundingtree(i).isInitialized()) { - - return false; - } - } - if (hasContracttype()) { - if (!getContracttype().isInitialized()) { - - return false; - } - } - if (hasOptional1()) { - if (!getOptional1().isInitialized()) { - - return false; - } - } - if (hasOptional2()) { - if (!getOptional2().isInitialized()) { - - return false; - } - } - if (hasJsonextrainfo()) { - if (!getJsonextrainfo().isInitialized()) { - - return false; - } - } - if (hasContactfullname()) { - if (!getContactfullname().isInitialized()) { - - return false; - } - } - if (hasContactfax()) { - if (!getContactfax().isInitialized()) { - - return false; - } - } - if (hasContactphone()) { - if (!getContactphone().isInitialized()) { - - return false; - } - } - if (hasContactemail()) { - if (!getContactemail().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasWebsiteurl()) { - subBuilder.mergeFrom(getWebsiteurl()); - } - input.readMessage(subBuilder, extensionRegistry); - setWebsiteurl(subBuilder.buildPartial()); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasCode()) { - subBuilder.mergeFrom(getCode()); - } - input.readMessage(subBuilder, extensionRegistry); - setCode(subBuilder.buildPartial()); - break; - } - case 26: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasAcronym()) { - subBuilder.mergeFrom(getAcronym()); - } - input.readMessage(subBuilder, extensionRegistry); - setAcronym(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasTitle()) { - subBuilder.mergeFrom(getTitle()); - } - input.readMessage(subBuilder, extensionRegistry); - setTitle(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasStartdate()) { - subBuilder.mergeFrom(getStartdate()); - } - input.readMessage(subBuilder, extensionRegistry); - setStartdate(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEnddate()) { - subBuilder.mergeFrom(getEnddate()); - } - input.readMessage(subBuilder, extensionRegistry); - setEnddate(subBuilder.buildPartial()); - break; - } - case 58: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasCallidentifier()) { - subBuilder.mergeFrom(getCallidentifier()); - } - input.readMessage(subBuilder, extensionRegistry); - setCallidentifier(subBuilder.buildPartial()); - break; - } - case 66: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasKeywords()) { - subBuilder.mergeFrom(getKeywords()); - } - input.readMessage(subBuilder, extensionRegistry); - setKeywords(subBuilder.buildPartial()); - break; - } - case 74: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDuration()) { - subBuilder.mergeFrom(getDuration()); - } - input.readMessage(subBuilder, extensionRegistry); - setDuration(subBuilder.buildPartial()); - break; - } - case 82: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcsc39()) { - subBuilder.mergeFrom(getEcsc39()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcsc39(subBuilder.buildPartial()); - break; - } - case 90: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOamandatepublications()) { - subBuilder.mergeFrom(getOamandatepublications()); - } - input.readMessage(subBuilder, extensionRegistry); - setOamandatepublications(subBuilder.buildPartial()); - break; - } - case 98: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEcarticle293()) { - subBuilder.mergeFrom(getEcarticle293()); - } - input.readMessage(subBuilder, extensionRegistry); - setEcarticle293(subBuilder.buildPartial()); - break; - } - case 106: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasContracttype()) { - subBuilder.mergeFrom(getContracttype()); - } - input.readMessage(subBuilder, extensionRegistry); - setContracttype(subBuilder.buildPartial()); - break; - } - case 114: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addSubjects(subBuilder.buildPartial()); - break; - } - case 122: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFundingtree(subBuilder.buildPartial()); - break; - } - case 130: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOptional1()) { - subBuilder.mergeFrom(getOptional1()); - } - input.readMessage(subBuilder, extensionRegistry); - setOptional1(subBuilder.buildPartial()); - break; - } - case 138: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasOptional2()) { - subBuilder.mergeFrom(getOptional2()); - } - input.readMessage(subBuilder, extensionRegistry); - setOptional2(subBuilder.buildPartial()); - break; - } - case 146: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasJsonextrainfo()) { - subBuilder.mergeFrom(getJsonextrainfo()); - } - input.readMessage(subBuilder, extensionRegistry); - setJsonextrainfo(subBuilder.buildPartial()); - break; - } - case 154: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasContactfullname()) { - subBuilder.mergeFrom(getContactfullname()); - } - input.readMessage(subBuilder, extensionRegistry); - setContactfullname(subBuilder.buildPartial()); - break; - } - case 162: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasContactfax()) { - subBuilder.mergeFrom(getContactfax()); - } - input.readMessage(subBuilder, extensionRegistry); - setContactfax(subBuilder.buildPartial()); - break; - } - case 170: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasContactphone()) { - subBuilder.mergeFrom(getContactphone()); - } - input.readMessage(subBuilder, extensionRegistry); - setContactphone(subBuilder.buildPartial()); - break; - } - case 178: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasContactemail()) { - subBuilder.mergeFrom(getContactemail()); - } - input.readMessage(subBuilder, extensionRegistry); - setContactemail(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.StringField websiteurl = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> websiteurlBuilder_; - public boolean hasWebsiteurl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getWebsiteurl() { - if (websiteurlBuilder_ == null) { - return websiteurl_; - } else { - return websiteurlBuilder_.getMessage(); - } - } - public Builder setWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - websiteurl_ = value; - onChanged(); - } else { - websiteurlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setWebsiteurl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (websiteurlBuilder_ == null) { - websiteurl_ = builderForValue.build(); - onChanged(); - } else { - websiteurlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeWebsiteurl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (websiteurlBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - websiteurl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - websiteurl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(websiteurl_).mergeFrom(value).buildPartial(); - } else { - websiteurl_ = value; - } - onChanged(); - } else { - websiteurlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearWebsiteurl() { - if (websiteurlBuilder_ == null) { - websiteurl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - websiteurlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getWebsiteurlBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getWebsiteurlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getWebsiteurlOrBuilder() { - if (websiteurlBuilder_ != null) { - return websiteurlBuilder_.getMessageOrBuilder(); - } else { - return websiteurl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getWebsiteurlFieldBuilder() { - if (websiteurlBuilder_ == null) { - websiteurlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - websiteurl_, - getParentForChildren(), - isClean()); - websiteurl_ = null; - } - return websiteurlBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField code = 2; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField code_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> codeBuilder_; - public boolean hasCode() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCode() { - if (codeBuilder_ == null) { - return code_; - } else { - return codeBuilder_.getMessage(); - } - } - public Builder setCode(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (codeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - code_ = value; - onChanged(); - } else { - codeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setCode( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (codeBuilder_ == null) { - code_ = builderForValue.build(); - onChanged(); - } else { - codeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeCode(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (codeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - code_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - code_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(code_).mergeFrom(value).buildPartial(); - } else { - code_ = value; - } - onChanged(); - } else { - codeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearCode() { - if (codeBuilder_ == null) { - code_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - codeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCodeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCodeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeOrBuilder() { - if (codeBuilder_ != null) { - return codeBuilder_.getMessageOrBuilder(); - } else { - return code_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCodeFieldBuilder() { - if (codeBuilder_ == null) { - codeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - code_, - getParentForChildren(), - isClean()); - code_ = null; - } - return codeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField acronym = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField acronym_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> acronymBuilder_; - public boolean hasAcronym() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getAcronym() { - if (acronymBuilder_ == null) { - return acronym_; - } else { - return acronymBuilder_.getMessage(); - } - } - public Builder setAcronym(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (acronymBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - acronym_ = value; - onChanged(); - } else { - acronymBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder setAcronym( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (acronymBuilder_ == null) { - acronym_ = builderForValue.build(); - onChanged(); - } else { - acronymBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder mergeAcronym(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (acronymBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - acronym_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - acronym_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(acronym_).mergeFrom(value).buildPartial(); - } else { - acronym_ = value; - } - onChanged(); - } else { - acronymBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder clearAcronym() { - if (acronymBuilder_ == null) { - acronym_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - acronymBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getAcronymBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getAcronymFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getAcronymOrBuilder() { - if (acronymBuilder_ != null) { - return acronymBuilder_.getMessageOrBuilder(); - } else { - return acronym_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getAcronymFieldBuilder() { - if (acronymBuilder_ == null) { - acronymBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - acronym_, - getParentForChildren(), - isClean()); - acronym_ = null; - } - return acronymBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField title = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField title_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> titleBuilder_; - public boolean hasTitle() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getTitle() { - if (titleBuilder_ == null) { - return title_; - } else { - return titleBuilder_.getMessage(); - } - } - public Builder setTitle(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (titleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - onChanged(); - } else { - titleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder setTitle( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (titleBuilder_ == null) { - title_ = builderForValue.build(); - onChanged(); - } else { - titleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder mergeTitle(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (titleBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - title_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - title_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(title_).mergeFrom(value).buildPartial(); - } else { - title_ = value; - } - onChanged(); - } else { - titleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder clearTitle() { - if (titleBuilder_ == null) { - title_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - titleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getTitleBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getTitleFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getTitleOrBuilder() { - if (titleBuilder_ != null) { - return titleBuilder_.getMessageOrBuilder(); - } else { - return title_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getTitleFieldBuilder() { - if (titleBuilder_ == null) { - titleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - title_, - getParentForChildren(), - isClean()); - title_ = null; - } - return titleBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField startdate = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField startdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> startdateBuilder_; - public boolean hasStartdate() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getStartdate() { - if (startdateBuilder_ == null) { - return startdate_; - } else { - return startdateBuilder_.getMessage(); - } - } - public Builder setStartdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (startdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startdate_ = value; - onChanged(); - } else { - startdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder setStartdate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (startdateBuilder_ == null) { - startdate_ = builderForValue.build(); - onChanged(); - } else { - startdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder mergeStartdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (startdateBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - startdate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - startdate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(startdate_).mergeFrom(value).buildPartial(); - } else { - startdate_ = value; - } - onChanged(); - } else { - startdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder clearStartdate() { - if (startdateBuilder_ == null) { - startdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - startdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getStartdateBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getStartdateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStartdateOrBuilder() { - if (startdateBuilder_ != null) { - return startdateBuilder_.getMessageOrBuilder(); - } else { - return startdate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getStartdateFieldBuilder() { - if (startdateBuilder_ == null) { - startdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - startdate_, - getParentForChildren(), - isClean()); - startdate_ = null; - } - return startdateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField enddate = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField enddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> enddateBuilder_; - public boolean hasEnddate() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEnddate() { - if (enddateBuilder_ == null) { - return enddate_; - } else { - return enddateBuilder_.getMessage(); - } - } - public Builder setEnddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (enddateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enddate_ = value; - onChanged(); - } else { - enddateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder setEnddate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (enddateBuilder_ == null) { - enddate_ = builderForValue.build(); - onChanged(); - } else { - enddateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder mergeEnddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (enddateBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - enddate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - enddate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(enddate_).mergeFrom(value).buildPartial(); - } else { - enddate_ = value; - } - onChanged(); - } else { - enddateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder clearEnddate() { - if (enddateBuilder_ == null) { - enddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - enddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEnddateBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEnddateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEnddateOrBuilder() { - if (enddateBuilder_ != null) { - return enddateBuilder_.getMessageOrBuilder(); - } else { - return enddate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEnddateFieldBuilder() { - if (enddateBuilder_ == null) { - enddateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - enddate_, - getParentForChildren(), - isClean()); - enddate_ = null; - } - return enddateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField callidentifier = 7; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField callidentifier_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> callidentifierBuilder_; - public boolean hasCallidentifier() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCallidentifier() { - if (callidentifierBuilder_ == null) { - return callidentifier_; - } else { - return callidentifierBuilder_.getMessage(); - } - } - public Builder setCallidentifier(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (callidentifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - callidentifier_ = value; - onChanged(); - } else { - callidentifierBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setCallidentifier( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (callidentifierBuilder_ == null) { - callidentifier_ = builderForValue.build(); - onChanged(); - } else { - callidentifierBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeCallidentifier(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (callidentifierBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - callidentifier_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - callidentifier_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(callidentifier_).mergeFrom(value).buildPartial(); - } else { - callidentifier_ = value; - } - onChanged(); - } else { - callidentifierBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearCallidentifier() { - if (callidentifierBuilder_ == null) { - callidentifier_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - callidentifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCallidentifierBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getCallidentifierFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCallidentifierOrBuilder() { - if (callidentifierBuilder_ != null) { - return callidentifierBuilder_.getMessageOrBuilder(); - } else { - return callidentifier_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCallidentifierFieldBuilder() { - if (callidentifierBuilder_ == null) { - callidentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - callidentifier_, - getParentForChildren(), - isClean()); - callidentifier_ = null; - } - return callidentifierBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField keywords = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField keywords_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> keywordsBuilder_; - public boolean hasKeywords() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getKeywords() { - if (keywordsBuilder_ == null) { - return keywords_; - } else { - return keywordsBuilder_.getMessage(); - } - } - public Builder setKeywords(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (keywordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - keywords_ = value; - onChanged(); - } else { - keywordsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setKeywords( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (keywordsBuilder_ == null) { - keywords_ = builderForValue.build(); - onChanged(); - } else { - keywordsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeKeywords(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (keywordsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - keywords_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - keywords_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(keywords_).mergeFrom(value).buildPartial(); - } else { - keywords_ = value; - } - onChanged(); - } else { - keywordsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearKeywords() { - if (keywordsBuilder_ == null) { - keywords_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - keywordsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getKeywordsBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getKeywordsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getKeywordsOrBuilder() { - if (keywordsBuilder_ != null) { - return keywordsBuilder_.getMessageOrBuilder(); - } else { - return keywords_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getKeywordsFieldBuilder() { - if (keywordsBuilder_ == null) { - keywordsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - keywords_, - getParentForChildren(), - isClean()); - keywords_ = null; - } - return keywordsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField duration = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField duration_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> durationBuilder_; - public boolean hasDuration() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDuration() { - if (durationBuilder_ == null) { - return duration_; - } else { - return durationBuilder_.getMessage(); - } - } - public Builder setDuration(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder setDuration( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder mergeDuration(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - duration_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - duration_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - durationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDurationBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - duration_, - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecsc39 = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecsc39_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecsc39Builder_; - public boolean hasEcsc39() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcsc39() { - if (ecsc39Builder_ == null) { - return ecsc39_; - } else { - return ecsc39Builder_.getMessage(); - } - } - public Builder setEcsc39(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecsc39Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecsc39_ = value; - onChanged(); - } else { - ecsc39Builder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder setEcsc39( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecsc39Builder_ == null) { - ecsc39_ = builderForValue.build(); - onChanged(); - } else { - ecsc39Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder mergeEcsc39(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecsc39Builder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - ecsc39_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecsc39_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecsc39_).mergeFrom(value).buildPartial(); - } else { - ecsc39_ = value; - } - onChanged(); - } else { - ecsc39Builder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder clearEcsc39() { - if (ecsc39Builder_ == null) { - ecsc39_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecsc39Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcsc39Builder() { - bitField0_ |= 0x00000200; - onChanged(); - return getEcsc39FieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcsc39OrBuilder() { - if (ecsc39Builder_ != null) { - return ecsc39Builder_.getMessageOrBuilder(); - } else { - return ecsc39_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcsc39FieldBuilder() { - if (ecsc39Builder_ == null) { - ecsc39Builder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecsc39_, - getParentForChildren(), - isClean()); - ecsc39_ = null; - } - return ecsc39Builder_; - } - - // optional .eu.dnetlib.data.proto.StringField oamandatepublications = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField oamandatepublications_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> oamandatepublicationsBuilder_; - public boolean hasOamandatepublications() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOamandatepublications() { - if (oamandatepublicationsBuilder_ == null) { - return oamandatepublications_; - } else { - return oamandatepublicationsBuilder_.getMessage(); - } - } - public Builder setOamandatepublications(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (oamandatepublicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oamandatepublications_ = value; - onChanged(); - } else { - oamandatepublicationsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder setOamandatepublications( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (oamandatepublicationsBuilder_ == null) { - oamandatepublications_ = builderForValue.build(); - onChanged(); - } else { - oamandatepublicationsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder mergeOamandatepublications(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (oamandatepublicationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - oamandatepublications_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - oamandatepublications_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(oamandatepublications_).mergeFrom(value).buildPartial(); - } else { - oamandatepublications_ = value; - } - onChanged(); - } else { - oamandatepublicationsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder clearOamandatepublications() { - if (oamandatepublicationsBuilder_ == null) { - oamandatepublications_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - oamandatepublicationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOamandatepublicationsBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getOamandatepublicationsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOamandatepublicationsOrBuilder() { - if (oamandatepublicationsBuilder_ != null) { - return oamandatepublicationsBuilder_.getMessageOrBuilder(); - } else { - return oamandatepublications_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOamandatepublicationsFieldBuilder() { - if (oamandatepublicationsBuilder_ == null) { - oamandatepublicationsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - oamandatepublications_, - getParentForChildren(), - isClean()); - oamandatepublications_ = null; - } - return oamandatepublicationsBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField ecarticle29_3 = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField ecarticle293_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> ecarticle293Builder_; - public boolean hasEcarticle293() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEcarticle293() { - if (ecarticle293Builder_ == null) { - return ecarticle293_; - } else { - return ecarticle293Builder_.getMessage(); - } - } - public Builder setEcarticle293(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecarticle293Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ecarticle293_ = value; - onChanged(); - } else { - ecarticle293Builder_.setMessage(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder setEcarticle293( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (ecarticle293Builder_ == null) { - ecarticle293_ = builderForValue.build(); - onChanged(); - } else { - ecarticle293Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder mergeEcarticle293(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (ecarticle293Builder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - ecarticle293_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - ecarticle293_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(ecarticle293_).mergeFrom(value).buildPartial(); - } else { - ecarticle293_ = value; - } - onChanged(); - } else { - ecarticle293Builder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - return this; - } - public Builder clearEcarticle293() { - if (ecarticle293Builder_ == null) { - ecarticle293_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - ecarticle293Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEcarticle293Builder() { - bitField0_ |= 0x00000800; - onChanged(); - return getEcarticle293FieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEcarticle293OrBuilder() { - if (ecarticle293Builder_ != null) { - return ecarticle293Builder_.getMessageOrBuilder(); - } else { - return ecarticle293_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEcarticle293FieldBuilder() { - if (ecarticle293Builder_ == null) { - ecarticle293Builder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - ecarticle293_, - getParentForChildren(), - isClean()); - ecarticle293_ = null; - } - return ecarticle293Builder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subjects = 14; - private java.util.List subjects_ = - java.util.Collections.emptyList(); - private void ensureSubjectsIsMutable() { - if (!((bitField0_ & 0x00001000) == 0x00001000)) { - subjects_ = new java.util.ArrayList(subjects_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> subjectsBuilder_; - - public java.util.List getSubjectsList() { - if (subjectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subjects_); - } else { - return subjectsBuilder_.getMessageList(); - } - } - public int getSubjectsCount() { - if (subjectsBuilder_ == null) { - return subjects_.size(); - } else { - return subjectsBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubjects(int index) { - if (subjectsBuilder_ == null) { - return subjects_.get(index); - } else { - return subjectsBuilder_.getMessage(index); - } - } - public Builder setSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.set(index, value); - onChanged(); - } else { - subjectsBuilder_.setMessage(index, value); - } - return this; - } - public Builder setSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.set(index, builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addSubjects(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(value); - onChanged(); - } else { - subjectsBuilder_.addMessage(value); - } - return this; - } - public Builder addSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(index, value); - onChanged(); - } else { - subjectsBuilder_.addMessage(index, value); - } - return this; - } - public Builder addSubjects( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.add(builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addSubjects( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.add(index, builderForValue.build()); - onChanged(); - } else { - subjectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllSubjects( - java.lang.Iterable values) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - super.addAll(values, subjects_); - onChanged(); - } else { - subjectsBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearSubjects() { - if (subjectsBuilder_ == null) { - subjects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - subjectsBuilder_.clear(); - } - return this; - } - public Builder removeSubjects(int index) { - if (subjectsBuilder_ == null) { - ensureSubjectsIsMutable(); - subjects_.remove(index); - onChanged(); - } else { - subjectsBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getSubjectsBuilder( - int index) { - return getSubjectsFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectsOrBuilder( - int index) { - if (subjectsBuilder_ == null) { - return subjects_.get(index); } else { - return subjectsBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getSubjectsOrBuilderList() { - if (subjectsBuilder_ != null) { - return subjectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subjects_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectsBuilder() { - return getSubjectsFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectsBuilder( - int index) { - return getSubjectsFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getSubjectsBuilderList() { - return getSubjectsFieldBuilder().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> - getSubjectsFieldBuilder() { - if (subjectsBuilder_ == null) { - subjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - subjects_, - ((bitField0_ & 0x00001000) == 0x00001000), - getParentForChildren(), - isClean()); - subjects_ = null; - } - return subjectsBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField fundingtree = 15; - private java.util.List fundingtree_ = - java.util.Collections.emptyList(); - private void ensureFundingtreeIsMutable() { - if (!((bitField0_ & 0x00002000) == 0x00002000)) { - fundingtree_ = new java.util.ArrayList(fundingtree_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> fundingtreeBuilder_; - - public java.util.List getFundingtreeList() { - if (fundingtreeBuilder_ == null) { - return java.util.Collections.unmodifiableList(fundingtree_); - } else { - return fundingtreeBuilder_.getMessageList(); - } - } - public int getFundingtreeCount() { - if (fundingtreeBuilder_ == null) { - return fundingtree_.size(); - } else { - return fundingtreeBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFundingtree(int index) { - if (fundingtreeBuilder_ == null) { - return fundingtree_.get(index); - } else { - return fundingtreeBuilder_.getMessage(index); - } - } - public Builder setFundingtree( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fundingtreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFundingtreeIsMutable(); - fundingtree_.set(index, value); - onChanged(); - } else { - fundingtreeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setFundingtree( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fundingtreeBuilder_ == null) { - ensureFundingtreeIsMutable(); - fundingtree_.set(index, builderForValue.build()); - onChanged(); - } else { - fundingtreeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addFundingtree(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fundingtreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFundingtreeIsMutable(); - fundingtree_.add(value); - onChanged(); - } else { - fundingtreeBuilder_.addMessage(value); - } - return this; - } - public Builder addFundingtree( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fundingtreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFundingtreeIsMutable(); - fundingtree_.add(index, value); - onChanged(); - } else { - fundingtreeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addFundingtree( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fundingtreeBuilder_ == null) { - ensureFundingtreeIsMutable(); - fundingtree_.add(builderForValue.build()); - onChanged(); - } else { - fundingtreeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addFundingtree( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fundingtreeBuilder_ == null) { - ensureFundingtreeIsMutable(); - fundingtree_.add(index, builderForValue.build()); - onChanged(); - } else { - fundingtreeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllFundingtree( - java.lang.Iterable values) { - if (fundingtreeBuilder_ == null) { - ensureFundingtreeIsMutable(); - super.addAll(values, fundingtree_); - onChanged(); - } else { - fundingtreeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearFundingtree() { - if (fundingtreeBuilder_ == null) { - fundingtree_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - fundingtreeBuilder_.clear(); - } - return this; - } - public Builder removeFundingtree(int index) { - if (fundingtreeBuilder_ == null) { - ensureFundingtreeIsMutable(); - fundingtree_.remove(index); - onChanged(); - } else { - fundingtreeBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getFundingtreeBuilder( - int index) { - return getFundingtreeFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFundingtreeOrBuilder( - int index) { - if (fundingtreeBuilder_ == null) { - return fundingtree_.get(index); } else { - return fundingtreeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getFundingtreeOrBuilderList() { - if (fundingtreeBuilder_ != null) { - return fundingtreeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fundingtree_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFundingtreeBuilder() { - return getFundingtreeFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFundingtreeBuilder( - int index) { - return getFundingtreeFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getFundingtreeBuilderList() { - return getFundingtreeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getFundingtreeFieldBuilder() { - if (fundingtreeBuilder_ == null) { - fundingtreeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - fundingtree_, - ((bitField0_ & 0x00002000) == 0x00002000), - getParentForChildren(), - isClean()); - fundingtree_ = null; - } - return fundingtreeBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier contracttype = 13; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier contracttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> contracttypeBuilder_; - public boolean hasContracttype() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getContracttype() { - if (contracttypeBuilder_ == null) { - return contracttype_; - } else { - return contracttypeBuilder_.getMessage(); - } - } - public Builder setContracttype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (contracttypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contracttype_ = value; - onChanged(); - } else { - contracttypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder setContracttype( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (contracttypeBuilder_ == null) { - contracttype_ = builderForValue.build(); - onChanged(); - } else { - contracttypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder mergeContracttype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (contracttypeBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - contracttype_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - contracttype_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(contracttype_).mergeFrom(value).buildPartial(); - } else { - contracttype_ = value; - } - onChanged(); - } else { - contracttypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - return this; - } - public Builder clearContracttype() { - if (contracttypeBuilder_ == null) { - contracttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - contracttypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getContracttypeBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getContracttypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getContracttypeOrBuilder() { - if (contracttypeBuilder_ != null) { - return contracttypeBuilder_.getMessageOrBuilder(); - } else { - return contracttype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getContracttypeFieldBuilder() { - if (contracttypeBuilder_ == null) { - contracttypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - contracttype_, - getParentForChildren(), - isClean()); - contracttype_ = null; - } - return contracttypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField optional1 = 16; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField optional1_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> optional1Builder_; - public boolean hasOptional1() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional1() { - if (optional1Builder_ == null) { - return optional1_; - } else { - return optional1Builder_.getMessage(); - } - } - public Builder setOptional1(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (optional1Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - optional1_ = value; - onChanged(); - } else { - optional1Builder_.setMessage(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder setOptional1( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (optional1Builder_ == null) { - optional1_ = builderForValue.build(); - onChanged(); - } else { - optional1Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder mergeOptional1(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (optional1Builder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - optional1_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - optional1_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(optional1_).mergeFrom(value).buildPartial(); - } else { - optional1_ = value; - } - onChanged(); - } else { - optional1Builder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder clearOptional1() { - if (optional1Builder_ == null) { - optional1_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - optional1Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOptional1Builder() { - bitField0_ |= 0x00008000; - onChanged(); - return getOptional1FieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional1OrBuilder() { - if (optional1Builder_ != null) { - return optional1Builder_.getMessageOrBuilder(); - } else { - return optional1_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOptional1FieldBuilder() { - if (optional1Builder_ == null) { - optional1Builder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - optional1_, - getParentForChildren(), - isClean()); - optional1_ = null; - } - return optional1Builder_; - } - - // optional .eu.dnetlib.data.proto.StringField optional2 = 17; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField optional2_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> optional2Builder_; - public boolean hasOptional2() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getOptional2() { - if (optional2Builder_ == null) { - return optional2_; - } else { - return optional2Builder_.getMessage(); - } - } - public Builder setOptional2(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (optional2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - optional2_ = value; - onChanged(); - } else { - optional2Builder_.setMessage(value); - } - bitField0_ |= 0x00010000; - return this; - } - public Builder setOptional2( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (optional2Builder_ == null) { - optional2_ = builderForValue.build(); - onChanged(); - } else { - optional2Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - return this; - } - public Builder mergeOptional2(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (optional2Builder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000) && - optional2_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - optional2_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(optional2_).mergeFrom(value).buildPartial(); - } else { - optional2_ = value; - } - onChanged(); - } else { - optional2Builder_.mergeFrom(value); - } - bitField0_ |= 0x00010000; - return this; - } - public Builder clearOptional2() { - if (optional2Builder_ == null) { - optional2_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - optional2Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00010000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getOptional2Builder() { - bitField0_ |= 0x00010000; - onChanged(); - return getOptional2FieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getOptional2OrBuilder() { - if (optional2Builder_ != null) { - return optional2Builder_.getMessageOrBuilder(); - } else { - return optional2_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getOptional2FieldBuilder() { - if (optional2Builder_ == null) { - optional2Builder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - optional2_, - getParentForChildren(), - isClean()); - optional2_ = null; - } - return optional2Builder_; - } - - // optional .eu.dnetlib.data.proto.StringField jsonextrainfo = 18; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField jsonextrainfo_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> jsonextrainfoBuilder_; - public boolean hasJsonextrainfo() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getJsonextrainfo() { - if (jsonextrainfoBuilder_ == null) { - return jsonextrainfo_; - } else { - return jsonextrainfoBuilder_.getMessage(); - } - } - public Builder setJsonextrainfo(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (jsonextrainfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jsonextrainfo_ = value; - onChanged(); - } else { - jsonextrainfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - return this; - } - public Builder setJsonextrainfo( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (jsonextrainfoBuilder_ == null) { - jsonextrainfo_ = builderForValue.build(); - onChanged(); - } else { - jsonextrainfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - return this; - } - public Builder mergeJsonextrainfo(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (jsonextrainfoBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000) && - jsonextrainfo_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - jsonextrainfo_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(jsonextrainfo_).mergeFrom(value).buildPartial(); - } else { - jsonextrainfo_ = value; - } - onChanged(); - } else { - jsonextrainfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00020000; - return this; - } - public Builder clearJsonextrainfo() { - if (jsonextrainfoBuilder_ == null) { - jsonextrainfo_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - jsonextrainfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getJsonextrainfoBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getJsonextrainfoFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getJsonextrainfoOrBuilder() { - if (jsonextrainfoBuilder_ != null) { - return jsonextrainfoBuilder_.getMessageOrBuilder(); - } else { - return jsonextrainfo_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getJsonextrainfoFieldBuilder() { - if (jsonextrainfoBuilder_ == null) { - jsonextrainfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - jsonextrainfo_, - getParentForChildren(), - isClean()); - jsonextrainfo_ = null; - } - return jsonextrainfoBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField contactfullname = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactfullname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactfullnameBuilder_; - public boolean hasContactfullname() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfullname() { - if (contactfullnameBuilder_ == null) { - return contactfullname_; - } else { - return contactfullnameBuilder_.getMessage(); - } - } - public Builder setContactfullname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactfullnameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactfullname_ = value; - onChanged(); - } else { - contactfullnameBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder setContactfullname( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactfullnameBuilder_ == null) { - contactfullname_ = builderForValue.build(); - onChanged(); - } else { - contactfullnameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder mergeContactfullname(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactfullnameBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000) && - contactfullname_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - contactfullname_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(contactfullname_).mergeFrom(value).buildPartial(); - } else { - contactfullname_ = value; - } - onChanged(); - } else { - contactfullnameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder clearContactfullname() { - if (contactfullnameBuilder_ == null) { - contactfullname_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - contactfullnameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactfullnameBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getContactfullnameFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfullnameOrBuilder() { - if (contactfullnameBuilder_ != null) { - return contactfullnameBuilder_.getMessageOrBuilder(); - } else { - return contactfullname_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactfullnameFieldBuilder() { - if (contactfullnameBuilder_ == null) { - contactfullnameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactfullname_, - getParentForChildren(), - isClean()); - contactfullname_ = null; - } - return contactfullnameBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField contactfax = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactfax_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactfaxBuilder_; - public boolean hasContactfax() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactfax() { - if (contactfaxBuilder_ == null) { - return contactfax_; - } else { - return contactfaxBuilder_.getMessage(); - } - } - public Builder setContactfax(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactfaxBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactfax_ = value; - onChanged(); - } else { - contactfaxBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder setContactfax( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactfaxBuilder_ == null) { - contactfax_ = builderForValue.build(); - onChanged(); - } else { - contactfaxBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder mergeContactfax(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactfaxBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - contactfax_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - contactfax_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(contactfax_).mergeFrom(value).buildPartial(); - } else { - contactfax_ = value; - } - onChanged(); - } else { - contactfaxBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder clearContactfax() { - if (contactfaxBuilder_ == null) { - contactfax_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - contactfaxBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactfaxBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getContactfaxFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactfaxOrBuilder() { - if (contactfaxBuilder_ != null) { - return contactfaxBuilder_.getMessageOrBuilder(); - } else { - return contactfax_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactfaxFieldBuilder() { - if (contactfaxBuilder_ == null) { - contactfaxBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactfax_, - getParentForChildren(), - isClean()); - contactfax_ = null; - } - return contactfaxBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField contactphone = 21; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactphone_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactphoneBuilder_; - public boolean hasContactphone() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactphone() { - if (contactphoneBuilder_ == null) { - return contactphone_; - } else { - return contactphoneBuilder_.getMessage(); - } - } - public Builder setContactphone(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactphoneBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactphone_ = value; - onChanged(); - } else { - contactphoneBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder setContactphone( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactphoneBuilder_ == null) { - contactphone_ = builderForValue.build(); - onChanged(); - } else { - contactphoneBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder mergeContactphone(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactphoneBuilder_ == null) { - if (((bitField0_ & 0x00100000) == 0x00100000) && - contactphone_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - contactphone_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(contactphone_).mergeFrom(value).buildPartial(); - } else { - contactphone_ = value; - } - onChanged(); - } else { - contactphoneBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder clearContactphone() { - if (contactphoneBuilder_ == null) { - contactphone_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - contactphoneBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactphoneBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getContactphoneFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactphoneOrBuilder() { - if (contactphoneBuilder_ != null) { - return contactphoneBuilder_.getMessageOrBuilder(); - } else { - return contactphone_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactphoneFieldBuilder() { - if (contactphoneBuilder_ == null) { - contactphoneBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactphone_, - getParentForChildren(), - isClean()); - contactphone_ = null; - } - return contactphoneBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField contactemail = 22; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactemailBuilder_; - public boolean hasContactemail() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactemail() { - if (contactemailBuilder_ == null) { - return contactemail_; - } else { - return contactemailBuilder_.getMessage(); - } - } - public Builder setContactemail(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactemailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contactemail_ = value; - onChanged(); - } else { - contactemailBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder setContactemail( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactemailBuilder_ == null) { - contactemail_ = builderForValue.build(); - onChanged(); - } else { - contactemailBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder mergeContactemail(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactemailBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000) && - contactemail_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - contactemail_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(contactemail_).mergeFrom(value).buildPartial(); - } else { - contactemail_ = value; - } - onChanged(); - } else { - contactemailBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder clearContactemail() { - if (contactemailBuilder_ == null) { - contactemail_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - contactemailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactemailBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getContactemailFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactemailOrBuilder() { - if (contactemailBuilder_ != null) { - return contactemailBuilder_.getMessageOrBuilder(); - } else { - return contactemail_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactemailFieldBuilder() { - if (contactemailBuilder_ == null) { - contactemailBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactemail_, - getParentForChildren(), - isClean()); - contactemail_ = null; - } - return contactemailBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Project.Metadata) - } - - static { - defaultInstance = new Metadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Project.Metadata) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Project.Metadata metadata = 2; - public static final int METADATA_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.ProjectProtos.Project.Metadata metadata_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata getMetadata() { - return metadata_; - } - public eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder getMetadataOrBuilder() { - return metadata_; - } - - private void initFields() { - metadata_ = eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, metadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metadata_); - } - 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.ProjectProtos.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project 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.ProjectProtos.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project 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.ProjectProtos.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project 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.ProjectProtos.Project 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.ProjectProtos.Project 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.ProjectProtos.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ProjectProtos.Project 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.ProjectProtos.Project 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 - implements eu.dnetlib.data.proto.ProjectProtos.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ProjectProtos.internal_static_eu_dnetlib_data_proto_Project_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ProjectProtos.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ProjectProtos.Project.getDescriptor(); - } - - public eu.dnetlib.data.proto.ProjectProtos.Project getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ProjectProtos.Project build() { - eu.dnetlib.data.proto.ProjectProtos.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ProjectProtos.Project buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ProjectProtos.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ProjectProtos.Project buildPartial() { - eu.dnetlib.data.proto.ProjectProtos.Project result = new eu.dnetlib.data.proto.ProjectProtos.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ProjectProtos.Project) { - return mergeFrom((eu.dnetlib.data.proto.ProjectProtos.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ProjectProtos.Project other) { - if (other == eu.dnetlib.data.proto.ProjectProtos.Project.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 18: { - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder subBuilder = eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.newBuilder(); - if (hasMetadata()) { - subBuilder.mergeFrom(getMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Project.Metadata metadata = 2; - private eu.dnetlib.data.proto.ProjectProtos.Project.Metadata metadata_ = eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata, eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder, eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder> metadataBuilder_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - public Builder setMetadata(eu.dnetlib.data.proto.ProjectProtos.Project.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setMetadata( - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeMetadata(eu.dnetlib.data.proto.ProjectProtos.Project.Metadata value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance()) { - metadata_ = - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.getDefaultInstance(); - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata, eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder, eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata, eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder, eu.dnetlib.data.proto.ProjectProtos.Project.MetadataOrBuilder>( - metadata_, - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Project) - } - - static { - defaultInstance = new Project(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Project) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Project_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Project_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Project_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Project_Metadata_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\rProject.proto\022\025eu.dnetlib.data.proto\032\017" + - "FieldType.proto\"\251\n\n\007Project\0229\n\010metadata\030" + - "\002 \001(\0132\'.eu.dnetlib.data.proto.Project.Me" + - "tadata\032\342\t\n\010Metadata\0226\n\nwebsiteurl\030\001 \001(\0132" + - "\".eu.dnetlib.data.proto.StringField\0220\n\004c" + - "ode\030\002 \001(\0132\".eu.dnetlib.data.proto.String" + - "Field\0223\n\007acronym\030\003 \001(\0132\".eu.dnetlib.data" + - ".proto.StringField\0221\n\005title\030\004 \001(\0132\".eu.d" + - "netlib.data.proto.StringField\0225\n\tstartda" + - "te\030\005 \001(\0132\".eu.dnetlib.data.proto.StringF", - "ield\0223\n\007enddate\030\006 \001(\0132\".eu.dnetlib.data." + - "proto.StringField\022:\n\016callidentifier\030\007 \001(" + - "\0132\".eu.dnetlib.data.proto.StringField\0224\n" + - "\010keywords\030\010 \001(\0132\".eu.dnetlib.data.proto." + - "StringField\0224\n\010duration\030\t \001(\0132\".eu.dnetl" + - "ib.data.proto.StringField\0222\n\006ecsc39\030\n \001(" + - "\0132\".eu.dnetlib.data.proto.StringField\022A\n" + - "\025oamandatepublications\030\013 \001(\0132\".eu.dnetli" + - "b.data.proto.StringField\0229\n\recarticle29_" + - "3\030\014 \001(\0132\".eu.dnetlib.data.proto.StringFi", - "eld\022;\n\010subjects\030\016 \003(\0132).eu.dnetlib.data." + - "proto.StructuredProperty\0227\n\013fundingtree\030" + - "\017 \003(\0132\".eu.dnetlib.data.proto.StringFiel" + - "d\0226\n\014contracttype\030\r \001(\0132 .eu.dnetlib.dat" + - "a.proto.Qualifier\0225\n\toptional1\030\020 \001(\0132\".e" + - "u.dnetlib.data.proto.StringField\0225\n\topti" + - "onal2\030\021 \001(\0132\".eu.dnetlib.data.proto.Stri" + - "ngField\0229\n\rjsonextrainfo\030\022 \001(\0132\".eu.dnet" + - "lib.data.proto.StringField\022;\n\017contactful" + - "lname\030\023 \001(\0132\".eu.dnetlib.data.proto.Stri", - "ngField\0226\n\ncontactfax\030\024 \001(\0132\".eu.dnetlib" + - ".data.proto.StringField\0228\n\014contactphone\030" + - "\025 \001(\0132\".eu.dnetlib.data.proto.StringFiel" + - "d\0228\n\014contactemail\030\026 \001(\0132\".eu.dnetlib.dat" + - "a.proto.StringFieldB&\n\025eu.dnetlib.data.p" + - "rotoB\rProjectProtos" - }; - 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_Project_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Project_descriptor, - new java.lang.String[] { "Metadata", }, - eu.dnetlib.data.proto.ProjectProtos.Project.class, - eu.dnetlib.data.proto.ProjectProtos.Project.Builder.class); - internal_static_eu_dnetlib_data_proto_Project_Metadata_descriptor = - internal_static_eu_dnetlib_data_proto_Project_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_Project_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Project_Metadata_descriptor, - new java.lang.String[] { "Websiteurl", "Code", "Acronym", "Title", "Startdate", "Enddate", "Callidentifier", "Keywords", "Duration", "Ecsc39", "Oamandatepublications", "Ecarticle293", "Subjects", "Fundingtree", "Contracttype", "Optional1", "Optional2", "Jsonextrainfo", "Contactfullname", "Contactfax", "Contactphone", "Contactemail", }, - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.class, - eu.dnetlib.data.proto.ProjectProtos.Project.Metadata.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelMetadataProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelMetadataProtos.java deleted file mode 100644 index 585fcfd..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelMetadataProtos.java +++ /dev/null @@ -1,680 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RelMetadata.proto - -package eu.dnetlib.data.proto; - -public final class RelMetadataProtos { - private RelMetadataProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface RelMetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Qualifier semantics = 1; - boolean hasSemantics(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getSemantics(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getSemanticsOrBuilder(); - - // optional string startdate = 3; - boolean hasStartdate(); - String getStartdate(); - - // optional string enddate = 4; - boolean hasEnddate(); - String getEnddate(); - } - public static final class RelMetadata extends - com.google.protobuf.GeneratedMessage - implements RelMetadataOrBuilder { - // Use RelMetadata.newBuilder() to construct. - private RelMetadata(Builder builder) { - super(builder); - } - private RelMetadata(boolean noInit) {} - - private static final RelMetadata defaultInstance; - public static RelMetadata getDefaultInstance() { - return defaultInstance; - } - - public RelMetadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.RelMetadataProtos.internal_static_eu_dnetlib_data_proto_RelMetadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.RelMetadataProtos.internal_static_eu_dnetlib_data_proto_RelMetadata_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Qualifier semantics = 1; - public static final int SEMANTICS_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier semantics_; - public boolean hasSemantics() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getSemantics() { - return semantics_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getSemanticsOrBuilder() { - return semantics_; - } - - // optional string startdate = 3; - public static final int STARTDATE_FIELD_NUMBER = 3; - private java.lang.Object startdate_; - public boolean hasStartdate() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getStartdate() { - java.lang.Object ref = startdate_; - 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)) { - startdate_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getStartdateBytes() { - java.lang.Object ref = startdate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - startdate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string enddate = 4; - public static final int ENDDATE_FIELD_NUMBER = 4; - private java.lang.Object enddate_; - public boolean hasEnddate() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getEnddate() { - java.lang.Object ref = enddate_; - 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)) { - enddate_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getEnddateBytes() { - java.lang.Object ref = enddate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - enddate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - semantics_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - startdate_ = ""; - enddate_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasSemantics()) { - if (!getSemantics().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, semantics_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(3, getStartdateBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(4, getEnddateBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, semantics_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStartdateBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getEnddateBytes()); - } - 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.RelMetadataProtos.RelMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata 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.RelMetadataProtos.RelMetadata 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 - implements eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.RelMetadataProtos.internal_static_eu_dnetlib_data_proto_RelMetadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.RelMetadataProtos.internal_static_eu_dnetlib_data_proto_RelMetadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSemanticsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (semanticsBuilder_ == null) { - semantics_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - semanticsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - startdate_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - enddate_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata build() { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata buildPartial() { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata result = new eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (semanticsBuilder_ == null) { - result.semantics_ = semantics_; - } else { - result.semantics_ = semanticsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.startdate_ = startdate_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.enddate_ = enddate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata) { - return mergeFrom((eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata other) { - if (other == eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) return this; - if (other.hasSemantics()) { - mergeSemantics(other.getSemantics()); - } - if (other.hasStartdate()) { - setStartdate(other.getStartdate()); - } - if (other.hasEnddate()) { - setEnddate(other.getEnddate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasSemantics()) { - if (!getSemantics().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasSemantics()) { - subBuilder.mergeFrom(getSemantics()); - } - input.readMessage(subBuilder, extensionRegistry); - setSemantics(subBuilder.buildPartial()); - break; - } - case 26: { - bitField0_ |= 0x00000002; - startdate_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000004; - enddate_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Qualifier semantics = 1; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier semantics_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> semanticsBuilder_; - public boolean hasSemantics() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getSemantics() { - if (semanticsBuilder_ == null) { - return semantics_; - } else { - return semanticsBuilder_.getMessage(); - } - } - public Builder setSemantics(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (semanticsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - semantics_ = value; - onChanged(); - } else { - semanticsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setSemantics( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (semanticsBuilder_ == null) { - semantics_ = builderForValue.build(); - onChanged(); - } else { - semanticsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeSemantics(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (semanticsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - semantics_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - semantics_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(semantics_).mergeFrom(value).buildPartial(); - } else { - semantics_ = value; - } - onChanged(); - } else { - semanticsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearSemantics() { - if (semanticsBuilder_ == null) { - semantics_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - semanticsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getSemanticsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSemanticsFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getSemanticsOrBuilder() { - if (semanticsBuilder_ != null) { - return semanticsBuilder_.getMessageOrBuilder(); - } else { - return semantics_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getSemanticsFieldBuilder() { - if (semanticsBuilder_ == null) { - semanticsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - semantics_, - getParentForChildren(), - isClean()); - semantics_ = null; - } - return semanticsBuilder_; - } - - // optional string startdate = 3; - private java.lang.Object startdate_ = ""; - public boolean hasStartdate() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getStartdate() { - java.lang.Object ref = startdate_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - startdate_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setStartdate(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - startdate_ = value; - onChanged(); - return this; - } - public Builder clearStartdate() { - bitField0_ = (bitField0_ & ~0x00000002); - startdate_ = getDefaultInstance().getStartdate(); - onChanged(); - return this; - } - void setStartdate(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - startdate_ = value; - onChanged(); - } - - // optional string enddate = 4; - private java.lang.Object enddate_ = ""; - public boolean hasEnddate() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getEnddate() { - java.lang.Object ref = enddate_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - enddate_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setEnddate(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - enddate_ = value; - onChanged(); - return this; - } - public Builder clearEnddate() { - bitField0_ = (bitField0_ & ~0x00000004); - enddate_ = getDefaultInstance().getEnddate(); - onChanged(); - return this; - } - void setEnddate(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - enddate_ = value; - onChanged(); - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.RelMetadata) - } - - static { - defaultInstance = new RelMetadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.RelMetadata) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_RelMetadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_RelMetadata_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\021RelMetadata.proto\022\025eu.dnetlib.data.pro" + - "to\032\017FieldType.proto\"f\n\013RelMetadata\0223\n\tse" + - "mantics\030\001 \001(\0132 .eu.dnetlib.data.proto.Qu" + - "alifier\022\021\n\tstartdate\030\003 \001(\t\022\017\n\007enddate\030\004 " + - "\001(\tB*\n\025eu.dnetlib.data.protoB\021RelMetadat" + - "aProtos" - }; - 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_RelMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_RelMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_RelMetadata_descriptor, - new java.lang.String[] { "Semantics", "Startdate", "Enddate", }, - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.class, - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelTypeProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelTypeProtos.java deleted file mode 100644 index 4f4ffe0..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/RelTypeProtos.java +++ /dev/null @@ -1,228 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RelType.proto - -package eu.dnetlib.data.proto; - -public final class RelTypeProtos { - private RelTypeProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public enum RelType - implements com.google.protobuf.ProtocolMessageEnum { - datasourceOrganization(0, 1), - projectOrganization(1, 4), - resultOrganization(2, 5), - resultProject(3, 6), - resultResult(4, 9), - organizationOrganization(5, 11), - ; - - public static final int datasourceOrganization_VALUE = 1; - public static final int projectOrganization_VALUE = 4; - public static final int resultOrganization_VALUE = 5; - public static final int resultProject_VALUE = 6; - public static final int resultResult_VALUE = 9; - public static final int organizationOrganization_VALUE = 11; - - - public final int getNumber() { return value; } - - public static RelType valueOf(int value) { - switch (value) { - case 1: return datasourceOrganization; - case 4: return projectOrganization; - case 5: return resultOrganization; - case 6: return resultProject; - case 9: return resultResult; - case 11: return organizationOrganization; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelType findValueByNumber(int number) { - return RelType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.RelTypeProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final RelType[] VALUES = { - datasourceOrganization, projectOrganization, resultOrganization, resultProject, resultResult, organizationOrganization, - }; - - public static RelType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.RelType) - } - - public enum SubRelType - implements com.google.protobuf.ProtocolMessageEnum { - provision(0, 1), - participation(1, 4), - outcome(2, 6), - similarity(3, 8), - publicationDataset(4, 9), - affiliation(5, 12), - dedup(6, 10), - dedupSimilarity(7, 11), - supplement(8, 13), - part(9, 15), - version(10, 16), - relationship(11, 17), - ; - - public static final int provision_VALUE = 1; - public static final int participation_VALUE = 4; - public static final int outcome_VALUE = 6; - public static final int similarity_VALUE = 8; - public static final int publicationDataset_VALUE = 9; - public static final int affiliation_VALUE = 12; - public static final int dedup_VALUE = 10; - public static final int dedupSimilarity_VALUE = 11; - public static final int supplement_VALUE = 13; - public static final int part_VALUE = 15; - public static final int version_VALUE = 16; - public static final int relationship_VALUE = 17; - - - public final int getNumber() { return value; } - - public static SubRelType valueOf(int value) { - switch (value) { - case 1: return provision; - case 4: return participation; - case 6: return outcome; - case 8: return similarity; - case 9: return publicationDataset; - case 12: return affiliation; - case 10: return dedup; - case 11: return dedupSimilarity; - case 13: return supplement; - case 15: return part; - case 16: return version; - case 17: return relationship; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SubRelType findValueByNumber(int number) { - return SubRelType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.RelTypeProtos.getDescriptor().getEnumTypes().get(1); - } - - private static final SubRelType[] VALUES = { - provision, participation, outcome, similarity, publicationDataset, affiliation, dedup, dedupSimilarity, supplement, part, version, relationship, - }; - - public static SubRelType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private SubRelType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.SubRelType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rRelType.proto\022\025eu.dnetlib.data.proto*\231" + - "\001\n\007RelType\022\032\n\026datasourceOrganization\020\001\022\027" + - "\n\023projectOrganization\020\004\022\026\n\022resultOrganiz" + - "ation\020\005\022\021\n\rresultProject\020\006\022\020\n\014resultResu" + - "lt\020\t\022\034\n\030organizationOrganization\020\013*\315\001\n\nS" + - "ubRelType\022\r\n\tprovision\020\001\022\021\n\rparticipatio" + - "n\020\004\022\013\n\007outcome\020\006\022\016\n\nsimilarity\020\010\022\026\n\022publ" + - "icationDataset\020\t\022\017\n\013affiliation\020\014\022\t\n\005ded" + - "up\020\n\022\023\n\017dedupSimilarity\020\013\022\016\n\nsupplement\020" + - "\r\022\010\n\004part\020\017\022\013\n\007version\020\020\022\020\n\014relationship", - "\020\021B&\n\025eu.dnetlib.data.protoB\rRelTypeProt" + - "os" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultOrganizationProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultOrganizationProtos.java deleted file mode 100644 index d551ff2..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultOrganizationProtos.java +++ /dev/null @@ -1,1017 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Result_Organization.proto - -package eu.dnetlib.data.proto; - -public final class ResultOrganizationProtos { - private ResultOrganizationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ResultOrganizationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.ResultOrganization.Affiliation affiliation = 1; - boolean hasAffiliation(); - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation getAffiliation(); - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder getAffiliationOrBuilder(); - } - public static final class ResultOrganization extends - com.google.protobuf.GeneratedMessage - implements ResultOrganizationOrBuilder { - // Use ResultOrganization.newBuilder() to construct. - private ResultOrganization(Builder builder) { - super(builder); - } - private ResultOrganization(boolean noInit) {} - - private static final ResultOrganization defaultInstance; - public static ResultOrganization getDefaultInstance() { - return defaultInstance; - } - - public ResultOrganization getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_fieldAccessorTable; - } - - public interface AffiliationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Affiliation extends - com.google.protobuf.GeneratedMessage - implements AffiliationOrBuilder { - // Use Affiliation.newBuilder() to construct. - private Affiliation(Builder builder) { - super(builder); - } - private Affiliation(boolean noInit) {} - - private static final Affiliation defaultInstance; - public static Affiliation getDefaultInstance() { - return defaultInstance; - } - - public Affiliation getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isAuthorInstitutionOf(0, 1), - hasAuthorInstitution(1, 2), - ; - - public static final int isAuthorInstitutionOf_VALUE = 1; - public static final int hasAuthorInstitution_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isAuthorInstitutionOf; - case 2: return hasAuthorInstitution; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isAuthorInstitutionOf, hasAuthorInstitution, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultOrganization.Affiliation.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation 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.ResultOrganizationProtos.ResultOrganization.Affiliation 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 - implements eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation build() { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation buildPartial() { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation result = new eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation) { - return mergeFrom((eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation other) { - if (other == eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultOrganization.Affiliation) - } - - static { - defaultInstance = new Affiliation(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultOrganization.Affiliation) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.ResultOrganization.Affiliation affiliation = 1; - public static final int AFFILIATION_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation affiliation_; - public boolean hasAffiliation() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation getAffiliation() { - return affiliation_; - } - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder getAffiliationOrBuilder() { - return affiliation_; - } - - private void initFields() { - affiliation_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasAffiliation()) { - if (!getAffiliation().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, affiliation_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, affiliation_); - } - 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.ResultOrganizationProtos.ResultOrganization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization 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.ResultOrganizationProtos.ResultOrganization 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 - implements eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.internal_static_eu_dnetlib_data_proto_ResultOrganization_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAffiliationFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (affiliationBuilder_ == null) { - affiliation_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance(); - } else { - affiliationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization build() { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization buildPartial() { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization result = new eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (affiliationBuilder_ == null) { - result.affiliation_ = affiliation_; - } else { - result.affiliation_ = affiliationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization) { - return mergeFrom((eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization other) { - if (other == eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.getDefaultInstance()) return this; - if (other.hasAffiliation()) { - mergeAffiliation(other.getAffiliation()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasAffiliation()) { - if (!getAffiliation().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder subBuilder = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.newBuilder(); - if (hasAffiliation()) { - subBuilder.mergeFrom(getAffiliation()); - } - input.readMessage(subBuilder, extensionRegistry); - setAffiliation(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.ResultOrganization.Affiliation affiliation = 1; - private eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation affiliation_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder> affiliationBuilder_; - public boolean hasAffiliation() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation getAffiliation() { - if (affiliationBuilder_ == null) { - return affiliation_; - } else { - return affiliationBuilder_.getMessage(); - } - } - public Builder setAffiliation(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation value) { - if (affiliationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - affiliation_ = value; - onChanged(); - } else { - affiliationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setAffiliation( - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder builderForValue) { - if (affiliationBuilder_ == null) { - affiliation_ = builderForValue.build(); - onChanged(); - } else { - affiliationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeAffiliation(eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation value) { - if (affiliationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - affiliation_ != eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance()) { - affiliation_ = - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.newBuilder(affiliation_).mergeFrom(value).buildPartial(); - } else { - affiliation_ = value; - } - onChanged(); - } else { - affiliationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearAffiliation() { - if (affiliationBuilder_ == null) { - affiliation_ = eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.getDefaultInstance(); - onChanged(); - } else { - affiliationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder getAffiliationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAffiliationFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder getAffiliationOrBuilder() { - if (affiliationBuilder_ != null) { - return affiliationBuilder_.getMessageOrBuilder(); - } else { - return affiliation_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder> - getAffiliationFieldBuilder() { - if (affiliationBuilder_ == null) { - affiliationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder, eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.AffiliationOrBuilder>( - affiliation_, - getParentForChildren(), - isClean()); - affiliation_ = null; - } - return affiliationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultOrganization) - } - - static { - defaultInstance = new ResultOrganization(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultOrganization) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultOrganization_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultOrganization_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_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\031Result_Organization.proto\022\025eu.dnetlib." + - "data.proto\032\021RelMetadata.proto\"\351\001\n\022Result" + - "Organization\022J\n\013affiliation\030\001 \001(\01325.eu.d" + - "netlib.data.proto.ResultOrganization.Aff" + - "iliation\032\206\001\n\013Affiliation\0227\n\013relMetadata\030" + - "\001 \002(\0132\".eu.dnetlib.data.proto.RelMetadat" + - "a\">\n\007RelName\022\031\n\025isAuthorInstitutionOf\020\001\022" + - "\030\n\024hasAuthorInstitution\020\002B1\n\025eu.dnetlib." + - "data.protoB\030ResultOrganizationProtos" - }; - 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_ResultOrganization_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultOrganization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultOrganization_descriptor, - new java.lang.String[] { "Affiliation", }, - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.class, - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_descriptor = - internal_static_eu_dnetlib_data_proto_ResultOrganization_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultOrganization_Affiliation_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.class, - eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProjectProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProjectProtos.java deleted file mode 100644 index 0e7948e..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProjectProtos.java +++ /dev/null @@ -1,1016 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Result_Project.proto - -package eu.dnetlib.data.proto; - -public final class ResultProjectProtos { - private ResultProjectProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ResultProjectOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.ResultProject.Outcome outcome = 1; - boolean hasOutcome(); - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome getOutcome(); - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder getOutcomeOrBuilder(); - } - public static final class ResultProject extends - com.google.protobuf.GeneratedMessage - implements ResultProjectOrBuilder { - // Use ResultProject.newBuilder() to construct. - private ResultProject(Builder builder) { - super(builder); - } - private ResultProject(boolean noInit) {} - - private static final ResultProject defaultInstance; - public static ResultProject getDefaultInstance() { - return defaultInstance; - } - - public ResultProject getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_fieldAccessorTable; - } - - public interface OutcomeOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Outcome extends - com.google.protobuf.GeneratedMessage - implements OutcomeOrBuilder { - // Use Outcome.newBuilder() to construct. - private Outcome(Builder builder) { - super(builder); - } - private Outcome(boolean noInit) {} - - private static final Outcome defaultInstance; - public static Outcome getDefaultInstance() { - return defaultInstance; - } - - public Outcome getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isProducedBy(0, 1), - produces(1, 2), - ; - - public static final int isProducedBy_VALUE = 1; - public static final int produces_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isProducedBy; - case 2: return produces; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isProducedBy, produces, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultProject.Outcome.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome 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.ResultProjectProtos.ResultProject.Outcome 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 - implements eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome build() { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome buildPartial() { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome result = new eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome) { - return mergeFrom((eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome other) { - if (other == eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultProject.Outcome) - } - - static { - defaultInstance = new Outcome(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultProject.Outcome) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.ResultProject.Outcome outcome = 1; - public static final int OUTCOME_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome outcome_; - public boolean hasOutcome() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome getOutcome() { - return outcome_; - } - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder getOutcomeOrBuilder() { - return outcome_; - } - - private void initFields() { - outcome_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasOutcome()) { - if (!getOutcome().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, outcome_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, outcome_); - } - 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.ResultProjectProtos.ResultProject parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProjectProtos.ResultProject 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.ResultProjectProtos.ResultProject 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 - implements eu.dnetlib.data.proto.ResultProjectProtos.ResultProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProjectProtos.internal_static_eu_dnetlib_data_proto_ResultProject_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getOutcomeFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (outcomeBuilder_ == null) { - outcome_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance(); - } else { - outcomeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject build() { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject buildPartial() { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject result = new eu.dnetlib.data.proto.ResultProjectProtos.ResultProject(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (outcomeBuilder_ == null) { - result.outcome_ = outcome_; - } else { - result.outcome_ = outcomeBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProjectProtos.ResultProject) { - return mergeFrom((eu.dnetlib.data.proto.ResultProjectProtos.ResultProject)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject other) { - if (other == eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.getDefaultInstance()) return this; - if (other.hasOutcome()) { - mergeOutcome(other.getOutcome()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasOutcome()) { - if (!getOutcome().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder subBuilder = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.newBuilder(); - if (hasOutcome()) { - subBuilder.mergeFrom(getOutcome()); - } - input.readMessage(subBuilder, extensionRegistry); - setOutcome(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.ResultProject.Outcome outcome = 1; - private eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome outcome_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder> outcomeBuilder_; - public boolean hasOutcome() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome getOutcome() { - if (outcomeBuilder_ == null) { - return outcome_; - } else { - return outcomeBuilder_.getMessage(); - } - } - public Builder setOutcome(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome value) { - if (outcomeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outcome_ = value; - onChanged(); - } else { - outcomeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setOutcome( - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder builderForValue) { - if (outcomeBuilder_ == null) { - outcome_ = builderForValue.build(); - onChanged(); - } else { - outcomeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeOutcome(eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome value) { - if (outcomeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - outcome_ != eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance()) { - outcome_ = - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.newBuilder(outcome_).mergeFrom(value).buildPartial(); - } else { - outcome_ = value; - } - onChanged(); - } else { - outcomeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearOutcome() { - if (outcomeBuilder_ == null) { - outcome_ = eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.getDefaultInstance(); - onChanged(); - } else { - outcomeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder getOutcomeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getOutcomeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder getOutcomeOrBuilder() { - if (outcomeBuilder_ != null) { - return outcomeBuilder_.getMessageOrBuilder(); - } else { - return outcome_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder> - getOutcomeFieldBuilder() { - if (outcomeBuilder_ == null) { - outcomeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder, eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.OutcomeOrBuilder>( - outcome_, - getParentForChildren(), - isClean()); - outcome_ = null; - } - return outcomeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultProject) - } - - static { - defaultInstance = new ResultProject(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultProject) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultProject_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultProject_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_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\024Result_Project.proto\022\025eu.dnetlib.data." + - "proto\032\021RelMetadata.proto\"\275\001\n\rResultProje" + - "ct\022=\n\007outcome\030\001 \001(\0132,.eu.dnetlib.data.pr" + - "oto.ResultProject.Outcome\032m\n\007Outcome\0227\n\013" + - "relMetadata\030\001 \002(\0132\".eu.dnetlib.data.prot" + - "o.RelMetadata\")\n\007RelName\022\020\n\014isProducedBy" + - "\020\001\022\014\n\010produces\020\002B,\n\025eu.dnetlib.data.prot" + - "oB\023ResultProjectProtos" - }; - 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_ResultProject_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultProject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultProject_descriptor, - new java.lang.String[] { "Outcome", }, - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.class, - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_descriptor = - internal_static_eu_dnetlib_data_proto_ResultProject_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultProject_Outcome_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.class, - eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProtos.java deleted file mode 100644 index 816bc20..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultProtos.java +++ /dev/null @@ -1,14212 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Result.proto - -package eu.dnetlib.data.proto; - -public final class ResultProtos { - private ResultProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ResultOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.Result.Metadata metadata = 2; - boolean hasMetadata(); - eu.dnetlib.data.proto.ResultProtos.Result.Metadata getMetadata(); - eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder getMetadataOrBuilder(); - - // repeated .eu.dnetlib.data.proto.Result.Instance instance = 6; - java.util.List - getInstanceList(); - eu.dnetlib.data.proto.ResultProtos.Result.Instance getInstance(int index); - int getInstanceCount(); - java.util.List - getInstanceOrBuilderList(); - eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder getInstanceOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.Result.ExternalReference externalReference = 7; - java.util.List - getExternalReferenceList(); - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference getExternalReference(int index); - int getExternalReferenceCount(); - java.util.List - getExternalReferenceOrBuilderList(); - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder getExternalReferenceOrBuilder( - int index); - } - public static final class Result extends - com.google.protobuf.GeneratedMessage - implements ResultOrBuilder { - // Use Result.newBuilder() to construct. - private Result(Builder builder) { - super(builder); - } - private Result(boolean noInit) {} - - private static final Result defaultInstance; - public static Result getDefaultInstance() { - return defaultInstance; - } - - public Result getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_fieldAccessorTable; - } - - public interface MetadataOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated .eu.dnetlib.data.proto.Author author = 40; - java.util.List - getAuthorList(); - eu.dnetlib.data.proto.FieldTypeProtos.Author getAuthor(int index); - int getAuthorCount(); - java.util.List - getAuthorOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder getAuthorOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.Qualifier resulttype = 8; - boolean hasResulttype(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResulttype(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResulttypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier language = 12; - boolean hasLanguage(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getLanguage(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getLanguageOrBuilder(); - - // repeated .eu.dnetlib.data.proto.Qualifier country = 33; - java.util.List - getCountryList(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry(int index); - int getCountryCount(); - java.util.List - getCountryOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StructuredProperty subject = 1; - java.util.List - getSubjectList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubject(int index); - int getSubjectCount(); - java.util.List - getSubjectOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StructuredProperty title = 2; - java.util.List - getTitleList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getTitle(int index); - int getTitleCount(); - java.util.List - getTitleOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getTitleOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StructuredProperty relevantdate = 3; - java.util.List - getRelevantdateList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getRelevantdate(int index); - int getRelevantdateCount(); - java.util.List - getRelevantdateOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getRelevantdateOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField description = 25; - java.util.List - getDescriptionList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription(int index); - int getDescriptionCount(); - java.util.List - getDescriptionOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 4; - boolean hasDateofacceptance(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField publisher = 5; - boolean hasPublisher(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getPublisher(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPublisherOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField embargoenddate = 6; - boolean hasEmbargoenddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getEmbargoenddate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEmbargoenddateOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StringField source = 27; - java.util.List - getSourceList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getSource(int index); - int getSourceCount(); - java.util.List - getSourceOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSourceOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField fulltext = 29; - java.util.List - getFulltextList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getFulltext(int index); - int getFulltextCount(); - java.util.List - getFulltextOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFulltextOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField format = 21; - java.util.List - getFormatList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getFormat(int index); - int getFormatCount(); - java.util.List - getFormatOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFormatOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField contributor = 30; - java.util.List - getContributorList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContributor(int index); - int getContributorCount(); - java.util.List - getContributorOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContributorOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.Qualifier resourcetype = 19; - boolean hasResourcetype(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResourcetype(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResourcetypeOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StringField coverage = 43; - java.util.List - getCoverageList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCoverage(int index); - int getCoverageCount(); - java.util.List - getCoverageOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCoverageOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.Result.Context context = 28; - java.util.List - getContextList(); - eu.dnetlib.data.proto.ResultProtos.Result.Context getContext(int index); - int getContextCount(); - java.util.List - getContextOrBuilderList(); - eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder getContextOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.Result.Journal journal = 18; - boolean hasJournal(); - eu.dnetlib.data.proto.ResultProtos.Result.Journal getJournal(); - eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder getJournalOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField storagedate = 9; - boolean hasStoragedate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getStoragedate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStoragedateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField device = 26; - boolean hasDevice(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDevice(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDeviceOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField size = 20; - boolean hasSize(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getSize(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSizeOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField version = 22; - boolean hasVersion(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getVersion(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getVersionOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField lastmetadataupdate = 23; - boolean hasLastmetadataupdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLastmetadataupdate(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLastmetadataupdateOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField metadataversionnumber = 24; - boolean hasMetadataversionnumber(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getMetadataversionnumber(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMetadataversionnumberOrBuilder(); - - // repeated .eu.dnetlib.data.proto.Result.GeoLocation geolocation = 44; - java.util.List - getGeolocationList(); - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation getGeolocation(int index); - int getGeolocationCount(); - java.util.List - getGeolocationOrBuilderList(); - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder getGeolocationOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField documentationUrl = 35; - java.util.List - getDocumentationUrlList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDocumentationUrl(int index); - int getDocumentationUrlCount(); - java.util.List - getDocumentationUrlOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDocumentationUrlOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StructuredProperty license = 36; - java.util.List - getLicenseList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getLicense(int index); - int getLicenseCount(); - java.util.List - getLicenseOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getLicenseOrBuilder( - int index); - - // optional .eu.dnetlib.data.proto.StringField codeRepositoryUrl = 38; - boolean hasCodeRepositoryUrl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getCodeRepositoryUrl(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeRepositoryUrlOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier programmingLanguage = 39; - boolean hasProgrammingLanguage(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProgrammingLanguage(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProgrammingLanguageOrBuilder(); - - // repeated .eu.dnetlib.data.proto.StringField contactperson = 45; - java.util.List - getContactpersonList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactperson(int index); - int getContactpersonCount(); - java.util.List - getContactpersonOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactpersonOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField contactgroup = 41; - java.util.List - getContactgroupList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactgroup(int index); - int getContactgroupCount(); - java.util.List - getContactgroupOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactgroupOrBuilder( - int index); - - // repeated .eu.dnetlib.data.proto.StringField tool = 42; - java.util.List - getToolList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getTool(int index); - int getToolCount(); - java.util.List - getToolOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getToolOrBuilder( - int index); - } - public static final class Metadata extends - com.google.protobuf.GeneratedMessage - implements MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(Builder builder) { - super(builder); - } - private Metadata(boolean noInit) {} - - private static final Metadata defaultInstance; - public static Metadata getDefaultInstance() { - return defaultInstance; - } - - public Metadata getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Metadata_fieldAccessorTable; - } - - private int bitField0_; - // repeated .eu.dnetlib.data.proto.Author author = 40; - public static final int AUTHOR_FIELD_NUMBER = 40; - private java.util.List author_; - public java.util.List getAuthorList() { - return author_; - } - public java.util.List - getAuthorOrBuilderList() { - return author_; - } - public int getAuthorCount() { - return author_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Author getAuthor(int index) { - return author_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder getAuthorOrBuilder( - int index) { - return author_.get(index); - } - - // optional .eu.dnetlib.data.proto.Qualifier resulttype = 8; - public static final int RESULTTYPE_FIELD_NUMBER = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier resulttype_; - public boolean hasResulttype() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResulttype() { - return resulttype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResulttypeOrBuilder() { - return resulttype_; - } - - // optional .eu.dnetlib.data.proto.Qualifier language = 12; - public static final int LANGUAGE_FIELD_NUMBER = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier language_; - public boolean hasLanguage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getLanguage() { - return language_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getLanguageOrBuilder() { - return language_; - } - - // repeated .eu.dnetlib.data.proto.Qualifier country = 33; - public static final int COUNTRY_FIELD_NUMBER = 33; - private java.util.List country_; - public java.util.List getCountryList() { - return country_; - } - public java.util.List - getCountryOrBuilderList() { - return country_; - } - public int getCountryCount() { - return country_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry(int index) { - return country_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder( - int index) { - return country_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subject = 1; - public static final int SUBJECT_FIELD_NUMBER = 1; - private java.util.List subject_; - public java.util.List getSubjectList() { - return subject_; - } - public java.util.List - getSubjectOrBuilderList() { - return subject_; - } - public int getSubjectCount() { - return subject_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubject(int index) { - return subject_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectOrBuilder( - int index) { - return subject_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty title = 2; - public static final int TITLE_FIELD_NUMBER = 2; - private java.util.List title_; - public java.util.List getTitleList() { - return title_; - } - public java.util.List - getTitleOrBuilderList() { - return title_; - } - public int getTitleCount() { - return title_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getTitle(int index) { - return title_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getTitleOrBuilder( - int index) { - return title_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty relevantdate = 3; - public static final int RELEVANTDATE_FIELD_NUMBER = 3; - private java.util.List relevantdate_; - public java.util.List getRelevantdateList() { - return relevantdate_; - } - public java.util.List - getRelevantdateOrBuilderList() { - return relevantdate_; - } - public int getRelevantdateCount() { - return relevantdate_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getRelevantdate(int index) { - return relevantdate_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getRelevantdateOrBuilder( - int index) { - return relevantdate_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField description = 25; - public static final int DESCRIPTION_FIELD_NUMBER = 25; - private java.util.List description_; - public java.util.List getDescriptionList() { - return description_; - } - public java.util.List - getDescriptionOrBuilderList() { - return description_; - } - public int getDescriptionCount() { - return description_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription(int index) { - return description_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder( - int index) { - return description_.get(index); - } - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 4; - public static final int DATEOFACCEPTANCE_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofacceptance_; - public boolean hasDateofacceptance() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance() { - return dateofacceptance_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder() { - return dateofacceptance_; - } - - // optional .eu.dnetlib.data.proto.StringField publisher = 5; - public static final int PUBLISHER_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField publisher_; - public boolean hasPublisher() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getPublisher() { - return publisher_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPublisherOrBuilder() { - return publisher_; - } - - // optional .eu.dnetlib.data.proto.StringField embargoenddate = 6; - public static final int EMBARGOENDDATE_FIELD_NUMBER = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField embargoenddate_; - public boolean hasEmbargoenddate() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEmbargoenddate() { - return embargoenddate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEmbargoenddateOrBuilder() { - return embargoenddate_; - } - - // repeated .eu.dnetlib.data.proto.StringField source = 27; - public static final int SOURCE_FIELD_NUMBER = 27; - private java.util.List source_; - public java.util.List getSourceList() { - return source_; - } - public java.util.List - getSourceOrBuilderList() { - return source_; - } - public int getSourceCount() { - return source_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getSource(int index) { - return source_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSourceOrBuilder( - int index) { - return source_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField fulltext = 29; - public static final int FULLTEXT_FIELD_NUMBER = 29; - private java.util.List fulltext_; - public java.util.List getFulltextList() { - return fulltext_; - } - public java.util.List - getFulltextOrBuilderList() { - return fulltext_; - } - public int getFulltextCount() { - return fulltext_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFulltext(int index) { - return fulltext_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFulltextOrBuilder( - int index) { - return fulltext_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField format = 21; - public static final int FORMAT_FIELD_NUMBER = 21; - private java.util.List format_; - public java.util.List getFormatList() { - return format_; - } - public java.util.List - getFormatOrBuilderList() { - return format_; - } - public int getFormatCount() { - return format_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFormat(int index) { - return format_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFormatOrBuilder( - int index) { - return format_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField contributor = 30; - public static final int CONTRIBUTOR_FIELD_NUMBER = 30; - private java.util.List contributor_; - public java.util.List getContributorList() { - return contributor_; - } - public java.util.List - getContributorOrBuilderList() { - return contributor_; - } - public int getContributorCount() { - return contributor_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContributor(int index) { - return contributor_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContributorOrBuilder( - int index) { - return contributor_.get(index); - } - - // optional .eu.dnetlib.data.proto.Qualifier resourcetype = 19; - public static final int RESOURCETYPE_FIELD_NUMBER = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier resourcetype_; - public boolean hasResourcetype() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResourcetype() { - return resourcetype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResourcetypeOrBuilder() { - return resourcetype_; - } - - // repeated .eu.dnetlib.data.proto.StringField coverage = 43; - public static final int COVERAGE_FIELD_NUMBER = 43; - private java.util.List coverage_; - public java.util.List getCoverageList() { - return coverage_; - } - public java.util.List - getCoverageOrBuilderList() { - return coverage_; - } - public int getCoverageCount() { - return coverage_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCoverage(int index) { - return coverage_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCoverageOrBuilder( - int index) { - return coverage_.get(index); - } - - // repeated .eu.dnetlib.data.proto.Result.Context context = 28; - public static final int CONTEXT_FIELD_NUMBER = 28; - private java.util.List context_; - public java.util.List getContextList() { - return context_; - } - public java.util.List - getContextOrBuilderList() { - return context_; - } - public int getContextCount() { - return context_.size(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Context getContext(int index) { - return context_.get(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder getContextOrBuilder( - int index) { - return context_.get(index); - } - - // optional .eu.dnetlib.data.proto.Result.Journal journal = 18; - public static final int JOURNAL_FIELD_NUMBER = 18; - private eu.dnetlib.data.proto.ResultProtos.Result.Journal journal_; - public boolean hasJournal() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Journal getJournal() { - return journal_; - } - public eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder getJournalOrBuilder() { - return journal_; - } - - // optional .eu.dnetlib.data.proto.StringField storagedate = 9; - public static final int STORAGEDATE_FIELD_NUMBER = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField storagedate_; - public boolean hasStoragedate() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getStoragedate() { - return storagedate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStoragedateOrBuilder() { - return storagedate_; - } - - // optional .eu.dnetlib.data.proto.StringField device = 26; - public static final int DEVICE_FIELD_NUMBER = 26; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField device_; - public boolean hasDevice() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDevice() { - return device_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDeviceOrBuilder() { - return device_; - } - - // optional .eu.dnetlib.data.proto.StringField size = 20; - public static final int SIZE_FIELD_NUMBER = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField size_; - public boolean hasSize() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getSize() { - return size_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSizeOrBuilder() { - return size_; - } - - // optional .eu.dnetlib.data.proto.StringField version = 22; - public static final int VERSION_FIELD_NUMBER = 22; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField version_; - public boolean hasVersion() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getVersion() { - return version_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getVersionOrBuilder() { - return version_; - } - - // optional .eu.dnetlib.data.proto.StringField lastmetadataupdate = 23; - public static final int LASTMETADATAUPDATE_FIELD_NUMBER = 23; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField lastmetadataupdate_; - public boolean hasLastmetadataupdate() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLastmetadataupdate() { - return lastmetadataupdate_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLastmetadataupdateOrBuilder() { - return lastmetadataupdate_; - } - - // optional .eu.dnetlib.data.proto.StringField metadataversionnumber = 24; - public static final int METADATAVERSIONNUMBER_FIELD_NUMBER = 24; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField metadataversionnumber_; - public boolean hasMetadataversionnumber() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getMetadataversionnumber() { - return metadataversionnumber_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMetadataversionnumberOrBuilder() { - return metadataversionnumber_; - } - - // repeated .eu.dnetlib.data.proto.Result.GeoLocation geolocation = 44; - public static final int GEOLOCATION_FIELD_NUMBER = 44; - private java.util.List geolocation_; - public java.util.List getGeolocationList() { - return geolocation_; - } - public java.util.List - getGeolocationOrBuilderList() { - return geolocation_; - } - public int getGeolocationCount() { - return geolocation_.size(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation getGeolocation(int index) { - return geolocation_.get(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder getGeolocationOrBuilder( - int index) { - return geolocation_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField documentationUrl = 35; - public static final int DOCUMENTATIONURL_FIELD_NUMBER = 35; - private java.util.List documentationUrl_; - public java.util.List getDocumentationUrlList() { - return documentationUrl_; - } - public java.util.List - getDocumentationUrlOrBuilderList() { - return documentationUrl_; - } - public int getDocumentationUrlCount() { - return documentationUrl_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDocumentationUrl(int index) { - return documentationUrl_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDocumentationUrlOrBuilder( - int index) { - return documentationUrl_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty license = 36; - public static final int LICENSE_FIELD_NUMBER = 36; - private java.util.List license_; - public java.util.List getLicenseList() { - return license_; - } - public java.util.List - getLicenseOrBuilderList() { - return license_; - } - public int getLicenseCount() { - return license_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getLicense(int index) { - return license_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getLicenseOrBuilder( - int index) { - return license_.get(index); - } - - // optional .eu.dnetlib.data.proto.StringField codeRepositoryUrl = 38; - public static final int CODEREPOSITORYURL_FIELD_NUMBER = 38; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField codeRepositoryUrl_; - public boolean hasCodeRepositoryUrl() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCodeRepositoryUrl() { - return codeRepositoryUrl_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeRepositoryUrlOrBuilder() { - return codeRepositoryUrl_; - } - - // optional .eu.dnetlib.data.proto.Qualifier programmingLanguage = 39; - public static final int PROGRAMMINGLANGUAGE_FIELD_NUMBER = 39; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier programmingLanguage_; - public boolean hasProgrammingLanguage() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProgrammingLanguage() { - return programmingLanguage_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProgrammingLanguageOrBuilder() { - return programmingLanguage_; - } - - // repeated .eu.dnetlib.data.proto.StringField contactperson = 45; - public static final int CONTACTPERSON_FIELD_NUMBER = 45; - private java.util.List contactperson_; - public java.util.List getContactpersonList() { - return contactperson_; - } - public java.util.List - getContactpersonOrBuilderList() { - return contactperson_; - } - public int getContactpersonCount() { - return contactperson_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactperson(int index) { - return contactperson_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactpersonOrBuilder( - int index) { - return contactperson_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField contactgroup = 41; - public static final int CONTACTGROUP_FIELD_NUMBER = 41; - private java.util.List contactgroup_; - public java.util.List getContactgroupList() { - return contactgroup_; - } - public java.util.List - getContactgroupOrBuilderList() { - return contactgroup_; - } - public int getContactgroupCount() { - return contactgroup_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactgroup(int index) { - return contactgroup_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactgroupOrBuilder( - int index) { - return contactgroup_.get(index); - } - - // repeated .eu.dnetlib.data.proto.StringField tool = 42; - public static final int TOOL_FIELD_NUMBER = 42; - private java.util.List tool_; - public java.util.List getToolList() { - return tool_; - } - public java.util.List - getToolOrBuilderList() { - return tool_; - } - public int getToolCount() { - return tool_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getTool(int index) { - return tool_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getToolOrBuilder( - int index) { - return tool_.get(index); - } - - private void initFields() { - author_ = java.util.Collections.emptyList(); - resulttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - language_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - country_ = java.util.Collections.emptyList(); - subject_ = java.util.Collections.emptyList(); - title_ = java.util.Collections.emptyList(); - relevantdate_ = java.util.Collections.emptyList(); - description_ = java.util.Collections.emptyList(); - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - publisher_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - embargoenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - source_ = java.util.Collections.emptyList(); - fulltext_ = java.util.Collections.emptyList(); - format_ = java.util.Collections.emptyList(); - contributor_ = java.util.Collections.emptyList(); - resourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - coverage_ = java.util.Collections.emptyList(); - context_ = java.util.Collections.emptyList(); - journal_ = eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance(); - storagedate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - device_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - size_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - version_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - lastmetadataupdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - metadataversionnumber_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - geolocation_ = java.util.Collections.emptyList(); - documentationUrl_ = java.util.Collections.emptyList(); - license_ = java.util.Collections.emptyList(); - codeRepositoryUrl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - programmingLanguage_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - contactperson_ = java.util.Collections.emptyList(); - contactgroup_ = java.util.Collections.emptyList(); - tool_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getAuthorCount(); i++) { - if (!getAuthor(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasResulttype()) { - if (!getResulttype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLanguage()) { - if (!getLanguage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getCountryCount(); i++) { - if (!getCountry(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getSubjectCount(); i++) { - if (!getSubject(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getTitleCount(); i++) { - if (!getTitle(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getRelevantdateCount(); i++) { - if (!getRelevantdate(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getDescriptionCount(); i++) { - if (!getDescription(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDateofacceptance()) { - if (!getDateofacceptance().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPublisher()) { - if (!getPublisher().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEmbargoenddate()) { - if (!getEmbargoenddate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getSourceCount(); i++) { - if (!getSource(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getFulltextCount(); i++) { - if (!getFulltext(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getFormatCount(); i++) { - if (!getFormat(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getContributorCount(); i++) { - if (!getContributor(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasResourcetype()) { - if (!getResourcetype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getCoverageCount(); i++) { - if (!getCoverage(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getContextCount(); i++) { - if (!getContext(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasJournal()) { - if (!getJournal().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasStoragedate()) { - if (!getStoragedate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDevice()) { - if (!getDevice().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSize()) { - if (!getSize().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasVersion()) { - if (!getVersion().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLastmetadataupdate()) { - if (!getLastmetadataupdate().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasMetadataversionnumber()) { - if (!getMetadataversionnumber().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getDocumentationUrlCount(); i++) { - if (!getDocumentationUrl(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getLicenseCount(); i++) { - if (!getLicense(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCodeRepositoryUrl()) { - if (!getCodeRepositoryUrl().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasProgrammingLanguage()) { - if (!getProgrammingLanguage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getContactpersonCount(); i++) { - if (!getContactperson(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getContactgroupCount(); i++) { - if (!getContactgroup(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getToolCount(); i++) { - if (!getTool(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < subject_.size(); i++) { - output.writeMessage(1, subject_.get(i)); - } - for (int i = 0; i < title_.size(); i++) { - output.writeMessage(2, title_.get(i)); - } - for (int i = 0; i < relevantdate_.size(); i++) { - output.writeMessage(3, relevantdate_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, dateofacceptance_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, publisher_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, embargoenddate_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(8, resulttype_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(9, storagedate_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(12, language_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(18, journal_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(19, resourcetype_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(20, size_); - } - for (int i = 0; i < format_.size(); i++) { - output.writeMessage(21, format_.get(i)); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(22, version_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(23, lastmetadataupdate_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(24, metadataversionnumber_); - } - for (int i = 0; i < description_.size(); i++) { - output.writeMessage(25, description_.get(i)); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(26, device_); - } - for (int i = 0; i < source_.size(); i++) { - output.writeMessage(27, source_.get(i)); - } - for (int i = 0; i < context_.size(); i++) { - output.writeMessage(28, context_.get(i)); - } - for (int i = 0; i < fulltext_.size(); i++) { - output.writeMessage(29, fulltext_.get(i)); - } - for (int i = 0; i < contributor_.size(); i++) { - output.writeMessage(30, contributor_.get(i)); - } - for (int i = 0; i < country_.size(); i++) { - output.writeMessage(33, country_.get(i)); - } - for (int i = 0; i < documentationUrl_.size(); i++) { - output.writeMessage(35, documentationUrl_.get(i)); - } - for (int i = 0; i < license_.size(); i++) { - output.writeMessage(36, license_.get(i)); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(38, codeRepositoryUrl_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(39, programmingLanguage_); - } - for (int i = 0; i < author_.size(); i++) { - output.writeMessage(40, author_.get(i)); - } - for (int i = 0; i < contactgroup_.size(); i++) { - output.writeMessage(41, contactgroup_.get(i)); - } - for (int i = 0; i < tool_.size(); i++) { - output.writeMessage(42, tool_.get(i)); - } - for (int i = 0; i < coverage_.size(); i++) { - output.writeMessage(43, coverage_.get(i)); - } - for (int i = 0; i < geolocation_.size(); i++) { - output.writeMessage(44, geolocation_.get(i)); - } - for (int i = 0; i < contactperson_.size(); i++) { - output.writeMessage(45, contactperson_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < subject_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, subject_.get(i)); - } - for (int i = 0; i < title_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, title_.get(i)); - } - for (int i = 0; i < relevantdate_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, relevantdate_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, dateofacceptance_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, publisher_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, embargoenddate_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, resulttype_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, storagedate_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, language_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, journal_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, resourcetype_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, size_); - } - for (int i = 0; i < format_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, format_.get(i)); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, version_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, lastmetadataupdate_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, metadataversionnumber_); - } - for (int i = 0; i < description_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, description_.get(i)); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, device_); - } - for (int i = 0; i < source_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, source_.get(i)); - } - for (int i = 0; i < context_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, context_.get(i)); - } - for (int i = 0; i < fulltext_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, fulltext_.get(i)); - } - for (int i = 0; i < contributor_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, contributor_.get(i)); - } - for (int i = 0; i < country_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, country_.get(i)); - } - for (int i = 0; i < documentationUrl_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, documentationUrl_.get(i)); - } - for (int i = 0; i < license_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, license_.get(i)); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, codeRepositoryUrl_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, programmingLanguage_); - } - for (int i = 0; i < author_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, author_.get(i)); - } - for (int i = 0; i < contactgroup_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, contactgroup_.get(i)); - } - for (int i = 0; i < tool_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, tool_.get(i)); - } - for (int i = 0; i < coverage_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, coverage_.get(i)); - } - for (int i = 0; i < geolocation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, geolocation_.get(i)); - } - for (int i = 0; i < contactperson_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, contactperson_.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.ResultProtos.Result.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Metadata 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.ResultProtos.Result.Metadata 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Metadata_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAuthorFieldBuilder(); - getResulttypeFieldBuilder(); - getLanguageFieldBuilder(); - getCountryFieldBuilder(); - getSubjectFieldBuilder(); - getTitleFieldBuilder(); - getRelevantdateFieldBuilder(); - getDescriptionFieldBuilder(); - getDateofacceptanceFieldBuilder(); - getPublisherFieldBuilder(); - getEmbargoenddateFieldBuilder(); - getSourceFieldBuilder(); - getFulltextFieldBuilder(); - getFormatFieldBuilder(); - getContributorFieldBuilder(); - getResourcetypeFieldBuilder(); - getCoverageFieldBuilder(); - getContextFieldBuilder(); - getJournalFieldBuilder(); - getStoragedateFieldBuilder(); - getDeviceFieldBuilder(); - getSizeFieldBuilder(); - getVersionFieldBuilder(); - getLastmetadataupdateFieldBuilder(); - getMetadataversionnumberFieldBuilder(); - getGeolocationFieldBuilder(); - getDocumentationUrlFieldBuilder(); - getLicenseFieldBuilder(); - getCodeRepositoryUrlFieldBuilder(); - getProgrammingLanguageFieldBuilder(); - getContactpersonFieldBuilder(); - getContactgroupFieldBuilder(); - getToolFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (authorBuilder_ == null) { - author_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - authorBuilder_.clear(); - } - if (resulttypeBuilder_ == null) { - resulttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - resulttypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (languageBuilder_ == null) { - language_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - languageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (countryBuilder_ == null) { - country_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - countryBuilder_.clear(); - } - if (subjectBuilder_ == null) { - subject_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - subjectBuilder_.clear(); - } - if (titleBuilder_ == null) { - title_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - titleBuilder_.clear(); - } - if (relevantdateBuilder_ == null) { - relevantdate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - relevantdateBuilder_.clear(); - } - if (descriptionBuilder_ == null) { - description_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - descriptionBuilder_.clear(); - } - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - dateofacceptanceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (publisherBuilder_ == null) { - publisher_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - publisherBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (embargoenddateBuilder_ == null) { - embargoenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - embargoenddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (sourceBuilder_ == null) { - source_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - } else { - sourceBuilder_.clear(); - } - if (fulltextBuilder_ == null) { - fulltext_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - } else { - fulltextBuilder_.clear(); - } - if (formatBuilder_ == null) { - format_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - } else { - formatBuilder_.clear(); - } - if (contributorBuilder_ == null) { - contributor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - } else { - contributorBuilder_.clear(); - } - if (resourcetypeBuilder_ == null) { - resourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - resourcetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - if (coverageBuilder_ == null) { - coverage_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - } else { - coverageBuilder_.clear(); - } - if (contextBuilder_ == null) { - context_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - } else { - contextBuilder_.clear(); - } - if (journalBuilder_ == null) { - journal_ = eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance(); - } else { - journalBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - if (storagedateBuilder_ == null) { - storagedate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - storagedateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - if (deviceBuilder_ == null) { - device_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - deviceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - if (sizeBuilder_ == null) { - size_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - sizeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - if (versionBuilder_ == null) { - version_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - versionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00400000); - if (lastmetadataupdateBuilder_ == null) { - lastmetadataupdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - lastmetadataupdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00800000); - if (metadataversionnumberBuilder_ == null) { - metadataversionnumber_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - metadataversionnumberBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x01000000); - if (geolocationBuilder_ == null) { - geolocation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); - } else { - geolocationBuilder_.clear(); - } - if (documentationUrlBuilder_ == null) { - documentationUrl_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); - } else { - documentationUrlBuilder_.clear(); - } - if (licenseBuilder_ == null) { - license_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x08000000); - } else { - licenseBuilder_.clear(); - } - if (codeRepositoryUrlBuilder_ == null) { - codeRepositoryUrl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - codeRepositoryUrlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x10000000); - if (programmingLanguageBuilder_ == null) { - programmingLanguage_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - programmingLanguageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x20000000); - if (contactpersonBuilder_ == null) { - contactperson_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x40000000); - } else { - contactpersonBuilder_.clear(); - } - if (contactgroupBuilder_ == null) { - contactgroup_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x80000000); - } else { - contactgroupBuilder_.clear(); - } - if (toolBuilder_ == null) { - tool_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000001); - } else { - toolBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata build() { - eu.dnetlib.data.proto.ResultProtos.Result.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.Metadata buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.Metadata result = new eu.dnetlib.data.proto.ResultProtos.Result.Metadata(this); - int from_bitField0_ = bitField0_; - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (authorBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - author_ = java.util.Collections.unmodifiableList(author_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.author_ = author_; - } else { - result.author_ = authorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000001; - } - if (resulttypeBuilder_ == null) { - result.resulttype_ = resulttype_; - } else { - result.resulttype_ = resulttypeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - if (languageBuilder_ == null) { - result.language_ = language_; - } else { - result.language_ = languageBuilder_.build(); - } - if (countryBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - country_ = java.util.Collections.unmodifiableList(country_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.country_ = country_; - } else { - result.country_ = countryBuilder_.build(); - } - if (subjectBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subject_ = java.util.Collections.unmodifiableList(subject_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.subject_ = subject_; - } else { - result.subject_ = subjectBuilder_.build(); - } - if (titleBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - title_ = java.util.Collections.unmodifiableList(title_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.title_ = title_; - } else { - result.title_ = titleBuilder_.build(); - } - if (relevantdateBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - relevantdate_ = java.util.Collections.unmodifiableList(relevantdate_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.relevantdate_ = relevantdate_; - } else { - result.relevantdate_ = relevantdateBuilder_.build(); - } - if (descriptionBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - description_ = java.util.Collections.unmodifiableList(description_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000004; - } - if (dateofacceptanceBuilder_ == null) { - result.dateofacceptance_ = dateofacceptance_; - } else { - result.dateofacceptance_ = dateofacceptanceBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000008; - } - if (publisherBuilder_ == null) { - result.publisher_ = publisher_; - } else { - result.publisher_ = publisherBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000010; - } - if (embargoenddateBuilder_ == null) { - result.embargoenddate_ = embargoenddate_; - } else { - result.embargoenddate_ = embargoenddateBuilder_.build(); - } - if (sourceBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800)) { - source_ = java.util.Collections.unmodifiableList(source_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.source_ = source_; - } else { - result.source_ = sourceBuilder_.build(); - } - if (fulltextBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000)) { - fulltext_ = java.util.Collections.unmodifiableList(fulltext_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.fulltext_ = fulltext_; - } else { - result.fulltext_ = fulltextBuilder_.build(); - } - if (formatBuilder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000)) { - format_ = java.util.Collections.unmodifiableList(format_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.format_ = format_; - } else { - result.format_ = formatBuilder_.build(); - } - if (contributorBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000)) { - contributor_ = java.util.Collections.unmodifiableList(contributor_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.contributor_ = contributor_; - } else { - result.contributor_ = contributorBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00000020; - } - if (resourcetypeBuilder_ == null) { - result.resourcetype_ = resourcetype_; - } else { - result.resourcetype_ = resourcetypeBuilder_.build(); - } - if (coverageBuilder_ == null) { - if (((bitField0_ & 0x00010000) == 0x00010000)) { - coverage_ = java.util.Collections.unmodifiableList(coverage_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.coverage_ = coverage_; - } else { - result.coverage_ = coverageBuilder_.build(); - } - if (contextBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000)) { - context_ = java.util.Collections.unmodifiableList(context_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00000040; - } - if (journalBuilder_ == null) { - result.journal_ = journal_; - } else { - result.journal_ = journalBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00000080; - } - if (storagedateBuilder_ == null) { - result.storagedate_ = storagedate_; - } else { - result.storagedate_ = storagedateBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00000100; - } - if (deviceBuilder_ == null) { - result.device_ = device_; - } else { - result.device_ = deviceBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00000200; - } - if (sizeBuilder_ == null) { - result.size_ = size_; - } else { - result.size_ = sizeBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00000400; - } - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { - to_bitField0_ |= 0x00000800; - } - if (lastmetadataupdateBuilder_ == null) { - result.lastmetadataupdate_ = lastmetadataupdate_; - } else { - result.lastmetadataupdate_ = lastmetadataupdateBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x00001000; - } - if (metadataversionnumberBuilder_ == null) { - result.metadataversionnumber_ = metadataversionnumber_; - } else { - result.metadataversionnumber_ = metadataversionnumberBuilder_.build(); - } - if (geolocationBuilder_ == null) { - if (((bitField0_ & 0x02000000) == 0x02000000)) { - geolocation_ = java.util.Collections.unmodifiableList(geolocation_); - bitField0_ = (bitField0_ & ~0x02000000); - } - result.geolocation_ = geolocation_; - } else { - result.geolocation_ = geolocationBuilder_.build(); - } - if (documentationUrlBuilder_ == null) { - if (((bitField0_ & 0x04000000) == 0x04000000)) { - documentationUrl_ = java.util.Collections.unmodifiableList(documentationUrl_); - bitField0_ = (bitField0_ & ~0x04000000); - } - result.documentationUrl_ = documentationUrl_; - } else { - result.documentationUrl_ = documentationUrlBuilder_.build(); - } - if (licenseBuilder_ == null) { - if (((bitField0_ & 0x08000000) == 0x08000000)) { - license_ = java.util.Collections.unmodifiableList(license_); - bitField0_ = (bitField0_ & ~0x08000000); - } - result.license_ = license_; - } else { - result.license_ = licenseBuilder_.build(); - } - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { - to_bitField0_ |= 0x00002000; - } - if (codeRepositoryUrlBuilder_ == null) { - result.codeRepositoryUrl_ = codeRepositoryUrl_; - } else { - result.codeRepositoryUrl_ = codeRepositoryUrlBuilder_.build(); - } - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { - to_bitField0_ |= 0x00004000; - } - if (programmingLanguageBuilder_ == null) { - result.programmingLanguage_ = programmingLanguage_; - } else { - result.programmingLanguage_ = programmingLanguageBuilder_.build(); - } - if (contactpersonBuilder_ == null) { - if (((bitField0_ & 0x40000000) == 0x40000000)) { - contactperson_ = java.util.Collections.unmodifiableList(contactperson_); - bitField0_ = (bitField0_ & ~0x40000000); - } - result.contactperson_ = contactperson_; - } else { - result.contactperson_ = contactpersonBuilder_.build(); - } - if (contactgroupBuilder_ == null) { - if (((bitField0_ & 0x80000000) == 0x80000000)) { - contactgroup_ = java.util.Collections.unmodifiableList(contactgroup_); - bitField0_ = (bitField0_ & ~0x80000000); - } - result.contactgroup_ = contactgroup_; - } else { - result.contactgroup_ = contactgroupBuilder_.build(); - } - if (toolBuilder_ == null) { - if (((bitField1_ & 0x00000001) == 0x00000001)) { - tool_ = java.util.Collections.unmodifiableList(tool_); - bitField1_ = (bitField1_ & ~0x00000001); - } - result.tool_ = tool_; - } else { - result.tool_ = toolBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.Metadata) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.Metadata other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance()) return this; - if (authorBuilder_ == null) { - if (!other.author_.isEmpty()) { - if (author_.isEmpty()) { - author_ = other.author_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAuthorIsMutable(); - author_.addAll(other.author_); - } - onChanged(); - } - } else { - if (!other.author_.isEmpty()) { - if (authorBuilder_.isEmpty()) { - authorBuilder_.dispose(); - authorBuilder_ = null; - author_ = other.author_; - bitField0_ = (bitField0_ & ~0x00000001); - authorBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAuthorFieldBuilder() : null; - } else { - authorBuilder_.addAllMessages(other.author_); - } - } - } - if (other.hasResulttype()) { - mergeResulttype(other.getResulttype()); - } - if (other.hasLanguage()) { - mergeLanguage(other.getLanguage()); - } - if (countryBuilder_ == null) { - if (!other.country_.isEmpty()) { - if (country_.isEmpty()) { - country_ = other.country_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureCountryIsMutable(); - country_.addAll(other.country_); - } - onChanged(); - } - } else { - if (!other.country_.isEmpty()) { - if (countryBuilder_.isEmpty()) { - countryBuilder_.dispose(); - countryBuilder_ = null; - country_ = other.country_; - bitField0_ = (bitField0_ & ~0x00000008); - countryBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCountryFieldBuilder() : null; - } else { - countryBuilder_.addAllMessages(other.country_); - } - } - } - if (subjectBuilder_ == null) { - if (!other.subject_.isEmpty()) { - if (subject_.isEmpty()) { - subject_ = other.subject_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSubjectIsMutable(); - subject_.addAll(other.subject_); - } - onChanged(); - } - } else { - if (!other.subject_.isEmpty()) { - if (subjectBuilder_.isEmpty()) { - subjectBuilder_.dispose(); - subjectBuilder_ = null; - subject_ = other.subject_; - bitField0_ = (bitField0_ & ~0x00000010); - subjectBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSubjectFieldBuilder() : null; - } else { - subjectBuilder_.addAllMessages(other.subject_); - } - } - } - if (titleBuilder_ == null) { - if (!other.title_.isEmpty()) { - if (title_.isEmpty()) { - title_ = other.title_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTitleIsMutable(); - title_.addAll(other.title_); - } - onChanged(); - } - } else { - if (!other.title_.isEmpty()) { - if (titleBuilder_.isEmpty()) { - titleBuilder_.dispose(); - titleBuilder_ = null; - title_ = other.title_; - bitField0_ = (bitField0_ & ~0x00000020); - titleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getTitleFieldBuilder() : null; - } else { - titleBuilder_.addAllMessages(other.title_); - } - } - } - if (relevantdateBuilder_ == null) { - if (!other.relevantdate_.isEmpty()) { - if (relevantdate_.isEmpty()) { - relevantdate_ = other.relevantdate_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureRelevantdateIsMutable(); - relevantdate_.addAll(other.relevantdate_); - } - onChanged(); - } - } else { - if (!other.relevantdate_.isEmpty()) { - if (relevantdateBuilder_.isEmpty()) { - relevantdateBuilder_.dispose(); - relevantdateBuilder_ = null; - relevantdate_ = other.relevantdate_; - bitField0_ = (bitField0_ & ~0x00000040); - relevantdateBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRelevantdateFieldBuilder() : null; - } else { - relevantdateBuilder_.addAllMessages(other.relevantdate_); - } - } - } - if (descriptionBuilder_ == null) { - if (!other.description_.isEmpty()) { - if (description_.isEmpty()) { - description_ = other.description_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureDescriptionIsMutable(); - description_.addAll(other.description_); - } - onChanged(); - } - } else { - if (!other.description_.isEmpty()) { - if (descriptionBuilder_.isEmpty()) { - descriptionBuilder_.dispose(); - descriptionBuilder_ = null; - description_ = other.description_; - bitField0_ = (bitField0_ & ~0x00000080); - descriptionBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDescriptionFieldBuilder() : null; - } else { - descriptionBuilder_.addAllMessages(other.description_); - } - } - } - if (other.hasDateofacceptance()) { - mergeDateofacceptance(other.getDateofacceptance()); - } - if (other.hasPublisher()) { - mergePublisher(other.getPublisher()); - } - if (other.hasEmbargoenddate()) { - mergeEmbargoenddate(other.getEmbargoenddate()); - } - if (sourceBuilder_ == null) { - if (!other.source_.isEmpty()) { - if (source_.isEmpty()) { - source_ = other.source_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureSourceIsMutable(); - source_.addAll(other.source_); - } - onChanged(); - } - } else { - if (!other.source_.isEmpty()) { - if (sourceBuilder_.isEmpty()) { - sourceBuilder_.dispose(); - sourceBuilder_ = null; - source_ = other.source_; - bitField0_ = (bitField0_ & ~0x00000800); - sourceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSourceFieldBuilder() : null; - } else { - sourceBuilder_.addAllMessages(other.source_); - } - } - } - if (fulltextBuilder_ == null) { - if (!other.fulltext_.isEmpty()) { - if (fulltext_.isEmpty()) { - fulltext_ = other.fulltext_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureFulltextIsMutable(); - fulltext_.addAll(other.fulltext_); - } - onChanged(); - } - } else { - if (!other.fulltext_.isEmpty()) { - if (fulltextBuilder_.isEmpty()) { - fulltextBuilder_.dispose(); - fulltextBuilder_ = null; - fulltext_ = other.fulltext_; - bitField0_ = (bitField0_ & ~0x00001000); - fulltextBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFulltextFieldBuilder() : null; - } else { - fulltextBuilder_.addAllMessages(other.fulltext_); - } - } - } - if (formatBuilder_ == null) { - if (!other.format_.isEmpty()) { - if (format_.isEmpty()) { - format_ = other.format_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureFormatIsMutable(); - format_.addAll(other.format_); - } - onChanged(); - } - } else { - if (!other.format_.isEmpty()) { - if (formatBuilder_.isEmpty()) { - formatBuilder_.dispose(); - formatBuilder_ = null; - format_ = other.format_; - bitField0_ = (bitField0_ & ~0x00002000); - formatBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFormatFieldBuilder() : null; - } else { - formatBuilder_.addAllMessages(other.format_); - } - } - } - if (contributorBuilder_ == null) { - if (!other.contributor_.isEmpty()) { - if (contributor_.isEmpty()) { - contributor_ = other.contributor_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureContributorIsMutable(); - contributor_.addAll(other.contributor_); - } - onChanged(); - } - } else { - if (!other.contributor_.isEmpty()) { - if (contributorBuilder_.isEmpty()) { - contributorBuilder_.dispose(); - contributorBuilder_ = null; - contributor_ = other.contributor_; - bitField0_ = (bitField0_ & ~0x00004000); - contributorBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContributorFieldBuilder() : null; - } else { - contributorBuilder_.addAllMessages(other.contributor_); - } - } - } - if (other.hasResourcetype()) { - mergeResourcetype(other.getResourcetype()); - } - if (coverageBuilder_ == null) { - if (!other.coverage_.isEmpty()) { - if (coverage_.isEmpty()) { - coverage_ = other.coverage_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureCoverageIsMutable(); - coverage_.addAll(other.coverage_); - } - onChanged(); - } - } else { - if (!other.coverage_.isEmpty()) { - if (coverageBuilder_.isEmpty()) { - coverageBuilder_.dispose(); - coverageBuilder_ = null; - coverage_ = other.coverage_; - bitField0_ = (bitField0_ & ~0x00010000); - coverageBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCoverageFieldBuilder() : null; - } else { - coverageBuilder_.addAllMessages(other.coverage_); - } - } - } - if (contextBuilder_ == null) { - if (!other.context_.isEmpty()) { - if (context_.isEmpty()) { - context_ = other.context_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureContextIsMutable(); - context_.addAll(other.context_); - } - onChanged(); - } - } else { - if (!other.context_.isEmpty()) { - if (contextBuilder_.isEmpty()) { - contextBuilder_.dispose(); - contextBuilder_ = null; - context_ = other.context_; - bitField0_ = (bitField0_ & ~0x00020000); - contextBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContextFieldBuilder() : null; - } else { - contextBuilder_.addAllMessages(other.context_); - } - } - } - if (other.hasJournal()) { - mergeJournal(other.getJournal()); - } - if (other.hasStoragedate()) { - mergeStoragedate(other.getStoragedate()); - } - if (other.hasDevice()) { - mergeDevice(other.getDevice()); - } - if (other.hasSize()) { - mergeSize(other.getSize()); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - if (other.hasLastmetadataupdate()) { - mergeLastmetadataupdate(other.getLastmetadataupdate()); - } - if (other.hasMetadataversionnumber()) { - mergeMetadataversionnumber(other.getMetadataversionnumber()); - } - if (geolocationBuilder_ == null) { - if (!other.geolocation_.isEmpty()) { - if (geolocation_.isEmpty()) { - geolocation_ = other.geolocation_; - bitField0_ = (bitField0_ & ~0x02000000); - } else { - ensureGeolocationIsMutable(); - geolocation_.addAll(other.geolocation_); - } - onChanged(); - } - } else { - if (!other.geolocation_.isEmpty()) { - if (geolocationBuilder_.isEmpty()) { - geolocationBuilder_.dispose(); - geolocationBuilder_ = null; - geolocation_ = other.geolocation_; - bitField0_ = (bitField0_ & ~0x02000000); - geolocationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getGeolocationFieldBuilder() : null; - } else { - geolocationBuilder_.addAllMessages(other.geolocation_); - } - } - } - if (documentationUrlBuilder_ == null) { - if (!other.documentationUrl_.isEmpty()) { - if (documentationUrl_.isEmpty()) { - documentationUrl_ = other.documentationUrl_; - bitField0_ = (bitField0_ & ~0x04000000); - } else { - ensureDocumentationUrlIsMutable(); - documentationUrl_.addAll(other.documentationUrl_); - } - onChanged(); - } - } else { - if (!other.documentationUrl_.isEmpty()) { - if (documentationUrlBuilder_.isEmpty()) { - documentationUrlBuilder_.dispose(); - documentationUrlBuilder_ = null; - documentationUrl_ = other.documentationUrl_; - bitField0_ = (bitField0_ & ~0x04000000); - documentationUrlBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDocumentationUrlFieldBuilder() : null; - } else { - documentationUrlBuilder_.addAllMessages(other.documentationUrl_); - } - } - } - if (licenseBuilder_ == null) { - if (!other.license_.isEmpty()) { - if (license_.isEmpty()) { - license_ = other.license_; - bitField0_ = (bitField0_ & ~0x08000000); - } else { - ensureLicenseIsMutable(); - license_.addAll(other.license_); - } - onChanged(); - } - } else { - if (!other.license_.isEmpty()) { - if (licenseBuilder_.isEmpty()) { - licenseBuilder_.dispose(); - licenseBuilder_ = null; - license_ = other.license_; - bitField0_ = (bitField0_ & ~0x08000000); - licenseBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLicenseFieldBuilder() : null; - } else { - licenseBuilder_.addAllMessages(other.license_); - } - } - } - if (other.hasCodeRepositoryUrl()) { - mergeCodeRepositoryUrl(other.getCodeRepositoryUrl()); - } - if (other.hasProgrammingLanguage()) { - mergeProgrammingLanguage(other.getProgrammingLanguage()); - } - if (contactpersonBuilder_ == null) { - if (!other.contactperson_.isEmpty()) { - if (contactperson_.isEmpty()) { - contactperson_ = other.contactperson_; - bitField0_ = (bitField0_ & ~0x40000000); - } else { - ensureContactpersonIsMutable(); - contactperson_.addAll(other.contactperson_); - } - onChanged(); - } - } else { - if (!other.contactperson_.isEmpty()) { - if (contactpersonBuilder_.isEmpty()) { - contactpersonBuilder_.dispose(); - contactpersonBuilder_ = null; - contactperson_ = other.contactperson_; - bitField0_ = (bitField0_ & ~0x40000000); - contactpersonBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContactpersonFieldBuilder() : null; - } else { - contactpersonBuilder_.addAllMessages(other.contactperson_); - } - } - } - if (contactgroupBuilder_ == null) { - if (!other.contactgroup_.isEmpty()) { - if (contactgroup_.isEmpty()) { - contactgroup_ = other.contactgroup_; - bitField0_ = (bitField0_ & ~0x80000000); - } else { - ensureContactgroupIsMutable(); - contactgroup_.addAll(other.contactgroup_); - } - onChanged(); - } - } else { - if (!other.contactgroup_.isEmpty()) { - if (contactgroupBuilder_.isEmpty()) { - contactgroupBuilder_.dispose(); - contactgroupBuilder_ = null; - contactgroup_ = other.contactgroup_; - bitField0_ = (bitField0_ & ~0x80000000); - contactgroupBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContactgroupFieldBuilder() : null; - } else { - contactgroupBuilder_.addAllMessages(other.contactgroup_); - } - } - } - if (toolBuilder_ == null) { - if (!other.tool_.isEmpty()) { - if (tool_.isEmpty()) { - tool_ = other.tool_; - bitField1_ = (bitField1_ & ~0x00000001); - } else { - ensureToolIsMutable(); - tool_.addAll(other.tool_); - } - onChanged(); - } - } else { - if (!other.tool_.isEmpty()) { - if (toolBuilder_.isEmpty()) { - toolBuilder_.dispose(); - toolBuilder_ = null; - tool_ = other.tool_; - bitField1_ = (bitField1_ & ~0x00000001); - toolBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getToolFieldBuilder() : null; - } else { - toolBuilder_.addAllMessages(other.tool_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getAuthorCount(); i++) { - if (!getAuthor(i).isInitialized()) { - - return false; - } - } - if (hasResulttype()) { - if (!getResulttype().isInitialized()) { - - return false; - } - } - if (hasLanguage()) { - if (!getLanguage().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getCountryCount(); i++) { - if (!getCountry(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getSubjectCount(); i++) { - if (!getSubject(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getTitleCount(); i++) { - if (!getTitle(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getRelevantdateCount(); i++) { - if (!getRelevantdate(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getDescriptionCount(); i++) { - if (!getDescription(i).isInitialized()) { - - return false; - } - } - if (hasDateofacceptance()) { - if (!getDateofacceptance().isInitialized()) { - - return false; - } - } - if (hasPublisher()) { - if (!getPublisher().isInitialized()) { - - return false; - } - } - if (hasEmbargoenddate()) { - if (!getEmbargoenddate().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getSourceCount(); i++) { - if (!getSource(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getFulltextCount(); i++) { - if (!getFulltext(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getFormatCount(); i++) { - if (!getFormat(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getContributorCount(); i++) { - if (!getContributor(i).isInitialized()) { - - return false; - } - } - if (hasResourcetype()) { - if (!getResourcetype().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getCoverageCount(); i++) { - if (!getCoverage(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getContextCount(); i++) { - if (!getContext(i).isInitialized()) { - - return false; - } - } - if (hasJournal()) { - if (!getJournal().isInitialized()) { - - return false; - } - } - if (hasStoragedate()) { - if (!getStoragedate().isInitialized()) { - - return false; - } - } - if (hasDevice()) { - if (!getDevice().isInitialized()) { - - return false; - } - } - if (hasSize()) { - if (!getSize().isInitialized()) { - - return false; - } - } - if (hasVersion()) { - if (!getVersion().isInitialized()) { - - return false; - } - } - if (hasLastmetadataupdate()) { - if (!getLastmetadataupdate().isInitialized()) { - - return false; - } - } - if (hasMetadataversionnumber()) { - if (!getMetadataversionnumber().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getDocumentationUrlCount(); i++) { - if (!getDocumentationUrl(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getLicenseCount(); i++) { - if (!getLicense(i).isInitialized()) { - - return false; - } - } - if (hasCodeRepositoryUrl()) { - if (!getCodeRepositoryUrl().isInitialized()) { - - return false; - } - } - if (hasProgrammingLanguage()) { - if (!getProgrammingLanguage().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getContactpersonCount(); i++) { - if (!getContactperson(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getContactgroupCount(); i++) { - if (!getContactgroup(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getToolCount(); i++) { - if (!getTool(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 10: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addSubject(subBuilder.buildPartial()); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addTitle(subBuilder.buildPartial()); - break; - } - case 26: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addRelevantdate(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDateofacceptance()) { - subBuilder.mergeFrom(getDateofacceptance()); - } - input.readMessage(subBuilder, extensionRegistry); - setDateofacceptance(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasPublisher()) { - subBuilder.mergeFrom(getPublisher()); - } - input.readMessage(subBuilder, extensionRegistry); - setPublisher(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasEmbargoenddate()) { - subBuilder.mergeFrom(getEmbargoenddate()); - } - input.readMessage(subBuilder, extensionRegistry); - setEmbargoenddate(subBuilder.buildPartial()); - break; - } - case 66: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasResulttype()) { - subBuilder.mergeFrom(getResulttype()); - } - input.readMessage(subBuilder, extensionRegistry); - setResulttype(subBuilder.buildPartial()); - break; - } - case 74: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasStoragedate()) { - subBuilder.mergeFrom(getStoragedate()); - } - input.readMessage(subBuilder, extensionRegistry); - setStoragedate(subBuilder.buildPartial()); - break; - } - case 98: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasLanguage()) { - subBuilder.mergeFrom(getLanguage()); - } - input.readMessage(subBuilder, extensionRegistry); - setLanguage(subBuilder.buildPartial()); - break; - } - case 146: { - eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.Journal.newBuilder(); - if (hasJournal()) { - subBuilder.mergeFrom(getJournal()); - } - input.readMessage(subBuilder, extensionRegistry); - setJournal(subBuilder.buildPartial()); - break; - } - case 154: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasResourcetype()) { - subBuilder.mergeFrom(getResourcetype()); - } - input.readMessage(subBuilder, extensionRegistry); - setResourcetype(subBuilder.buildPartial()); - break; - } - case 162: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasSize()) { - subBuilder.mergeFrom(getSize()); - } - input.readMessage(subBuilder, extensionRegistry); - setSize(subBuilder.buildPartial()); - break; - } - case 170: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFormat(subBuilder.buildPartial()); - break; - } - case 178: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasVersion()) { - subBuilder.mergeFrom(getVersion()); - } - input.readMessage(subBuilder, extensionRegistry); - setVersion(subBuilder.buildPartial()); - break; - } - case 186: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLastmetadataupdate()) { - subBuilder.mergeFrom(getLastmetadataupdate()); - } - input.readMessage(subBuilder, extensionRegistry); - setLastmetadataupdate(subBuilder.buildPartial()); - break; - } - case 194: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasMetadataversionnumber()) { - subBuilder.mergeFrom(getMetadataversionnumber()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadataversionnumber(subBuilder.buildPartial()); - break; - } - case 202: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addDescription(subBuilder.buildPartial()); - break; - } - case 210: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDevice()) { - subBuilder.mergeFrom(getDevice()); - } - input.readMessage(subBuilder, extensionRegistry); - setDevice(subBuilder.buildPartial()); - break; - } - case 218: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addSource(subBuilder.buildPartial()); - break; - } - case 226: { - eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.Context.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addContext(subBuilder.buildPartial()); - break; - } - case 234: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFulltext(subBuilder.buildPartial()); - break; - } - case 242: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addContributor(subBuilder.buildPartial()); - break; - } - case 266: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addCountry(subBuilder.buildPartial()); - break; - } - case 282: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addDocumentationUrl(subBuilder.buildPartial()); - break; - } - case 290: { - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addLicense(subBuilder.buildPartial()); - break; - } - case 306: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasCodeRepositoryUrl()) { - subBuilder.mergeFrom(getCodeRepositoryUrl()); - } - input.readMessage(subBuilder, extensionRegistry); - setCodeRepositoryUrl(subBuilder.buildPartial()); - break; - } - case 314: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasProgrammingLanguage()) { - subBuilder.mergeFrom(getProgrammingLanguage()); - } - input.readMessage(subBuilder, extensionRegistry); - setProgrammingLanguage(subBuilder.buildPartial()); - break; - } - case 322: { - eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Author.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addAuthor(subBuilder.buildPartial()); - break; - } - case 330: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addContactgroup(subBuilder.buildPartial()); - break; - } - case 338: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addTool(subBuilder.buildPartial()); - break; - } - case 346: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addCoverage(subBuilder.buildPartial()); - break; - } - case 354: { - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addGeolocation(subBuilder.buildPartial()); - break; - } - case 362: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addContactperson(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - private int bitField1_; - - // repeated .eu.dnetlib.data.proto.Author author = 40; - private java.util.List author_ = - java.util.Collections.emptyList(); - private void ensureAuthorIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - author_ = new java.util.ArrayList(author_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Author, eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder, eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder> authorBuilder_; - - public java.util.List getAuthorList() { - if (authorBuilder_ == null) { - return java.util.Collections.unmodifiableList(author_); - } else { - return authorBuilder_.getMessageList(); - } - } - public int getAuthorCount() { - if (authorBuilder_ == null) { - return author_.size(); - } else { - return authorBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.Author getAuthor(int index) { - if (authorBuilder_ == null) { - return author_.get(index); - } else { - return authorBuilder_.getMessage(index); - } - } - public Builder setAuthor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Author value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthorIsMutable(); - author_.set(index, value); - onChanged(); - } else { - authorBuilder_.setMessage(index, value); - } - return this; - } - public Builder setAuthor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder builderForValue) { - if (authorBuilder_ == null) { - ensureAuthorIsMutable(); - author_.set(index, builderForValue.build()); - onChanged(); - } else { - authorBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAuthor(eu.dnetlib.data.proto.FieldTypeProtos.Author value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthorIsMutable(); - author_.add(value); - onChanged(); - } else { - authorBuilder_.addMessage(value); - } - return this; - } - public Builder addAuthor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Author value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthorIsMutable(); - author_.add(index, value); - onChanged(); - } else { - authorBuilder_.addMessage(index, value); - } - return this; - } - public Builder addAuthor( - eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder builderForValue) { - if (authorBuilder_ == null) { - ensureAuthorIsMutable(); - author_.add(builderForValue.build()); - onChanged(); - } else { - authorBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addAuthor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder builderForValue) { - if (authorBuilder_ == null) { - ensureAuthorIsMutable(); - author_.add(index, builderForValue.build()); - onChanged(); - } else { - authorBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllAuthor( - java.lang.Iterable values) { - if (authorBuilder_ == null) { - ensureAuthorIsMutable(); - super.addAll(values, author_); - onChanged(); - } else { - authorBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearAuthor() { - if (authorBuilder_ == null) { - author_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - authorBuilder_.clear(); - } - return this; - } - public Builder removeAuthor(int index) { - if (authorBuilder_ == null) { - ensureAuthorIsMutable(); - author_.remove(index); - onChanged(); - } else { - authorBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder getAuthorBuilder( - int index) { - return getAuthorFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder getAuthorOrBuilder( - int index) { - if (authorBuilder_ == null) { - return author_.get(index); } else { - return authorBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getAuthorOrBuilderList() { - if (authorBuilder_ != null) { - return authorBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(author_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder addAuthorBuilder() { - return getAuthorFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.Author.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder addAuthorBuilder( - int index) { - return getAuthorFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.Author.getDefaultInstance()); - } - public java.util.List - getAuthorBuilderList() { - return getAuthorFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Author, eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder, eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder> - getAuthorFieldBuilder() { - if (authorBuilder_ == null) { - authorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Author, eu.dnetlib.data.proto.FieldTypeProtos.Author.Builder, eu.dnetlib.data.proto.FieldTypeProtos.AuthorOrBuilder>( - author_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - author_ = null; - } - return authorBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier resulttype = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier resulttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> resulttypeBuilder_; - public boolean hasResulttype() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResulttype() { - if (resulttypeBuilder_ == null) { - return resulttype_; - } else { - return resulttypeBuilder_.getMessage(); - } - } - public Builder setResulttype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (resulttypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resulttype_ = value; - onChanged(); - } else { - resulttypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setResulttype( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (resulttypeBuilder_ == null) { - resulttype_ = builderForValue.build(); - onChanged(); - } else { - resulttypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeResulttype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (resulttypeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - resulttype_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - resulttype_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(resulttype_).mergeFrom(value).buildPartial(); - } else { - resulttype_ = value; - } - onChanged(); - } else { - resulttypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearResulttype() { - if (resulttypeBuilder_ == null) { - resulttype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - resulttypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getResulttypeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getResulttypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResulttypeOrBuilder() { - if (resulttypeBuilder_ != null) { - return resulttypeBuilder_.getMessageOrBuilder(); - } else { - return resulttype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getResulttypeFieldBuilder() { - if (resulttypeBuilder_ == null) { - resulttypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - resulttype_, - getParentForChildren(), - isClean()); - resulttype_ = null; - } - return resulttypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier language = 12; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier language_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> languageBuilder_; - public boolean hasLanguage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getLanguage() { - if (languageBuilder_ == null) { - return language_; - } else { - return languageBuilder_.getMessage(); - } - } - public Builder setLanguage(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (languageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - language_ = value; - onChanged(); - } else { - languageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder setLanguage( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (languageBuilder_ == null) { - language_ = builderForValue.build(); - onChanged(); - } else { - languageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder mergeLanguage(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (languageBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - language_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - language_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(language_).mergeFrom(value).buildPartial(); - } else { - language_ = value; - } - onChanged(); - } else { - languageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder clearLanguage() { - if (languageBuilder_ == null) { - language_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - languageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getLanguageBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getLanguageFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getLanguageOrBuilder() { - if (languageBuilder_ != null) { - return languageBuilder_.getMessageOrBuilder(); - } else { - return language_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getLanguageFieldBuilder() { - if (languageBuilder_ == null) { - languageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - language_, - getParentForChildren(), - isClean()); - language_ = null; - } - return languageBuilder_; - } - - // repeated .eu.dnetlib.data.proto.Qualifier country = 33; - private java.util.List country_ = - java.util.Collections.emptyList(); - private void ensureCountryIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - country_ = new java.util.ArrayList(country_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> countryBuilder_; - - public java.util.List getCountryList() { - if (countryBuilder_ == null) { - return java.util.Collections.unmodifiableList(country_); - } else { - return countryBuilder_.getMessageList(); - } - } - public int getCountryCount() { - if (countryBuilder_ == null) { - return country_.size(); - } else { - return countryBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getCountry(int index) { - if (countryBuilder_ == null) { - return country_.get(index); - } else { - return countryBuilder_.getMessage(index); - } - } - public Builder setCountry( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (countryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountryIsMutable(); - country_.set(index, value); - onChanged(); - } else { - countryBuilder_.setMessage(index, value); - } - return this; - } - public Builder setCountry( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (countryBuilder_ == null) { - ensureCountryIsMutable(); - country_.set(index, builderForValue.build()); - onChanged(); - } else { - countryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addCountry(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (countryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountryIsMutable(); - country_.add(value); - onChanged(); - } else { - countryBuilder_.addMessage(value); - } - return this; - } - public Builder addCountry( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (countryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountryIsMutable(); - country_.add(index, value); - onChanged(); - } else { - countryBuilder_.addMessage(index, value); - } - return this; - } - public Builder addCountry( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (countryBuilder_ == null) { - ensureCountryIsMutable(); - country_.add(builderForValue.build()); - onChanged(); - } else { - countryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addCountry( - int index, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (countryBuilder_ == null) { - ensureCountryIsMutable(); - country_.add(index, builderForValue.build()); - onChanged(); - } else { - countryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllCountry( - java.lang.Iterable values) { - if (countryBuilder_ == null) { - ensureCountryIsMutable(); - super.addAll(values, country_); - onChanged(); - } else { - countryBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearCountry() { - if (countryBuilder_ == null) { - country_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - countryBuilder_.clear(); - } - return this; - } - public Builder removeCountry(int index) { - if (countryBuilder_ == null) { - ensureCountryIsMutable(); - country_.remove(index); - onChanged(); - } else { - countryBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getCountryBuilder( - int index) { - return getCountryFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getCountryOrBuilder( - int index) { - if (countryBuilder_ == null) { - return country_.get(index); } else { - return countryBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getCountryOrBuilderList() { - if (countryBuilder_ != null) { - return countryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(country_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder addCountryBuilder() { - return getCountryFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder addCountryBuilder( - int index) { - return getCountryFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()); - } - public java.util.List - getCountryBuilderList() { - return getCountryFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getCountryFieldBuilder() { - if (countryBuilder_ == null) { - countryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - country_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - country_ = null; - } - return countryBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty subject = 1; - private java.util.List subject_ = - java.util.Collections.emptyList(); - private void ensureSubjectIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - subject_ = new java.util.ArrayList(subject_); - 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> subjectBuilder_; - - public java.util.List getSubjectList() { - if (subjectBuilder_ == null) { - return java.util.Collections.unmodifiableList(subject_); - } else { - return subjectBuilder_.getMessageList(); - } - } - public int getSubjectCount() { - if (subjectBuilder_ == null) { - return subject_.size(); - } else { - return subjectBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getSubject(int index) { - if (subjectBuilder_ == null) { - return subject_.get(index); - } else { - return subjectBuilder_.getMessage(index); - } - } - public Builder setSubject( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectIsMutable(); - subject_.set(index, value); - onChanged(); - } else { - subjectBuilder_.setMessage(index, value); - } - return this; - } - public Builder setSubject( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectBuilder_ == null) { - ensureSubjectIsMutable(); - subject_.set(index, builderForValue.build()); - onChanged(); - } else { - subjectBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addSubject(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectIsMutable(); - subject_.add(value); - onChanged(); - } else { - subjectBuilder_.addMessage(value); - } - return this; - } - public Builder addSubject( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (subjectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectIsMutable(); - subject_.add(index, value); - onChanged(); - } else { - subjectBuilder_.addMessage(index, value); - } - return this; - } - public Builder addSubject( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectBuilder_ == null) { - ensureSubjectIsMutable(); - subject_.add(builderForValue.build()); - onChanged(); - } else { - subjectBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addSubject( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (subjectBuilder_ == null) { - ensureSubjectIsMutable(); - subject_.add(index, builderForValue.build()); - onChanged(); - } else { - subjectBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllSubject( - java.lang.Iterable values) { - if (subjectBuilder_ == null) { - ensureSubjectIsMutable(); - super.addAll(values, subject_); - onChanged(); - } else { - subjectBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearSubject() { - if (subjectBuilder_ == null) { - subject_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - subjectBuilder_.clear(); - } - return this; - } - public Builder removeSubject(int index) { - if (subjectBuilder_ == null) { - ensureSubjectIsMutable(); - subject_.remove(index); - onChanged(); - } else { - subjectBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getSubjectBuilder( - int index) { - return getSubjectFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getSubjectOrBuilder( - int index) { - if (subjectBuilder_ == null) { - return subject_.get(index); } else { - return subjectBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getSubjectOrBuilderList() { - if (subjectBuilder_ != null) { - return subjectBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subject_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectBuilder() { - return getSubjectFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addSubjectBuilder( - int index) { - return getSubjectFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getSubjectBuilderList() { - return getSubjectFieldBuilder().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> - getSubjectFieldBuilder() { - if (subjectBuilder_ == null) { - subjectBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - subject_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - subject_ = null; - } - return subjectBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty title = 2; - private java.util.List title_ = - java.util.Collections.emptyList(); - private void ensureTitleIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - title_ = new java.util.ArrayList(title_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> titleBuilder_; - - public java.util.List getTitleList() { - if (titleBuilder_ == null) { - return java.util.Collections.unmodifiableList(title_); - } else { - return titleBuilder_.getMessageList(); - } - } - public int getTitleCount() { - if (titleBuilder_ == null) { - return title_.size(); - } else { - return titleBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getTitle(int index) { - if (titleBuilder_ == null) { - return title_.get(index); - } else { - return titleBuilder_.getMessage(index); - } - } - public Builder setTitle( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (titleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitleIsMutable(); - title_.set(index, value); - onChanged(); - } else { - titleBuilder_.setMessage(index, value); - } - return this; - } - public Builder setTitle( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (titleBuilder_ == null) { - ensureTitleIsMutable(); - title_.set(index, builderForValue.build()); - onChanged(); - } else { - titleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addTitle(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (titleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitleIsMutable(); - title_.add(value); - onChanged(); - } else { - titleBuilder_.addMessage(value); - } - return this; - } - public Builder addTitle( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (titleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitleIsMutable(); - title_.add(index, value); - onChanged(); - } else { - titleBuilder_.addMessage(index, value); - } - return this; - } - public Builder addTitle( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (titleBuilder_ == null) { - ensureTitleIsMutable(); - title_.add(builderForValue.build()); - onChanged(); - } else { - titleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addTitle( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (titleBuilder_ == null) { - ensureTitleIsMutable(); - title_.add(index, builderForValue.build()); - onChanged(); - } else { - titleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllTitle( - java.lang.Iterable values) { - if (titleBuilder_ == null) { - ensureTitleIsMutable(); - super.addAll(values, title_); - onChanged(); - } else { - titleBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearTitle() { - if (titleBuilder_ == null) { - title_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - titleBuilder_.clear(); - } - return this; - } - public Builder removeTitle(int index) { - if (titleBuilder_ == null) { - ensureTitleIsMutable(); - title_.remove(index); - onChanged(); - } else { - titleBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getTitleBuilder( - int index) { - return getTitleFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getTitleOrBuilder( - int index) { - if (titleBuilder_ == null) { - return title_.get(index); } else { - return titleBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getTitleOrBuilderList() { - if (titleBuilder_ != null) { - return titleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(title_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addTitleBuilder() { - return getTitleFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addTitleBuilder( - int index) { - return getTitleFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getTitleBuilderList() { - return getTitleFieldBuilder().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> - getTitleFieldBuilder() { - if (titleBuilder_ == null) { - titleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - title_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - title_ = null; - } - return titleBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty relevantdate = 3; - private java.util.List relevantdate_ = - java.util.Collections.emptyList(); - private void ensureRelevantdateIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - relevantdate_ = new java.util.ArrayList(relevantdate_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> relevantdateBuilder_; - - public java.util.List getRelevantdateList() { - if (relevantdateBuilder_ == null) { - return java.util.Collections.unmodifiableList(relevantdate_); - } else { - return relevantdateBuilder_.getMessageList(); - } - } - public int getRelevantdateCount() { - if (relevantdateBuilder_ == null) { - return relevantdate_.size(); - } else { - return relevantdateBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getRelevantdate(int index) { - if (relevantdateBuilder_ == null) { - return relevantdate_.get(index); - } else { - return relevantdateBuilder_.getMessage(index); - } - } - public Builder setRelevantdate( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (relevantdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelevantdateIsMutable(); - relevantdate_.set(index, value); - onChanged(); - } else { - relevantdateBuilder_.setMessage(index, value); - } - return this; - } - public Builder setRelevantdate( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (relevantdateBuilder_ == null) { - ensureRelevantdateIsMutable(); - relevantdate_.set(index, builderForValue.build()); - onChanged(); - } else { - relevantdateBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addRelevantdate(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (relevantdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelevantdateIsMutable(); - relevantdate_.add(value); - onChanged(); - } else { - relevantdateBuilder_.addMessage(value); - } - return this; - } - public Builder addRelevantdate( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (relevantdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRelevantdateIsMutable(); - relevantdate_.add(index, value); - onChanged(); - } else { - relevantdateBuilder_.addMessage(index, value); - } - return this; - } - public Builder addRelevantdate( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (relevantdateBuilder_ == null) { - ensureRelevantdateIsMutable(); - relevantdate_.add(builderForValue.build()); - onChanged(); - } else { - relevantdateBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addRelevantdate( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (relevantdateBuilder_ == null) { - ensureRelevantdateIsMutable(); - relevantdate_.add(index, builderForValue.build()); - onChanged(); - } else { - relevantdateBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllRelevantdate( - java.lang.Iterable values) { - if (relevantdateBuilder_ == null) { - ensureRelevantdateIsMutable(); - super.addAll(values, relevantdate_); - onChanged(); - } else { - relevantdateBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearRelevantdate() { - if (relevantdateBuilder_ == null) { - relevantdate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - relevantdateBuilder_.clear(); - } - return this; - } - public Builder removeRelevantdate(int index) { - if (relevantdateBuilder_ == null) { - ensureRelevantdateIsMutable(); - relevantdate_.remove(index); - onChanged(); - } else { - relevantdateBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getRelevantdateBuilder( - int index) { - return getRelevantdateFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getRelevantdateOrBuilder( - int index) { - if (relevantdateBuilder_ == null) { - return relevantdate_.get(index); } else { - return relevantdateBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getRelevantdateOrBuilderList() { - if (relevantdateBuilder_ != null) { - return relevantdateBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(relevantdate_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addRelevantdateBuilder() { - return getRelevantdateFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addRelevantdateBuilder( - int index) { - return getRelevantdateFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getRelevantdateBuilderList() { - return getRelevantdateFieldBuilder().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> - getRelevantdateFieldBuilder() { - if (relevantdateBuilder_ == null) { - relevantdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - relevantdate_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - relevantdate_ = null; - } - return relevantdateBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField description = 25; - private java.util.List description_ = - java.util.Collections.emptyList(); - private void ensureDescriptionIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - description_ = new java.util.ArrayList(description_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> descriptionBuilder_; - - public java.util.List getDescriptionList() { - if (descriptionBuilder_ == null) { - return java.util.Collections.unmodifiableList(description_); - } else { - return descriptionBuilder_.getMessageList(); - } - } - public int getDescriptionCount() { - if (descriptionBuilder_ == null) { - return description_.size(); - } else { - return descriptionBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDescription(int index) { - if (descriptionBuilder_ == null) { - return description_.get(index); - } else { - return descriptionBuilder_.getMessage(index); - } - } - public Builder setDescription( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionIsMutable(); - description_.set(index, value); - onChanged(); - } else { - descriptionBuilder_.setMessage(index, value); - } - return this; - } - public Builder setDescription( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (descriptionBuilder_ == null) { - ensureDescriptionIsMutable(); - description_.set(index, builderForValue.build()); - onChanged(); - } else { - descriptionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addDescription(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionIsMutable(); - description_.add(value); - onChanged(); - } else { - descriptionBuilder_.addMessage(value); - } - return this; - } - public Builder addDescription( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionIsMutable(); - description_.add(index, value); - onChanged(); - } else { - descriptionBuilder_.addMessage(index, value); - } - return this; - } - public Builder addDescription( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (descriptionBuilder_ == null) { - ensureDescriptionIsMutable(); - description_.add(builderForValue.build()); - onChanged(); - } else { - descriptionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addDescription( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (descriptionBuilder_ == null) { - ensureDescriptionIsMutable(); - description_.add(index, builderForValue.build()); - onChanged(); - } else { - descriptionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllDescription( - java.lang.Iterable values) { - if (descriptionBuilder_ == null) { - ensureDescriptionIsMutable(); - super.addAll(values, description_); - onChanged(); - } else { - descriptionBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - descriptionBuilder_.clear(); - } - return this; - } - public Builder removeDescription(int index) { - if (descriptionBuilder_ == null) { - ensureDescriptionIsMutable(); - description_.remove(index); - onChanged(); - } else { - descriptionBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDescriptionBuilder( - int index) { - return getDescriptionFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDescriptionOrBuilder( - int index) { - if (descriptionBuilder_ == null) { - return description_.get(index); } else { - return descriptionBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getDescriptionOrBuilderList() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(description_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addDescriptionBuilder() { - return getDescriptionFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addDescriptionBuilder( - int index) { - return getDescriptionFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getDescriptionBuilderList() { - return getDescriptionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - description_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> dateofacceptanceBuilder_; - public boolean hasDateofacceptance() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance() { - if (dateofacceptanceBuilder_ == null) { - return dateofacceptance_; - } else { - return dateofacceptanceBuilder_.getMessage(); - } - } - public Builder setDateofacceptance(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofacceptanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dateofacceptance_ = value; - onChanged(); - } else { - dateofacceptanceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder setDateofacceptance( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = builderForValue.build(); - onChanged(); - } else { - dateofacceptanceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder mergeDateofacceptance(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofacceptanceBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - dateofacceptance_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - dateofacceptance_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(dateofacceptance_).mergeFrom(value).buildPartial(); - } else { - dateofacceptance_ = value; - } - onChanged(); - } else { - dateofacceptanceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder clearDateofacceptance() { - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - dateofacceptanceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDateofacceptanceBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getDateofacceptanceFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder() { - if (dateofacceptanceBuilder_ != null) { - return dateofacceptanceBuilder_.getMessageOrBuilder(); - } else { - return dateofacceptance_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDateofacceptanceFieldBuilder() { - if (dateofacceptanceBuilder_ == null) { - dateofacceptanceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - dateofacceptance_, - getParentForChildren(), - isClean()); - dateofacceptance_ = null; - } - return dateofacceptanceBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField publisher = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField publisher_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> publisherBuilder_; - public boolean hasPublisher() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getPublisher() { - if (publisherBuilder_ == null) { - return publisher_; - } else { - return publisherBuilder_.getMessage(); - } - } - public Builder setPublisher(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (publisherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publisher_ = value; - onChanged(); - } else { - publisherBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder setPublisher( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (publisherBuilder_ == null) { - publisher_ = builderForValue.build(); - onChanged(); - } else { - publisherBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder mergePublisher(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (publisherBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - publisher_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - publisher_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(publisher_).mergeFrom(value).buildPartial(); - } else { - publisher_ = value; - } - onChanged(); - } else { - publisherBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - public Builder clearPublisher() { - if (publisherBuilder_ == null) { - publisher_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - publisherBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getPublisherBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getPublisherFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getPublisherOrBuilder() { - if (publisherBuilder_ != null) { - return publisherBuilder_.getMessageOrBuilder(); - } else { - return publisher_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getPublisherFieldBuilder() { - if (publisherBuilder_ == null) { - publisherBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - publisher_, - getParentForChildren(), - isClean()); - publisher_ = null; - } - return publisherBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField embargoenddate = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField embargoenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> embargoenddateBuilder_; - public boolean hasEmbargoenddate() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getEmbargoenddate() { - if (embargoenddateBuilder_ == null) { - return embargoenddate_; - } else { - return embargoenddateBuilder_.getMessage(); - } - } - public Builder setEmbargoenddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (embargoenddateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - embargoenddate_ = value; - onChanged(); - } else { - embargoenddateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder setEmbargoenddate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (embargoenddateBuilder_ == null) { - embargoenddate_ = builderForValue.build(); - onChanged(); - } else { - embargoenddateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder mergeEmbargoenddate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (embargoenddateBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - embargoenddate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - embargoenddate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(embargoenddate_).mergeFrom(value).buildPartial(); - } else { - embargoenddate_ = value; - } - onChanged(); - } else { - embargoenddateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - public Builder clearEmbargoenddate() { - if (embargoenddateBuilder_ == null) { - embargoenddate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - embargoenddateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getEmbargoenddateBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getEmbargoenddateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getEmbargoenddateOrBuilder() { - if (embargoenddateBuilder_ != null) { - return embargoenddateBuilder_.getMessageOrBuilder(); - } else { - return embargoenddate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getEmbargoenddateFieldBuilder() { - if (embargoenddateBuilder_ == null) { - embargoenddateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - embargoenddate_, - getParentForChildren(), - isClean()); - embargoenddate_ = null; - } - return embargoenddateBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField source = 27; - private java.util.List source_ = - java.util.Collections.emptyList(); - private void ensureSourceIsMutable() { - if (!((bitField0_ & 0x00000800) == 0x00000800)) { - source_ = new java.util.ArrayList(source_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> sourceBuilder_; - - public java.util.List getSourceList() { - if (sourceBuilder_ == null) { - return java.util.Collections.unmodifiableList(source_); - } else { - return sourceBuilder_.getMessageList(); - } - } - public int getSourceCount() { - if (sourceBuilder_ == null) { - return source_.size(); - } else { - return sourceBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getSource(int index) { - if (sourceBuilder_ == null) { - return source_.get(index); - } else { - return sourceBuilder_.getMessage(index); - } - } - public Builder setSource( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (sourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceIsMutable(); - source_.set(index, value); - onChanged(); - } else { - sourceBuilder_.setMessage(index, value); - } - return this; - } - public Builder setSource( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (sourceBuilder_ == null) { - ensureSourceIsMutable(); - source_.set(index, builderForValue.build()); - onChanged(); - } else { - sourceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addSource(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (sourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceIsMutable(); - source_.add(value); - onChanged(); - } else { - sourceBuilder_.addMessage(value); - } - return this; - } - public Builder addSource( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (sourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceIsMutable(); - source_.add(index, value); - onChanged(); - } else { - sourceBuilder_.addMessage(index, value); - } - return this; - } - public Builder addSource( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (sourceBuilder_ == null) { - ensureSourceIsMutable(); - source_.add(builderForValue.build()); - onChanged(); - } else { - sourceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addSource( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (sourceBuilder_ == null) { - ensureSourceIsMutable(); - source_.add(index, builderForValue.build()); - onChanged(); - } else { - sourceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllSource( - java.lang.Iterable values) { - if (sourceBuilder_ == null) { - ensureSourceIsMutable(); - super.addAll(values, source_); - onChanged(); - } else { - sourceBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearSource() { - if (sourceBuilder_ == null) { - source_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - sourceBuilder_.clear(); - } - return this; - } - public Builder removeSource(int index) { - if (sourceBuilder_ == null) { - ensureSourceIsMutable(); - source_.remove(index); - onChanged(); - } else { - sourceBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getSourceBuilder( - int index) { - return getSourceFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSourceOrBuilder( - int index) { - if (sourceBuilder_ == null) { - return source_.get(index); } else { - return sourceBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getSourceOrBuilderList() { - if (sourceBuilder_ != null) { - return sourceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(source_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addSourceBuilder() { - return getSourceFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addSourceBuilder( - int index) { - return getSourceFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getSourceBuilderList() { - return getSourceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getSourceFieldBuilder() { - if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - source_, - ((bitField0_ & 0x00000800) == 0x00000800), - getParentForChildren(), - isClean()); - source_ = null; - } - return sourceBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField fulltext = 29; - private java.util.List fulltext_ = - java.util.Collections.emptyList(); - private void ensureFulltextIsMutable() { - if (!((bitField0_ & 0x00001000) == 0x00001000)) { - fulltext_ = new java.util.ArrayList(fulltext_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> fulltextBuilder_; - - public java.util.List getFulltextList() { - if (fulltextBuilder_ == null) { - return java.util.Collections.unmodifiableList(fulltext_); - } else { - return fulltextBuilder_.getMessageList(); - } - } - public int getFulltextCount() { - if (fulltextBuilder_ == null) { - return fulltext_.size(); - } else { - return fulltextBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFulltext(int index) { - if (fulltextBuilder_ == null) { - return fulltext_.get(index); - } else { - return fulltextBuilder_.getMessage(index); - } - } - public Builder setFulltext( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fulltextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFulltextIsMutable(); - fulltext_.set(index, value); - onChanged(); - } else { - fulltextBuilder_.setMessage(index, value); - } - return this; - } - public Builder setFulltext( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fulltextBuilder_ == null) { - ensureFulltextIsMutable(); - fulltext_.set(index, builderForValue.build()); - onChanged(); - } else { - fulltextBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addFulltext(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fulltextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFulltextIsMutable(); - fulltext_.add(value); - onChanged(); - } else { - fulltextBuilder_.addMessage(value); - } - return this; - } - public Builder addFulltext( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (fulltextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFulltextIsMutable(); - fulltext_.add(index, value); - onChanged(); - } else { - fulltextBuilder_.addMessage(index, value); - } - return this; - } - public Builder addFulltext( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fulltextBuilder_ == null) { - ensureFulltextIsMutable(); - fulltext_.add(builderForValue.build()); - onChanged(); - } else { - fulltextBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addFulltext( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (fulltextBuilder_ == null) { - ensureFulltextIsMutable(); - fulltext_.add(index, builderForValue.build()); - onChanged(); - } else { - fulltextBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllFulltext( - java.lang.Iterable values) { - if (fulltextBuilder_ == null) { - ensureFulltextIsMutable(); - super.addAll(values, fulltext_); - onChanged(); - } else { - fulltextBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearFulltext() { - if (fulltextBuilder_ == null) { - fulltext_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - fulltextBuilder_.clear(); - } - return this; - } - public Builder removeFulltext(int index) { - if (fulltextBuilder_ == null) { - ensureFulltextIsMutable(); - fulltext_.remove(index); - onChanged(); - } else { - fulltextBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getFulltextBuilder( - int index) { - return getFulltextFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFulltextOrBuilder( - int index) { - if (fulltextBuilder_ == null) { - return fulltext_.get(index); } else { - return fulltextBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getFulltextOrBuilderList() { - if (fulltextBuilder_ != null) { - return fulltextBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fulltext_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFulltextBuilder() { - return getFulltextFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFulltextBuilder( - int index) { - return getFulltextFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getFulltextBuilderList() { - return getFulltextFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getFulltextFieldBuilder() { - if (fulltextBuilder_ == null) { - fulltextBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - fulltext_, - ((bitField0_ & 0x00001000) == 0x00001000), - getParentForChildren(), - isClean()); - fulltext_ = null; - } - return fulltextBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField format = 21; - private java.util.List format_ = - java.util.Collections.emptyList(); - private void ensureFormatIsMutable() { - if (!((bitField0_ & 0x00002000) == 0x00002000)) { - format_ = new java.util.ArrayList(format_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> formatBuilder_; - - public java.util.List getFormatList() { - if (formatBuilder_ == null) { - return java.util.Collections.unmodifiableList(format_); - } else { - return formatBuilder_.getMessageList(); - } - } - public int getFormatCount() { - if (formatBuilder_ == null) { - return format_.size(); - } else { - return formatBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getFormat(int index) { - if (formatBuilder_ == null) { - return format_.get(index); - } else { - return formatBuilder_.getMessage(index); - } - } - public Builder setFormat( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFormatIsMutable(); - format_.set(index, value); - onChanged(); - } else { - formatBuilder_.setMessage(index, value); - } - return this; - } - public Builder setFormat( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (formatBuilder_ == null) { - ensureFormatIsMutable(); - format_.set(index, builderForValue.build()); - onChanged(); - } else { - formatBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addFormat(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFormatIsMutable(); - format_.add(value); - onChanged(); - } else { - formatBuilder_.addMessage(value); - } - return this; - } - public Builder addFormat( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFormatIsMutable(); - format_.add(index, value); - onChanged(); - } else { - formatBuilder_.addMessage(index, value); - } - return this; - } - public Builder addFormat( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (formatBuilder_ == null) { - ensureFormatIsMutable(); - format_.add(builderForValue.build()); - onChanged(); - } else { - formatBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addFormat( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (formatBuilder_ == null) { - ensureFormatIsMutable(); - format_.add(index, builderForValue.build()); - onChanged(); - } else { - formatBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllFormat( - java.lang.Iterable values) { - if (formatBuilder_ == null) { - ensureFormatIsMutable(); - super.addAll(values, format_); - onChanged(); - } else { - formatBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearFormat() { - if (formatBuilder_ == null) { - format_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - formatBuilder_.clear(); - } - return this; - } - public Builder removeFormat(int index) { - if (formatBuilder_ == null) { - ensureFormatIsMutable(); - format_.remove(index); - onChanged(); - } else { - formatBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getFormatBuilder( - int index) { - return getFormatFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getFormatOrBuilder( - int index) { - if (formatBuilder_ == null) { - return format_.get(index); } else { - return formatBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getFormatOrBuilderList() { - if (formatBuilder_ != null) { - return formatBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(format_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFormatBuilder() { - return getFormatFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addFormatBuilder( - int index) { - return getFormatFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getFormatBuilderList() { - return getFormatFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getFormatFieldBuilder() { - if (formatBuilder_ == null) { - formatBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - format_, - ((bitField0_ & 0x00002000) == 0x00002000), - getParentForChildren(), - isClean()); - format_ = null; - } - return formatBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField contributor = 30; - private java.util.List contributor_ = - java.util.Collections.emptyList(); - private void ensureContributorIsMutable() { - if (!((bitField0_ & 0x00004000) == 0x00004000)) { - contributor_ = new java.util.ArrayList(contributor_); - bitField0_ |= 0x00004000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contributorBuilder_; - - public java.util.List getContributorList() { - if (contributorBuilder_ == null) { - return java.util.Collections.unmodifiableList(contributor_); - } else { - return contributorBuilder_.getMessageList(); - } - } - public int getContributorCount() { - if (contributorBuilder_ == null) { - return contributor_.size(); - } else { - return contributorBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContributor(int index) { - if (contributorBuilder_ == null) { - return contributor_.get(index); - } else { - return contributorBuilder_.getMessage(index); - } - } - public Builder setContributor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contributorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContributorIsMutable(); - contributor_.set(index, value); - onChanged(); - } else { - contributorBuilder_.setMessage(index, value); - } - return this; - } - public Builder setContributor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contributorBuilder_ == null) { - ensureContributorIsMutable(); - contributor_.set(index, builderForValue.build()); - onChanged(); - } else { - contributorBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addContributor(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contributorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContributorIsMutable(); - contributor_.add(value); - onChanged(); - } else { - contributorBuilder_.addMessage(value); - } - return this; - } - public Builder addContributor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contributorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContributorIsMutable(); - contributor_.add(index, value); - onChanged(); - } else { - contributorBuilder_.addMessage(index, value); - } - return this; - } - public Builder addContributor( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contributorBuilder_ == null) { - ensureContributorIsMutable(); - contributor_.add(builderForValue.build()); - onChanged(); - } else { - contributorBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addContributor( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contributorBuilder_ == null) { - ensureContributorIsMutable(); - contributor_.add(index, builderForValue.build()); - onChanged(); - } else { - contributorBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllContributor( - java.lang.Iterable values) { - if (contributorBuilder_ == null) { - ensureContributorIsMutable(); - super.addAll(values, contributor_); - onChanged(); - } else { - contributorBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearContributor() { - if (contributorBuilder_ == null) { - contributor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - contributorBuilder_.clear(); - } - return this; - } - public Builder removeContributor(int index) { - if (contributorBuilder_ == null) { - ensureContributorIsMutable(); - contributor_.remove(index); - onChanged(); - } else { - contributorBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContributorBuilder( - int index) { - return getContributorFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContributorOrBuilder( - int index) { - if (contributorBuilder_ == null) { - return contributor_.get(index); } else { - return contributorBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getContributorOrBuilderList() { - if (contributorBuilder_ != null) { - return contributorBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(contributor_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContributorBuilder() { - return getContributorFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContributorBuilder( - int index) { - return getContributorFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getContributorBuilderList() { - return getContributorFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContributorFieldBuilder() { - if (contributorBuilder_ == null) { - contributorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contributor_, - ((bitField0_ & 0x00004000) == 0x00004000), - getParentForChildren(), - isClean()); - contributor_ = null; - } - return contributorBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier resourcetype = 19; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier resourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> resourcetypeBuilder_; - public boolean hasResourcetype() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getResourcetype() { - if (resourcetypeBuilder_ == null) { - return resourcetype_; - } else { - return resourcetypeBuilder_.getMessage(); - } - } - public Builder setResourcetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (resourcetypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourcetype_ = value; - onChanged(); - } else { - resourcetypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder setResourcetype( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (resourcetypeBuilder_ == null) { - resourcetype_ = builderForValue.build(); - onChanged(); - } else { - resourcetypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder mergeResourcetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (resourcetypeBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - resourcetype_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - resourcetype_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(resourcetype_).mergeFrom(value).buildPartial(); - } else { - resourcetype_ = value; - } - onChanged(); - } else { - resourcetypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - return this; - } - public Builder clearResourcetype() { - if (resourcetypeBuilder_ == null) { - resourcetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - resourcetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getResourcetypeBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getResourcetypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getResourcetypeOrBuilder() { - if (resourcetypeBuilder_ != null) { - return resourcetypeBuilder_.getMessageOrBuilder(); - } else { - return resourcetype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getResourcetypeFieldBuilder() { - if (resourcetypeBuilder_ == null) { - resourcetypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - resourcetype_, - getParentForChildren(), - isClean()); - resourcetype_ = null; - } - return resourcetypeBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField coverage = 43; - private java.util.List coverage_ = - java.util.Collections.emptyList(); - private void ensureCoverageIsMutable() { - if (!((bitField0_ & 0x00010000) == 0x00010000)) { - coverage_ = new java.util.ArrayList(coverage_); - bitField0_ |= 0x00010000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> coverageBuilder_; - - public java.util.List getCoverageList() { - if (coverageBuilder_ == null) { - return java.util.Collections.unmodifiableList(coverage_); - } else { - return coverageBuilder_.getMessageList(); - } - } - public int getCoverageCount() { - if (coverageBuilder_ == null) { - return coverage_.size(); - } else { - return coverageBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCoverage(int index) { - if (coverageBuilder_ == null) { - return coverage_.get(index); - } else { - return coverageBuilder_.getMessage(index); - } - } - public Builder setCoverage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (coverageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoverageIsMutable(); - coverage_.set(index, value); - onChanged(); - } else { - coverageBuilder_.setMessage(index, value); - } - return this; - } - public Builder setCoverage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (coverageBuilder_ == null) { - ensureCoverageIsMutable(); - coverage_.set(index, builderForValue.build()); - onChanged(); - } else { - coverageBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addCoverage(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (coverageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoverageIsMutable(); - coverage_.add(value); - onChanged(); - } else { - coverageBuilder_.addMessage(value); - } - return this; - } - public Builder addCoverage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (coverageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoverageIsMutable(); - coverage_.add(index, value); - onChanged(); - } else { - coverageBuilder_.addMessage(index, value); - } - return this; - } - public Builder addCoverage( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (coverageBuilder_ == null) { - ensureCoverageIsMutable(); - coverage_.add(builderForValue.build()); - onChanged(); - } else { - coverageBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addCoverage( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (coverageBuilder_ == null) { - ensureCoverageIsMutable(); - coverage_.add(index, builderForValue.build()); - onChanged(); - } else { - coverageBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllCoverage( - java.lang.Iterable values) { - if (coverageBuilder_ == null) { - ensureCoverageIsMutable(); - super.addAll(values, coverage_); - onChanged(); - } else { - coverageBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearCoverage() { - if (coverageBuilder_ == null) { - coverage_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - } else { - coverageBuilder_.clear(); - } - return this; - } - public Builder removeCoverage(int index) { - if (coverageBuilder_ == null) { - ensureCoverageIsMutable(); - coverage_.remove(index); - onChanged(); - } else { - coverageBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCoverageBuilder( - int index) { - return getCoverageFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCoverageOrBuilder( - int index) { - if (coverageBuilder_ == null) { - return coverage_.get(index); } else { - return coverageBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getCoverageOrBuilderList() { - if (coverageBuilder_ != null) { - return coverageBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coverage_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addCoverageBuilder() { - return getCoverageFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addCoverageBuilder( - int index) { - return getCoverageFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getCoverageBuilderList() { - return getCoverageFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCoverageFieldBuilder() { - if (coverageBuilder_ == null) { - coverageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - coverage_, - ((bitField0_ & 0x00010000) == 0x00010000), - getParentForChildren(), - isClean()); - coverage_ = null; - } - return coverageBuilder_; - } - - // repeated .eu.dnetlib.data.proto.Result.Context context = 28; - private java.util.List context_ = - java.util.Collections.emptyList(); - private void ensureContextIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - context_ = new java.util.ArrayList(context_); - bitField0_ |= 0x00020000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Context, eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder> contextBuilder_; - - public java.util.List getContextList() { - if (contextBuilder_ == null) { - return java.util.Collections.unmodifiableList(context_); - } else { - return contextBuilder_.getMessageList(); - } - } - public int getContextCount() { - if (contextBuilder_ == null) { - return context_.size(); - } else { - return contextBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.Context getContext(int index) { - if (contextBuilder_ == null) { - return context_.get(index); - } else { - return contextBuilder_.getMessage(index); - } - } - public Builder setContext( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Context value) { - if (contextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContextIsMutable(); - context_.set(index, value); - onChanged(); - } else { - contextBuilder_.setMessage(index, value); - } - return this; - } - public Builder setContext( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder builderForValue) { - if (contextBuilder_ == null) { - ensureContextIsMutable(); - context_.set(index, builderForValue.build()); - onChanged(); - } else { - contextBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addContext(eu.dnetlib.data.proto.ResultProtos.Result.Context value) { - if (contextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContextIsMutable(); - context_.add(value); - onChanged(); - } else { - contextBuilder_.addMessage(value); - } - return this; - } - public Builder addContext( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Context value) { - if (contextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContextIsMutable(); - context_.add(index, value); - onChanged(); - } else { - contextBuilder_.addMessage(index, value); - } - return this; - } - public Builder addContext( - eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder builderForValue) { - if (contextBuilder_ == null) { - ensureContextIsMutable(); - context_.add(builderForValue.build()); - onChanged(); - } else { - contextBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addContext( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder builderForValue) { - if (contextBuilder_ == null) { - ensureContextIsMutable(); - context_.add(index, builderForValue.build()); - onChanged(); - } else { - contextBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllContext( - java.lang.Iterable values) { - if (contextBuilder_ == null) { - ensureContextIsMutable(); - super.addAll(values, context_); - onChanged(); - } else { - contextBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - } else { - contextBuilder_.clear(); - } - return this; - } - public Builder removeContext(int index) { - if (contextBuilder_ == null) { - ensureContextIsMutable(); - context_.remove(index); - onChanged(); - } else { - contextBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder getContextBuilder( - int index) { - return getContextFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder getContextOrBuilder( - int index) { - if (contextBuilder_ == null) { - return context_.get(index); } else { - return contextBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getContextOrBuilderList() { - if (contextBuilder_ != null) { - return contextBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(context_); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder addContextBuilder() { - return getContextFieldBuilder().addBuilder( - eu.dnetlib.data.proto.ResultProtos.Result.Context.getDefaultInstance()); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder addContextBuilder( - int index) { - return getContextFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.ResultProtos.Result.Context.getDefaultInstance()); - } - public java.util.List - getContextBuilderList() { - return getContextFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Context, eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder> - getContextFieldBuilder() { - if (contextBuilder_ == null) { - contextBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Context, eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder>( - context_, - ((bitField0_ & 0x00020000) == 0x00020000), - getParentForChildren(), - isClean()); - context_ = null; - } - return contextBuilder_; - } - - // optional .eu.dnetlib.data.proto.Result.Journal journal = 18; - private eu.dnetlib.data.proto.ResultProtos.Result.Journal journal_ = eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Journal, eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder, eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder> journalBuilder_; - public boolean hasJournal() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Journal getJournal() { - if (journalBuilder_ == null) { - return journal_; - } else { - return journalBuilder_.getMessage(); - } - } - public Builder setJournal(eu.dnetlib.data.proto.ResultProtos.Result.Journal value) { - if (journalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - journal_ = value; - onChanged(); - } else { - journalBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder setJournal( - eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder builderForValue) { - if (journalBuilder_ == null) { - journal_ = builderForValue.build(); - onChanged(); - } else { - journalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder mergeJournal(eu.dnetlib.data.proto.ResultProtos.Result.Journal value) { - if (journalBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000) && - journal_ != eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance()) { - journal_ = - eu.dnetlib.data.proto.ResultProtos.Result.Journal.newBuilder(journal_).mergeFrom(value).buildPartial(); - } else { - journal_ = value; - } - onChanged(); - } else { - journalBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00040000; - return this; - } - public Builder clearJournal() { - if (journalBuilder_ == null) { - journal_ = eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance(); - onChanged(); - } else { - journalBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder getJournalBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getJournalFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder getJournalOrBuilder() { - if (journalBuilder_ != null) { - return journalBuilder_.getMessageOrBuilder(); - } else { - return journal_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Journal, eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder, eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder> - getJournalFieldBuilder() { - if (journalBuilder_ == null) { - journalBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Journal, eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder, eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder>( - journal_, - getParentForChildren(), - isClean()); - journal_ = null; - } - return journalBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField storagedate = 9; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField storagedate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> storagedateBuilder_; - public boolean hasStoragedate() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getStoragedate() { - if (storagedateBuilder_ == null) { - return storagedate_; - } else { - return storagedateBuilder_.getMessage(); - } - } - public Builder setStoragedate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (storagedateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - storagedate_ = value; - onChanged(); - } else { - storagedateBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder setStoragedate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (storagedateBuilder_ == null) { - storagedate_ = builderForValue.build(); - onChanged(); - } else { - storagedateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder mergeStoragedate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (storagedateBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - storagedate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - storagedate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(storagedate_).mergeFrom(value).buildPartial(); - } else { - storagedate_ = value; - } - onChanged(); - } else { - storagedateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - return this; - } - public Builder clearStoragedate() { - if (storagedateBuilder_ == null) { - storagedate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - storagedateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getStoragedateBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getStoragedateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getStoragedateOrBuilder() { - if (storagedateBuilder_ != null) { - return storagedateBuilder_.getMessageOrBuilder(); - } else { - return storagedate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getStoragedateFieldBuilder() { - if (storagedateBuilder_ == null) { - storagedateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - storagedate_, - getParentForChildren(), - isClean()); - storagedate_ = null; - } - return storagedateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField device = 26; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField device_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> deviceBuilder_; - public boolean hasDevice() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDevice() { - if (deviceBuilder_ == null) { - return device_; - } else { - return deviceBuilder_.getMessage(); - } - } - public Builder setDevice(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (deviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - device_ = value; - onChanged(); - } else { - deviceBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder setDevice( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (deviceBuilder_ == null) { - device_ = builderForValue.build(); - onChanged(); - } else { - deviceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder mergeDevice(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (deviceBuilder_ == null) { - if (((bitField0_ & 0x00100000) == 0x00100000) && - device_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - device_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(device_).mergeFrom(value).buildPartial(); - } else { - device_ = value; - } - onChanged(); - } else { - deviceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - return this; - } - public Builder clearDevice() { - if (deviceBuilder_ == null) { - device_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - deviceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDeviceBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getDeviceFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDeviceOrBuilder() { - if (deviceBuilder_ != null) { - return deviceBuilder_.getMessageOrBuilder(); - } else { - return device_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDeviceFieldBuilder() { - if (deviceBuilder_ == null) { - deviceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - device_, - getParentForChildren(), - isClean()); - device_ = null; - } - return deviceBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField size = 20; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField size_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> sizeBuilder_; - public boolean hasSize() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getSize() { - if (sizeBuilder_ == null) { - return size_; - } else { - return sizeBuilder_.getMessage(); - } - } - public Builder setSize(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (sizeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - size_ = value; - onChanged(); - } else { - sizeBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder setSize( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (sizeBuilder_ == null) { - size_ = builderForValue.build(); - onChanged(); - } else { - sizeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder mergeSize(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (sizeBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000) && - size_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - size_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(size_).mergeFrom(value).buildPartial(); - } else { - size_ = value; - } - onChanged(); - } else { - sizeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00200000; - return this; - } - public Builder clearSize() { - if (sizeBuilder_ == null) { - size_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - sizeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getSizeBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getSizeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getSizeOrBuilder() { - if (sizeBuilder_ != null) { - return sizeBuilder_.getMessageOrBuilder(); - } else { - return size_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getSizeFieldBuilder() { - if (sizeBuilder_ == null) { - sizeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - size_, - getParentForChildren(), - isClean()); - size_ = null; - } - return sizeBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField version = 22; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField version_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> versionBuilder_; - public boolean hasVersion() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getVersion() { - if (versionBuilder_ == null) { - return version_; - } else { - return versionBuilder_.getMessage(); - } - } - public Builder setVersion(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder setVersion( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder mergeVersion(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (versionBuilder_ == null) { - if (((bitField0_ & 0x00400000) == 0x00400000) && - version_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - version_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - return this; - } - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - versionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00400000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getVersionBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - version_, - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField lastmetadataupdate = 23; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField lastmetadataupdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> lastmetadataupdateBuilder_; - public boolean hasLastmetadataupdate() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLastmetadataupdate() { - if (lastmetadataupdateBuilder_ == null) { - return lastmetadataupdate_; - } else { - return lastmetadataupdateBuilder_.getMessage(); - } - } - public Builder setLastmetadataupdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (lastmetadataupdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastmetadataupdate_ = value; - onChanged(); - } else { - lastmetadataupdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder setLastmetadataupdate( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (lastmetadataupdateBuilder_ == null) { - lastmetadataupdate_ = builderForValue.build(); - onChanged(); - } else { - lastmetadataupdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder mergeLastmetadataupdate(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (lastmetadataupdateBuilder_ == null) { - if (((bitField0_ & 0x00800000) == 0x00800000) && - lastmetadataupdate_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - lastmetadataupdate_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(lastmetadataupdate_).mergeFrom(value).buildPartial(); - } else { - lastmetadataupdate_ = value; - } - onChanged(); - } else { - lastmetadataupdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00800000; - return this; - } - public Builder clearLastmetadataupdate() { - if (lastmetadataupdateBuilder_ == null) { - lastmetadataupdate_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - lastmetadataupdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00800000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLastmetadataupdateBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getLastmetadataupdateFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLastmetadataupdateOrBuilder() { - if (lastmetadataupdateBuilder_ != null) { - return lastmetadataupdateBuilder_.getMessageOrBuilder(); - } else { - return lastmetadataupdate_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLastmetadataupdateFieldBuilder() { - if (lastmetadataupdateBuilder_ == null) { - lastmetadataupdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - lastmetadataupdate_, - getParentForChildren(), - isClean()); - lastmetadataupdate_ = null; - } - return lastmetadataupdateBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField metadataversionnumber = 24; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField metadataversionnumber_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> metadataversionnumberBuilder_; - public boolean hasMetadataversionnumber() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getMetadataversionnumber() { - if (metadataversionnumberBuilder_ == null) { - return metadataversionnumber_; - } else { - return metadataversionnumberBuilder_.getMessage(); - } - } - public Builder setMetadataversionnumber(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (metadataversionnumberBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadataversionnumber_ = value; - onChanged(); - } else { - metadataversionnumberBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder setMetadataversionnumber( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (metadataversionnumberBuilder_ == null) { - metadataversionnumber_ = builderForValue.build(); - onChanged(); - } else { - metadataversionnumberBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder mergeMetadataversionnumber(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (metadataversionnumberBuilder_ == null) { - if (((bitField0_ & 0x01000000) == 0x01000000) && - metadataversionnumber_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - metadataversionnumber_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(metadataversionnumber_).mergeFrom(value).buildPartial(); - } else { - metadataversionnumber_ = value; - } - onChanged(); - } else { - metadataversionnumberBuilder_.mergeFrom(value); - } - bitField0_ |= 0x01000000; - return this; - } - public Builder clearMetadataversionnumber() { - if (metadataversionnumberBuilder_ == null) { - metadataversionnumber_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - metadataversionnumberBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x01000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getMetadataversionnumberBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return getMetadataversionnumberFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getMetadataversionnumberOrBuilder() { - if (metadataversionnumberBuilder_ != null) { - return metadataversionnumberBuilder_.getMessageOrBuilder(); - } else { - return metadataversionnumber_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getMetadataversionnumberFieldBuilder() { - if (metadataversionnumberBuilder_ == null) { - metadataversionnumberBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - metadataversionnumber_, - getParentForChildren(), - isClean()); - metadataversionnumber_ = null; - } - return metadataversionnumberBuilder_; - } - - // repeated .eu.dnetlib.data.proto.Result.GeoLocation geolocation = 44; - private java.util.List geolocation_ = - java.util.Collections.emptyList(); - private void ensureGeolocationIsMutable() { - if (!((bitField0_ & 0x02000000) == 0x02000000)) { - geolocation_ = new java.util.ArrayList(geolocation_); - bitField0_ |= 0x02000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder> geolocationBuilder_; - - public java.util.List getGeolocationList() { - if (geolocationBuilder_ == null) { - return java.util.Collections.unmodifiableList(geolocation_); - } else { - return geolocationBuilder_.getMessageList(); - } - } - public int getGeolocationCount() { - if (geolocationBuilder_ == null) { - return geolocation_.size(); - } else { - return geolocationBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation getGeolocation(int index) { - if (geolocationBuilder_ == null) { - return geolocation_.get(index); - } else { - return geolocationBuilder_.getMessage(index); - } - } - public Builder setGeolocation( - int index, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation value) { - if (geolocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGeolocationIsMutable(); - geolocation_.set(index, value); - onChanged(); - } else { - geolocationBuilder_.setMessage(index, value); - } - return this; - } - public Builder setGeolocation( - int index, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder builderForValue) { - if (geolocationBuilder_ == null) { - ensureGeolocationIsMutable(); - geolocation_.set(index, builderForValue.build()); - onChanged(); - } else { - geolocationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addGeolocation(eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation value) { - if (geolocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGeolocationIsMutable(); - geolocation_.add(value); - onChanged(); - } else { - geolocationBuilder_.addMessage(value); - } - return this; - } - public Builder addGeolocation( - int index, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation value) { - if (geolocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGeolocationIsMutable(); - geolocation_.add(index, value); - onChanged(); - } else { - geolocationBuilder_.addMessage(index, value); - } - return this; - } - public Builder addGeolocation( - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder builderForValue) { - if (geolocationBuilder_ == null) { - ensureGeolocationIsMutable(); - geolocation_.add(builderForValue.build()); - onChanged(); - } else { - geolocationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addGeolocation( - int index, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder builderForValue) { - if (geolocationBuilder_ == null) { - ensureGeolocationIsMutable(); - geolocation_.add(index, builderForValue.build()); - onChanged(); - } else { - geolocationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllGeolocation( - java.lang.Iterable values) { - if (geolocationBuilder_ == null) { - ensureGeolocationIsMutable(); - super.addAll(values, geolocation_); - onChanged(); - } else { - geolocationBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearGeolocation() { - if (geolocationBuilder_ == null) { - geolocation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - } else { - geolocationBuilder_.clear(); - } - return this; - } - public Builder removeGeolocation(int index) { - if (geolocationBuilder_ == null) { - ensureGeolocationIsMutable(); - geolocation_.remove(index); - onChanged(); - } else { - geolocationBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder getGeolocationBuilder( - int index) { - return getGeolocationFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder getGeolocationOrBuilder( - int index) { - if (geolocationBuilder_ == null) { - return geolocation_.get(index); } else { - return geolocationBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getGeolocationOrBuilderList() { - if (geolocationBuilder_ != null) { - return geolocationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(geolocation_); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder addGeolocationBuilder() { - return getGeolocationFieldBuilder().addBuilder( - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.getDefaultInstance()); - } - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder addGeolocationBuilder( - int index) { - return getGeolocationFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.getDefaultInstance()); - } - public java.util.List - getGeolocationBuilderList() { - return getGeolocationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder> - getGeolocationFieldBuilder() { - if (geolocationBuilder_ == null) { - geolocationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder, eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder>( - geolocation_, - ((bitField0_ & 0x02000000) == 0x02000000), - getParentForChildren(), - isClean()); - geolocation_ = null; - } - return geolocationBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField documentationUrl = 35; - private java.util.List documentationUrl_ = - java.util.Collections.emptyList(); - private void ensureDocumentationUrlIsMutable() { - if (!((bitField0_ & 0x04000000) == 0x04000000)) { - documentationUrl_ = new java.util.ArrayList(documentationUrl_); - bitField0_ |= 0x04000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> documentationUrlBuilder_; - - public java.util.List getDocumentationUrlList() { - if (documentationUrlBuilder_ == null) { - return java.util.Collections.unmodifiableList(documentationUrl_); - } else { - return documentationUrlBuilder_.getMessageList(); - } - } - public int getDocumentationUrlCount() { - if (documentationUrlBuilder_ == null) { - return documentationUrl_.size(); - } else { - return documentationUrlBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDocumentationUrl(int index) { - if (documentationUrlBuilder_ == null) { - return documentationUrl_.get(index); - } else { - return documentationUrlBuilder_.getMessage(index); - } - } - public Builder setDocumentationUrl( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (documentationUrlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentationUrlIsMutable(); - documentationUrl_.set(index, value); - onChanged(); - } else { - documentationUrlBuilder_.setMessage(index, value); - } - return this; - } - public Builder setDocumentationUrl( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (documentationUrlBuilder_ == null) { - ensureDocumentationUrlIsMutable(); - documentationUrl_.set(index, builderForValue.build()); - onChanged(); - } else { - documentationUrlBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addDocumentationUrl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (documentationUrlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentationUrlIsMutable(); - documentationUrl_.add(value); - onChanged(); - } else { - documentationUrlBuilder_.addMessage(value); - } - return this; - } - public Builder addDocumentationUrl( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (documentationUrlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentationUrlIsMutable(); - documentationUrl_.add(index, value); - onChanged(); - } else { - documentationUrlBuilder_.addMessage(index, value); - } - return this; - } - public Builder addDocumentationUrl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (documentationUrlBuilder_ == null) { - ensureDocumentationUrlIsMutable(); - documentationUrl_.add(builderForValue.build()); - onChanged(); - } else { - documentationUrlBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addDocumentationUrl( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (documentationUrlBuilder_ == null) { - ensureDocumentationUrlIsMutable(); - documentationUrl_.add(index, builderForValue.build()); - onChanged(); - } else { - documentationUrlBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllDocumentationUrl( - java.lang.Iterable values) { - if (documentationUrlBuilder_ == null) { - ensureDocumentationUrlIsMutable(); - super.addAll(values, documentationUrl_); - onChanged(); - } else { - documentationUrlBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearDocumentationUrl() { - if (documentationUrlBuilder_ == null) { - documentationUrl_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); - onChanged(); - } else { - documentationUrlBuilder_.clear(); - } - return this; - } - public Builder removeDocumentationUrl(int index) { - if (documentationUrlBuilder_ == null) { - ensureDocumentationUrlIsMutable(); - documentationUrl_.remove(index); - onChanged(); - } else { - documentationUrlBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDocumentationUrlBuilder( - int index) { - return getDocumentationUrlFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDocumentationUrlOrBuilder( - int index) { - if (documentationUrlBuilder_ == null) { - return documentationUrl_.get(index); } else { - return documentationUrlBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getDocumentationUrlOrBuilderList() { - if (documentationUrlBuilder_ != null) { - return documentationUrlBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(documentationUrl_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addDocumentationUrlBuilder() { - return getDocumentationUrlFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addDocumentationUrlBuilder( - int index) { - return getDocumentationUrlFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getDocumentationUrlBuilderList() { - return getDocumentationUrlFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDocumentationUrlFieldBuilder() { - if (documentationUrlBuilder_ == null) { - documentationUrlBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - documentationUrl_, - ((bitField0_ & 0x04000000) == 0x04000000), - getParentForChildren(), - isClean()); - documentationUrl_ = null; - } - return documentationUrlBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StructuredProperty license = 36; - private java.util.List license_ = - java.util.Collections.emptyList(); - private void ensureLicenseIsMutable() { - if (!((bitField0_ & 0x08000000) == 0x08000000)) { - license_ = new java.util.ArrayList(license_); - bitField0_ |= 0x08000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder> licenseBuilder_; - - public java.util.List getLicenseList() { - if (licenseBuilder_ == null) { - return java.util.Collections.unmodifiableList(license_); - } else { - return licenseBuilder_.getMessageList(); - } - } - public int getLicenseCount() { - if (licenseBuilder_ == null) { - return license_.size(); - } else { - return licenseBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty getLicense(int index) { - if (licenseBuilder_ == null) { - return license_.get(index); - } else { - return licenseBuilder_.getMessage(index); - } - } - public Builder setLicense( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (licenseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLicenseIsMutable(); - license_.set(index, value); - onChanged(); - } else { - licenseBuilder_.setMessage(index, value); - } - return this; - } - public Builder setLicense( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (licenseBuilder_ == null) { - ensureLicenseIsMutable(); - license_.set(index, builderForValue.build()); - onChanged(); - } else { - licenseBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addLicense(eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (licenseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLicenseIsMutable(); - license_.add(value); - onChanged(); - } else { - licenseBuilder_.addMessage(value); - } - return this; - } - public Builder addLicense( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty value) { - if (licenseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLicenseIsMutable(); - license_.add(index, value); - onChanged(); - } else { - licenseBuilder_.addMessage(index, value); - } - return this; - } - public Builder addLicense( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (licenseBuilder_ == null) { - ensureLicenseIsMutable(); - license_.add(builderForValue.build()); - onChanged(); - } else { - licenseBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addLicense( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder builderForValue) { - if (licenseBuilder_ == null) { - ensureLicenseIsMutable(); - license_.add(index, builderForValue.build()); - onChanged(); - } else { - licenseBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllLicense( - java.lang.Iterable values) { - if (licenseBuilder_ == null) { - ensureLicenseIsMutable(); - super.addAll(values, license_); - onChanged(); - } else { - licenseBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearLicense() { - if (licenseBuilder_ == null) { - license_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x08000000); - onChanged(); - } else { - licenseBuilder_.clear(); - } - return this; - } - public Builder removeLicense(int index) { - if (licenseBuilder_ == null) { - ensureLicenseIsMutable(); - license_.remove(index); - onChanged(); - } else { - licenseBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder getLicenseBuilder( - int index) { - return getLicenseFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder getLicenseOrBuilder( - int index) { - if (licenseBuilder_ == null) { - return license_.get(index); } else { - return licenseBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getLicenseOrBuilderList() { - if (licenseBuilder_ != null) { - return licenseBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(license_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addLicenseBuilder() { - return getLicenseFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder addLicenseBuilder( - int index) { - return getLicenseFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.getDefaultInstance()); - } - public java.util.List - getLicenseBuilderList() { - return getLicenseFieldBuilder().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> - getLicenseFieldBuilder() { - if (licenseBuilder_ == null) { - licenseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty, eu.dnetlib.data.proto.FieldTypeProtos.StructuredProperty.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StructuredPropertyOrBuilder>( - license_, - ((bitField0_ & 0x08000000) == 0x08000000), - getParentForChildren(), - isClean()); - license_ = null; - } - return licenseBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField codeRepositoryUrl = 38; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField codeRepositoryUrl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> codeRepositoryUrlBuilder_; - public boolean hasCodeRepositoryUrl() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getCodeRepositoryUrl() { - if (codeRepositoryUrlBuilder_ == null) { - return codeRepositoryUrl_; - } else { - return codeRepositoryUrlBuilder_.getMessage(); - } - } - public Builder setCodeRepositoryUrl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (codeRepositoryUrlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - codeRepositoryUrl_ = value; - onChanged(); - } else { - codeRepositoryUrlBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder setCodeRepositoryUrl( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (codeRepositoryUrlBuilder_ == null) { - codeRepositoryUrl_ = builderForValue.build(); - onChanged(); - } else { - codeRepositoryUrlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder mergeCodeRepositoryUrl(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (codeRepositoryUrlBuilder_ == null) { - if (((bitField0_ & 0x10000000) == 0x10000000) && - codeRepositoryUrl_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - codeRepositoryUrl_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(codeRepositoryUrl_).mergeFrom(value).buildPartial(); - } else { - codeRepositoryUrl_ = value; - } - onChanged(); - } else { - codeRepositoryUrlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x10000000; - return this; - } - public Builder clearCodeRepositoryUrl() { - if (codeRepositoryUrlBuilder_ == null) { - codeRepositoryUrl_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - codeRepositoryUrlBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x10000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getCodeRepositoryUrlBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getCodeRepositoryUrlFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getCodeRepositoryUrlOrBuilder() { - if (codeRepositoryUrlBuilder_ != null) { - return codeRepositoryUrlBuilder_.getMessageOrBuilder(); - } else { - return codeRepositoryUrl_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getCodeRepositoryUrlFieldBuilder() { - if (codeRepositoryUrlBuilder_ == null) { - codeRepositoryUrlBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - codeRepositoryUrl_, - getParentForChildren(), - isClean()); - codeRepositoryUrl_ = null; - } - return codeRepositoryUrlBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier programmingLanguage = 39; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier programmingLanguage_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> programmingLanguageBuilder_; - public boolean hasProgrammingLanguage() { - return ((bitField0_ & 0x20000000) == 0x20000000); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getProgrammingLanguage() { - if (programmingLanguageBuilder_ == null) { - return programmingLanguage_; - } else { - return programmingLanguageBuilder_.getMessage(); - } - } - public Builder setProgrammingLanguage(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (programmingLanguageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - programmingLanguage_ = value; - onChanged(); - } else { - programmingLanguageBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder setProgrammingLanguage( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (programmingLanguageBuilder_ == null) { - programmingLanguage_ = builderForValue.build(); - onChanged(); - } else { - programmingLanguageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder mergeProgrammingLanguage(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (programmingLanguageBuilder_ == null) { - if (((bitField0_ & 0x20000000) == 0x20000000) && - programmingLanguage_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - programmingLanguage_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(programmingLanguage_).mergeFrom(value).buildPartial(); - } else { - programmingLanguage_ = value; - } - onChanged(); - } else { - programmingLanguageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x20000000; - return this; - } - public Builder clearProgrammingLanguage() { - if (programmingLanguageBuilder_ == null) { - programmingLanguage_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - programmingLanguageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x20000000); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getProgrammingLanguageBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getProgrammingLanguageFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getProgrammingLanguageOrBuilder() { - if (programmingLanguageBuilder_ != null) { - return programmingLanguageBuilder_.getMessageOrBuilder(); - } else { - return programmingLanguage_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getProgrammingLanguageFieldBuilder() { - if (programmingLanguageBuilder_ == null) { - programmingLanguageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - programmingLanguage_, - getParentForChildren(), - isClean()); - programmingLanguage_ = null; - } - return programmingLanguageBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField contactperson = 45; - private java.util.List contactperson_ = - java.util.Collections.emptyList(); - private void ensureContactpersonIsMutable() { - if (!((bitField0_ & 0x40000000) == 0x40000000)) { - contactperson_ = new java.util.ArrayList(contactperson_); - bitField0_ |= 0x40000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactpersonBuilder_; - - public java.util.List getContactpersonList() { - if (contactpersonBuilder_ == null) { - return java.util.Collections.unmodifiableList(contactperson_); - } else { - return contactpersonBuilder_.getMessageList(); - } - } - public int getContactpersonCount() { - if (contactpersonBuilder_ == null) { - return contactperson_.size(); - } else { - return contactpersonBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactperson(int index) { - if (contactpersonBuilder_ == null) { - return contactperson_.get(index); - } else { - return contactpersonBuilder_.getMessage(index); - } - } - public Builder setContactperson( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactpersonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactpersonIsMutable(); - contactperson_.set(index, value); - onChanged(); - } else { - contactpersonBuilder_.setMessage(index, value); - } - return this; - } - public Builder setContactperson( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactpersonBuilder_ == null) { - ensureContactpersonIsMutable(); - contactperson_.set(index, builderForValue.build()); - onChanged(); - } else { - contactpersonBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addContactperson(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactpersonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactpersonIsMutable(); - contactperson_.add(value); - onChanged(); - } else { - contactpersonBuilder_.addMessage(value); - } - return this; - } - public Builder addContactperson( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactpersonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactpersonIsMutable(); - contactperson_.add(index, value); - onChanged(); - } else { - contactpersonBuilder_.addMessage(index, value); - } - return this; - } - public Builder addContactperson( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactpersonBuilder_ == null) { - ensureContactpersonIsMutable(); - contactperson_.add(builderForValue.build()); - onChanged(); - } else { - contactpersonBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addContactperson( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactpersonBuilder_ == null) { - ensureContactpersonIsMutable(); - contactperson_.add(index, builderForValue.build()); - onChanged(); - } else { - contactpersonBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllContactperson( - java.lang.Iterable values) { - if (contactpersonBuilder_ == null) { - ensureContactpersonIsMutable(); - super.addAll(values, contactperson_); - onChanged(); - } else { - contactpersonBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearContactperson() { - if (contactpersonBuilder_ == null) { - contactperson_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x40000000); - onChanged(); - } else { - contactpersonBuilder_.clear(); - } - return this; - } - public Builder removeContactperson(int index) { - if (contactpersonBuilder_ == null) { - ensureContactpersonIsMutable(); - contactperson_.remove(index); - onChanged(); - } else { - contactpersonBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactpersonBuilder( - int index) { - return getContactpersonFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactpersonOrBuilder( - int index) { - if (contactpersonBuilder_ == null) { - return contactperson_.get(index); } else { - return contactpersonBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getContactpersonOrBuilderList() { - if (contactpersonBuilder_ != null) { - return contactpersonBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(contactperson_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContactpersonBuilder() { - return getContactpersonFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContactpersonBuilder( - int index) { - return getContactpersonFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getContactpersonBuilderList() { - return getContactpersonFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactpersonFieldBuilder() { - if (contactpersonBuilder_ == null) { - contactpersonBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactperson_, - ((bitField0_ & 0x40000000) == 0x40000000), - getParentForChildren(), - isClean()); - contactperson_ = null; - } - return contactpersonBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField contactgroup = 41; - private java.util.List contactgroup_ = - java.util.Collections.emptyList(); - private void ensureContactgroupIsMutable() { - if (!((bitField0_ & 0x80000000) == 0x80000000)) { - contactgroup_ = new java.util.ArrayList(contactgroup_); - bitField0_ |= 0x80000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> contactgroupBuilder_; - - public java.util.List getContactgroupList() { - if (contactgroupBuilder_ == null) { - return java.util.Collections.unmodifiableList(contactgroup_); - } else { - return contactgroupBuilder_.getMessageList(); - } - } - public int getContactgroupCount() { - if (contactgroupBuilder_ == null) { - return contactgroup_.size(); - } else { - return contactgroupBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getContactgroup(int index) { - if (contactgroupBuilder_ == null) { - return contactgroup_.get(index); - } else { - return contactgroupBuilder_.getMessage(index); - } - } - public Builder setContactgroup( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactgroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactgroupIsMutable(); - contactgroup_.set(index, value); - onChanged(); - } else { - contactgroupBuilder_.setMessage(index, value); - } - return this; - } - public Builder setContactgroup( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactgroupBuilder_ == null) { - ensureContactgroupIsMutable(); - contactgroup_.set(index, builderForValue.build()); - onChanged(); - } else { - contactgroupBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addContactgroup(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactgroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactgroupIsMutable(); - contactgroup_.add(value); - onChanged(); - } else { - contactgroupBuilder_.addMessage(value); - } - return this; - } - public Builder addContactgroup( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (contactgroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactgroupIsMutable(); - contactgroup_.add(index, value); - onChanged(); - } else { - contactgroupBuilder_.addMessage(index, value); - } - return this; - } - public Builder addContactgroup( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactgroupBuilder_ == null) { - ensureContactgroupIsMutable(); - contactgroup_.add(builderForValue.build()); - onChanged(); - } else { - contactgroupBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addContactgroup( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (contactgroupBuilder_ == null) { - ensureContactgroupIsMutable(); - contactgroup_.add(index, builderForValue.build()); - onChanged(); - } else { - contactgroupBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllContactgroup( - java.lang.Iterable values) { - if (contactgroupBuilder_ == null) { - ensureContactgroupIsMutable(); - super.addAll(values, contactgroup_); - onChanged(); - } else { - contactgroupBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearContactgroup() { - if (contactgroupBuilder_ == null) { - contactgroup_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x80000000); - onChanged(); - } else { - contactgroupBuilder_.clear(); - } - return this; - } - public Builder removeContactgroup(int index) { - if (contactgroupBuilder_ == null) { - ensureContactgroupIsMutable(); - contactgroup_.remove(index); - onChanged(); - } else { - contactgroupBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getContactgroupBuilder( - int index) { - return getContactgroupFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getContactgroupOrBuilder( - int index) { - if (contactgroupBuilder_ == null) { - return contactgroup_.get(index); } else { - return contactgroupBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getContactgroupOrBuilderList() { - if (contactgroupBuilder_ != null) { - return contactgroupBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(contactgroup_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContactgroupBuilder() { - return getContactgroupFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addContactgroupBuilder( - int index) { - return getContactgroupFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getContactgroupBuilderList() { - return getContactgroupFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getContactgroupFieldBuilder() { - if (contactgroupBuilder_ == null) { - contactgroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - contactgroup_, - ((bitField0_ & 0x80000000) == 0x80000000), - getParentForChildren(), - isClean()); - contactgroup_ = null; - } - return contactgroupBuilder_; - } - - // repeated .eu.dnetlib.data.proto.StringField tool = 42; - private java.util.List tool_ = - java.util.Collections.emptyList(); - private void ensureToolIsMutable() { - if (!((bitField1_ & 0x00000001) == 0x00000001)) { - tool_ = new java.util.ArrayList(tool_); - bitField1_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> toolBuilder_; - - public java.util.List getToolList() { - if (toolBuilder_ == null) { - return java.util.Collections.unmodifiableList(tool_); - } else { - return toolBuilder_.getMessageList(); - } - } - public int getToolCount() { - if (toolBuilder_ == null) { - return tool_.size(); - } else { - return toolBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getTool(int index) { - if (toolBuilder_ == null) { - return tool_.get(index); - } else { - return toolBuilder_.getMessage(index); - } - } - public Builder setTool( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (toolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToolIsMutable(); - tool_.set(index, value); - onChanged(); - } else { - toolBuilder_.setMessage(index, value); - } - return this; - } - public Builder setTool( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (toolBuilder_ == null) { - ensureToolIsMutable(); - tool_.set(index, builderForValue.build()); - onChanged(); - } else { - toolBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addTool(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (toolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToolIsMutable(); - tool_.add(value); - onChanged(); - } else { - toolBuilder_.addMessage(value); - } - return this; - } - public Builder addTool( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (toolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureToolIsMutable(); - tool_.add(index, value); - onChanged(); - } else { - toolBuilder_.addMessage(index, value); - } - return this; - } - public Builder addTool( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (toolBuilder_ == null) { - ensureToolIsMutable(); - tool_.add(builderForValue.build()); - onChanged(); - } else { - toolBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addTool( - int index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (toolBuilder_ == null) { - ensureToolIsMutable(); - tool_.add(index, builderForValue.build()); - onChanged(); - } else { - toolBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllTool( - java.lang.Iterable values) { - if (toolBuilder_ == null) { - ensureToolIsMutable(); - super.addAll(values, tool_); - onChanged(); - } else { - toolBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearTool() { - if (toolBuilder_ == null) { - tool_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000001); - onChanged(); - } else { - toolBuilder_.clear(); - } - return this; - } - public Builder removeTool(int index) { - if (toolBuilder_ == null) { - ensureToolIsMutable(); - tool_.remove(index); - onChanged(); - } else { - toolBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getToolBuilder( - int index) { - return getToolFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getToolOrBuilder( - int index) { - if (toolBuilder_ == null) { - return tool_.get(index); } else { - return toolBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getToolOrBuilderList() { - if (toolBuilder_ != null) { - return toolBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tool_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addToolBuilder() { - return getToolFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder addToolBuilder( - int index) { - return getToolFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()); - } - public java.util.List - getToolBuilderList() { - return getToolFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getToolFieldBuilder() { - if (toolBuilder_ == null) { - toolBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - tool_, - ((bitField1_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - tool_ = null; - } - return toolBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.Metadata) - } - - static { - defaultInstance = new Metadata(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.Metadata) - } - - public interface JournalOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string name = 1; - boolean hasName(); - String getName(); - - // optional string issnPrinted = 2; - boolean hasIssnPrinted(); - String getIssnPrinted(); - - // optional string issnOnline = 3; - boolean hasIssnOnline(); - String getIssnOnline(); - - // optional string issnLinking = 4; - boolean hasIssnLinking(); - String getIssnLinking(); - - // optional string ep = 6; - boolean hasEp(); - String getEp(); - - // optional string iss = 7; - boolean hasIss(); - String getIss(); - - // optional string sp = 8; - boolean hasSp(); - String getSp(); - - // optional string vol = 9; - boolean hasVol(); - String getVol(); - - // optional string edition = 10; - boolean hasEdition(); - String getEdition(); - - // optional string conferenceplace = 11; - boolean hasConferenceplace(); - String getConferenceplace(); - - // optional string conferencedate = 12; - boolean hasConferencedate(); - String getConferencedate(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class Journal extends - com.google.protobuf.GeneratedMessage - implements JournalOrBuilder { - // Use Journal.newBuilder() to construct. - private Journal(Builder builder) { - super(builder); - } - private Journal(boolean noInit) {} - - private static final Journal defaultInstance; - public static Journal getDefaultInstance() { - return defaultInstance; - } - - public Journal getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Journal_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Journal_fieldAccessorTable; - } - - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - java.lang.Object ref = name_; - 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)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string issnPrinted = 2; - public static final int ISSNPRINTED_FIELD_NUMBER = 2; - private java.lang.Object issnPrinted_; - public boolean hasIssnPrinted() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getIssnPrinted() { - java.lang.Object ref = issnPrinted_; - 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)) { - issnPrinted_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getIssnPrintedBytes() { - java.lang.Object ref = issnPrinted_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - issnPrinted_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string issnOnline = 3; - public static final int ISSNONLINE_FIELD_NUMBER = 3; - private java.lang.Object issnOnline_; - public boolean hasIssnOnline() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getIssnOnline() { - java.lang.Object ref = issnOnline_; - 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)) { - issnOnline_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getIssnOnlineBytes() { - java.lang.Object ref = issnOnline_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - issnOnline_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string issnLinking = 4; - public static final int ISSNLINKING_FIELD_NUMBER = 4; - private java.lang.Object issnLinking_; - public boolean hasIssnLinking() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getIssnLinking() { - java.lang.Object ref = issnLinking_; - 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)) { - issnLinking_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getIssnLinkingBytes() { - java.lang.Object ref = issnLinking_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - issnLinking_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string ep = 6; - public static final int EP_FIELD_NUMBER = 6; - private java.lang.Object ep_; - public boolean hasEp() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getEp() { - java.lang.Object ref = ep_; - 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)) { - ep_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getEpBytes() { - java.lang.Object ref = ep_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - ep_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string iss = 7; - public static final int ISS_FIELD_NUMBER = 7; - private java.lang.Object iss_; - public boolean hasIss() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getIss() { - java.lang.Object ref = iss_; - 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)) { - iss_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getIssBytes() { - java.lang.Object ref = iss_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - iss_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string sp = 8; - public static final int SP_FIELD_NUMBER = 8; - private java.lang.Object sp_; - public boolean hasSp() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public String getSp() { - java.lang.Object ref = sp_; - 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)) { - sp_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSpBytes() { - java.lang.Object ref = sp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - sp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string vol = 9; - public static final int VOL_FIELD_NUMBER = 9; - private java.lang.Object vol_; - public boolean hasVol() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public String getVol() { - java.lang.Object ref = vol_; - 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)) { - vol_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getVolBytes() { - java.lang.Object ref = vol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - vol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string edition = 10; - public static final int EDITION_FIELD_NUMBER = 10; - private java.lang.Object edition_; - public boolean hasEdition() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public String getEdition() { - java.lang.Object ref = edition_; - 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)) { - edition_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getEditionBytes() { - java.lang.Object ref = edition_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - edition_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string conferenceplace = 11; - public static final int CONFERENCEPLACE_FIELD_NUMBER = 11; - private java.lang.Object conferenceplace_; - public boolean hasConferenceplace() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public String getConferenceplace() { - java.lang.Object ref = conferenceplace_; - 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)) { - conferenceplace_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getConferenceplaceBytes() { - java.lang.Object ref = conferenceplace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - conferenceplace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string conferencedate = 12; - public static final int CONFERENCEDATE_FIELD_NUMBER = 12; - private java.lang.Object conferencedate_; - public boolean hasConferencedate() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public String getConferencedate() { - java.lang.Object ref = conferencedate_; - 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)) { - conferencedate_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getConferencedateBytes() { - java.lang.Object ref = conferencedate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - conferencedate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - public static final int DATAINFO_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - name_ = ""; - issnPrinted_ = ""; - issnOnline_ = ""; - issnLinking_ = ""; - ep_ = ""; - iss_ = ""; - sp_ = ""; - vol_ = ""; - edition_ = ""; - conferenceplace_ = ""; - conferencedate_ = ""; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - 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.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getIssnPrintedBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getIssnOnlineBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getIssnLinkingBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(5, dataInfo_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(6, getEpBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(7, getIssBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(8, getSpBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(9, getVolBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(10, getEditionBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, getConferenceplaceBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getConferencedateBytes()); - } - 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 - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getIssnPrintedBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getIssnOnlineBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getIssnLinkingBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, dataInfo_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getEpBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getIssBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getSpBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getVolBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getEditionBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getConferenceplaceBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getConferencedateBytes()); - } - 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.ResultProtos.Result.Journal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Journal 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.ResultProtos.Result.Journal 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.JournalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Journal_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Journal_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.Journal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - issnPrinted_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - issnOnline_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - issnLinking_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - ep_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - iss_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - sp_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - vol_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - edition_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - conferenceplace_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - conferencedate_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Journal getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Journal build() { - eu.dnetlib.data.proto.ResultProtos.Result.Journal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.Journal buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.Journal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Journal buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.Journal result = new eu.dnetlib.data.proto.ResultProtos.Result.Journal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.issnPrinted_ = issnPrinted_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.issnOnline_ = issnOnline_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.issnLinking_ = issnLinking_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.ep_ = ep_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.iss_ = iss_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.sp_ = sp_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.vol_ = vol_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.edition_ = edition_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.conferenceplace_ = conferenceplace_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.conferencedate_ = conferencedate_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.Journal) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.Journal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.Journal other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.Journal.getDefaultInstance()) return this; - if (other.hasName()) { - setName(other.getName()); - } - if (other.hasIssnPrinted()) { - setIssnPrinted(other.getIssnPrinted()); - } - if (other.hasIssnOnline()) { - setIssnOnline(other.getIssnOnline()); - } - if (other.hasIssnLinking()) { - setIssnLinking(other.getIssnLinking()); - } - if (other.hasEp()) { - setEp(other.getEp()); - } - if (other.hasIss()) { - setIss(other.getIss()); - } - if (other.hasSp()) { - setSp(other.getSp()); - } - if (other.hasVol()) { - setVol(other.getVol()); - } - if (other.hasEdition()) { - setEdition(other.getEdition()); - } - if (other.hasConferenceplace()) { - setConferenceplace(other.getConferenceplace()); - } - if (other.hasConferencedate()) { - setConferencedate(other.getConferencedate()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - 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 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - issnPrinted_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - issnOnline_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - issnLinking_ = input.readBytes(); - break; - } - case 42: { - 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 50: { - bitField0_ |= 0x00000010; - ep_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000020; - iss_ = input.readBytes(); - break; - } - case 66: { - bitField0_ |= 0x00000040; - sp_ = input.readBytes(); - break; - } - case 74: { - bitField0_ |= 0x00000080; - vol_ = input.readBytes(); - break; - } - case 82: { - bitField0_ |= 0x00000100; - edition_ = input.readBytes(); - break; - } - case 90: { - bitField0_ |= 0x00000200; - conferenceplace_ = input.readBytes(); - break; - } - case 98: { - bitField0_ |= 0x00000400; - conferencedate_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional string name = 1; - private java.lang.Object name_ = ""; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - name_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setName(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - } - - // optional string issnPrinted = 2; - private java.lang.Object issnPrinted_ = ""; - public boolean hasIssnPrinted() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getIssnPrinted() { - java.lang.Object ref = issnPrinted_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - issnPrinted_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setIssnPrinted(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - issnPrinted_ = value; - onChanged(); - return this; - } - public Builder clearIssnPrinted() { - bitField0_ = (bitField0_ & ~0x00000002); - issnPrinted_ = getDefaultInstance().getIssnPrinted(); - onChanged(); - return this; - } - void setIssnPrinted(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - issnPrinted_ = value; - onChanged(); - } - - // optional string issnOnline = 3; - private java.lang.Object issnOnline_ = ""; - public boolean hasIssnOnline() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getIssnOnline() { - java.lang.Object ref = issnOnline_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - issnOnline_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setIssnOnline(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - issnOnline_ = value; - onChanged(); - return this; - } - public Builder clearIssnOnline() { - bitField0_ = (bitField0_ & ~0x00000004); - issnOnline_ = getDefaultInstance().getIssnOnline(); - onChanged(); - return this; - } - void setIssnOnline(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - issnOnline_ = value; - onChanged(); - } - - // optional string issnLinking = 4; - private java.lang.Object issnLinking_ = ""; - public boolean hasIssnLinking() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getIssnLinking() { - java.lang.Object ref = issnLinking_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - issnLinking_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setIssnLinking(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - issnLinking_ = value; - onChanged(); - return this; - } - public Builder clearIssnLinking() { - bitField0_ = (bitField0_ & ~0x00000008); - issnLinking_ = getDefaultInstance().getIssnLinking(); - onChanged(); - return this; - } - void setIssnLinking(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - issnLinking_ = value; - onChanged(); - } - - // optional string ep = 6; - private java.lang.Object ep_ = ""; - public boolean hasEp() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getEp() { - java.lang.Object ref = ep_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - ep_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setEp(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - ep_ = value; - onChanged(); - return this; - } - public Builder clearEp() { - bitField0_ = (bitField0_ & ~0x00000010); - ep_ = getDefaultInstance().getEp(); - onChanged(); - return this; - } - void setEp(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000010; - ep_ = value; - onChanged(); - } - - // optional string iss = 7; - private java.lang.Object iss_ = ""; - public boolean hasIss() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getIss() { - java.lang.Object ref = iss_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - iss_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setIss(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - iss_ = value; - onChanged(); - return this; - } - public Builder clearIss() { - bitField0_ = (bitField0_ & ~0x00000020); - iss_ = getDefaultInstance().getIss(); - onChanged(); - return this; - } - void setIss(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000020; - iss_ = value; - onChanged(); - } - - // optional string sp = 8; - private java.lang.Object sp_ = ""; - public boolean hasSp() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public String getSp() { - java.lang.Object ref = sp_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - sp_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setSp(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - sp_ = value; - onChanged(); - return this; - } - public Builder clearSp() { - bitField0_ = (bitField0_ & ~0x00000040); - sp_ = getDefaultInstance().getSp(); - onChanged(); - return this; - } - void setSp(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000040; - sp_ = value; - onChanged(); - } - - // optional string vol = 9; - private java.lang.Object vol_ = ""; - public boolean hasVol() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public String getVol() { - java.lang.Object ref = vol_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - vol_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setVol(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - vol_ = value; - onChanged(); - return this; - } - public Builder clearVol() { - bitField0_ = (bitField0_ & ~0x00000080); - vol_ = getDefaultInstance().getVol(); - onChanged(); - return this; - } - void setVol(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000080; - vol_ = value; - onChanged(); - } - - // optional string edition = 10; - private java.lang.Object edition_ = ""; - public boolean hasEdition() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public String getEdition() { - java.lang.Object ref = edition_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - edition_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setEdition(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - edition_ = value; - onChanged(); - return this; - } - public Builder clearEdition() { - bitField0_ = (bitField0_ & ~0x00000100); - edition_ = getDefaultInstance().getEdition(); - onChanged(); - return this; - } - void setEdition(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000100; - edition_ = value; - onChanged(); - } - - // optional string conferenceplace = 11; - private java.lang.Object conferenceplace_ = ""; - public boolean hasConferenceplace() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - public String getConferenceplace() { - java.lang.Object ref = conferenceplace_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - conferenceplace_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setConferenceplace(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - conferenceplace_ = value; - onChanged(); - return this; - } - public Builder clearConferenceplace() { - bitField0_ = (bitField0_ & ~0x00000200); - conferenceplace_ = getDefaultInstance().getConferenceplace(); - onChanged(); - return this; - } - void setConferenceplace(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000200; - conferenceplace_ = value; - onChanged(); - } - - // optional string conferencedate = 12; - private java.lang.Object conferencedate_ = ""; - public boolean hasConferencedate() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - public String getConferencedate() { - java.lang.Object ref = conferencedate_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - conferencedate_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setConferencedate(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - conferencedate_ = value; - onChanged(); - return this; - } - public Builder clearConferencedate() { - bitField0_ = (bitField0_ & ~0x00000400); - conferencedate_ = getDefaultInstance().getConferencedate(); - onChanged(); - return this; - } - void setConferencedate(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000400; - conferencedate_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 5; - 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_ & 0x00000800) == 0x00000800); - } - 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_ |= 0x00000800; - 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_ |= 0x00000800; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - 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_ |= 0x00000800; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000800; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.Journal) - } - - static { - defaultInstance = new Journal(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.Journal) - } - - public interface ContextOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string id = 1; - boolean hasId(); - String getId(); - - // repeated .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - java.util.List - getDataInfoList(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(int index); - int getDataInfoCount(); - java.util.List - getDataInfoOrBuilderList(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder( - int index); - } - public static final class Context extends - com.google.protobuf.GeneratedMessage - implements ContextOrBuilder { - // Use Context.newBuilder() to construct. - private Context(Builder builder) { - super(builder); - } - private Context(boolean noInit) {} - - private static final Context defaultInstance; - public static Context getDefaultInstance() { - return defaultInstance; - } - - public Context getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Context_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Context_fieldAccessorTable; - } - - private int bitField0_; - // required string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - 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 .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - public static final int DATAINFO_FIELD_NUMBER = 2; - private java.util.List dataInfo_; - public java.util.List getDataInfoList() { - return dataInfo_; - } - public java.util.List - getDataInfoOrBuilderList() { - return dataInfo_; - } - public int getDataInfoCount() { - return dataInfo_.size(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(int index) { - return dataInfo_.get(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder( - int index) { - return dataInfo_.get(index); - } - - private void initFields() { - id_ = ""; - dataInfo_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasId()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getDataInfoCount(); i++) { - if (!getDataInfo(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.writeBytes(1, getIdBytes()); - } - for (int i = 0; i < dataInfo_.size(); i++) { - output.writeMessage(2, dataInfo_.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 - .computeBytesSize(1, getIdBytes()); - } - for (int i = 0; i < dataInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dataInfo_.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.ResultProtos.Result.Context parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Context 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.ResultProtos.Result.Context parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Context 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.ResultProtos.Result.Context parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Context 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.ResultProtos.Result.Context 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.ResultProtos.Result.Context 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.ResultProtos.Result.Context parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Context 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.ResultProtos.Result.Context 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.ContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Context_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Context_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.Context.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (dataInfoBuilder_ == null) { - dataInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - dataInfoBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Context.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Context getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Context.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Context build() { - eu.dnetlib.data.proto.ResultProtos.Result.Context result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.Context buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.Context result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Context buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.Context result = new eu.dnetlib.data.proto.ResultProtos.Result.Context(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - dataInfo_ = java.util.Collections.unmodifiableList(dataInfo_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.Context) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.Context)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.Context other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.Context.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (dataInfoBuilder_ == null) { - if (!other.dataInfo_.isEmpty()) { - if (dataInfo_.isEmpty()) { - dataInfo_ = other.dataInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDataInfoIsMutable(); - dataInfo_.addAll(other.dataInfo_); - } - onChanged(); - } - } else { - if (!other.dataInfo_.isEmpty()) { - if (dataInfoBuilder_.isEmpty()) { - dataInfoBuilder_.dispose(); - dataInfoBuilder_ = null; - dataInfo_ = other.dataInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - dataInfoBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDataInfoFieldBuilder() : null; - } else { - dataInfoBuilder_.addAllMessages(other.dataInfo_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasId()) { - - return false; - } - for (int i = 0; i < getDataInfoCount(); i++) { - if (!getDataInfo(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 10: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 18: { - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addDataInfo(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required string id = 1; - private java.lang.Object id_ = ""; - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - 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_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - void setId(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - } - - // repeated .eu.dnetlib.data.proto.DataInfo dataInfo = 2; - private java.util.List dataInfo_ = - java.util.Collections.emptyList(); - private void ensureDataInfoIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - dataInfo_ = new java.util.ArrayList(dataInfo_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder> dataInfoBuilder_; - - public java.util.List getDataInfoList() { - if (dataInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataInfo_); - } else { - return dataInfoBuilder_.getMessageList(); - } - } - public int getDataInfoCount() { - if (dataInfoBuilder_ == null) { - return dataInfo_.size(); - } else { - return dataInfoBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(int index) { - if (dataInfoBuilder_ == null) { - return dataInfo_.get(index); - } else { - return dataInfoBuilder_.getMessage(index); - } - } - public Builder setDataInfo( - int index, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataInfoIsMutable(); - dataInfo_.set(index, value); - onChanged(); - } else { - dataInfoBuilder_.setMessage(index, value); - } - return this; - } - public Builder setDataInfo( - int index, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder builderForValue) { - if (dataInfoBuilder_ == null) { - ensureDataInfoIsMutable(); - dataInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - dataInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataInfoIsMutable(); - dataInfo_.add(value); - onChanged(); - } else { - dataInfoBuilder_.addMessage(value); - } - return this; - } - public Builder addDataInfo( - int index, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataInfoIsMutable(); - dataInfo_.add(index, value); - onChanged(); - } else { - dataInfoBuilder_.addMessage(index, value); - } - return this; - } - public Builder addDataInfo( - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder builderForValue) { - if (dataInfoBuilder_ == null) { - ensureDataInfoIsMutable(); - dataInfo_.add(builderForValue.build()); - onChanged(); - } else { - dataInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addDataInfo( - int index, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder builderForValue) { - if (dataInfoBuilder_ == null) { - ensureDataInfoIsMutable(); - dataInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - dataInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllDataInfo( - java.lang.Iterable values) { - if (dataInfoBuilder_ == null) { - ensureDataInfoIsMutable(); - super.addAll(values, dataInfo_); - onChanged(); - } else { - dataInfoBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - return this; - } - public Builder removeDataInfo(int index) { - if (dataInfoBuilder_ == null) { - ensureDataInfoIsMutable(); - dataInfo_.remove(index); - onChanged(); - } else { - dataInfoBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder( - int index) { - return getDataInfoFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder( - int index) { - if (dataInfoBuilder_ == null) { - return dataInfo_.get(index); } else { - return dataInfoBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getDataInfoOrBuilderList() { - if (dataInfoBuilder_ != null) { - return dataInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataInfo_); - } - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder addDataInfoBuilder() { - return getDataInfoFieldBuilder().addBuilder( - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance()); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder addDataInfoBuilder( - int index) { - return getDataInfoFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance()); - } - public java.util.List - getDataInfoBuilderList() { - return getDataInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - 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.RepeatedFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo, eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder, eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder>( - dataInfo_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - dataInfo_ = null; - } - return dataInfoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.Context) - } - - static { - defaultInstance = new Context(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.Context) - } - - public interface InstanceOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.StringField license = 6; - boolean hasLicense(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getLicense(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLicenseOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier accessright = 3; - boolean hasAccessright(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getAccessright(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getAccessrightOrBuilder(); - - // optional .eu.dnetlib.data.proto.Qualifier instancetype = 4; - boolean hasInstancetype(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getInstancetype(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getInstancetypeOrBuilder(); - - // optional .eu.dnetlib.data.proto.KeyValue hostedby = 5; - boolean hasHostedby(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getHostedby(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getHostedbyOrBuilder(); - - // repeated string url = 9; - java.util.List getUrlList(); - int getUrlCount(); - String getUrl(int index); - - // optional string distributionlocation = 12; - boolean hasDistributionlocation(); - String getDistributionlocation(); - - // optional .eu.dnetlib.data.proto.KeyValue collectedfrom = 10; - boolean hasCollectedfrom(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom(); - eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder(); - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 11; - boolean hasDateofacceptance(); - eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance(); - eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder(); - } - public static final class Instance extends - com.google.protobuf.GeneratedMessage - implements InstanceOrBuilder { - // Use Instance.newBuilder() to construct. - private Instance(Builder builder) { - super(builder); - } - private Instance(boolean noInit) {} - - private static final Instance defaultInstance; - public static Instance getDefaultInstance() { - return defaultInstance; - } - - public Instance getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Instance_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Instance_fieldAccessorTable; - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.StringField license = 6; - public static final int LICENSE_FIELD_NUMBER = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField license_; - public boolean hasLicense() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLicense() { - return license_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLicenseOrBuilder() { - return license_; - } - - // optional .eu.dnetlib.data.proto.Qualifier accessright = 3; - public static final int ACCESSRIGHT_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier accessright_; - public boolean hasAccessright() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getAccessright() { - return accessright_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getAccessrightOrBuilder() { - return accessright_; - } - - // optional .eu.dnetlib.data.proto.Qualifier instancetype = 4; - public static final int INSTANCETYPE_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier instancetype_; - public boolean hasInstancetype() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getInstancetype() { - return instancetype_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getInstancetypeOrBuilder() { - return instancetype_; - } - - // optional .eu.dnetlib.data.proto.KeyValue hostedby = 5; - public static final int HOSTEDBY_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.KeyValue hostedby_; - public boolean hasHostedby() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getHostedby() { - return hostedby_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getHostedbyOrBuilder() { - return hostedby_; - } - - // repeated string url = 9; - public static final int URL_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList url_; - public java.util.List - getUrlList() { - return url_; - } - public int getUrlCount() { - return url_.size(); - } - public String getUrl(int index) { - return url_.get(index); - } - - // optional string distributionlocation = 12; - public static final int DISTRIBUTIONLOCATION_FIELD_NUMBER = 12; - private java.lang.Object distributionlocation_; - public boolean hasDistributionlocation() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public String getDistributionlocation() { - java.lang.Object ref = distributionlocation_; - 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)) { - distributionlocation_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getDistributionlocationBytes() { - java.lang.Object ref = distributionlocation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - distributionlocation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.KeyValue collectedfrom = 10; - public static final int COLLECTEDFROM_FIELD_NUMBER = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.KeyValue collectedfrom_; - public boolean hasCollectedfrom() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom() { - return collectedfrom_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder() { - return collectedfrom_; - } - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 11; - public static final int DATEOFACCEPTANCE_FIELD_NUMBER = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofacceptance_; - public boolean hasDateofacceptance() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance() { - return dateofacceptance_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder() { - return dateofacceptance_; - } - - private void initFields() { - license_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - accessright_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - instancetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - hostedby_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - url_ = com.google.protobuf.LazyStringArrayList.EMPTY; - distributionlocation_ = ""; - collectedfrom_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasLicense()) { - if (!getLicense().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAccessright()) { - if (!getAccessright().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasInstancetype()) { - if (!getInstancetype().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasHostedby()) { - if (!getHostedby().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCollectedfrom()) { - if (!getCollectedfrom().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDateofacceptance()) { - if (!getDateofacceptance().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(3, accessright_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, instancetype_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, hostedby_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(6, license_); - } - for (int i = 0; i < url_.size(); i++) { - output.writeBytes(9, url_.getByteString(i)); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(10, collectedfrom_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(11, dateofacceptance_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(12, getDistributionlocationBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, accessright_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, instancetype_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, hostedby_); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, license_); - } - { - int dataSize = 0; - for (int i = 0; i < url_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(url_.getByteString(i)); - } - size += dataSize; - size += 1 * getUrlList().size(); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, collectedfrom_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, dateofacceptance_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getDistributionlocationBytes()); - } - 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.ResultProtos.Result.Instance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.Instance 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.ResultProtos.Result.Instance 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Instance_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_Instance_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.Instance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLicenseFieldBuilder(); - getAccessrightFieldBuilder(); - getInstancetypeFieldBuilder(); - getHostedbyFieldBuilder(); - getCollectedfromFieldBuilder(); - getDateofacceptanceFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (licenseBuilder_ == null) { - license_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - licenseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (accessrightBuilder_ == null) { - accessright_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - accessrightBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (instancetypeBuilder_ == null) { - instancetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - instancetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (hostedbyBuilder_ == null) { - hostedby_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - } else { - hostedbyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - url_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - distributionlocation_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (collectedfromBuilder_ == null) { - collectedfrom_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - } else { - collectedfromBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - } else { - dateofacceptanceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Instance.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Instance getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.Instance.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Instance build() { - eu.dnetlib.data.proto.ResultProtos.Result.Instance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.Instance buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.Instance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.Instance buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.Instance result = new eu.dnetlib.data.proto.ResultProtos.Result.Instance(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (licenseBuilder_ == null) { - result.license_ = license_; - } else { - result.license_ = licenseBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (accessrightBuilder_ == null) { - result.accessright_ = accessright_; - } else { - result.accessright_ = accessrightBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (instancetypeBuilder_ == null) { - result.instancetype_ = instancetype_; - } else { - result.instancetype_ = instancetypeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (hostedbyBuilder_ == null) { - result.hostedby_ = hostedby_; - } else { - result.hostedby_ = hostedbyBuilder_.build(); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - url_ = new com.google.protobuf.UnmodifiableLazyStringList( - url_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.url_ = url_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.distributionlocation_ = distributionlocation_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - if (collectedfromBuilder_ == null) { - result.collectedfrom_ = collectedfrom_; - } else { - result.collectedfrom_ = collectedfromBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - if (dateofacceptanceBuilder_ == null) { - result.dateofacceptance_ = dateofacceptance_; - } else { - result.dateofacceptance_ = dateofacceptanceBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.Instance) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.Instance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.Instance other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.Instance.getDefaultInstance()) return this; - if (other.hasLicense()) { - mergeLicense(other.getLicense()); - } - if (other.hasAccessright()) { - mergeAccessright(other.getAccessright()); - } - if (other.hasInstancetype()) { - mergeInstancetype(other.getInstancetype()); - } - if (other.hasHostedby()) { - mergeHostedby(other.getHostedby()); - } - if (!other.url_.isEmpty()) { - if (url_.isEmpty()) { - url_ = other.url_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureUrlIsMutable(); - url_.addAll(other.url_); - } - onChanged(); - } - if (other.hasDistributionlocation()) { - setDistributionlocation(other.getDistributionlocation()); - } - if (other.hasCollectedfrom()) { - mergeCollectedfrom(other.getCollectedfrom()); - } - if (other.hasDateofacceptance()) { - mergeDateofacceptance(other.getDateofacceptance()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasLicense()) { - if (!getLicense().isInitialized()) { - - return false; - } - } - if (hasAccessright()) { - if (!getAccessright().isInitialized()) { - - return false; - } - } - if (hasInstancetype()) { - if (!getInstancetype().isInitialized()) { - - return false; - } - } - if (hasHostedby()) { - if (!getHostedby().isInitialized()) { - - return false; - } - } - if (hasCollectedfrom()) { - if (!getCollectedfrom().isInitialized()) { - - return false; - } - } - if (hasDateofacceptance()) { - if (!getDateofacceptance().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 26: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasAccessright()) { - subBuilder.mergeFrom(getAccessright()); - } - input.readMessage(subBuilder, extensionRegistry); - setAccessright(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasInstancetype()) { - subBuilder.mergeFrom(getInstancetype()); - } - input.readMessage(subBuilder, extensionRegistry); - setInstancetype(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(); - if (hasHostedby()) { - subBuilder.mergeFrom(getHostedby()); - } - input.readMessage(subBuilder, extensionRegistry); - setHostedby(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasLicense()) { - subBuilder.mergeFrom(getLicense()); - } - input.readMessage(subBuilder, extensionRegistry); - setLicense(subBuilder.buildPartial()); - break; - } - case 74: { - ensureUrlIsMutable(); - url_.add(input.readBytes()); - break; - } - case 82: { - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(); - if (hasCollectedfrom()) { - subBuilder.mergeFrom(getCollectedfrom()); - } - input.readMessage(subBuilder, extensionRegistry); - setCollectedfrom(subBuilder.buildPartial()); - break; - } - case 90: { - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(); - if (hasDateofacceptance()) { - subBuilder.mergeFrom(getDateofacceptance()); - } - input.readMessage(subBuilder, extensionRegistry); - setDateofacceptance(subBuilder.buildPartial()); - break; - } - case 98: { - bitField0_ |= 0x00000020; - distributionlocation_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.StringField license = 6; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField license_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> licenseBuilder_; - public boolean hasLicense() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getLicense() { - if (licenseBuilder_ == null) { - return license_; - } else { - return licenseBuilder_.getMessage(); - } - } - public Builder setLicense(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (licenseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - license_ = value; - onChanged(); - } else { - licenseBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setLicense( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (licenseBuilder_ == null) { - license_ = builderForValue.build(); - onChanged(); - } else { - licenseBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeLicense(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (licenseBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - license_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - license_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(license_).mergeFrom(value).buildPartial(); - } else { - license_ = value; - } - onChanged(); - } else { - licenseBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearLicense() { - if (licenseBuilder_ == null) { - license_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - licenseBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getLicenseBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getLicenseFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getLicenseOrBuilder() { - if (licenseBuilder_ != null) { - return licenseBuilder_.getMessageOrBuilder(); - } else { - return license_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getLicenseFieldBuilder() { - if (licenseBuilder_ == null) { - licenseBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - license_, - getParentForChildren(), - isClean()); - license_ = null; - } - return licenseBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier accessright = 3; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier accessright_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> accessrightBuilder_; - public boolean hasAccessright() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getAccessright() { - if (accessrightBuilder_ == null) { - return accessright_; - } else { - return accessrightBuilder_.getMessage(); - } - } - public Builder setAccessright(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (accessrightBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accessright_ = value; - onChanged(); - } else { - accessrightBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setAccessright( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (accessrightBuilder_ == null) { - accessright_ = builderForValue.build(); - onChanged(); - } else { - accessrightBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergeAccessright(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (accessrightBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - accessright_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - accessright_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(accessright_).mergeFrom(value).buildPartial(); - } else { - accessright_ = value; - } - onChanged(); - } else { - accessrightBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearAccessright() { - if (accessrightBuilder_ == null) { - accessright_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - accessrightBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getAccessrightBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAccessrightFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getAccessrightOrBuilder() { - if (accessrightBuilder_ != null) { - return accessrightBuilder_.getMessageOrBuilder(); - } else { - return accessright_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getAccessrightFieldBuilder() { - if (accessrightBuilder_ == null) { - accessrightBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - accessright_, - getParentForChildren(), - isClean()); - accessright_ = null; - } - return accessrightBuilder_; - } - - // optional .eu.dnetlib.data.proto.Qualifier instancetype = 4; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier instancetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> instancetypeBuilder_; - public boolean hasInstancetype() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getInstancetype() { - if (instancetypeBuilder_ == null) { - return instancetype_; - } else { - return instancetypeBuilder_.getMessage(); - } - } - public Builder setInstancetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (instancetypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - instancetype_ = value; - onChanged(); - } else { - instancetypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder setInstancetype( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (instancetypeBuilder_ == null) { - instancetype_ = builderForValue.build(); - onChanged(); - } else { - instancetypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder mergeInstancetype(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (instancetypeBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - instancetype_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - instancetype_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(instancetype_).mergeFrom(value).buildPartial(); - } else { - instancetype_ = value; - } - onChanged(); - } else { - instancetypeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder clearInstancetype() { - if (instancetypeBuilder_ == null) { - instancetype_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - instancetypeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getInstancetypeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getInstancetypeFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getInstancetypeOrBuilder() { - if (instancetypeBuilder_ != null) { - return instancetypeBuilder_.getMessageOrBuilder(); - } else { - return instancetype_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getInstancetypeFieldBuilder() { - if (instancetypeBuilder_ == null) { - instancetypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - instancetype_, - getParentForChildren(), - isClean()); - instancetype_ = null; - } - return instancetypeBuilder_; - } - - // optional .eu.dnetlib.data.proto.KeyValue hostedby = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.KeyValue hostedby_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> hostedbyBuilder_; - public boolean hasHostedby() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getHostedby() { - if (hostedbyBuilder_ == null) { - return hostedby_; - } else { - return hostedbyBuilder_.getMessage(); - } - } - public Builder setHostedby(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (hostedbyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hostedby_ = value; - onChanged(); - } else { - hostedbyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder setHostedby( - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) { - if (hostedbyBuilder_ == null) { - hostedby_ = builderForValue.build(); - onChanged(); - } else { - hostedbyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder mergeHostedby(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (hostedbyBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - hostedby_ != eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()) { - hostedby_ = - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(hostedby_).mergeFrom(value).buildPartial(); - } else { - hostedby_ = value; - } - onChanged(); - } else { - hostedbyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder clearHostedby() { - if (hostedbyBuilder_ == null) { - hostedby_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - onChanged(); - } else { - hostedbyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder getHostedbyBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getHostedbyFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getHostedbyOrBuilder() { - if (hostedbyBuilder_ != null) { - return hostedbyBuilder_.getMessageOrBuilder(); - } else { - return hostedby_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> - getHostedbyFieldBuilder() { - if (hostedbyBuilder_ == null) { - hostedbyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>( - hostedby_, - getParentForChildren(), - isClean()); - hostedby_ = null; - } - return hostedbyBuilder_; - } - - // repeated string url = 9; - private com.google.protobuf.LazyStringList url_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUrlIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - url_ = new com.google.protobuf.LazyStringArrayList(url_); - bitField0_ |= 0x00000010; - } - } - public java.util.List - getUrlList() { - return java.util.Collections.unmodifiableList(url_); - } - public int getUrlCount() { - return url_.size(); - } - public String getUrl(int index) { - return url_.get(index); - } - public Builder setUrl( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlIsMutable(); - url_.set(index, value); - onChanged(); - return this; - } - public Builder addUrl(String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlIsMutable(); - url_.add(value); - onChanged(); - return this; - } - public Builder addAllUrl( - java.lang.Iterable values) { - ensureUrlIsMutable(); - super.addAll(values, url_); - onChanged(); - return this; - } - public Builder clearUrl() { - url_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - void addUrl(com.google.protobuf.ByteString value) { - ensureUrlIsMutable(); - url_.add(value); - onChanged(); - } - - // optional string distributionlocation = 12; - private java.lang.Object distributionlocation_ = ""; - public boolean hasDistributionlocation() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getDistributionlocation() { - java.lang.Object ref = distributionlocation_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - distributionlocation_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setDistributionlocation(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - distributionlocation_ = value; - onChanged(); - return this; - } - public Builder clearDistributionlocation() { - bitField0_ = (bitField0_ & ~0x00000020); - distributionlocation_ = getDefaultInstance().getDistributionlocation(); - onChanged(); - return this; - } - void setDistributionlocation(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000020; - distributionlocation_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.KeyValue collectedfrom = 10; - private eu.dnetlib.data.proto.FieldTypeProtos.KeyValue collectedfrom_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder> collectedfromBuilder_; - public boolean hasCollectedfrom() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue getCollectedfrom() { - if (collectedfromBuilder_ == null) { - return collectedfrom_; - } else { - return collectedfromBuilder_.getMessage(); - } - } - public Builder setCollectedfrom(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (collectedfromBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - collectedfrom_ = value; - onChanged(); - } else { - collectedfromBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setCollectedfrom( - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder builderForValue) { - if (collectedfromBuilder_ == null) { - collectedfrom_ = builderForValue.build(); - onChanged(); - } else { - collectedfromBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeCollectedfrom(eu.dnetlib.data.proto.FieldTypeProtos.KeyValue value) { - if (collectedfromBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - collectedfrom_ != eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance()) { - collectedfrom_ = - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.newBuilder(collectedfrom_).mergeFrom(value).buildPartial(); - } else { - collectedfrom_ = value; - } - onChanged(); - } else { - collectedfromBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearCollectedfrom() { - if (collectedfromBuilder_ == null) { - collectedfrom_ = eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.getDefaultInstance(); - onChanged(); - } else { - collectedfromBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder getCollectedfromBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getCollectedfromFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder getCollectedfromOrBuilder() { - if (collectedfromBuilder_ != null) { - return collectedfromBuilder_.getMessageOrBuilder(); - } else { - return collectedfrom_; - } - } - private com.google.protobuf.SingleFieldBuilder< - 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.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.KeyValue, eu.dnetlib.data.proto.FieldTypeProtos.KeyValue.Builder, eu.dnetlib.data.proto.FieldTypeProtos.KeyValueOrBuilder>( - collectedfrom_, - getParentForChildren(), - isClean()); - collectedfrom_ = null; - } - return collectedfromBuilder_; - } - - // optional .eu.dnetlib.data.proto.StringField dateofacceptance = 11; - private eu.dnetlib.data.proto.FieldTypeProtos.StringField dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> dateofacceptanceBuilder_; - public boolean hasDateofacceptance() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField getDateofacceptance() { - if (dateofacceptanceBuilder_ == null) { - return dateofacceptance_; - } else { - return dateofacceptanceBuilder_.getMessage(); - } - } - public Builder setDateofacceptance(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofacceptanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dateofacceptance_ = value; - onChanged(); - } else { - dateofacceptanceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setDateofacceptance( - eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder builderForValue) { - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = builderForValue.build(); - onChanged(); - } else { - dateofacceptanceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeDateofacceptance(eu.dnetlib.data.proto.FieldTypeProtos.StringField value) { - if (dateofacceptanceBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - dateofacceptance_ != eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance()) { - dateofacceptance_ = - eu.dnetlib.data.proto.FieldTypeProtos.StringField.newBuilder(dateofacceptance_).mergeFrom(value).buildPartial(); - } else { - dateofacceptance_ = value; - } - onChanged(); - } else { - dateofacceptanceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearDateofacceptance() { - if (dateofacceptanceBuilder_ == null) { - dateofacceptance_ = eu.dnetlib.data.proto.FieldTypeProtos.StringField.getDefaultInstance(); - onChanged(); - } else { - dateofacceptanceBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder getDateofacceptanceBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDateofacceptanceFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder getDateofacceptanceOrBuilder() { - if (dateofacceptanceBuilder_ != null) { - return dateofacceptanceBuilder_.getMessageOrBuilder(); - } else { - return dateofacceptance_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder> - getDateofacceptanceFieldBuilder() { - if (dateofacceptanceBuilder_ == null) { - dateofacceptanceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.StringField, eu.dnetlib.data.proto.FieldTypeProtos.StringField.Builder, eu.dnetlib.data.proto.FieldTypeProtos.StringFieldOrBuilder>( - dateofacceptance_, - getParentForChildren(), - isClean()); - dateofacceptance_ = null; - } - return dateofacceptanceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.Instance) - } - - static { - defaultInstance = new Instance(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.Instance) - } - - public interface ExternalReferenceOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string sitename = 1; - boolean hasSitename(); - String getSitename(); - - // optional string label = 2; - boolean hasLabel(); - String getLabel(); - - // optional string url = 3; - boolean hasUrl(); - String getUrl(); - - // optional string description = 4; - boolean hasDescription(); - String getDescription(); - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 5; - boolean hasQualifier(); - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier(); - eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder(); - - // optional string refidentifier = 6; - boolean hasRefidentifier(); - String getRefidentifier(); - - // optional string query = 7; - boolean hasQuery(); - String getQuery(); - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 8; - boolean hasDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo(); - eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder(); - } - public static final class ExternalReference extends - com.google.protobuf.GeneratedMessage - implements ExternalReferenceOrBuilder { - // Use ExternalReference.newBuilder() to construct. - private ExternalReference(Builder builder) { - super(builder); - } - private ExternalReference(boolean noInit) {} - - private static final ExternalReference defaultInstance; - public static ExternalReference getDefaultInstance() { - return defaultInstance; - } - - public ExternalReference getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_ExternalReference_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_ExternalReference_fieldAccessorTable; - } - - private int bitField0_; - // optional string sitename = 1; - public static final int SITENAME_FIELD_NUMBER = 1; - private java.lang.Object sitename_; - public boolean hasSitename() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getSitename() { - java.lang.Object ref = sitename_; - 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)) { - sitename_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getSitenameBytes() { - java.lang.Object ref = sitename_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - sitename_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string label = 2; - public static final int LABEL_FIELD_NUMBER = 2; - private java.lang.Object label_; - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getLabel() { - java.lang.Object ref = label_; - 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)) { - label_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string url = 3; - public static final int URL_FIELD_NUMBER = 3; - private java.lang.Object url_; - public boolean hasUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getUrl() { - java.lang.Object ref = url_; - 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)) { - url_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string description = 4; - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private java.lang.Object description_; - public boolean hasDescription() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getDescription() { - java.lang.Object ref = description_; - 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)) { - description_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 5; - public static final int QUALIFIER_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier qualifier_; - public boolean hasQualifier() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier() { - return qualifier_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder() { - return qualifier_; - } - - // optional string refidentifier = 6; - public static final int REFIDENTIFIER_FIELD_NUMBER = 6; - private java.lang.Object refidentifier_; - public boolean hasRefidentifier() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getRefidentifier() { - java.lang.Object ref = refidentifier_; - 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)) { - refidentifier_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getRefidentifierBytes() { - java.lang.Object ref = refidentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - refidentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string query = 7; - public static final int QUERY_FIELD_NUMBER = 7; - private java.lang.Object query_; - public boolean hasQuery() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public String getQuery() { - java.lang.Object ref = query_; - 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)) { - query_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 8; - public static final int DATAINFO_FIELD_NUMBER = 8; - private eu.dnetlib.data.proto.FieldTypeProtos.DataInfo dataInfo_; - public boolean hasDataInfo() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo getDataInfo() { - return dataInfo_; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfoOrBuilder getDataInfoOrBuilder() { - return dataInfo_; - } - - private void initFields() { - sitename_ = ""; - label_ = ""; - url_ = ""; - description_ = ""; - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - refidentifier_ = ""; - query_ = ""; - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasQualifier()) { - if (!getQualifier().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.writeBytes(1, getSitenameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLabelBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getUrlBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, qualifier_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getRefidentifierBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getQueryBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, dataInfo_); - } - 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 - .computeBytesSize(1, getSitenameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLabelBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getUrlBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, qualifier_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getRefidentifierBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getQueryBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, dataInfo_); - } - 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.ResultProtos.Result.ExternalReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference 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.ResultProtos.Result.ExternalReference 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_ExternalReference_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_ExternalReference_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getQualifierFieldBuilder(); - getDataInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - sitename_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - url_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (qualifierBuilder_ == null) { - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - } else { - qualifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - refidentifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - query_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference build() { - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference result = new eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.sitename_ = sitename_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.url_ = url_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (qualifierBuilder_ == null) { - result.qualifier_ = qualifier_; - } else { - result.qualifier_ = qualifierBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.refidentifier_ = refidentifier_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.query_ = query_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (dataInfoBuilder_ == null) { - result.dataInfo_ = dataInfo_; - } else { - result.dataInfo_ = dataInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.getDefaultInstance()) return this; - if (other.hasSitename()) { - setSitename(other.getSitename()); - } - if (other.hasLabel()) { - setLabel(other.getLabel()); - } - if (other.hasUrl()) { - setUrl(other.getUrl()); - } - if (other.hasDescription()) { - setDescription(other.getDescription()); - } - if (other.hasQualifier()) { - mergeQualifier(other.getQualifier()); - } - if (other.hasRefidentifier()) { - setRefidentifier(other.getRefidentifier()); - } - if (other.hasQuery()) { - setQuery(other.getQuery()); - } - if (other.hasDataInfo()) { - mergeDataInfo(other.getDataInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasQualifier()) { - if (!getQualifier().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 10: { - bitField0_ |= 0x00000001; - sitename_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - label_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - url_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - description_ = input.readBytes(); - break; - } - case 42: { - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder subBuilder = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(); - if (hasQualifier()) { - subBuilder.mergeFrom(getQualifier()); - } - input.readMessage(subBuilder, extensionRegistry); - setQualifier(subBuilder.buildPartial()); - break; - } - case 50: { - bitField0_ |= 0x00000020; - refidentifier_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000040; - query_ = input.readBytes(); - break; - } - case 66: { - 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; - } - } - } - } - - private int bitField0_; - - // optional string sitename = 1; - private java.lang.Object sitename_ = ""; - public boolean hasSitename() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getSitename() { - java.lang.Object ref = sitename_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - sitename_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setSitename(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - sitename_ = value; - onChanged(); - return this; - } - public Builder clearSitename() { - bitField0_ = (bitField0_ & ~0x00000001); - sitename_ = getDefaultInstance().getSitename(); - onChanged(); - return this; - } - void setSitename(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - sitename_ = value; - onChanged(); - } - - // optional string label = 2; - private java.lang.Object label_ = ""; - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - label_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setLabel(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - void setLabel(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - } - - // optional string url = 3; - private java.lang.Object url_ = ""; - public boolean hasUrl() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - url_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setUrl(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - url_ = value; - onChanged(); - return this; - } - public Builder clearUrl() { - bitField0_ = (bitField0_ & ~0x00000004); - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - void setUrl(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - url_ = value; - onChanged(); - } - - // optional string description = 4; - private java.lang.Object description_ = ""; - public boolean hasDescription() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - description_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setDescription(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - description_ = value; - onChanged(); - return this; - } - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000008); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - void setDescription(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000008; - description_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.Qualifier qualifier = 5; - private eu.dnetlib.data.proto.FieldTypeProtos.Qualifier qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> qualifierBuilder_; - public boolean hasQualifier() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier getQualifier() { - if (qualifierBuilder_ == null) { - return qualifier_; - } else { - return qualifierBuilder_.getMessage(); - } - } - public Builder setQualifier(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (qualifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualifier_ = value; - onChanged(); - } else { - qualifierBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder setQualifier( - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder builderForValue) { - if (qualifierBuilder_ == null) { - qualifier_ = builderForValue.build(); - onChanged(); - } else { - qualifierBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder mergeQualifier(eu.dnetlib.data.proto.FieldTypeProtos.Qualifier value) { - if (qualifierBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - qualifier_ != eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance()) { - qualifier_ = - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.newBuilder(qualifier_).mergeFrom(value).buildPartial(); - } else { - qualifier_ = value; - } - onChanged(); - } else { - qualifierBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder clearQualifier() { - if (qualifierBuilder_ == null) { - qualifier_ = eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.getDefaultInstance(); - onChanged(); - } else { - qualifierBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder getQualifierBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getQualifierFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder getQualifierOrBuilder() { - if (qualifierBuilder_ != null) { - return qualifierBuilder_.getMessageOrBuilder(); - } else { - return qualifier_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder> - getQualifierFieldBuilder() { - if (qualifierBuilder_ == null) { - qualifierBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.FieldTypeProtos.Qualifier, eu.dnetlib.data.proto.FieldTypeProtos.Qualifier.Builder, eu.dnetlib.data.proto.FieldTypeProtos.QualifierOrBuilder>( - qualifier_, - getParentForChildren(), - isClean()); - qualifier_ = null; - } - return qualifierBuilder_; - } - - // optional string refidentifier = 6; - private java.lang.Object refidentifier_ = ""; - public boolean hasRefidentifier() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public String getRefidentifier() { - java.lang.Object ref = refidentifier_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - refidentifier_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setRefidentifier(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - refidentifier_ = value; - onChanged(); - return this; - } - public Builder clearRefidentifier() { - bitField0_ = (bitField0_ & ~0x00000020); - refidentifier_ = getDefaultInstance().getRefidentifier(); - onChanged(); - return this; - } - void setRefidentifier(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000020; - refidentifier_ = value; - onChanged(); - } - - // optional string query = 7; - private java.lang.Object query_ = ""; - public boolean hasQuery() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - query_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setQuery(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - query_ = value; - onChanged(); - return this; - } - public Builder clearQuery() { - bitField0_ = (bitField0_ & ~0x00000040); - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - void setQuery(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000040; - query_ = value; - onChanged(); - } - - // optional .eu.dnetlib.data.proto.DataInfo dataInfo = 8; - 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_ & 0x00000080) == 0x00000080); - } - 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_ |= 0x00000080; - 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_ |= 0x00000080; - return this; - } - public Builder mergeDataInfo(eu.dnetlib.data.proto.FieldTypeProtos.DataInfo value) { - if (dataInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - 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_ |= 0x00000080; - return this; - } - public Builder clearDataInfo() { - if (dataInfoBuilder_ == null) { - dataInfo_ = eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.getDefaultInstance(); - onChanged(); - } else { - dataInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.FieldTypeProtos.DataInfo.Builder getDataInfoBuilder() { - bitField0_ |= 0x00000080; - 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_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.ExternalReference) - } - - static { - defaultInstance = new ExternalReference(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.ExternalReference) - } - - public interface GeoLocationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string point = 1; - boolean hasPoint(); - String getPoint(); - - // optional string box = 2; - boolean hasBox(); - String getBox(); - - // optional string place = 3; - boolean hasPlace(); - String getPlace(); - } - public static final class GeoLocation extends - com.google.protobuf.GeneratedMessage - implements GeoLocationOrBuilder { - // Use GeoLocation.newBuilder() to construct. - private GeoLocation(Builder builder) { - super(builder); - } - private GeoLocation(boolean noInit) {} - - private static final GeoLocation defaultInstance; - public static GeoLocation getDefaultInstance() { - return defaultInstance; - } - - public GeoLocation getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_GeoLocation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_GeoLocation_fieldAccessorTable; - } - - private int bitField0_; - // optional string point = 1; - public static final int POINT_FIELD_NUMBER = 1; - private java.lang.Object point_; - public boolean hasPoint() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getPoint() { - java.lang.Object ref = point_; - 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)) { - point_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPointBytes() { - java.lang.Object ref = point_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - point_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string box = 2; - public static final int BOX_FIELD_NUMBER = 2; - private java.lang.Object box_; - public boolean hasBox() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getBox() { - java.lang.Object ref = box_; - 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)) { - box_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getBoxBytes() { - java.lang.Object ref = box_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - box_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string place = 3; - public static final int PLACE_FIELD_NUMBER = 3; - private java.lang.Object place_; - public boolean hasPlace() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getPlace() { - java.lang.Object ref = place_; - 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)) { - place_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPlaceBytes() { - java.lang.Object ref = place_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - place_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - point_ = ""; - box_ = ""; - place_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPointBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getBoxBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPlaceBytes()); - } - 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 - .computeBytesSize(1, getPointBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getBoxBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPlaceBytes()); - } - 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.ResultProtos.Result.GeoLocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation 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.ResultProtos.Result.GeoLocation 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 - implements eu.dnetlib.data.proto.ResultProtos.Result.GeoLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_GeoLocation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_GeoLocation_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - point_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - box_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - place_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation build() { - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation result = new eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.point_ = point_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.box_ = box_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.place_ = place_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.getDefaultInstance()) return this; - if (other.hasPoint()) { - setPoint(other.getPoint()); - } - if (other.hasBox()) { - setBox(other.getBox()); - } - if (other.hasPlace()) { - setPlace(other.getPlace()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - point_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - box_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - place_ = input.readBytes(); - break; - } - } - } - } - - private int bitField0_; - - // optional string point = 1; - private java.lang.Object point_ = ""; - public boolean hasPoint() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getPoint() { - java.lang.Object ref = point_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - point_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setPoint(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - point_ = value; - onChanged(); - return this; - } - public Builder clearPoint() { - bitField0_ = (bitField0_ & ~0x00000001); - point_ = getDefaultInstance().getPoint(); - onChanged(); - return this; - } - void setPoint(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - point_ = value; - onChanged(); - } - - // optional string box = 2; - private java.lang.Object box_ = ""; - public boolean hasBox() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getBox() { - java.lang.Object ref = box_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - box_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setBox(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - box_ = value; - onChanged(); - return this; - } - public Builder clearBox() { - bitField0_ = (bitField0_ & ~0x00000002); - box_ = getDefaultInstance().getBox(); - onChanged(); - return this; - } - void setBox(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - box_ = value; - onChanged(); - } - - // optional string place = 3; - private java.lang.Object place_ = ""; - public boolean hasPlace() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public String getPlace() { - java.lang.Object ref = place_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - place_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setPlace(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - place_ = value; - onChanged(); - return this; - } - public Builder clearPlace() { - bitField0_ = (bitField0_ & ~0x00000004); - place_ = getDefaultInstance().getPlace(); - onChanged(); - return this; - } - void setPlace(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000004; - place_ = value; - onChanged(); - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result.GeoLocation) - } - - static { - defaultInstance = new GeoLocation(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result.GeoLocation) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.Result.Metadata metadata = 2; - public static final int METADATA_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.ResultProtos.Result.Metadata metadata_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata getMetadata() { - return metadata_; - } - public eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder getMetadataOrBuilder() { - return metadata_; - } - - // repeated .eu.dnetlib.data.proto.Result.Instance instance = 6; - public static final int INSTANCE_FIELD_NUMBER = 6; - private java.util.List instance_; - public java.util.List getInstanceList() { - return instance_; - } - public java.util.List - getInstanceOrBuilderList() { - return instance_; - } - public int getInstanceCount() { - return instance_.size(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Instance getInstance(int index) { - return instance_.get(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder getInstanceOrBuilder( - int index) { - return instance_.get(index); - } - - // repeated .eu.dnetlib.data.proto.Result.ExternalReference externalReference = 7; - public static final int EXTERNALREFERENCE_FIELD_NUMBER = 7; - private java.util.List externalReference_; - public java.util.List getExternalReferenceList() { - return externalReference_; - } - public java.util.List - getExternalReferenceOrBuilderList() { - return externalReference_; - } - public int getExternalReferenceCount() { - return externalReference_.size(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference getExternalReference(int index) { - return externalReference_.get(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder getExternalReferenceOrBuilder( - int index) { - return externalReference_.get(index); - } - - private void initFields() { - metadata_ = eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance(); - instance_ = java.util.Collections.emptyList(); - externalReference_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getInstanceCount(); i++) { - if (!getInstance(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExternalReferenceCount(); i++) { - if (!getExternalReference(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.writeMessage(2, metadata_); - } - for (int i = 0; i < instance_.size(); i++) { - output.writeMessage(6, instance_.get(i)); - } - for (int i = 0; i < externalReference_.size(); i++) { - output.writeMessage(7, externalReference_.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 - .computeMessageSize(2, metadata_); - } - for (int i = 0; i < instance_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, instance_.get(i)); - } - for (int i = 0; i < externalReference_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, externalReference_.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.ResultProtos.Result parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result 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.ResultProtos.Result parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result 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.ResultProtos.Result parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result 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.ResultProtos.Result 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.ResultProtos.Result 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.ResultProtos.Result parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultProtos.Result 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.ResultProtos.Result 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 - implements eu.dnetlib.data.proto.ResultProtos.ResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultProtos.internal_static_eu_dnetlib_data_proto_Result_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultProtos.Result.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getInstanceFieldBuilder(); - getExternalReferenceFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (instanceBuilder_ == null) { - instance_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - instanceBuilder_.clear(); - } - if (externalReferenceBuilder_ == null) { - externalReference_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - externalReferenceBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultProtos.Result build() { - eu.dnetlib.data.proto.ResultProtos.Result result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultProtos.Result buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultProtos.Result result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultProtos.Result buildPartial() { - eu.dnetlib.data.proto.ResultProtos.Result result = new eu.dnetlib.data.proto.ResultProtos.Result(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (instanceBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - instance_ = java.util.Collections.unmodifiableList(instance_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.instance_ = instance_; - } else { - result.instance_ = instanceBuilder_.build(); - } - if (externalReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - externalReference_ = java.util.Collections.unmodifiableList(externalReference_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.externalReference_ = externalReference_; - } else { - result.externalReference_ = externalReferenceBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultProtos.Result) { - return mergeFrom((eu.dnetlib.data.proto.ResultProtos.Result)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultProtos.Result other) { - if (other == eu.dnetlib.data.proto.ResultProtos.Result.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (instanceBuilder_ == null) { - if (!other.instance_.isEmpty()) { - if (instance_.isEmpty()) { - instance_ = other.instance_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInstanceIsMutable(); - instance_.addAll(other.instance_); - } - onChanged(); - } - } else { - if (!other.instance_.isEmpty()) { - if (instanceBuilder_.isEmpty()) { - instanceBuilder_.dispose(); - instanceBuilder_ = null; - instance_ = other.instance_; - bitField0_ = (bitField0_ & ~0x00000002); - instanceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getInstanceFieldBuilder() : null; - } else { - instanceBuilder_.addAllMessages(other.instance_); - } - } - } - if (externalReferenceBuilder_ == null) { - if (!other.externalReference_.isEmpty()) { - if (externalReference_.isEmpty()) { - externalReference_ = other.externalReference_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExternalReferenceIsMutable(); - externalReference_.addAll(other.externalReference_); - } - onChanged(); - } - } else { - if (!other.externalReference_.isEmpty()) { - if (externalReferenceBuilder_.isEmpty()) { - externalReferenceBuilder_.dispose(); - externalReferenceBuilder_ = null; - externalReference_ = other.externalReference_; - bitField0_ = (bitField0_ & ~0x00000004); - externalReferenceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getExternalReferenceFieldBuilder() : null; - } else { - externalReferenceBuilder_.addAllMessages(other.externalReference_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMetadata()) { - if (!getMetadata().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getInstanceCount(); i++) { - if (!getInstance(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getExternalReferenceCount(); i++) { - if (!getExternalReference(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 18: { - eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.Metadata.newBuilder(); - if (hasMetadata()) { - subBuilder.mergeFrom(getMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setMetadata(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.Instance.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addInstance(subBuilder.buildPartial()); - break; - } - case 58: { - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder subBuilder = eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addExternalReference(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.Result.Metadata metadata = 2; - private eu.dnetlib.data.proto.ResultProtos.Result.Metadata metadata_ = eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Metadata, eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder, eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder> metadataBuilder_; - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - public Builder setMetadata(eu.dnetlib.data.proto.ResultProtos.Result.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setMetadata( - eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeMetadata(eu.dnetlib.data.proto.ResultProtos.Result.Metadata value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance()) { - metadata_ = - eu.dnetlib.data.proto.ResultProtos.Result.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = eu.dnetlib.data.proto.ResultProtos.Result.Metadata.getDefaultInstance(); - onChanged(); - } else { - metadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Metadata, eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder, eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Metadata, eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder, eu.dnetlib.data.proto.ResultProtos.Result.MetadataOrBuilder>( - metadata_, - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // repeated .eu.dnetlib.data.proto.Result.Instance instance = 6; - private java.util.List instance_ = - java.util.Collections.emptyList(); - private void ensureInstanceIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - instance_ = new java.util.ArrayList(instance_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Instance, eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder, eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder> instanceBuilder_; - - public java.util.List getInstanceList() { - if (instanceBuilder_ == null) { - return java.util.Collections.unmodifiableList(instance_); - } else { - return instanceBuilder_.getMessageList(); - } - } - public int getInstanceCount() { - if (instanceBuilder_ == null) { - return instance_.size(); - } else { - return instanceBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.Instance getInstance(int index) { - if (instanceBuilder_ == null) { - return instance_.get(index); - } else { - return instanceBuilder_.getMessage(index); - } - } - public Builder setInstance( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Instance value) { - if (instanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceIsMutable(); - instance_.set(index, value); - onChanged(); - } else { - instanceBuilder_.setMessage(index, value); - } - return this; - } - public Builder setInstance( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder builderForValue) { - if (instanceBuilder_ == null) { - ensureInstanceIsMutable(); - instance_.set(index, builderForValue.build()); - onChanged(); - } else { - instanceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addInstance(eu.dnetlib.data.proto.ResultProtos.Result.Instance value) { - if (instanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceIsMutable(); - instance_.add(value); - onChanged(); - } else { - instanceBuilder_.addMessage(value); - } - return this; - } - public Builder addInstance( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Instance value) { - if (instanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceIsMutable(); - instance_.add(index, value); - onChanged(); - } else { - instanceBuilder_.addMessage(index, value); - } - return this; - } - public Builder addInstance( - eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder builderForValue) { - if (instanceBuilder_ == null) { - ensureInstanceIsMutable(); - instance_.add(builderForValue.build()); - onChanged(); - } else { - instanceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addInstance( - int index, eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder builderForValue) { - if (instanceBuilder_ == null) { - ensureInstanceIsMutable(); - instance_.add(index, builderForValue.build()); - onChanged(); - } else { - instanceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllInstance( - java.lang.Iterable values) { - if (instanceBuilder_ == null) { - ensureInstanceIsMutable(); - super.addAll(values, instance_); - onChanged(); - } else { - instanceBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearInstance() { - if (instanceBuilder_ == null) { - instance_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - instanceBuilder_.clear(); - } - return this; - } - public Builder removeInstance(int index) { - if (instanceBuilder_ == null) { - ensureInstanceIsMutable(); - instance_.remove(index); - onChanged(); - } else { - instanceBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder getInstanceBuilder( - int index) { - return getInstanceFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder getInstanceOrBuilder( - int index) { - if (instanceBuilder_ == null) { - return instance_.get(index); } else { - return instanceBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getInstanceOrBuilderList() { - if (instanceBuilder_ != null) { - return instanceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(instance_); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder addInstanceBuilder() { - return getInstanceFieldBuilder().addBuilder( - eu.dnetlib.data.proto.ResultProtos.Result.Instance.getDefaultInstance()); - } - public eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder addInstanceBuilder( - int index) { - return getInstanceFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.ResultProtos.Result.Instance.getDefaultInstance()); - } - public java.util.List - getInstanceBuilderList() { - return getInstanceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Instance, eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder, eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder> - getInstanceFieldBuilder() { - if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.Instance, eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder, eu.dnetlib.data.proto.ResultProtos.Result.InstanceOrBuilder>( - instance_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - instance_ = null; - } - return instanceBuilder_; - } - - // repeated .eu.dnetlib.data.proto.Result.ExternalReference externalReference = 7; - private java.util.List externalReference_ = - java.util.Collections.emptyList(); - private void ensureExternalReferenceIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - externalReference_ = new java.util.ArrayList(externalReference_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder> externalReferenceBuilder_; - - public java.util.List getExternalReferenceList() { - if (externalReferenceBuilder_ == null) { - return java.util.Collections.unmodifiableList(externalReference_); - } else { - return externalReferenceBuilder_.getMessageList(); - } - } - public int getExternalReferenceCount() { - if (externalReferenceBuilder_ == null) { - return externalReference_.size(); - } else { - return externalReferenceBuilder_.getCount(); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference getExternalReference(int index) { - if (externalReferenceBuilder_ == null) { - return externalReference_.get(index); - } else { - return externalReferenceBuilder_.getMessage(index); - } - } - public Builder setExternalReference( - int index, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference value) { - if (externalReferenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalReferenceIsMutable(); - externalReference_.set(index, value); - onChanged(); - } else { - externalReferenceBuilder_.setMessage(index, value); - } - return this; - } - public Builder setExternalReference( - int index, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder builderForValue) { - if (externalReferenceBuilder_ == null) { - ensureExternalReferenceIsMutable(); - externalReference_.set(index, builderForValue.build()); - onChanged(); - } else { - externalReferenceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addExternalReference(eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference value) { - if (externalReferenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalReferenceIsMutable(); - externalReference_.add(value); - onChanged(); - } else { - externalReferenceBuilder_.addMessage(value); - } - return this; - } - public Builder addExternalReference( - int index, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference value) { - if (externalReferenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalReferenceIsMutable(); - externalReference_.add(index, value); - onChanged(); - } else { - externalReferenceBuilder_.addMessage(index, value); - } - return this; - } - public Builder addExternalReference( - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder builderForValue) { - if (externalReferenceBuilder_ == null) { - ensureExternalReferenceIsMutable(); - externalReference_.add(builderForValue.build()); - onChanged(); - } else { - externalReferenceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addExternalReference( - int index, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder builderForValue) { - if (externalReferenceBuilder_ == null) { - ensureExternalReferenceIsMutable(); - externalReference_.add(index, builderForValue.build()); - onChanged(); - } else { - externalReferenceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllExternalReference( - java.lang.Iterable values) { - if (externalReferenceBuilder_ == null) { - ensureExternalReferenceIsMutable(); - super.addAll(values, externalReference_); - onChanged(); - } else { - externalReferenceBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearExternalReference() { - if (externalReferenceBuilder_ == null) { - externalReference_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - externalReferenceBuilder_.clear(); - } - return this; - } - public Builder removeExternalReference(int index) { - if (externalReferenceBuilder_ == null) { - ensureExternalReferenceIsMutable(); - externalReference_.remove(index); - onChanged(); - } else { - externalReferenceBuilder_.remove(index); - } - return this; - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder getExternalReferenceBuilder( - int index) { - return getExternalReferenceFieldBuilder().getBuilder(index); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder getExternalReferenceOrBuilder( - int index) { - if (externalReferenceBuilder_ == null) { - return externalReference_.get(index); } else { - return externalReferenceBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getExternalReferenceOrBuilderList() { - if (externalReferenceBuilder_ != null) { - return externalReferenceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(externalReference_); - } - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder addExternalReferenceBuilder() { - return getExternalReferenceFieldBuilder().addBuilder( - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.getDefaultInstance()); - } - public eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder addExternalReferenceBuilder( - int index) { - return getExternalReferenceFieldBuilder().addBuilder( - index, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.getDefaultInstance()); - } - public java.util.List - getExternalReferenceBuilderList() { - return getExternalReferenceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder> - getExternalReferenceFieldBuilder() { - if (externalReferenceBuilder_ == null) { - externalReferenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder, eu.dnetlib.data.proto.ResultProtos.Result.ExternalReferenceOrBuilder>( - externalReference_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - externalReference_ = null; - } - return externalReferenceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.Result) - } - - static { - defaultInstance = new Result(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.Result) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_Metadata_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_Journal_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_Journal_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_Context_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_Context_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_Instance_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_Instance_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_ExternalReference_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_ExternalReference_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_Result_GeoLocation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_Result_GeoLocation_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\014Result.proto\022\025eu.dnetlib.data.proto\032\017F" + - "ieldType.proto\"\234\030\n\006Result\0228\n\010metadata\030\002 " + - "\001(\0132&.eu.dnetlib.data.proto.Result.Metad" + - "ata\0228\n\010instance\030\006 \003(\0132&.eu.dnetlib.data." + - "proto.Result.Instance\022J\n\021externalReferen" + - "ce\030\007 \003(\0132/.eu.dnetlib.data.proto.Result." + - "ExternalReference\032\342\016\n\010Metadata\022-\n\006author" + - "\030( \003(\0132\035.eu.dnetlib.data.proto.Author\0224\n" + - "\nresulttype\030\010 \001(\0132 .eu.dnetlib.data.prot" + - "o.Qualifier\0222\n\010language\030\014 \001(\0132 .eu.dnetl", - "ib.data.proto.Qualifier\0221\n\007country\030! \003(\013" + - "2 .eu.dnetlib.data.proto.Qualifier\022:\n\007su" + - "bject\030\001 \003(\0132).eu.dnetlib.data.proto.Stru" + - "cturedProperty\0228\n\005title\030\002 \003(\0132).eu.dnetl" + - "ib.data.proto.StructuredProperty\022?\n\014rele" + - "vantdate\030\003 \003(\0132).eu.dnetlib.data.proto.S" + - "tructuredProperty\0227\n\013description\030\031 \003(\0132\"" + - ".eu.dnetlib.data.proto.StringField\022<\n\020da" + - "teofacceptance\030\004 \001(\0132\".eu.dnetlib.data.p" + - "roto.StringField\0225\n\tpublisher\030\005 \001(\0132\".eu", - ".dnetlib.data.proto.StringField\022:\n\016embar" + - "goenddate\030\006 \001(\0132\".eu.dnetlib.data.proto." + - "StringField\0222\n\006source\030\033 \003(\0132\".eu.dnetlib" + - ".data.proto.StringField\0224\n\010fulltext\030\035 \003(" + - "\0132\".eu.dnetlib.data.proto.StringField\0222\n" + - "\006format\030\025 \003(\0132\".eu.dnetlib.data.proto.St" + - "ringField\0227\n\013contributor\030\036 \003(\0132\".eu.dnet" + - "lib.data.proto.StringField\0226\n\014resourcety" + - "pe\030\023 \001(\0132 .eu.dnetlib.data.proto.Qualifi" + - "er\0224\n\010coverage\030+ \003(\0132\".eu.dnetlib.data.p", - "roto.StringField\0226\n\007context\030\034 \003(\0132%.eu.d" + - "netlib.data.proto.Result.Context\0226\n\007jour" + - "nal\030\022 \001(\0132%.eu.dnetlib.data.proto.Result" + - ".Journal\0227\n\013storagedate\030\t \001(\0132\".eu.dnetl" + - "ib.data.proto.StringField\0222\n\006device\030\032 \001(" + - "\0132\".eu.dnetlib.data.proto.StringField\0220\n" + - "\004size\030\024 \001(\0132\".eu.dnetlib.data.proto.Stri" + - "ngField\0223\n\007version\030\026 \001(\0132\".eu.dnetlib.da" + - "ta.proto.StringField\022>\n\022lastmetadataupda" + - "te\030\027 \001(\0132\".eu.dnetlib.data.proto.StringF", - "ield\022A\n\025metadataversionnumber\030\030 \001(\0132\".eu" + - ".dnetlib.data.proto.StringField\022>\n\013geolo" + - "cation\030, \003(\0132).eu.dnetlib.data.proto.Res" + - "ult.GeoLocation\022<\n\020documentationUrl\030# \003(" + - "\0132\".eu.dnetlib.data.proto.StringField\022:\n" + - "\007license\030$ \003(\0132).eu.dnetlib.data.proto.S" + - "tructuredProperty\022=\n\021codeRepositoryUrl\030&" + - " \001(\0132\".eu.dnetlib.data.proto.StringField" + - "\022=\n\023programmingLanguage\030\' \001(\0132 .eu.dnetl" + - "ib.data.proto.Qualifier\0229\n\rcontactperson", - "\030- \003(\0132\".eu.dnetlib.data.proto.StringFie" + - "ld\0228\n\014contactgroup\030) \003(\0132\".eu.dnetlib.da" + - "ta.proto.StringField\0220\n\004tool\030* \003(\0132\".eu." + - "dnetlib.data.proto.StringField\032\374\001\n\007Journ" + - "al\022\014\n\004name\030\001 \001(\t\022\023\n\013issnPrinted\030\002 \001(\t\022\022\n" + - "\nissnOnline\030\003 \001(\t\022\023\n\013issnLinking\030\004 \001(\t\022\n" + - "\n\002ep\030\006 \001(\t\022\013\n\003iss\030\007 \001(\t\022\n\n\002sp\030\010 \001(\t\022\013\n\003v" + - "ol\030\t \001(\t\022\017\n\007edition\030\n \001(\t\022\027\n\017conferencep" + - "lace\030\013 \001(\t\022\026\n\016conferencedate\030\014 \001(\t\0221\n\010da" + - "taInfo\030\005 \001(\0132\037.eu.dnetlib.data.proto.Dat", - "aInfo\032H\n\007Context\022\n\n\002id\030\001 \002(\t\0221\n\010dataInfo" + - "\030\002 \003(\0132\037.eu.dnetlib.data.proto.DataInfo\032" + - "\202\003\n\010Instance\0223\n\007license\030\006 \001(\0132\".eu.dnetl" + - "ib.data.proto.StringField\0225\n\013accessright" + - "\030\003 \001(\0132 .eu.dnetlib.data.proto.Qualifier" + - "\0226\n\014instancetype\030\004 \001(\0132 .eu.dnetlib.data" + - ".proto.Qualifier\0221\n\010hostedby\030\005 \001(\0132\037.eu." + - "dnetlib.data.proto.KeyValue\022\013\n\003url\030\t \003(\t" + - "\022\034\n\024distributionlocation\030\014 \001(\t\0226\n\rcollec" + - "tedfrom\030\n \001(\0132\037.eu.dnetlib.data.proto.Ke", - "yValue\022<\n\020dateofacceptance\030\013 \001(\0132\".eu.dn" + - "etlib.data.proto.StringField\032\344\001\n\021Externa" + - "lReference\022\020\n\010sitename\030\001 \001(\t\022\r\n\005label\030\002 " + - "\001(\t\022\013\n\003url\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\0223\n" + - "\tqualifier\030\005 \001(\0132 .eu.dnetlib.data.proto" + - ".Qualifier\022\025\n\rrefidentifier\030\006 \001(\t\022\r\n\005que" + - "ry\030\007 \001(\t\0221\n\010dataInfo\030\010 \001(\0132\037.eu.dnetlib." + - "data.proto.DataInfo\0328\n\013GeoLocation\022\r\n\005po" + - "int\030\001 \001(\t\022\013\n\003box\030\002 \001(\t\022\r\n\005place\030\003 \001(\tB%\n" + - "\025eu.dnetlib.data.protoB\014ResultProtos" - }; - 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_Result_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_Result_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_descriptor, - new java.lang.String[] { "Metadata", "Instance", "ExternalReference", }, - eu.dnetlib.data.proto.ResultProtos.Result.class, - eu.dnetlib.data.proto.ResultProtos.Result.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_Metadata_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_Result_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_Metadata_descriptor, - new java.lang.String[] { "Author", "Resulttype", "Language", "Country", "Subject", "Title", "Relevantdate", "Description", "Dateofacceptance", "Publisher", "Embargoenddate", "Source", "Fulltext", "Format", "Contributor", "Resourcetype", "Coverage", "Context", "Journal", "Storagedate", "Device", "Size", "Version", "Lastmetadataupdate", "Metadataversionnumber", "Geolocation", "DocumentationUrl", "License", "CodeRepositoryUrl", "ProgrammingLanguage", "Contactperson", "Contactgroup", "Tool", }, - eu.dnetlib.data.proto.ResultProtos.Result.Metadata.class, - eu.dnetlib.data.proto.ResultProtos.Result.Metadata.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_Journal_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(1); - internal_static_eu_dnetlib_data_proto_Result_Journal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_Journal_descriptor, - new java.lang.String[] { "Name", "IssnPrinted", "IssnOnline", "IssnLinking", "Ep", "Iss", "Sp", "Vol", "Edition", "Conferenceplace", "Conferencedate", "DataInfo", }, - eu.dnetlib.data.proto.ResultProtos.Result.Journal.class, - eu.dnetlib.data.proto.ResultProtos.Result.Journal.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_Context_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(2); - internal_static_eu_dnetlib_data_proto_Result_Context_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_Context_descriptor, - new java.lang.String[] { "Id", "DataInfo", }, - eu.dnetlib.data.proto.ResultProtos.Result.Context.class, - eu.dnetlib.data.proto.ResultProtos.Result.Context.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_Instance_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(3); - internal_static_eu_dnetlib_data_proto_Result_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_Instance_descriptor, - new java.lang.String[] { "License", "Accessright", "Instancetype", "Hostedby", "Url", "Distributionlocation", "Collectedfrom", "Dateofacceptance", }, - eu.dnetlib.data.proto.ResultProtos.Result.Instance.class, - eu.dnetlib.data.proto.ResultProtos.Result.Instance.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_ExternalReference_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(4); - internal_static_eu_dnetlib_data_proto_Result_ExternalReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_ExternalReference_descriptor, - new java.lang.String[] { "Sitename", "Label", "Url", "Description", "Qualifier", "Refidentifier", "Query", "DataInfo", }, - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.class, - eu.dnetlib.data.proto.ResultProtos.Result.ExternalReference.Builder.class); - internal_static_eu_dnetlib_data_proto_Result_GeoLocation_descriptor = - internal_static_eu_dnetlib_data_proto_Result_descriptor.getNestedTypes().get(5); - internal_static_eu_dnetlib_data_proto_Result_GeoLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_Result_GeoLocation_descriptor, - new java.lang.String[] { "Point", "Box", "Place", }, - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.class, - eu.dnetlib.data.proto.ResultProtos.Result.GeoLocation.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.FieldTypeProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultResultProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultResultProtos.java deleted file mode 100644 index 8223a65..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/ResultResultProtos.java +++ /dev/null @@ -1,4927 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Result_Result.proto - -package eu.dnetlib.data.proto; - -public final class ResultResultProtos { - private ResultResultProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ResultResultOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2; - boolean hasSimilarity(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder(); - - // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3; - boolean hasPublicationDataset(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder(); - - // optional .eu.dnetlib.data.proto.Dedup dedup = 4; - boolean hasDedup(); - eu.dnetlib.data.proto.DedupProtos.Dedup getDedup(); - eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder(); - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5; - boolean hasDedupSimilarity(); - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity(); - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder(); - - // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6; - boolean hasSupplement(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder(); - - // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7; - boolean hasPart(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder(); - - // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8; - boolean hasRelationship(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder(); - - // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9; - boolean hasSoftwareSoftware(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder(); - } - public static final class ResultResult extends - com.google.protobuf.GeneratedMessage - implements ResultResultOrBuilder { - // Use ResultResult.newBuilder() to construct. - private ResultResult(Builder builder) { - super(builder); - } - private ResultResult(boolean noInit) {} - - private static final ResultResult defaultInstance; - public static ResultResult getDefaultInstance() { - return defaultInstance; - } - - public ResultResult getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable; - } - - public interface SimilarityOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - - // optional float similarity = 2; - boolean hasSimilarity(); - float getSimilarity(); - - // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD]; - boolean hasType(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType(); - } - public static final class Similarity extends - com.google.protobuf.GeneratedMessage - implements SimilarityOrBuilder { - // Use Similarity.newBuilder() to construct. - private Similarity(Builder builder) { - super(builder); - } - private Similarity(boolean noInit) {} - - private static final Similarity defaultInstance; - public static Similarity getDefaultInstance() { - return defaultInstance; - } - - public Similarity getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isAmongTopNSimilarDocuments(0, 1), - hasAmongTopNSimilarDocuments(1, 2), - ; - - public static final int isAmongTopNSimilarDocuments_VALUE = 1; - public static final int hasAmongTopNSimilarDocuments_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isAmongTopNSimilarDocuments; - case 2: return hasAmongTopNSimilarDocuments; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isAmongTopNSimilarDocuments, hasAmongTopNSimilarDocuments, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Similarity.RelName) - } - - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - STANDARD(0, 1), - WEBUSAGE(1, 2), - ; - - public static final int STANDARD_VALUE = 1; - public static final int WEBUSAGE_VALUE = 2; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return STANDARD; - case 2: return WEBUSAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor().getEnumTypes().get(1); - } - - private static final Type[] VALUES = { - STANDARD, WEBUSAGE, - }; - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Similarity.Type) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - // optional float similarity = 2; - public static final int SIMILARITY_FIELD_NUMBER = 2; - private float similarity_; - public boolean hasSimilarity() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public float getSimilarity() { - return similarity_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD]; - public static final int TYPE_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type type_; - public boolean hasType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType() { - return type_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - similarity_ = 0F; - type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeFloat(2, similarity_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, type_.getNumber()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, similarity_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_.getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - similarity_ = 0F; - bitField0_ = (bitField0_ & ~0x00000002); - type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.similarity_ = similarity_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - if (other.hasSimilarity()) { - setSimilarity(other.getSimilarity()); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - case 21: { - bitField0_ |= 0x00000002; - similarity_ = input.readFloat(); - break; - } - case 24: { - int rawValue = input.readEnum(); - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type value = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - type_ = value; - } - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // optional float similarity = 2; - private float similarity_ ; - public boolean hasSimilarity() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public float getSimilarity() { - return similarity_; - } - public Builder setSimilarity(float value) { - bitField0_ |= 0x00000002; - similarity_ = value; - onChanged(); - return this; - } - public Builder clearSimilarity() { - bitField0_ = (bitField0_ & ~0x00000002); - similarity_ = 0F; - onChanged(); - return this; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Similarity.Type type = 3 [default = STANDARD]; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD; - public boolean hasType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type getType() { - return type_; - } - public Builder setType(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value; - onChanged(); - return this; - } - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Type.STANDARD; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Similarity) - } - - static { - defaultInstance = new Similarity(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Similarity) - } - - public interface PublicationDatasetOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class PublicationDataset extends - com.google.protobuf.GeneratedMessage - implements PublicationDatasetOrBuilder { - // Use PublicationDataset.newBuilder() to construct. - private PublicationDataset(Builder builder) { - super(builder); - } - private PublicationDataset(boolean noInit) {} - - private static final PublicationDataset defaultInstance; - public static PublicationDataset getDefaultInstance() { - return defaultInstance; - } - - public PublicationDataset getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isRelatedTo(0, 1), - ; - - public static final int isRelatedTo_VALUE = 1; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isRelatedTo; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isRelatedTo, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset) - } - - static { - defaultInstance = new PublicationDataset(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.PublicationDataset) - } - - public interface SupplementOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Supplement extends - com.google.protobuf.GeneratedMessage - implements SupplementOrBuilder { - // Use Supplement.newBuilder() to construct. - private Supplement(Builder builder) { - super(builder); - } - private Supplement(boolean noInit) {} - - private static final Supplement defaultInstance; - public static Supplement getDefaultInstance() { - return defaultInstance; - } - - public Supplement getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isSupplementTo(0, 1), - isSupplementedBy(1, 2), - ; - - public static final int isSupplementTo_VALUE = 1; - public static final int isSupplementedBy_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isSupplementTo; - case 2: return isSupplementedBy; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isSupplementTo, isSupplementedBy, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Supplement.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Supplement) - } - - static { - defaultInstance = new Supplement(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Supplement) - } - - public interface PartOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Part extends - com.google.protobuf.GeneratedMessage - implements PartOrBuilder { - // Use Part.newBuilder() to construct. - private Part(Builder builder) { - super(builder); - } - private Part(boolean noInit) {} - - private static final Part defaultInstance; - public static Part getDefaultInstance() { - return defaultInstance; - } - - public Part getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isPartOf(0, 1), - hasPart(1, 2), - ; - - public static final int isPartOf_VALUE = 1; - public static final int hasPart_VALUE = 2; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isPartOf; - case 2: return hasPart; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isPartOf, hasPart, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Part.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Part) - } - - static { - defaultInstance = new Part(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Part) - } - - public interface SoftwareSoftwareOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class SoftwareSoftware extends - com.google.protobuf.GeneratedMessage - implements SoftwareSoftwareOrBuilder { - // Use SoftwareSoftware.newBuilder() to construct. - private SoftwareSoftware(Builder builder) { - super(builder); - } - private SoftwareSoftware(boolean noInit) {} - - private static final SoftwareSoftware defaultInstance; - public static SoftwareSoftware getDefaultInstance() { - return defaultInstance; - } - - public SoftwareSoftware getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isVersionOf(0, 1), - ; - - public static final int isVersionOf_VALUE = 1; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isVersionOf; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isVersionOf, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware) - } - - static { - defaultInstance = new SoftwareSoftware(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.SoftwareSoftware) - } - - public interface RelationshipOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - boolean hasRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata(); - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder(); - } - public static final class Relationship extends - com.google.protobuf.GeneratedMessage - implements RelationshipOrBuilder { - // Use Relationship.newBuilder() to construct. - private Relationship(Builder builder) { - super(builder); - } - private Relationship(boolean noInit) {} - - private static final Relationship defaultInstance; - public static Relationship getDefaultInstance() { - return defaultInstance; - } - - public Relationship getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable; - } - - public enum RelName - implements com.google.protobuf.ProtocolMessageEnum { - isRelatedTo(0, 1), - ; - - public static final int isRelatedTo_VALUE = 1; - - - public final int getNumber() { return value; } - - public static RelName valueOf(int value) { - switch (value) { - case 1: return isRelatedTo; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelName findValueByNumber(int number) { - return RelName.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDescriptor().getEnumTypes().get(0); - } - - private static final RelName[] VALUES = { - isRelatedTo, - }; - - public static RelName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RelName(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.ResultResult.Relationship.RelName) - } - - private int bitField0_; - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - public static final int RELMETADATA_FIELD_NUMBER = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - return relMetadata_; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - return relMetadata_; - } - - private void initFields() { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRelMetadata()) { - memoizedIsInitialized = 0; - return false; - } - if (!getRelMetadata().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, relMetadata_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relMetadata_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRelMetadataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (relMetadataBuilder_ == null) { - result.relMetadata_ = relMetadata_; - } else { - result.relMetadata_ = relMetadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance()) return this; - if (other.hasRelMetadata()) { - mergeRelMetadata(other.getRelMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRelMetadata()) { - - return false; - } - if (!getRelMetadata().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder subBuilder = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(); - if (hasRelMetadata()) { - subBuilder.mergeFrom(getRelMetadata()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelMetadata(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // required .eu.dnetlib.data.proto.RelMetadata relMetadata = 1; - private eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> relMetadataBuilder_; - public boolean hasRelMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata getRelMetadata() { - if (relMetadataBuilder_ == null) { - return relMetadata_; - } else { - return relMetadataBuilder_.getMessage(); - } - } - public Builder setRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relMetadata_ = value; - onChanged(); - } else { - relMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setRelMetadata( - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder builderForValue) { - if (relMetadataBuilder_ == null) { - relMetadata_ = builderForValue.build(); - onChanged(); - } else { - relMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeRelMetadata(eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata value) { - if (relMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - relMetadata_ != eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance()) { - relMetadata_ = - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.newBuilder(relMetadata_).mergeFrom(value).buildPartial(); - } else { - relMetadata_ = value; - } - onChanged(); - } else { - relMetadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearRelMetadata() { - if (relMetadataBuilder_ == null) { - relMetadata_ = eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.getDefaultInstance(); - onChanged(); - } else { - relMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder getRelMetadataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRelMetadataFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder getRelMetadataOrBuilder() { - if (relMetadataBuilder_ != null) { - return relMetadataBuilder_.getMessageOrBuilder(); - } else { - return relMetadata_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder> - getRelMetadataFieldBuilder() { - if (relMetadataBuilder_ == null) { - relMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadata.Builder, eu.dnetlib.data.proto.RelMetadataProtos.RelMetadataOrBuilder>( - relMetadata_, - getParentForChildren(), - isClean()); - relMetadata_ = null; - } - return relMetadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult.Relationship) - } - - static { - defaultInstance = new Relationship(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult.Relationship) - } - - private int bitField0_; - // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2; - public static final int SIMILARITY_FIELD_NUMBER = 2; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity similarity_; - public boolean hasSimilarity() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity() { - return similarity_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder() { - return similarity_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3; - public static final int PUBLICATIONDATASET_FIELD_NUMBER = 3; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset publicationDataset_; - public boolean hasPublicationDataset() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset() { - return publicationDataset_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder() { - return publicationDataset_; - } - - // optional .eu.dnetlib.data.proto.Dedup dedup = 4; - public static final int DEDUP_FIELD_NUMBER = 4; - private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_; - public boolean hasDedup() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() { - return dedup_; - } - public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() { - return dedup_; - } - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5; - public static final int DEDUPSIMILARITY_FIELD_NUMBER = 5; - private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_; - public boolean hasDedupSimilarity() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() { - return dedupSimilarity_; - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() { - return dedupSimilarity_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6; - public static final int SUPPLEMENT_FIELD_NUMBER = 6; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement supplement_; - public boolean hasSupplement() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement() { - return supplement_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder() { - return supplement_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7; - public static final int PART_FIELD_NUMBER = 7; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part part_; - public boolean hasPart() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart() { - return part_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder() { - return part_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8; - public static final int RELATIONSHIP_FIELD_NUMBER = 8; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship relationship_; - public boolean hasRelationship() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship() { - return relationship_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder() { - return relationship_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9; - public static final int SOFTWARESOFTWARE_FIELD_NUMBER = 9; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware softwareSoftware_; - public boolean hasSoftwareSoftware() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware() { - return softwareSoftware_; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder() { - return softwareSoftware_; - } - - private void initFields() { - similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance(); - publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance(); - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance(); - part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance(); - relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance(); - softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasSimilarity()) { - if (!getSimilarity().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPublicationDataset()) { - if (!getPublicationDataset().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDedup()) { - if (!getDedup().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDedupSimilarity()) { - if (!getDedupSimilarity().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSupplement()) { - if (!getSupplement().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPart()) { - if (!getPart().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasRelationship()) { - if (!getRelationship().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSoftwareSoftware()) { - if (!getSoftwareSoftware().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, similarity_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(3, publicationDataset_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, dedup_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, dedupSimilarity_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, supplement_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(7, part_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(8, relationship_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(9, softwareSoftware_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, similarity_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, publicationDataset_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, dedup_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, dedupSimilarity_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, supplement_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, part_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, relationship_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, softwareSoftware_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static eu.dnetlib.data.proto.ResultResultProtos.ResultResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(eu.dnetlib.data.proto.ResultResultProtos.ResultResult prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements eu.dnetlib.data.proto.ResultResultProtos.ResultResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return eu.dnetlib.data.proto.ResultResultProtos.internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable; - } - - // Construct using eu.dnetlib.data.proto.ResultResultProtos.ResultResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSimilarityFieldBuilder(); - getPublicationDatasetFieldBuilder(); - getDedupFieldBuilder(); - getDedupSimilarityFieldBuilder(); - getSupplementFieldBuilder(); - getPartFieldBuilder(); - getRelationshipFieldBuilder(); - getSoftwareSoftwareFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (similarityBuilder_ == null) { - similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance(); - } else { - similarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (publicationDatasetBuilder_ == null) { - publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance(); - } else { - publicationDatasetBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (dedupBuilder_ == null) { - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - } else { - dedupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - } else { - dedupSimilarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (supplementBuilder_ == null) { - supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance(); - } else { - supplementBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (partBuilder_ == null) { - part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance(); - } else { - partBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (relationshipBuilder_ == null) { - relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance(); - } else { - relationshipBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (softwareSoftwareBuilder_ == null) { - softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance(); - } else { - softwareSoftwareBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDescriptor(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult getDefaultInstanceForType() { - return eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance(); - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult build() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult buildPartial() { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult result = new eu.dnetlib.data.proto.ResultResultProtos.ResultResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (similarityBuilder_ == null) { - result.similarity_ = similarity_; - } else { - result.similarity_ = similarityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (publicationDatasetBuilder_ == null) { - result.publicationDataset_ = publicationDataset_; - } else { - result.publicationDataset_ = publicationDatasetBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (dedupBuilder_ == null) { - result.dedup_ = dedup_; - } else { - result.dedup_ = dedupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (dedupSimilarityBuilder_ == null) { - result.dedupSimilarity_ = dedupSimilarity_; - } else { - result.dedupSimilarity_ = dedupSimilarityBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (supplementBuilder_ == null) { - result.supplement_ = supplement_; - } else { - result.supplement_ = supplementBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (partBuilder_ == null) { - result.part_ = part_; - } else { - result.part_ = partBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (relationshipBuilder_ == null) { - result.relationship_ = relationship_; - } else { - result.relationship_ = relationshipBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (softwareSoftwareBuilder_ == null) { - result.softwareSoftware_ = softwareSoftware_; - } else { - result.softwareSoftware_ = softwareSoftwareBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof eu.dnetlib.data.proto.ResultResultProtos.ResultResult) { - return mergeFrom((eu.dnetlib.data.proto.ResultResultProtos.ResultResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(eu.dnetlib.data.proto.ResultResultProtos.ResultResult other) { - if (other == eu.dnetlib.data.proto.ResultResultProtos.ResultResult.getDefaultInstance()) return this; - if (other.hasSimilarity()) { - mergeSimilarity(other.getSimilarity()); - } - if (other.hasPublicationDataset()) { - mergePublicationDataset(other.getPublicationDataset()); - } - if (other.hasDedup()) { - mergeDedup(other.getDedup()); - } - if (other.hasDedupSimilarity()) { - mergeDedupSimilarity(other.getDedupSimilarity()); - } - if (other.hasSupplement()) { - mergeSupplement(other.getSupplement()); - } - if (other.hasPart()) { - mergePart(other.getPart()); - } - if (other.hasRelationship()) { - mergeRelationship(other.getRelationship()); - } - if (other.hasSoftwareSoftware()) { - mergeSoftwareSoftware(other.getSoftwareSoftware()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasSimilarity()) { - if (!getSimilarity().isInitialized()) { - - return false; - } - } - if (hasPublicationDataset()) { - if (!getPublicationDataset().isInitialized()) { - - return false; - } - } - if (hasDedup()) { - if (!getDedup().isInitialized()) { - - return false; - } - } - if (hasDedupSimilarity()) { - if (!getDedupSimilarity().isInitialized()) { - - return false; - } - } - if (hasSupplement()) { - if (!getSupplement().isInitialized()) { - - return false; - } - } - if (hasPart()) { - if (!getPart().isInitialized()) { - - return false; - } - } - if (hasRelationship()) { - if (!getRelationship().isInitialized()) { - - return false; - } - } - if (hasSoftwareSoftware()) { - if (!getSoftwareSoftware().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 18: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder(); - if (hasSimilarity()) { - subBuilder.mergeFrom(getSimilarity()); - } - input.readMessage(subBuilder, extensionRegistry); - setSimilarity(subBuilder.buildPartial()); - break; - } - case 26: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder(); - if (hasPublicationDataset()) { - subBuilder.mergeFrom(getPublicationDataset()); - } - input.readMessage(subBuilder, extensionRegistry); - setPublicationDataset(subBuilder.buildPartial()); - break; - } - case 34: { - eu.dnetlib.data.proto.DedupProtos.Dedup.Builder subBuilder = eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder(); - if (hasDedup()) { - subBuilder.mergeFrom(getDedup()); - } - input.readMessage(subBuilder, extensionRegistry); - setDedup(subBuilder.buildPartial()); - break; - } - case 42: { - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder subBuilder = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder(); - if (hasDedupSimilarity()) { - subBuilder.mergeFrom(getDedupSimilarity()); - } - input.readMessage(subBuilder, extensionRegistry); - setDedupSimilarity(subBuilder.buildPartial()); - break; - } - case 50: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder(); - if (hasSupplement()) { - subBuilder.mergeFrom(getSupplement()); - } - input.readMessage(subBuilder, extensionRegistry); - setSupplement(subBuilder.buildPartial()); - break; - } - case 58: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder(); - if (hasPart()) { - subBuilder.mergeFrom(getPart()); - } - input.readMessage(subBuilder, extensionRegistry); - setPart(subBuilder.buildPartial()); - break; - } - case 66: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder(); - if (hasRelationship()) { - subBuilder.mergeFrom(getRelationship()); - } - input.readMessage(subBuilder, extensionRegistry); - setRelationship(subBuilder.buildPartial()); - break; - } - case 74: { - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder subBuilder = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder(); - if (hasSoftwareSoftware()) { - subBuilder.mergeFrom(getSoftwareSoftware()); - } - input.readMessage(subBuilder, extensionRegistry); - setSoftwareSoftware(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional .eu.dnetlib.data.proto.ResultResult.Similarity similarity = 2; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder> similarityBuilder_; - public boolean hasSimilarity() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity getSimilarity() { - if (similarityBuilder_ == null) { - return similarity_; - } else { - return similarityBuilder_.getMessage(); - } - } - public Builder setSimilarity(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity value) { - if (similarityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - similarity_ = value; - onChanged(); - } else { - similarityBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder setSimilarity( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder builderForValue) { - if (similarityBuilder_ == null) { - similarity_ = builderForValue.build(); - onChanged(); - } else { - similarityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder mergeSimilarity(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity value) { - if (similarityBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - similarity_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance()) { - similarity_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.newBuilder(similarity_).mergeFrom(value).buildPartial(); - } else { - similarity_ = value; - } - onChanged(); - } else { - similarityBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - public Builder clearSimilarity() { - if (similarityBuilder_ == null) { - similarity_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.getDefaultInstance(); - onChanged(); - } else { - similarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder getSimilarityBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSimilarityFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder getSimilarityOrBuilder() { - if (similarityBuilder_ != null) { - return similarityBuilder_.getMessageOrBuilder(); - } else { - return similarity_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder> - getSimilarityFieldBuilder() { - if (similarityBuilder_ == null) { - similarityBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SimilarityOrBuilder>( - similarity_, - getParentForChildren(), - isClean()); - similarity_ = null; - } - return similarityBuilder_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.PublicationDataset publicationDataset = 3; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder> publicationDatasetBuilder_; - public boolean hasPublicationDataset() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset getPublicationDataset() { - if (publicationDatasetBuilder_ == null) { - return publicationDataset_; - } else { - return publicationDatasetBuilder_.getMessage(); - } - } - public Builder setPublicationDataset(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset value) { - if (publicationDatasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicationDataset_ = value; - onChanged(); - } else { - publicationDatasetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder setPublicationDataset( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder builderForValue) { - if (publicationDatasetBuilder_ == null) { - publicationDataset_ = builderForValue.build(); - onChanged(); - } else { - publicationDatasetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder mergePublicationDataset(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset value) { - if (publicationDatasetBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - publicationDataset_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance()) { - publicationDataset_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.newBuilder(publicationDataset_).mergeFrom(value).buildPartial(); - } else { - publicationDataset_ = value; - } - onChanged(); - } else { - publicationDatasetBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - public Builder clearPublicationDataset() { - if (publicationDatasetBuilder_ == null) { - publicationDataset_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.getDefaultInstance(); - onChanged(); - } else { - publicationDatasetBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder getPublicationDatasetBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getPublicationDatasetFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder getPublicationDatasetOrBuilder() { - if (publicationDatasetBuilder_ != null) { - return publicationDatasetBuilder_.getMessageOrBuilder(); - } else { - return publicationDataset_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder> - getPublicationDatasetFieldBuilder() { - if (publicationDatasetBuilder_ == null) { - publicationDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDatasetOrBuilder>( - publicationDataset_, - getParentForChildren(), - isClean()); - publicationDataset_ = null; - } - return publicationDatasetBuilder_; - } - - // optional .eu.dnetlib.data.proto.Dedup dedup = 4; - private eu.dnetlib.data.proto.DedupProtos.Dedup dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> dedupBuilder_; - public boolean hasDedup() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public eu.dnetlib.data.proto.DedupProtos.Dedup getDedup() { - if (dedupBuilder_ == null) { - return dedup_; - } else { - return dedupBuilder_.getMessage(); - } - } - public Builder setDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) { - if (dedupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dedup_ = value; - onChanged(); - } else { - dedupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder setDedup( - eu.dnetlib.data.proto.DedupProtos.Dedup.Builder builderForValue) { - if (dedupBuilder_ == null) { - dedup_ = builderForValue.build(); - onChanged(); - } else { - dedupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder mergeDedup(eu.dnetlib.data.proto.DedupProtos.Dedup value) { - if (dedupBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - dedup_ != eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance()) { - dedup_ = - eu.dnetlib.data.proto.DedupProtos.Dedup.newBuilder(dedup_).mergeFrom(value).buildPartial(); - } else { - dedup_ = value; - } - onChanged(); - } else { - dedupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - public Builder clearDedup() { - if (dedupBuilder_ == null) { - dedup_ = eu.dnetlib.data.proto.DedupProtos.Dedup.getDefaultInstance(); - onChanged(); - } else { - dedupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - public eu.dnetlib.data.proto.DedupProtos.Dedup.Builder getDedupBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getDedupFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder getDedupOrBuilder() { - if (dedupBuilder_ != null) { - return dedupBuilder_.getMessageOrBuilder(); - } else { - return dedup_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder> - getDedupFieldBuilder() { - if (dedupBuilder_ == null) { - dedupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupProtos.Dedup, eu.dnetlib.data.proto.DedupProtos.Dedup.Builder, eu.dnetlib.data.proto.DedupProtos.DedupOrBuilder>( - dedup_, - getParentForChildren(), - isClean()); - dedup_ = null; - } - return dedupBuilder_; - } - - // optional .eu.dnetlib.data.proto.DedupSimilarity dedupSimilarity = 5; - private eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> dedupSimilarityBuilder_; - public boolean hasDedupSimilarity() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity getDedupSimilarity() { - if (dedupSimilarityBuilder_ == null) { - return dedupSimilarity_; - } else { - return dedupSimilarityBuilder_.getMessage(); - } - } - public Builder setDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) { - if (dedupSimilarityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dedupSimilarity_ = value; - onChanged(); - } else { - dedupSimilarityBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder setDedupSimilarity( - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder builderForValue) { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = builderForValue.build(); - onChanged(); - } else { - dedupSimilarityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder mergeDedupSimilarity(eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity value) { - if (dedupSimilarityBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - dedupSimilarity_ != eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance()) { - dedupSimilarity_ = - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.newBuilder(dedupSimilarity_).mergeFrom(value).buildPartial(); - } else { - dedupSimilarity_ = value; - } - onChanged(); - } else { - dedupSimilarityBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - public Builder clearDedupSimilarity() { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarity_ = eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.getDefaultInstance(); - onChanged(); - } else { - dedupSimilarityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder getDedupSimilarityBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDedupSimilarityFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder getDedupSimilarityOrBuilder() { - if (dedupSimilarityBuilder_ != null) { - return dedupSimilarityBuilder_.getMessageOrBuilder(); - } else { - return dedupSimilarity_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder> - getDedupSimilarityFieldBuilder() { - if (dedupSimilarityBuilder_ == null) { - dedupSimilarityBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity.Builder, eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarityOrBuilder>( - dedupSimilarity_, - getParentForChildren(), - isClean()); - dedupSimilarity_ = null; - } - return dedupSimilarityBuilder_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Supplement supplement = 6; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder> supplementBuilder_; - public boolean hasSupplement() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement getSupplement() { - if (supplementBuilder_ == null) { - return supplement_; - } else { - return supplementBuilder_.getMessage(); - } - } - public Builder setSupplement(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement value) { - if (supplementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - supplement_ = value; - onChanged(); - } else { - supplementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder setSupplement( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder builderForValue) { - if (supplementBuilder_ == null) { - supplement_ = builderForValue.build(); - onChanged(); - } else { - supplementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder mergeSupplement(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement value) { - if (supplementBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - supplement_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance()) { - supplement_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.newBuilder(supplement_).mergeFrom(value).buildPartial(); - } else { - supplement_ = value; - } - onChanged(); - } else { - supplementBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - public Builder clearSupplement() { - if (supplementBuilder_ == null) { - supplement_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.getDefaultInstance(); - onChanged(); - } else { - supplementBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder getSupplementBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getSupplementFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder getSupplementOrBuilder() { - if (supplementBuilder_ != null) { - return supplementBuilder_.getMessageOrBuilder(); - } else { - return supplement_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder> - getSupplementFieldBuilder() { - if (supplementBuilder_ == null) { - supplementBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SupplementOrBuilder>( - supplement_, - getParentForChildren(), - isClean()); - supplement_ = null; - } - return supplementBuilder_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Part part = 7; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder> partBuilder_; - public boolean hasPart() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part getPart() { - if (partBuilder_ == null) { - return part_; - } else { - return partBuilder_.getMessage(); - } - } - public Builder setPart(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part value) { - if (partBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - part_ = value; - onChanged(); - } else { - partBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder setPart( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder builderForValue) { - if (partBuilder_ == null) { - part_ = builderForValue.build(); - onChanged(); - } else { - partBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder mergePart(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part value) { - if (partBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - part_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance()) { - part_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.newBuilder(part_).mergeFrom(value).buildPartial(); - } else { - part_ = value; - } - onChanged(); - } else { - partBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - public Builder clearPart() { - if (partBuilder_ == null) { - part_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.getDefaultInstance(); - onChanged(); - } else { - partBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder getPartBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPartFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder getPartOrBuilder() { - if (partBuilder_ != null) { - return partBuilder_.getMessageOrBuilder(); - } else { - return part_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder> - getPartFieldBuilder() { - if (partBuilder_ == null) { - partBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PartOrBuilder>( - part_, - getParentForChildren(), - isClean()); - part_ = null; - } - return partBuilder_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.Relationship relationship = 8; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder> relationshipBuilder_; - public boolean hasRelationship() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship getRelationship() { - if (relationshipBuilder_ == null) { - return relationship_; - } else { - return relationshipBuilder_.getMessage(); - } - } - public Builder setRelationship(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship value) { - if (relationshipBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - relationship_ = value; - onChanged(); - } else { - relationshipBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setRelationship( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder builderForValue) { - if (relationshipBuilder_ == null) { - relationship_ = builderForValue.build(); - onChanged(); - } else { - relationshipBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeRelationship(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship value) { - if (relationshipBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - relationship_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance()) { - relationship_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.newBuilder(relationship_).mergeFrom(value).buildPartial(); - } else { - relationship_ = value; - } - onChanged(); - } else { - relationshipBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearRelationship() { - if (relationshipBuilder_ == null) { - relationship_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.getDefaultInstance(); - onChanged(); - } else { - relationshipBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder getRelationshipBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getRelationshipFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder getRelationshipOrBuilder() { - if (relationshipBuilder_ != null) { - return relationshipBuilder_.getMessageOrBuilder(); - } else { - return relationship_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder> - getRelationshipFieldBuilder() { - if (relationshipBuilder_ == null) { - relationshipBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.RelationshipOrBuilder>( - relationship_, - getParentForChildren(), - isClean()); - relationship_ = null; - } - return relationshipBuilder_; - } - - // optional .eu.dnetlib.data.proto.ResultResult.SoftwareSoftware softwareSoftware = 9; - private eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder> softwareSoftwareBuilder_; - public boolean hasSoftwareSoftware() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware getSoftwareSoftware() { - if (softwareSoftwareBuilder_ == null) { - return softwareSoftware_; - } else { - return softwareSoftwareBuilder_.getMessage(); - } - } - public Builder setSoftwareSoftware(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware value) { - if (softwareSoftwareBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - softwareSoftware_ = value; - onChanged(); - } else { - softwareSoftwareBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setSoftwareSoftware( - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder builderForValue) { - if (softwareSoftwareBuilder_ == null) { - softwareSoftware_ = builderForValue.build(); - onChanged(); - } else { - softwareSoftwareBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeSoftwareSoftware(eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware value) { - if (softwareSoftwareBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - softwareSoftware_ != eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance()) { - softwareSoftware_ = - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.newBuilder(softwareSoftware_).mergeFrom(value).buildPartial(); - } else { - softwareSoftware_ = value; - } - onChanged(); - } else { - softwareSoftwareBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearSoftwareSoftware() { - if (softwareSoftwareBuilder_ == null) { - softwareSoftware_ = eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.getDefaultInstance(); - onChanged(); - } else { - softwareSoftwareBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder getSoftwareSoftwareBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getSoftwareSoftwareFieldBuilder().getBuilder(); - } - public eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder getSoftwareSoftwareOrBuilder() { - if (softwareSoftwareBuilder_ != null) { - return softwareSoftwareBuilder_.getMessageOrBuilder(); - } else { - return softwareSoftware_; - } - } - private com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder> - getSoftwareSoftwareFieldBuilder() { - if (softwareSoftwareBuilder_ == null) { - softwareSoftwareBuilder_ = new com.google.protobuf.SingleFieldBuilder< - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder, eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftwareOrBuilder>( - softwareSoftware_, - getParentForChildren(), - isClean()); - softwareSoftware_ = null; - } - return softwareSoftwareBuilder_; - } - - // @@protoc_insertion_point(builder_scope:eu.dnetlib.data.proto.ResultResult) - } - - static { - defaultInstance = new ResultResult(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:eu.dnetlib.data.proto.ResultResult) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023Result_Result.proto\022\025eu.dnetlib.data.p" + - "roto\032\021RelMetadata.proto\032\013Dedup.proto\032\025De" + - "dupSimilarity.proto\"\337\n\n\014ResultResult\022B\n\n" + - "similarity\030\002 \001(\0132..eu.dnetlib.data.proto" + - ".ResultResult.Similarity\022R\n\022publicationD" + - "ataset\030\003 \001(\01326.eu.dnetlib.data.proto.Res" + - "ultResult.PublicationDataset\022+\n\005dedup\030\004 " + - "\001(\0132\034.eu.dnetlib.data.proto.Dedup\022?\n\017ded" + - "upSimilarity\030\005 \001(\0132&.eu.dnetlib.data.pro" + - "to.DedupSimilarity\022B\n\nsupplement\030\006 \001(\0132.", - ".eu.dnetlib.data.proto.ResultResult.Supp" + - "lement\0226\n\004part\030\007 \001(\0132(.eu.dnetlib.data.p" + - "roto.ResultResult.Part\022F\n\014relationship\030\010" + - " \001(\01320.eu.dnetlib.data.proto.ResultResul" + - "t.Relationship\022N\n\020softwareSoftware\030\t \001(\013" + - "24.eu.dnetlib.data.proto.ResultResult.So" + - "ftwareSoftware\032\230\002\n\nSimilarity\0227\n\013relMeta" + - "data\030\001 \002(\0132\".eu.dnetlib.data.proto.RelMe" + - "tadata\022\022\n\nsimilarity\030\002 \001(\002\022K\n\004type\030\003 \001(\016" + - "23.eu.dnetlib.data.proto.ResultResult.Si", - "milarity.Type:\010STANDARD\"L\n\007RelName\022\037\n\033is" + - "AmongTopNSimilarDocuments\020\001\022 \n\034hasAmongT" + - "opNSimilarDocuments\020\002\"\"\n\004Type\022\014\n\010STANDAR" + - "D\020\001\022\014\n\010WEBUSAGE\020\002\032i\n\022PublicationDataset\022" + - "7\n\013relMetadata\030\001 \002(\0132\".eu.dnetlib.data.p" + - "roto.RelMetadata\"\032\n\007RelName\022\017\n\013isRelated" + - "To\020\001\032z\n\nSupplement\0227\n\013relMetadata\030\001 \002(\0132" + - "\".eu.dnetlib.data.proto.RelMetadata\"3\n\007R" + - "elName\022\022\n\016isSupplementTo\020\001\022\024\n\020isSuppleme" + - "ntedBy\020\002\032e\n\004Part\0227\n\013relMetadata\030\001 \002(\0132\".", - "eu.dnetlib.data.proto.RelMetadata\"$\n\007Rel" + - "Name\022\014\n\010isPartOf\020\001\022\013\n\007hasPart\020\002\032g\n\020Softw" + - "areSoftware\0227\n\013relMetadata\030\001 \002(\0132\".eu.dn" + - "etlib.data.proto.RelMetadata\"\032\n\007RelName\022" + - "\017\n\013isVersionOf\020\001\032c\n\014Relationship\0227\n\013relM" + - "etadata\030\001 \002(\0132\".eu.dnetlib.data.proto.Re" + - "lMetadata\"\032\n\007RelName\022\017\n\013isRelatedTo\020\001B+\n" + - "\025eu.dnetlib.data.protoB\022ResultResultProt" + - "os" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor, - new java.lang.String[] { "Similarity", "PublicationDataset", "Dedup", "DedupSimilarity", "Supplement", "Part", "Relationship", "SoftwareSoftware", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(0); - internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_Similarity_descriptor, - new java.lang.String[] { "RelMetadata", "Similarity", "Type", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(1); - internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_PublicationDataset_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(2); - internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_Supplement_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Supplement.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(3); - internal_static_eu_dnetlib_data_proto_ResultResult_Part_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_Part_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Part.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(4); - internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_SoftwareSoftware_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.SoftwareSoftware.Builder.class); - internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor = - internal_static_eu_dnetlib_data_proto_ResultResult_descriptor.getNestedTypes().get(5); - internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_eu_dnetlib_data_proto_ResultResult_Relationship_descriptor, - new java.lang.String[] { "RelMetadata", }, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.class, - eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Relationship.Builder.class); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - eu.dnetlib.data.proto.RelMetadataProtos.getDescriptor(), - eu.dnetlib.data.proto.DedupProtos.getDescriptor(), - eu.dnetlib.data.proto.DedupSimilarityProtos.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/SpecialTrustProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/SpecialTrustProtos.java deleted file mode 100644 index cb00e46..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/SpecialTrustProtos.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SpecialTrust.proto - -package eu.dnetlib.data.proto; - -public final class SpecialTrustProtos { - private SpecialTrustProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public enum SpecialTrust - implements com.google.protobuf.ProtocolMessageEnum { - INFINITE(0, 1), - NEUTRAL(1, 2), - ; - - public static final int INFINITE_VALUE = 1; - public static final int NEUTRAL_VALUE = 2; - - - public final int getNumber() { return value; } - - public static SpecialTrust valueOf(int value) { - switch (value) { - case 1: return INFINITE; - case 2: return NEUTRAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SpecialTrust findValueByNumber(int number) { - return SpecialTrust.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.SpecialTrustProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final SpecialTrust[] VALUES = { - INFINITE, NEUTRAL, - }; - - public static SpecialTrust valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private SpecialTrust(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.SpecialTrust) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022SpecialTrust.proto\022\025eu.dnetlib.data.pr" + - "oto*)\n\014SpecialTrust\022\014\n\010INFINITE\020\001\022\013\n\007NEU" + - "TRAL\020\002B+\n\025eu.dnetlib.data.protoB\022Special" + - "TrustProtos" - }; - 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; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/TypeProtos.java b/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/TypeProtos.java deleted file mode 100644 index 318fd7b..0000000 --- a/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/TypeProtos.java +++ /dev/null @@ -1,118 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Type.proto - -package eu.dnetlib.data.proto; - -public final class TypeProtos { - private TypeProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - datasource(0, 10), - organization(1, 20), - person(2, 30), - project(3, 40), - result(4, 50), - ; - - public static final int datasource_VALUE = 10; - public static final int organization_VALUE = 20; - public static final int person_VALUE = 30; - public static final int project_VALUE = 40; - public static final int result_VALUE = 50; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 10: return datasource; - case 20: return organization; - case 30: return person; - case 40: return project; - case 50: return result; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return eu.dnetlib.data.proto.TypeProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = { - datasource, organization, person, project, result, - }; - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.Type) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nType.proto\022\025eu.dnetlib.data.proto*M\n\004T" + - "ype\022\016\n\ndatasource\020\n\022\020\n\014organization\020\024\022\n\n" + - "\006person\020\036\022\013\n\007project\020(\022\n\n\006result\0202B#\n\025eu" + - ".dnetlib.data.protoB\nTypeProtos" - }; - 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; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource.proto deleted file mode 100644 index c7cc430..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource.proto +++ /dev/null @@ -1,61 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "DatasourceProtos"; - -message Datasource { - - optional Metadata metadata = 2; - - message Metadata { - - // common fields - optional Qualifier datasourcetype = 15; - optional Qualifier openairecompatibility = 17; - - optional StringField officialname = 1; - optional StringField englishname = 2; - optional StringField websiteurl = 3; - optional StringField logourl = 4; - optional StringField contactemail = 5; - optional StringField namespaceprefix = 7; - - optional StringField latitude = 18; - optional StringField longitude = 19; - optional StringField dateofvalidation = 20; - optional StringField description = 21; - - repeated StructuredProperty subjects = 45; - - // opendoar specific fields (od*) - optional StringField odnumberofitems = 9; - optional StringField odnumberofitemsdate = 10; - optional StringField odpolicies = 12; - - repeated StringField odlanguages = 13; - repeated StringField odcontenttypes = 14; - repeated StringField accessinfopackage = 6; - - // re3data fields - optional StringField releasestartdate = 31; - optional StringField releaseenddate = 32; - optional StringField missionstatementurl = 33; - optional BoolField dataprovider = 34; - optional BoolField serviceprovider = 35; - optional StringField databaseaccesstype = 36; // {open, restricted or closed} - optional StringField datauploadtype = 37; // {open, restricted or closed} - optional StringField databaseaccessrestriction = 38; // {feeRequired, registration, other} - optional StringField datauploadrestriction = 39; // {feeRequired, registration, other} - optional BoolField versioning = 40; - optional StringField citationguidelineurl = 41; - optional StringField qualitymanagementkind = 42; // {yes, no, uknown} - optional StringField pidsystems = 43; - optional StringField certificates = 44; - - repeated KeyValue policies = 46; - - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource_Organization.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource_Organization.proto deleted file mode 100644 index f3276cb..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Datasource_Organization.proto +++ /dev/null @@ -1,23 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "DatasourceOrganizationProtos"; - -message DatasourceOrganization { - - optional Provision provision = 1; - - message Provision { - - enum RelName { - isProvidedBy = 1; - provides = 2; - } - - required RelMetadata relMetadata = 1; - - } - -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Dedup.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Dedup.proto deleted file mode 100644 index c86b3de..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Dedup.proto +++ /dev/null @@ -1,16 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "DedupProtos"; - -message Dedup { - - enum RelName { - isMergedIn = 1; - merges = 2; - } - - required RelMetadata relMetadata = 1; -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/DedupSimilarity.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/DedupSimilarity.proto deleted file mode 100644 index 1ad2381..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/DedupSimilarity.proto +++ /dev/null @@ -1,16 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "DedupSimilarityProtos"; - -message DedupSimilarity { - - enum RelName { - isSimilarTo = 1; - } - - required RelMetadata relMetadata = 1; - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/FieldType.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/FieldType.proto deleted file mode 100644 index d904895..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/FieldType.proto +++ /dev/null @@ -1,104 +0,0 @@ -package eu.dnetlib.data.proto; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "FieldTypeProtos"; - -message StringField { - - required string value = 1; - optional DataInfo dataInfo = 2; -} - -message BoolField { - - required bool value = 1; - optional DataInfo dataInfo = 2; -} - -message IntField { - - required int32 value = 1; - optional DataInfo dataInfo = 2; -} - -message StructuredProperty { - - required string value = 1; - optional Qualifier qualifier = 2; - optional DataInfo dataInfo = 3; -} - -// Generic container for identified values, e.g: -// -// -message KeyValue { - - required string key = 1; - optional string value = 2; - - optional DataInfo dataInfo = 3; -} - -message Qualifier { - - optional string classid = 1; - optional string classname = 2; - optional string schemeid = 3; - optional string schemename = 4; - - optional DataInfo dataInfo = 5; -} - -message DataInfo { - - optional bool invisible = 6 [default = false]; - optional bool inferred = 1; - optional bool deletedbyinference = 2; - optional string trust = 3; - optional string inferenceprovenance = 4; - - required Qualifier provenanceaction = 5; -} - -message OAIProvenance { - - optional OriginDescription originDescription = 1; - - message OriginDescription { - - optional string harvestDate = 1; - optional bool altered = 2 [default = true]; - - optional string baseURL = 3; - optional string identifier = 4; - optional string datestamp = 5; - optional string metadataNamespace = 6; - - optional OriginDescription originDescription = 7; - } -} - -message ExtraInfo { - - required string name = 1; - required string typology = 2; - required string provenance = 3; - optional string trust = 4; - - // json containing a Citation or Statistics - optional string value = 5; - -} - -message Author { - - required string fullname = 1; - - optional string name = 2; - optional string surname = 3; - - required int32 rank = 4; - - repeated KeyValue pid = 5; - repeated StringField affiliation = 6; -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Kind.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Kind.proto deleted file mode 100644 index a1bf267..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Kind.proto +++ /dev/null @@ -1,9 +0,0 @@ -package eu.dnetlib.data.proto; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "KindProtos"; - -enum Kind { - entity = 1; - relation = 2; -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/OafParent.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/OafParent.proto deleted file mode 100644 index a5e2793..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/OafParent.proto +++ /dev/null @@ -1,97 +0,0 @@ -package eu.dnetlib.data.proto; - -import "Kind.proto"; -import "FieldType.proto"; - -// for Oafentity -import "Type.proto"; -import "Datasource.proto"; -import "Organization.proto"; -import "Project.proto"; -import "Result.proto"; - -import "Person.proto"; - -// for OafRel -import "RelType.proto"; -import "Datasource_Organization.proto"; -import "Project_Organization.proto"; -import "Result_Organization.proto"; -import "Result_Project.proto"; -import "Result_Result.proto"; -import "Organization_Organization.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "OafProtos"; - -message Oaf { - required Kind kind = 1; - - optional OafEntity entity = 2; - optional OafRel rel = 3; - - optional DataInfo dataInfo = 4; - - // used to mark the last update time of this object - optional sfixed64 lastupdatetimestamp = 5; -} - -message OafEntity { - required Type type = 1; - required string id = 12; - - repeated string originalId = 8; - repeated KeyValue collectedfrom = 9; - - repeated StructuredProperty pid = 10; - optional string dateofcollection = 11; - optional string dateoftransformation = 13; - - /* Any relation that we want to bundle together with this entity. - It's intended to be used only in temporary values in map/red jobs (sequence files, ...) - and never persisted values stored in HBase. */ - repeated OafRel cachedRel = 2; - repeated Oaf cachedOafRel = 18; - - optional Datasource datasource = 3; - optional Organization organization = 4; - optional Project project = 6; - optional Result result = 7; - - optional Person person = 5; - - repeated OafEntity children = 16; - - repeated ExtraInfo extraInfo = 15; - - optional OAIProvenance oaiprovenance = 17; -} - - -message OafRel { - required RelType relType = 1; - required SubRelType subRelType = 19; - required string relClass = 20; // one among the SubRel names, e.g. Provision.RelName.isProvidedBy - - required string source = 2; - required string target = 3; - - /* if true then is a "child" */ - required bool child = 4; - - optional OafEntity cachedTarget = 5; - - // needed to have more information that is not included in cachedTarget. - optional Oaf cachedOafTarget = 8; - - // Datamodel rels - optional DatasourceOrganization datasourceOrganization = 6; - optional ProjectOrganization projectOrganization = 9; - optional ResultOrganization resultOrganization = 10; - optional ResultProject resultProject = 11; - optional ResultResult resultResult = 16; - optional OrganizationOrganization organizationOrganization = 17; - - repeated KeyValue collectedfrom = 21; - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization.proto deleted file mode 100644 index 088f14d..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization.proto +++ /dev/null @@ -1,33 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "OrganizationProtos"; - -message Organization { - - optional Metadata metadata = 2; - - message Metadata { - optional StringField legalshortname = 1; - optional StringField legalname = 2; - repeated StringField alternativeNames = 17; - optional StringField websiteurl = 3; - optional StringField logourl = 4; - optional StringField eclegalbody = 5; - optional StringField eclegalperson = 6; - optional StringField ecnonprofit = 7; - optional StringField ecresearchorganization = 8; - optional StringField echighereducation = 9; - optional StringField ecinternationalorganizationeurinterests = 10; - optional StringField ecinternationalorganization = 11; - optional StringField ecenterprise = 12; - optional StringField ecsmevalidated = 13; - optional StringField ecnutscode = 14; - - optional Qualifier country = 16; - - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization_Organization.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization_Organization.proto deleted file mode 100644 index 48c7cc1..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Organization_Organization.proto +++ /dev/null @@ -1,15 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; -import "Dedup.proto"; -import "DedupSimilarity.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "OrganizationOrganizationProtos"; - -message OrganizationOrganization { - - optional Dedup dedup = 1; - optional DedupSimilarity dedupSimilarity = 2; - -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Person.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Person.proto deleted file mode 100644 index 3e6e915..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Person.proto +++ /dev/null @@ -1,25 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "PersonProtos"; - -message Person { - - optional Metadata metadata = 2; - - message Metadata { - required string fullname = 1; - optional string firstname = 2; - optional string lastname = 3; - required string pubID = 4; - optional string pubDOI = 5; - optional string orcid = 6; - required int32 rank = 7; - - repeated string coauthors = 8; - repeated double topics = 9; - required string area = 10; - } -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project.proto deleted file mode 100644 index b1f44bb..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project.proto +++ /dev/null @@ -1,42 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ProjectProtos"; - -message Project { - - optional Metadata metadata = 2; - - message Metadata { - - optional StringField websiteurl = 1; - optional StringField code = 2; - optional StringField acronym = 3; - optional StringField title = 4; - optional StringField startdate = 5; - optional StringField enddate = 6; - optional StringField callidentifier = 7; - optional StringField keywords = 8; - optional StringField duration = 9; - optional StringField ecsc39 = 10; - optional StringField oamandatepublications = 11; - optional StringField ecarticle29_3 = 12; - repeated StructuredProperty subjects = 14; - - repeated StringField fundingtree = 15; - - optional Qualifier contracttype = 13; - - optional StringField optional1 = 16; - optional StringField optional2 = 17; - optional StringField jsonextrainfo = 18; - - optional StringField contactfullname = 19; - optional StringField contactfax = 20; - optional StringField contactphone = 21; - optional StringField contactemail = 22; - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project_Organization.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project_Organization.proto deleted file mode 100644 index 7d1a76e..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Project_Organization.proto +++ /dev/null @@ -1,23 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ProjectOrganizationProtos"; - -message ProjectOrganization { - - optional Participation participation = 1; - - message Participation { - - enum RelName { - isParticipant = 1; - hasParticipant = 2; - } - - required RelMetadata relMetadata = 1; - optional string participantnumber = 2; - } - -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelMetadata.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelMetadata.proto deleted file mode 100644 index 46bbef0..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelMetadata.proto +++ /dev/null @@ -1,15 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "RelMetadataProtos"; - -message RelMetadata { - - optional Qualifier semantics = 1; - - optional string startdate = 3; - optional string enddate = 4; - -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelType.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelType.proto deleted file mode 100644 index 0d020ef..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/RelType.proto +++ /dev/null @@ -1,36 +0,0 @@ -package eu.dnetlib.data.proto; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "RelTypeProtos"; - -enum RelType { - - // Datamodel rels - datasourceOrganization = 1; - projectOrganization = 4; - resultOrganization = 5; - resultProject = 6; - resultResult = 9; - organizationOrganization = 11; - -} - -enum SubRelType { - - provision = 1; // datasourceOrganization - participation = 4; // projectOrganization - outcome = 6; // resultProject - similarity = 8; // resultResult - publicationDataset = 9; // resultResult - affiliation = 12; // resultOrganizaiton - - dedup = 10; // resultResult | organizationOrganization - dedupSimilarity = 11; // resultResult | organizationOrganization - - supplement = 13; // resultResult - part = 15; // resultResult - - version = 16; // resultResult - - relationship = 17; // catch all -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result.proto deleted file mode 100644 index e015ecd..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result.proto +++ /dev/null @@ -1,128 +0,0 @@ -package eu.dnetlib.data.proto; - -import "FieldType.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ResultProtos"; - -message Result { - - optional Metadata metadata = 2; - - repeated Instance instance = 6; - - repeated ExternalReference externalReference = 7; - - message Metadata { - - repeated Author author = 40; - - // resulttype allows subclassing results into publications | datasets | software - optional Qualifier resulttype = 8; - - // common fields - optional Qualifier language = 12; - repeated Qualifier country = 33; - - repeated StructuredProperty subject = 1; - repeated StructuredProperty title = 2; - repeated StructuredProperty relevantdate = 3; - - repeated StringField description = 25; - optional StringField dateofacceptance = 4; - optional StringField publisher = 5; - optional StringField embargoenddate = 6; - repeated StringField source = 27; - repeated StringField fulltext = 29; // remove candidate - repeated StringField format = 21; - repeated StringField contributor = 30; - optional Qualifier resourcetype = 19; - repeated StringField coverage = 43; - - repeated Context context = 28; - - // publication specific - optional Journal journal = 18; - - // dataset specific - optional StringField storagedate = 9; - optional StringField device = 26; - optional StringField size = 20; - optional StringField version = 22; - optional StringField lastmetadataupdate = 23; - optional StringField metadataversionnumber = 24; - repeated GeoLocation geolocation = 44; - - // software specific - repeated StringField documentationUrl = 35; - repeated StructuredProperty license = 36; - optional StringField codeRepositoryUrl = 38; - optional Qualifier programmingLanguage = 39; - - // other research products specifics - repeated StringField contactperson = 45; - repeated StringField contactgroup = 41; - repeated StringField tool = 42; - - } - - message Journal { - optional string name = 1; - optional string issnPrinted = 2; - optional string issnOnline = 3; - optional string issnLinking = 4; - - optional string ep = 6; - optional string iss = 7; - optional string sp = 8; - optional string vol = 9; - - optional string edition = 10; - optional string conferenceplace = 11; - optional string conferencedate = 12; - - optional DataInfo dataInfo = 5; - } - - // - message Context { - required string id = 1; - repeated DataInfo dataInfo = 2; - } - - message Instance { - - optional StringField license = 6; - optional Qualifier accessright = 3; - optional Qualifier instancetype = 4; - - optional KeyValue hostedby = 5; - repeated string url = 9; - - // other research products specific - optional string distributionlocation = 12; - - optional KeyValue collectedfrom = 10; - optional StringField dateofacceptance = 11; - } - - message ExternalReference { - - optional string sitename = 1; // source - optional string label = 2; // title - optional string url = 3; // text() - optional string description = 4; // ?? not mapped yet ?? - optional Qualifier qualifier = 5; // type - optional string refidentifier = 6; // site internal identifier - optional string query = 7; // maps the oaf:reference/@query attribute - optional DataInfo dataInfo = 8; // ExternalReferences might be also inferred - } - - message GeoLocation { - - optional string point = 1; - optional string box = 2; - optional string place = 3; - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Organization.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Organization.proto deleted file mode 100644 index 974cc07..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Organization.proto +++ /dev/null @@ -1,23 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ResultOrganizationProtos"; - -message ResultOrganization { - - optional Affiliation affiliation = 1; - - message Affiliation { - - enum RelName { - isAuthorInstitutionOf = 1; // Organization --> Result - hasAuthorInstitution = 2; // Result --> Organization - } - - required RelMetadata relMetadata = 1; - - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Project.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Project.proto deleted file mode 100644 index cb76666..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Project.proto +++ /dev/null @@ -1,23 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ResultProjectProtos"; - -message ResultProject { - - optional Outcome outcome = 1; - - message Outcome { - - enum RelName { - isProducedBy = 1; - produces = 2; - } - - required RelMetadata relMetadata = 1; - - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Result.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Result.proto deleted file mode 100644 index d0166a4..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Result_Result.proto +++ /dev/null @@ -1,94 +0,0 @@ -package eu.dnetlib.data.proto; - -import "RelMetadata.proto"; -import "Dedup.proto"; -import "DedupSimilarity.proto"; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "ResultResultProtos"; - -message ResultResult { - - //choice of the possible subtypes - optional Similarity similarity = 2; - optional PublicationDataset publicationDataset = 3; - optional Dedup dedup = 4; - optional DedupSimilarity dedupSimilarity = 5; - - optional Supplement supplement = 6; - optional Part part = 7; - - optional Relationship relationship = 8; - - optional SoftwareSoftware softwareSoftware = 9; - - message Similarity { - - enum RelName { - isAmongTopNSimilarDocuments = 1; - hasAmongTopNSimilarDocuments = 2; - } - - required RelMetadata relMetadata = 1; - - // level of similarity: coefficient from [0, 1] range, - // the greater the number, the more similar the documents - optional float similarity = 2; - - enum Type { - STANDARD = 1; - WEBUSAGE = 2; - } - - // similarity type - optional Type type = 3 [default = STANDARD]; - } - - message PublicationDataset { - - enum RelName { - isRelatedTo = 1; - } - - required RelMetadata relMetadata = 1; - } - - message Supplement { - - enum RelName { - isSupplementTo = 1; - isSupplementedBy = 2; - } - - required RelMetadata relMetadata = 1; - } - - message Part { - - enum RelName { - isPartOf = 1; - hasPart = 2; - } - - required RelMetadata relMetadata = 1; - } - - message SoftwareSoftware { - - enum RelName { - isVersionOf = 1; - } - - required RelMetadata relMetadata = 1; - } - - message Relationship { - - enum RelName { - isRelatedTo = 1; - } - - required RelMetadata relMetadata = 1; - } - -} diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/SpecialTrust.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/SpecialTrust.proto deleted file mode 100644 index 2e5b2d4..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/SpecialTrust.proto +++ /dev/null @@ -1,9 +0,0 @@ -package eu.dnetlib.data.proto; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "SpecialTrustProtos"; - -enum SpecialTrust { - INFINITE = 1; - NEUTRAL = 2; -} \ No newline at end of file diff --git a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Type.proto b/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Type.proto deleted file mode 100644 index e01995c..0000000 --- a/dnet-openaire-data-protos/src/main/resources/eu/dnetlib/data/proto/Type.proto +++ /dev/null @@ -1,13 +0,0 @@ -package eu.dnetlib.data.proto; - -option java_package = "eu.dnetlib.data.proto"; -option java_outer_classname = "TypeProtos"; - -// entity tags are used as rowkey prefixes on hbase -enum Type { - datasource = 10; - organization = 20; - person = 30; - project = 40; - result = 50; -}