1753 lines
61 KiB
Java
1753 lines
61 KiB
Java
// 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<String> getCoauthorsList();
|
|
int getCoauthorsCount();
|
|
String getCoauthors(int index);
|
|
|
|
// repeated double topics = 9;
|
|
java.util.List<java.lang.Double> 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<String>
|
|
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<java.lang.Double> topics_;
|
|
public java.util.List<java.lang.Double>
|
|
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<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<String>
|
|
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<String> 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<java.lang.Double> topics_ = java.util.Collections.emptyList();;
|
|
private void ensureTopicsIsMutable() {
|
|
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
|
|
topics_ = new java.util.ArrayList<java.lang.Double>(topics_);
|
|
bitField0_ |= 0x00000100;
|
|
}
|
|
}
|
|
public java.util.List<java.lang.Double>
|
|
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<? extends java.lang.Double> 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<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)
|
|
}
|