org.openlca.proto.ProtoActor Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
*
* An actor is a person or organisation.
*
*
* Protobuf type {@code protolca.ProtoActor}
*/
public final class ProtoActor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoActor)
ProtoActorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoActor.newBuilder() to construct.
private ProtoActor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoActor() {
id_ = "";
name_ = "";
description_ = "";
version_ = "";
lastChange_ = "";
type_ = 0;
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
library_ = "";
address_ = "";
city_ = "";
country_ = "";
email_ = "";
telefax_ = "";
telephone_ = "";
website_ = "";
zipCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoActor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoActor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
lastChange_ = s;
break;
}
case 48: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 58: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (category_ != null) {
subBuilder = category_.toBuilder();
}
category_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(category_);
category_ = subBuilder.buildPartial();
}
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
tags_.add(s);
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
library_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
city_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
country_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
email_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
telefax_ = s;
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
telephone_ = s;
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
website_ = s;
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
zipCode_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
tags_ = tags_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoActor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoActor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoActor.class, org.openlca.proto.ProtoActor.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* The name of the entity.
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The name of the entity.
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* The description of the entity.
*
*
* string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* The description of the entity.
*
*
* string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 4;
private volatile java.lang.Object version_;
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
}
}
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_CHANGE_FIELD_NUMBER = 5;
private volatile java.lang.Object lastChange_;
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @return The lastChange.
*/
@java.lang.Override
public java.lang.String getLastChange() {
java.lang.Object ref = lastChange_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastChange_ = s;
return s;
}
}
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @return The bytes for lastChange.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLastChangeBytes() {
java.lang.Object ref = lastChange_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastChange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 6;
private int type_;
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @return The type.
*/
@java.lang.Override public org.openlca.proto.ProtoType getType() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoType result = org.openlca.proto.ProtoType.valueOf(type_);
return result == null ? org.openlca.proto.ProtoType.UNRECOGNIZED : result;
}
public static final int CATEGORY_FIELD_NUMBER = 7;
private org.openlca.proto.ProtoRef category_;
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
* @return Whether the category field is set.
*/
@java.lang.Override
public boolean hasCategory() {
return category_ != null;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
* @return The category.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getCategory() {
return category_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : category_;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getCategoryOrBuilder() {
return getCategory();
}
public static final int TAGS_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList tags_;
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int LIBRARY_FIELD_NUMBER = 9;
private volatile java.lang.Object library_;
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @return The library.
*/
@java.lang.Override
public java.lang.String getLibrary() {
java.lang.Object ref = library_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
library_ = s;
return s;
}
}
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @return The bytes for library.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLibraryBytes() {
java.lang.Object ref = library_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
library_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 10;
private volatile java.lang.Object address_;
/**
* string address = 10;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 10;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CITY_FIELD_NUMBER = 11;
private volatile java.lang.Object city_;
/**
* string city = 11;
* @return The city.
*/
@java.lang.Override
public java.lang.String getCity() {
java.lang.Object ref = city_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
city_ = s;
return s;
}
}
/**
* string city = 11;
* @return The bytes for city.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNTRY_FIELD_NUMBER = 12;
private volatile java.lang.Object country_;
/**
* string country = 12;
* @return The country.
*/
@java.lang.Override
public java.lang.String getCountry() {
java.lang.Object ref = country_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
country_ = s;
return s;
}
}
/**
* string country = 12;
* @return The bytes for country.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EMAIL_FIELD_NUMBER = 13;
private volatile java.lang.Object email_;
/**
* string email = 13;
* @return The email.
*/
@java.lang.Override
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
}
}
/**
* string email = 13;
* @return The bytes for email.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TELEFAX_FIELD_NUMBER = 14;
private volatile java.lang.Object telefax_;
/**
* string telefax = 14;
* @return The telefax.
*/
@java.lang.Override
public java.lang.String getTelefax() {
java.lang.Object ref = telefax_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telefax_ = s;
return s;
}
}
/**
* string telefax = 14;
* @return The bytes for telefax.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTelefaxBytes() {
java.lang.Object ref = telefax_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telefax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TELEPHONE_FIELD_NUMBER = 15;
private volatile java.lang.Object telephone_;
/**
* string telephone = 15;
* @return The telephone.
*/
@java.lang.Override
public java.lang.String getTelephone() {
java.lang.Object ref = telephone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telephone_ = s;
return s;
}
}
/**
* string telephone = 15;
* @return The bytes for telephone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTelephoneBytes() {
java.lang.Object ref = telephone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telephone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WEBSITE_FIELD_NUMBER = 16;
private volatile java.lang.Object website_;
/**
* string website = 16;
* @return The website.
*/
@java.lang.Override
public java.lang.String getWebsite() {
java.lang.Object ref = website_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
website_ = s;
return s;
}
}
/**
* string website = 16;
* @return The bytes for website.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWebsiteBytes() {
java.lang.Object ref = website_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
website_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZIP_CODE_FIELD_NUMBER = 17;
private volatile java.lang.Object zipCode_;
/**
* string zip_code = 17;
* @return The zipCode.
*/
@java.lang.Override
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zipCode_ = s;
return s;
}
}
/**
* string zip_code = 17;
* @return The bytes for zipCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZipCodeBytes() {
java.lang.Object ref = zipCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastChange_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lastChange_);
}
if (type_ != org.openlca.proto.ProtoType.Undefined.getNumber()) {
output.writeEnum(6, type_);
}
if (category_ != null) {
output.writeMessage(7, getCategory());
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(library_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, library_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, address_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, city_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, country_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telefax_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, telefax_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, telephone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(website_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, website_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, zipCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastChange_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lastChange_);
}
if (type_ != org.openlca.proto.ProtoType.Undefined.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, type_);
}
if (category_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getCategory());
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(library_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, library_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, address_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, city_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, country_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telefax_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, telefax_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, telephone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(website_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, website_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zipCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, zipCode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.openlca.proto.ProtoActor)) {
return super.equals(obj);
}
org.openlca.proto.ProtoActor other = (org.openlca.proto.ProtoActor) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getLastChange()
.equals(other.getLastChange())) return false;
if (type_ != other.type_) return false;
if (hasCategory() != other.hasCategory()) return false;
if (hasCategory()) {
if (!getCategory()
.equals(other.getCategory())) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!getLibrary()
.equals(other.getLibrary())) return false;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getCity()
.equals(other.getCity())) return false;
if (!getCountry()
.equals(other.getCountry())) return false;
if (!getEmail()
.equals(other.getEmail())) return false;
if (!getTelefax()
.equals(other.getTelefax())) return false;
if (!getTelephone()
.equals(other.getTelephone())) return false;
if (!getWebsite()
.equals(other.getWebsite())) return false;
if (!getZipCode()
.equals(other.getZipCode())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + LAST_CHANGE_FIELD_NUMBER;
hash = (53 * hash) + getLastChange().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasCategory()) {
hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getCategory().hashCode();
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (37 * hash) + LIBRARY_FIELD_NUMBER;
hash = (53 * hash) + getLibrary().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getCountry().hashCode();
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
hash = (37 * hash) + TELEFAX_FIELD_NUMBER;
hash = (53 * hash) + getTelefax().hashCode();
hash = (37 * hash) + TELEPHONE_FIELD_NUMBER;
hash = (53 * hash) + getTelephone().hashCode();
hash = (37 * hash) + WEBSITE_FIELD_NUMBER;
hash = (53 * hash) + getWebsite().hashCode();
hash = (37 * hash) + ZIP_CODE_FIELD_NUMBER;
hash = (53 * hash) + getZipCode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoActor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoActor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoActor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoActor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoActor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoActor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoActor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoActor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.openlca.proto.ProtoActor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoActor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.openlca.proto.ProtoActor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoActor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.openlca.proto.ProtoActor prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An actor is a person or organisation.
*
*
* Protobuf type {@code protolca.ProtoActor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoActor)
org.openlca.proto.ProtoActorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoActor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoActor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoActor.class, org.openlca.proto.ProtoActor.Builder.class);
}
// Construct using org.openlca.proto.ProtoActor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
description_ = "";
version_ = "";
lastChange_ = "";
type_ = 0;
if (categoryBuilder_ == null) {
category_ = null;
} else {
category_ = null;
categoryBuilder_ = null;
}
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
library_ = "";
address_ = "";
city_ = "";
country_ = "";
email_ = "";
telefax_ = "";
telephone_ = "";
website_ = "";
zipCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoActor_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoActor getDefaultInstanceForType() {
return org.openlca.proto.ProtoActor.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoActor build() {
org.openlca.proto.ProtoActor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoActor buildPartial() {
org.openlca.proto.ProtoActor result = new org.openlca.proto.ProtoActor(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
result.description_ = description_;
result.version_ = version_;
result.lastChange_ = lastChange_;
result.type_ = type_;
if (categoryBuilder_ == null) {
result.category_ = category_;
} else {
result.category_ = categoryBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tags_ = tags_;
result.library_ = library_;
result.address_ = address_;
result.city_ = city_;
result.country_ = country_;
result.email_ = email_;
result.telefax_ = telefax_;
result.telephone_ = telephone_;
result.website_ = website_;
result.zipCode_ = zipCode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openlca.proto.ProtoActor) {
return mergeFrom((org.openlca.proto.ProtoActor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoActor other) {
if (other == org.openlca.proto.ProtoActor.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.getLastChange().isEmpty()) {
lastChange_ = other.lastChange_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasCategory()) {
mergeCategory(other.getCategory());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (!other.getLibrary().isEmpty()) {
library_ = other.library_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getCity().isEmpty()) {
city_ = other.city_;
onChanged();
}
if (!other.getCountry().isEmpty()) {
country_ = other.country_;
onChanged();
}
if (!other.getEmail().isEmpty()) {
email_ = other.email_;
onChanged();
}
if (!other.getTelefax().isEmpty()) {
telefax_ = other.telefax_;
onChanged();
}
if (!other.getTelephone().isEmpty()) {
telephone_ = other.telephone_;
onChanged();
}
if (!other.getWebsite().isEmpty()) {
website_ = other.website_;
onChanged();
}
if (!other.getZipCode().isEmpty()) {
zipCode_ = other.zipCode_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.openlca.proto.ProtoActor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoActor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The reference ID (typically an UUID) of the entity.
*
*
* string id = 1 [json_name = "@id"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* The name of the entity.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the entity.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the entity.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The name of the entity.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The name of the entity.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* The description of the entity.
*
*
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The description of the entity.
*
*
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The description of the entity.
*
*
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* The description of the entity.
*
*
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* The description of the entity.
*
*
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
* fields are optional and the fields may have leading zeros (so 01.00.00 is
* the same as 1.0.0 or 1).
*
*
* string version = 4;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private java.lang.Object lastChange_ = "";
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @return The lastChange.
*/
public java.lang.String getLastChange() {
java.lang.Object ref = lastChange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastChange_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @return The bytes for lastChange.
*/
public com.google.protobuf.ByteString
getLastChangeBytes() {
java.lang.Object ref = lastChange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastChange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @param value The lastChange to set.
* @return This builder for chaining.
*/
public Builder setLastChange(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lastChange_ = value;
onChanged();
return this;
}
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @return This builder for chaining.
*/
public Builder clearLastChange() {
lastChange_ = getDefaultInstance().getLastChange();
onChanged();
return this;
}
/**
*
* The timestamp when the entity was changed the last time.
*
*
* string last_change = 5;
* @param value The bytes for lastChange to set.
* @return This builder for chaining.
*/
public Builder setLastChangeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lastChange_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @return The type.
*/
@java.lang.Override
public org.openlca.proto.ProtoType getType() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoType result = org.openlca.proto.ProtoType.valueOf(type_);
return result == null ? org.openlca.proto.ProtoType.UNRECOGNIZED : result;
}
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.openlca.proto.ProtoType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The type name of the respective entity.
*
*
* .protolca.ProtoType type = 6 [json_name = "@type"];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private org.openlca.proto.ProtoRef category_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> categoryBuilder_;
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
* @return Whether the category field is set.
*/
public boolean hasCategory() {
return categoryBuilder_ != null || category_ != null;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
* @return The category.
*/
public org.openlca.proto.ProtoRef getCategory() {
if (categoryBuilder_ == null) {
return category_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : category_;
} else {
return categoryBuilder_.getMessage();
}
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public Builder setCategory(org.openlca.proto.ProtoRef value) {
if (categoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
category_ = value;
onChanged();
} else {
categoryBuilder_.setMessage(value);
}
return this;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public Builder setCategory(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (categoryBuilder_ == null) {
category_ = builderForValue.build();
onChanged();
} else {
categoryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public Builder mergeCategory(org.openlca.proto.ProtoRef value) {
if (categoryBuilder_ == null) {
if (category_ != null) {
category_ =
org.openlca.proto.ProtoRef.newBuilder(category_).mergeFrom(value).buildPartial();
} else {
category_ = value;
}
onChanged();
} else {
categoryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public Builder clearCategory() {
if (categoryBuilder_ == null) {
category_ = null;
onChanged();
} else {
category_ = null;
categoryBuilder_ = null;
}
return this;
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public org.openlca.proto.ProtoRef.Builder getCategoryBuilder() {
onChanged();
return getCategoryFieldBuilder().getBuilder();
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
public org.openlca.proto.ProtoRefOrBuilder getCategoryOrBuilder() {
if (categoryBuilder_ != null) {
return categoryBuilder_.getMessageOrBuilder();
} else {
return category_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : category_;
}
}
/**
*
* The category of the entity.
*
*
* .protolca.ProtoRef category = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getCategoryFieldBuilder() {
if (categoryBuilder_ == null) {
categoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getCategory(),
getParentForChildren(),
isClean());
category_ = null;
}
return categoryBuilder_;
}
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000001;
}
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* A list of optional tags. A tag is just a string which should not contain
* commas (and other special characters).
*
*
* repeated string tags = 8;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private java.lang.Object library_ = "";
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @return The library.
*/
public java.lang.String getLibrary() {
java.lang.Object ref = library_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
library_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @return The bytes for library.
*/
public com.google.protobuf.ByteString
getLibraryBytes() {
java.lang.Object ref = library_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
library_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @param value The library to set.
* @return This builder for chaining.
*/
public Builder setLibrary(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
library_ = value;
onChanged();
return this;
}
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @return This builder for chaining.
*/
public Builder clearLibrary() {
library_ = getDefaultInstance().getLibrary();
onChanged();
return this;
}
/**
*
* If this entity is part of a library, this field contains the identifier of
* that library. The identifier is typically just the combination of the
* library name and version.
*
*
* string library = 9;
* @param value The bytes for library to set.
* @return This builder for chaining.
*/
public Builder setLibraryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
library_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 10;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 10;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 10;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 10;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 10;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.lang.Object city_ = "";
/**
* string city = 11;
* @return The city.
*/
public java.lang.String getCity() {
java.lang.Object ref = city_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
city_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string city = 11;
* @return The bytes for city.
*/
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
city_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string city = 11;
* @param value The city to set.
* @return This builder for chaining.
*/
public Builder setCity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
city_ = value;
onChanged();
return this;
}
/**
* string city = 11;
* @return This builder for chaining.
*/
public Builder clearCity() {
city_ = getDefaultInstance().getCity();
onChanged();
return this;
}
/**
* string city = 11;
* @param value The bytes for city to set.
* @return This builder for chaining.
*/
public Builder setCityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
city_ = value;
onChanged();
return this;
}
private java.lang.Object country_ = "";
/**
* string country = 12;
* @return The country.
*/
public java.lang.String getCountry() {
java.lang.Object ref = country_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
country_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string country = 12;
* @return The bytes for country.
*/
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string country = 12;
* @param value The country to set.
* @return This builder for chaining.
*/
public Builder setCountry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
country_ = value;
onChanged();
return this;
}
/**
* string country = 12;
* @return This builder for chaining.
*/
public Builder clearCountry() {
country_ = getDefaultInstance().getCountry();
onChanged();
return this;
}
/**
* string country = 12;
* @param value The bytes for country to set.
* @return This builder for chaining.
*/
public Builder setCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
country_ = value;
onChanged();
return this;
}
private java.lang.Object email_ = "";
/**
* string email = 13;
* @return The email.
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string email = 13;
* @return The bytes for email.
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string email = 13;
* @param value The email to set.
* @return This builder for chaining.
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
email_ = value;
onChanged();
return this;
}
/**
* string email = 13;
* @return This builder for chaining.
*/
public Builder clearEmail() {
email_ = getDefaultInstance().getEmail();
onChanged();
return this;
}
/**
* string email = 13;
* @param value The bytes for email to set.
* @return This builder for chaining.
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
email_ = value;
onChanged();
return this;
}
private java.lang.Object telefax_ = "";
/**
* string telefax = 14;
* @return The telefax.
*/
public java.lang.String getTelefax() {
java.lang.Object ref = telefax_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telefax_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string telefax = 14;
* @return The bytes for telefax.
*/
public com.google.protobuf.ByteString
getTelefaxBytes() {
java.lang.Object ref = telefax_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telefax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string telefax = 14;
* @param value The telefax to set.
* @return This builder for chaining.
*/
public Builder setTelefax(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
telefax_ = value;
onChanged();
return this;
}
/**
* string telefax = 14;
* @return This builder for chaining.
*/
public Builder clearTelefax() {
telefax_ = getDefaultInstance().getTelefax();
onChanged();
return this;
}
/**
* string telefax = 14;
* @param value The bytes for telefax to set.
* @return This builder for chaining.
*/
public Builder setTelefaxBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
telefax_ = value;
onChanged();
return this;
}
private java.lang.Object telephone_ = "";
/**
* string telephone = 15;
* @return The telephone.
*/
public java.lang.String getTelephone() {
java.lang.Object ref = telephone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telephone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string telephone = 15;
* @return The bytes for telephone.
*/
public com.google.protobuf.ByteString
getTelephoneBytes() {
java.lang.Object ref = telephone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telephone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string telephone = 15;
* @param value The telephone to set.
* @return This builder for chaining.
*/
public Builder setTelephone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
telephone_ = value;
onChanged();
return this;
}
/**
* string telephone = 15;
* @return This builder for chaining.
*/
public Builder clearTelephone() {
telephone_ = getDefaultInstance().getTelephone();
onChanged();
return this;
}
/**
* string telephone = 15;
* @param value The bytes for telephone to set.
* @return This builder for chaining.
*/
public Builder setTelephoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
telephone_ = value;
onChanged();
return this;
}
private java.lang.Object website_ = "";
/**
* string website = 16;
* @return The website.
*/
public java.lang.String getWebsite() {
java.lang.Object ref = website_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
website_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string website = 16;
* @return The bytes for website.
*/
public com.google.protobuf.ByteString
getWebsiteBytes() {
java.lang.Object ref = website_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
website_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string website = 16;
* @param value The website to set.
* @return This builder for chaining.
*/
public Builder setWebsite(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
website_ = value;
onChanged();
return this;
}
/**
* string website = 16;
* @return This builder for chaining.
*/
public Builder clearWebsite() {
website_ = getDefaultInstance().getWebsite();
onChanged();
return this;
}
/**
* string website = 16;
* @param value The bytes for website to set.
* @return This builder for chaining.
*/
public Builder setWebsiteBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
website_ = value;
onChanged();
return this;
}
private java.lang.Object zipCode_ = "";
/**
* string zip_code = 17;
* @return The zipCode.
*/
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zipCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string zip_code = 17;
* @return The bytes for zipCode.
*/
public com.google.protobuf.ByteString
getZipCodeBytes() {
java.lang.Object ref = zipCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zipCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string zip_code = 17;
* @param value The zipCode to set.
* @return This builder for chaining.
*/
public Builder setZipCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zipCode_ = value;
onChanged();
return this;
}
/**
* string zip_code = 17;
* @return This builder for chaining.
*/
public Builder clearZipCode() {
zipCode_ = getDefaultInstance().getZipCode();
onChanged();
return this;
}
/**
* string zip_code = 17;
* @param value The bytes for zipCode to set.
* @return This builder for chaining.
*/
public Builder setZipCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zipCode_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protolca.ProtoActor)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoActor)
private static final org.openlca.proto.ProtoActor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoActor();
}
public static org.openlca.proto.ProtoActor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoActor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoActor(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.openlca.proto.ProtoActor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy