org.openlca.proto.ProtoProcess Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
* Protobuf type {@code protolca.ProtoProcess}
*/
public final class ProtoProcess extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoProcess)
ProtoProcessOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoProcess.newBuilder() to construct.
private ProtoProcess(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoProcess() {
id_ = "";
name_ = "";
description_ = "";
version_ = "";
lastChange_ = "";
type_ = 0;
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
library_ = "";
allocationFactors_ = java.util.Collections.emptyList();
defaultAllocationMethod_ = 0;
exchanges_ = java.util.Collections.emptyList();
parameters_ = java.util.Collections.emptyList();
processType_ = 0;
dqEntry_ = "";
socialAspects_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoProcess();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoProcess(
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: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
allocationFactors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
allocationFactors_.add(
input.readMessage(org.openlca.proto.ProtoAllocationFactor.parser(), extensionRegistry));
break;
}
case 88: {
int rawValue = input.readEnum();
defaultAllocationMethod_ = rawValue;
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
exchanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
exchanges_.add(
input.readMessage(org.openlca.proto.ProtoExchange.parser(), extensionRegistry));
break;
}
case 104: {
lastInternalId_ = input.readInt32();
break;
}
case 114: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (location_ != null) {
subBuilder = location_.toBuilder();
}
location_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(location_);
location_ = subBuilder.buildPartial();
}
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
parameters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
parameters_.add(
input.readMessage(org.openlca.proto.ProtoParameter.parser(), extensionRegistry));
break;
}
case 130: {
org.openlca.proto.ProtoProcessDocumentation.Builder subBuilder = null;
if (processDocumentation_ != null) {
subBuilder = processDocumentation_.toBuilder();
}
processDocumentation_ = input.readMessage(org.openlca.proto.ProtoProcessDocumentation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(processDocumentation_);
processDocumentation_ = subBuilder.buildPartial();
}
break;
}
case 136: {
int rawValue = input.readEnum();
processType_ = rawValue;
break;
}
case 146: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (dqSystem_ != null) {
subBuilder = dqSystem_.toBuilder();
}
dqSystem_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dqSystem_);
dqSystem_ = subBuilder.buildPartial();
}
break;
}
case 154: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (exchangeDqSystem_ != null) {
subBuilder = exchangeDqSystem_.toBuilder();
}
exchangeDqSystem_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exchangeDqSystem_);
exchangeDqSystem_ = subBuilder.buildPartial();
}
break;
}
case 162: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (socialDqSystem_ != null) {
subBuilder = socialDqSystem_.toBuilder();
}
socialDqSystem_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(socialDqSystem_);
socialDqSystem_ = subBuilder.buildPartial();
}
break;
}
case 170: {
java.lang.String s = input.readStringRequireUtf8();
dqEntry_ = s;
break;
}
case 176: {
infrastructureProcess_ = input.readBool();
break;
}
case 186: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
socialAspects_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
socialAspects_.add(
input.readMessage(org.openlca.proto.ProtoSocialAspect.parser(), extensionRegistry));
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();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
allocationFactors_ = java.util.Collections.unmodifiableList(allocationFactors_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
socialAspects_ = java.util.Collections.unmodifiableList(socialAspects_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcess_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcess_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoProcess.class, org.openlca.proto.ProtoProcess.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 ALLOCATION_FACTORS_FIELD_NUMBER = 10;
private java.util.List allocationFactors_;
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
@java.lang.Override
public java.util.List getAllocationFactorsList() {
return allocationFactors_;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoAllocationFactorOrBuilder>
getAllocationFactorsOrBuilderList() {
return allocationFactors_;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
@java.lang.Override
public int getAllocationFactorsCount() {
return allocationFactors_.size();
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
@java.lang.Override
public org.openlca.proto.ProtoAllocationFactor getAllocationFactors(int index) {
return allocationFactors_.get(index);
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
@java.lang.Override
public org.openlca.proto.ProtoAllocationFactorOrBuilder getAllocationFactorsOrBuilder(
int index) {
return allocationFactors_.get(index);
}
public static final int DEFAULT_ALLOCATION_METHOD_FIELD_NUMBER = 11;
private int defaultAllocationMethod_;
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @return The enum numeric value on the wire for defaultAllocationMethod.
*/
@java.lang.Override public int getDefaultAllocationMethodValue() {
return defaultAllocationMethod_;
}
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @return The defaultAllocationMethod.
*/
@java.lang.Override public org.openlca.proto.ProtoAllocationType getDefaultAllocationMethod() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoAllocationType result = org.openlca.proto.ProtoAllocationType.valueOf(defaultAllocationMethod_);
return result == null ? org.openlca.proto.ProtoAllocationType.UNRECOGNIZED : result;
}
public static final int EXCHANGES_FIELD_NUMBER = 12;
private java.util.List exchanges_;
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
@java.lang.Override
public java.util.List getExchangesList() {
return exchanges_;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoExchangeOrBuilder>
getExchangesOrBuilderList() {
return exchanges_;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
@java.lang.Override
public int getExchangesCount() {
return exchanges_.size();
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
@java.lang.Override
public org.openlca.proto.ProtoExchange getExchanges(int index) {
return exchanges_.get(index);
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
@java.lang.Override
public org.openlca.proto.ProtoExchangeOrBuilder getExchangesOrBuilder(
int index) {
return exchanges_.get(index);
}
public static final int LAST_INTERNAL_ID_FIELD_NUMBER = 13;
private int lastInternalId_;
/**
*
* This field holds the last internal ID that was used in an exchange (which
* may have been deleted, so it can be larger than the largest internal ID of
* the exchanges of the process.) The internal ID of an exchange is used to
* identify exchanges within a process (for updates, data exchanges (see
* process links), etc.). When you add an exchange to a process, you should
* increment this field in the process and set the resulting value as the
* internal ID of that exchange. The sequence of internal IDs should start
* with `1`.
*
*
* int32 last_internal_id = 13;
* @return The lastInternalId.
*/
@java.lang.Override
public int getLastInternalId() {
return lastInternalId_;
}
public static final int LOCATION_FIELD_NUMBER = 14;
private org.openlca.proto.ProtoRef location_;
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return location_ != null;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
* @return The location.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getLocation() {
return location_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : location_;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getLocationOrBuilder() {
return getLocation();
}
public static final int PARAMETERS_FIELD_NUMBER = 15;
private java.util.List parameters_;
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
@java.lang.Override
public java.util.List getParametersList() {
return parameters_;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoParameterOrBuilder>
getParametersOrBuilderList() {
return parameters_;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
@java.lang.Override
public int getParametersCount() {
return parameters_.size();
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
@java.lang.Override
public org.openlca.proto.ProtoParameter getParameters(int index) {
return parameters_.get(index);
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
@java.lang.Override
public org.openlca.proto.ProtoParameterOrBuilder getParametersOrBuilder(
int index) {
return parameters_.get(index);
}
public static final int PROCESS_DOCUMENTATION_FIELD_NUMBER = 16;
private org.openlca.proto.ProtoProcessDocumentation processDocumentation_;
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
* @return Whether the processDocumentation field is set.
*/
@java.lang.Override
public boolean hasProcessDocumentation() {
return processDocumentation_ != null;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
* @return The processDocumentation.
*/
@java.lang.Override
public org.openlca.proto.ProtoProcessDocumentation getProcessDocumentation() {
return processDocumentation_ == null ? org.openlca.proto.ProtoProcessDocumentation.getDefaultInstance() : processDocumentation_;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
@java.lang.Override
public org.openlca.proto.ProtoProcessDocumentationOrBuilder getProcessDocumentationOrBuilder() {
return getProcessDocumentation();
}
public static final int PROCESS_TYPE_FIELD_NUMBER = 17;
private int processType_;
/**
* .protolca.ProtoProcessType process_type = 17;
* @return The enum numeric value on the wire for processType.
*/
@java.lang.Override public int getProcessTypeValue() {
return processType_;
}
/**
* .protolca.ProtoProcessType process_type = 17;
* @return The processType.
*/
@java.lang.Override public org.openlca.proto.ProtoProcessType getProcessType() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoProcessType result = org.openlca.proto.ProtoProcessType.valueOf(processType_);
return result == null ? org.openlca.proto.ProtoProcessType.UNRECOGNIZED : result;
}
public static final int DQ_SYSTEM_FIELD_NUMBER = 18;
private org.openlca.proto.ProtoRef dqSystem_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
* @return Whether the dqSystem field is set.
*/
@java.lang.Override
public boolean hasDqSystem() {
return dqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
* @return The dqSystem.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getDqSystem() {
return dqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : dqSystem_;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getDqSystemOrBuilder() {
return getDqSystem();
}
public static final int EXCHANGE_DQ_SYSTEM_FIELD_NUMBER = 19;
private org.openlca.proto.ProtoRef exchangeDqSystem_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
* @return Whether the exchangeDqSystem field is set.
*/
@java.lang.Override
public boolean hasExchangeDqSystem() {
return exchangeDqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
* @return The exchangeDqSystem.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getExchangeDqSystem() {
return exchangeDqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : exchangeDqSystem_;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getExchangeDqSystemOrBuilder() {
return getExchangeDqSystem();
}
public static final int SOCIAL_DQ_SYSTEM_FIELD_NUMBER = 20;
private org.openlca.proto.ProtoRef socialDqSystem_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
* @return Whether the socialDqSystem field is set.
*/
@java.lang.Override
public boolean hasSocialDqSystem() {
return socialDqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
* @return The socialDqSystem.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getSocialDqSystem() {
return socialDqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : socialDqSystem_;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getSocialDqSystemOrBuilder() {
return getSocialDqSystem();
}
public static final int DQ_ENTRY_FIELD_NUMBER = 21;
private volatile java.lang.Object dqEntry_;
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @return The dqEntry.
*/
@java.lang.Override
public java.lang.String getDqEntry() {
java.lang.Object ref = dqEntry_;
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();
dqEntry_ = s;
return s;
}
}
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @return The bytes for dqEntry.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDqEntryBytes() {
java.lang.Object ref = dqEntry_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dqEntry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFRASTRUCTURE_PROCESS_FIELD_NUMBER = 22;
private boolean infrastructureProcess_;
/**
*
* Indicates whether this process describes an infrastructure process. This
* field is part of the openLCA schema because of backward compatibility with
* EcoSpold 1. It does not really have a meaning in openLCA and should not be
* used anymore.
*
*
* bool infrastructure_process = 22;
* @return The infrastructureProcess.
*/
@java.lang.Override
public boolean getInfrastructureProcess() {
return infrastructureProcess_;
}
public static final int SOCIAL_ASPECTS_FIELD_NUMBER = 23;
private java.util.List socialAspects_;
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
@java.lang.Override
public java.util.List getSocialAspectsList() {
return socialAspects_;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoSocialAspectOrBuilder>
getSocialAspectsOrBuilderList() {
return socialAspects_;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
@java.lang.Override
public int getSocialAspectsCount() {
return socialAspects_.size();
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
@java.lang.Override
public org.openlca.proto.ProtoSocialAspect getSocialAspects(int index) {
return socialAspects_.get(index);
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
@java.lang.Override
public org.openlca.proto.ProtoSocialAspectOrBuilder getSocialAspectsOrBuilder(
int index) {
return socialAspects_.get(index);
}
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_);
}
for (int i = 0; i < allocationFactors_.size(); i++) {
output.writeMessage(10, allocationFactors_.get(i));
}
if (defaultAllocationMethod_ != org.openlca.proto.ProtoAllocationType.UNDEFINED_ALLOCATION_TYPE.getNumber()) {
output.writeEnum(11, defaultAllocationMethod_);
}
for (int i = 0; i < exchanges_.size(); i++) {
output.writeMessage(12, exchanges_.get(i));
}
if (lastInternalId_ != 0) {
output.writeInt32(13, lastInternalId_);
}
if (location_ != null) {
output.writeMessage(14, getLocation());
}
for (int i = 0; i < parameters_.size(); i++) {
output.writeMessage(15, parameters_.get(i));
}
if (processDocumentation_ != null) {
output.writeMessage(16, getProcessDocumentation());
}
if (processType_ != org.openlca.proto.ProtoProcessType.UNDEFINED_PROCESS_TYPE.getNumber()) {
output.writeEnum(17, processType_);
}
if (dqSystem_ != null) {
output.writeMessage(18, getDqSystem());
}
if (exchangeDqSystem_ != null) {
output.writeMessage(19, getExchangeDqSystem());
}
if (socialDqSystem_ != null) {
output.writeMessage(20, getSocialDqSystem());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dqEntry_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 21, dqEntry_);
}
if (infrastructureProcess_ != false) {
output.writeBool(22, infrastructureProcess_);
}
for (int i = 0; i < socialAspects_.size(); i++) {
output.writeMessage(23, socialAspects_.get(i));
}
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_);
}
for (int i = 0; i < allocationFactors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, allocationFactors_.get(i));
}
if (defaultAllocationMethod_ != org.openlca.proto.ProtoAllocationType.UNDEFINED_ALLOCATION_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, defaultAllocationMethod_);
}
for (int i = 0; i < exchanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, exchanges_.get(i));
}
if (lastInternalId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, lastInternalId_);
}
if (location_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getLocation());
}
for (int i = 0; i < parameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, parameters_.get(i));
}
if (processDocumentation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getProcessDocumentation());
}
if (processType_ != org.openlca.proto.ProtoProcessType.UNDEFINED_PROCESS_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, processType_);
}
if (dqSystem_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getDqSystem());
}
if (exchangeDqSystem_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getExchangeDqSystem());
}
if (socialDqSystem_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getSocialDqSystem());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dqEntry_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, dqEntry_);
}
if (infrastructureProcess_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(22, infrastructureProcess_);
}
for (int i = 0; i < socialAspects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, socialAspects_.get(i));
}
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.ProtoProcess)) {
return super.equals(obj);
}
org.openlca.proto.ProtoProcess other = (org.openlca.proto.ProtoProcess) 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 (!getAllocationFactorsList()
.equals(other.getAllocationFactorsList())) return false;
if (defaultAllocationMethod_ != other.defaultAllocationMethod_) return false;
if (!getExchangesList()
.equals(other.getExchangesList())) return false;
if (getLastInternalId()
!= other.getLastInternalId()) return false;
if (hasLocation() != other.hasLocation()) return false;
if (hasLocation()) {
if (!getLocation()
.equals(other.getLocation())) return false;
}
if (!getParametersList()
.equals(other.getParametersList())) return false;
if (hasProcessDocumentation() != other.hasProcessDocumentation()) return false;
if (hasProcessDocumentation()) {
if (!getProcessDocumentation()
.equals(other.getProcessDocumentation())) return false;
}
if (processType_ != other.processType_) return false;
if (hasDqSystem() != other.hasDqSystem()) return false;
if (hasDqSystem()) {
if (!getDqSystem()
.equals(other.getDqSystem())) return false;
}
if (hasExchangeDqSystem() != other.hasExchangeDqSystem()) return false;
if (hasExchangeDqSystem()) {
if (!getExchangeDqSystem()
.equals(other.getExchangeDqSystem())) return false;
}
if (hasSocialDqSystem() != other.hasSocialDqSystem()) return false;
if (hasSocialDqSystem()) {
if (!getSocialDqSystem()
.equals(other.getSocialDqSystem())) return false;
}
if (!getDqEntry()
.equals(other.getDqEntry())) return false;
if (getInfrastructureProcess()
!= other.getInfrastructureProcess()) return false;
if (!getSocialAspectsList()
.equals(other.getSocialAspectsList())) 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();
if (getAllocationFactorsCount() > 0) {
hash = (37 * hash) + ALLOCATION_FACTORS_FIELD_NUMBER;
hash = (53 * hash) + getAllocationFactorsList().hashCode();
}
hash = (37 * hash) + DEFAULT_ALLOCATION_METHOD_FIELD_NUMBER;
hash = (53 * hash) + defaultAllocationMethod_;
if (getExchangesCount() > 0) {
hash = (37 * hash) + EXCHANGES_FIELD_NUMBER;
hash = (53 * hash) + getExchangesList().hashCode();
}
hash = (37 * hash) + LAST_INTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getLastInternalId();
if (hasLocation()) {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
}
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
if (hasProcessDocumentation()) {
hash = (37 * hash) + PROCESS_DOCUMENTATION_FIELD_NUMBER;
hash = (53 * hash) + getProcessDocumentation().hashCode();
}
hash = (37 * hash) + PROCESS_TYPE_FIELD_NUMBER;
hash = (53 * hash) + processType_;
if (hasDqSystem()) {
hash = (37 * hash) + DQ_SYSTEM_FIELD_NUMBER;
hash = (53 * hash) + getDqSystem().hashCode();
}
if (hasExchangeDqSystem()) {
hash = (37 * hash) + EXCHANGE_DQ_SYSTEM_FIELD_NUMBER;
hash = (53 * hash) + getExchangeDqSystem().hashCode();
}
if (hasSocialDqSystem()) {
hash = (37 * hash) + SOCIAL_DQ_SYSTEM_FIELD_NUMBER;
hash = (53 * hash) + getSocialDqSystem().hashCode();
}
hash = (37 * hash) + DQ_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getDqEntry().hashCode();
hash = (37 * hash) + INFRASTRUCTURE_PROCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInfrastructureProcess());
if (getSocialAspectsCount() > 0) {
hash = (37 * hash) + SOCIAL_ASPECTS_FIELD_NUMBER;
hash = (53 * hash) + getSocialAspectsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoProcess parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcess 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.ProtoProcess parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcess 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.ProtoProcess parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcess parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoProcess parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcess 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.ProtoProcess parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcess 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.ProtoProcess parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcess 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.ProtoProcess 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;
}
/**
* Protobuf type {@code protolca.ProtoProcess}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoProcess)
org.openlca.proto.ProtoProcessOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcess_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcess_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoProcess.class, org.openlca.proto.ProtoProcess.Builder.class);
}
// Construct using org.openlca.proto.ProtoProcess.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAllocationFactorsFieldBuilder();
getExchangesFieldBuilder();
getParametersFieldBuilder();
getSocialAspectsFieldBuilder();
}
}
@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_ = "";
if (allocationFactorsBuilder_ == null) {
allocationFactors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
allocationFactorsBuilder_.clear();
}
defaultAllocationMethod_ = 0;
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
exchangesBuilder_.clear();
}
lastInternalId_ = 0;
if (locationBuilder_ == null) {
location_ = null;
} else {
location_ = null;
locationBuilder_ = null;
}
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
parametersBuilder_.clear();
}
if (processDocumentationBuilder_ == null) {
processDocumentation_ = null;
} else {
processDocumentation_ = null;
processDocumentationBuilder_ = null;
}
processType_ = 0;
if (dqSystemBuilder_ == null) {
dqSystem_ = null;
} else {
dqSystem_ = null;
dqSystemBuilder_ = null;
}
if (exchangeDqSystemBuilder_ == null) {
exchangeDqSystem_ = null;
} else {
exchangeDqSystem_ = null;
exchangeDqSystemBuilder_ = null;
}
if (socialDqSystemBuilder_ == null) {
socialDqSystem_ = null;
} else {
socialDqSystem_ = null;
socialDqSystemBuilder_ = null;
}
dqEntry_ = "";
infrastructureProcess_ = false;
if (socialAspectsBuilder_ == null) {
socialAspects_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
socialAspectsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcess_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoProcess getDefaultInstanceForType() {
return org.openlca.proto.ProtoProcess.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoProcess build() {
org.openlca.proto.ProtoProcess result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoProcess buildPartial() {
org.openlca.proto.ProtoProcess result = new org.openlca.proto.ProtoProcess(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_;
if (allocationFactorsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
allocationFactors_ = java.util.Collections.unmodifiableList(allocationFactors_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.allocationFactors_ = allocationFactors_;
} else {
result.allocationFactors_ = allocationFactorsBuilder_.build();
}
result.defaultAllocationMethod_ = defaultAllocationMethod_;
if (exchangesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.exchanges_ = exchanges_;
} else {
result.exchanges_ = exchangesBuilder_.build();
}
result.lastInternalId_ = lastInternalId_;
if (locationBuilder_ == null) {
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.build();
}
if (processDocumentationBuilder_ == null) {
result.processDocumentation_ = processDocumentation_;
} else {
result.processDocumentation_ = processDocumentationBuilder_.build();
}
result.processType_ = processType_;
if (dqSystemBuilder_ == null) {
result.dqSystem_ = dqSystem_;
} else {
result.dqSystem_ = dqSystemBuilder_.build();
}
if (exchangeDqSystemBuilder_ == null) {
result.exchangeDqSystem_ = exchangeDqSystem_;
} else {
result.exchangeDqSystem_ = exchangeDqSystemBuilder_.build();
}
if (socialDqSystemBuilder_ == null) {
result.socialDqSystem_ = socialDqSystem_;
} else {
result.socialDqSystem_ = socialDqSystemBuilder_.build();
}
result.dqEntry_ = dqEntry_;
result.infrastructureProcess_ = infrastructureProcess_;
if (socialAspectsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
socialAspects_ = java.util.Collections.unmodifiableList(socialAspects_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.socialAspects_ = socialAspects_;
} else {
result.socialAspects_ = socialAspectsBuilder_.build();
}
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.ProtoProcess) {
return mergeFrom((org.openlca.proto.ProtoProcess)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoProcess other) {
if (other == org.openlca.proto.ProtoProcess.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 (allocationFactorsBuilder_ == null) {
if (!other.allocationFactors_.isEmpty()) {
if (allocationFactors_.isEmpty()) {
allocationFactors_ = other.allocationFactors_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAllocationFactorsIsMutable();
allocationFactors_.addAll(other.allocationFactors_);
}
onChanged();
}
} else {
if (!other.allocationFactors_.isEmpty()) {
if (allocationFactorsBuilder_.isEmpty()) {
allocationFactorsBuilder_.dispose();
allocationFactorsBuilder_ = null;
allocationFactors_ = other.allocationFactors_;
bitField0_ = (bitField0_ & ~0x00000002);
allocationFactorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAllocationFactorsFieldBuilder() : null;
} else {
allocationFactorsBuilder_.addAllMessages(other.allocationFactors_);
}
}
}
if (other.defaultAllocationMethod_ != 0) {
setDefaultAllocationMethodValue(other.getDefaultAllocationMethodValue());
}
if (exchangesBuilder_ == null) {
if (!other.exchanges_.isEmpty()) {
if (exchanges_.isEmpty()) {
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExchangesIsMutable();
exchanges_.addAll(other.exchanges_);
}
onChanged();
}
} else {
if (!other.exchanges_.isEmpty()) {
if (exchangesBuilder_.isEmpty()) {
exchangesBuilder_.dispose();
exchangesBuilder_ = null;
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000004);
exchangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExchangesFieldBuilder() : null;
} else {
exchangesBuilder_.addAllMessages(other.exchanges_);
}
}
}
if (other.getLastInternalId() != 0) {
setLastInternalId(other.getLastInternalId());
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
if (parametersBuilder_ == null) {
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
} else {
if (!other.parameters_.isEmpty()) {
if (parametersBuilder_.isEmpty()) {
parametersBuilder_.dispose();
parametersBuilder_ = null;
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000008);
parametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParametersFieldBuilder() : null;
} else {
parametersBuilder_.addAllMessages(other.parameters_);
}
}
}
if (other.hasProcessDocumentation()) {
mergeProcessDocumentation(other.getProcessDocumentation());
}
if (other.processType_ != 0) {
setProcessTypeValue(other.getProcessTypeValue());
}
if (other.hasDqSystem()) {
mergeDqSystem(other.getDqSystem());
}
if (other.hasExchangeDqSystem()) {
mergeExchangeDqSystem(other.getExchangeDqSystem());
}
if (other.hasSocialDqSystem()) {
mergeSocialDqSystem(other.getSocialDqSystem());
}
if (!other.getDqEntry().isEmpty()) {
dqEntry_ = other.dqEntry_;
onChanged();
}
if (other.getInfrastructureProcess() != false) {
setInfrastructureProcess(other.getInfrastructureProcess());
}
if (socialAspectsBuilder_ == null) {
if (!other.socialAspects_.isEmpty()) {
if (socialAspects_.isEmpty()) {
socialAspects_ = other.socialAspects_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSocialAspectsIsMutable();
socialAspects_.addAll(other.socialAspects_);
}
onChanged();
}
} else {
if (!other.socialAspects_.isEmpty()) {
if (socialAspectsBuilder_.isEmpty()) {
socialAspectsBuilder_.dispose();
socialAspectsBuilder_ = null;
socialAspects_ = other.socialAspects_;
bitField0_ = (bitField0_ & ~0x00000010);
socialAspectsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSocialAspectsFieldBuilder() : null;
} else {
socialAspectsBuilder_.addAllMessages(other.socialAspects_);
}
}
}
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.ProtoProcess parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoProcess) 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.util.List allocationFactors_ =
java.util.Collections.emptyList();
private void ensureAllocationFactorsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
allocationFactors_ = new java.util.ArrayList(allocationFactors_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoAllocationFactor, org.openlca.proto.ProtoAllocationFactor.Builder, org.openlca.proto.ProtoAllocationFactorOrBuilder> allocationFactorsBuilder_;
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public java.util.List getAllocationFactorsList() {
if (allocationFactorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(allocationFactors_);
} else {
return allocationFactorsBuilder_.getMessageList();
}
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public int getAllocationFactorsCount() {
if (allocationFactorsBuilder_ == null) {
return allocationFactors_.size();
} else {
return allocationFactorsBuilder_.getCount();
}
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public org.openlca.proto.ProtoAllocationFactor getAllocationFactors(int index) {
if (allocationFactorsBuilder_ == null) {
return allocationFactors_.get(index);
} else {
return allocationFactorsBuilder_.getMessage(index);
}
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder setAllocationFactors(
int index, org.openlca.proto.ProtoAllocationFactor value) {
if (allocationFactorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationFactorsIsMutable();
allocationFactors_.set(index, value);
onChanged();
} else {
allocationFactorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder setAllocationFactors(
int index, org.openlca.proto.ProtoAllocationFactor.Builder builderForValue) {
if (allocationFactorsBuilder_ == null) {
ensureAllocationFactorsIsMutable();
allocationFactors_.set(index, builderForValue.build());
onChanged();
} else {
allocationFactorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder addAllocationFactors(org.openlca.proto.ProtoAllocationFactor value) {
if (allocationFactorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationFactorsIsMutable();
allocationFactors_.add(value);
onChanged();
} else {
allocationFactorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder addAllocationFactors(
int index, org.openlca.proto.ProtoAllocationFactor value) {
if (allocationFactorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationFactorsIsMutable();
allocationFactors_.add(index, value);
onChanged();
} else {
allocationFactorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder addAllocationFactors(
org.openlca.proto.ProtoAllocationFactor.Builder builderForValue) {
if (allocationFactorsBuilder_ == null) {
ensureAllocationFactorsIsMutable();
allocationFactors_.add(builderForValue.build());
onChanged();
} else {
allocationFactorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder addAllocationFactors(
int index, org.openlca.proto.ProtoAllocationFactor.Builder builderForValue) {
if (allocationFactorsBuilder_ == null) {
ensureAllocationFactorsIsMutable();
allocationFactors_.add(index, builderForValue.build());
onChanged();
} else {
allocationFactorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder addAllAllocationFactors(
java.lang.Iterable extends org.openlca.proto.ProtoAllocationFactor> values) {
if (allocationFactorsBuilder_ == null) {
ensureAllocationFactorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allocationFactors_);
onChanged();
} else {
allocationFactorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder clearAllocationFactors() {
if (allocationFactorsBuilder_ == null) {
allocationFactors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
allocationFactorsBuilder_.clear();
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public Builder removeAllocationFactors(int index) {
if (allocationFactorsBuilder_ == null) {
ensureAllocationFactorsIsMutable();
allocationFactors_.remove(index);
onChanged();
} else {
allocationFactorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public org.openlca.proto.ProtoAllocationFactor.Builder getAllocationFactorsBuilder(
int index) {
return getAllocationFactorsFieldBuilder().getBuilder(index);
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public org.openlca.proto.ProtoAllocationFactorOrBuilder getAllocationFactorsOrBuilder(
int index) {
if (allocationFactorsBuilder_ == null) {
return allocationFactors_.get(index); } else {
return allocationFactorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public java.util.List extends org.openlca.proto.ProtoAllocationFactorOrBuilder>
getAllocationFactorsOrBuilderList() {
if (allocationFactorsBuilder_ != null) {
return allocationFactorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(allocationFactors_);
}
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public org.openlca.proto.ProtoAllocationFactor.Builder addAllocationFactorsBuilder() {
return getAllocationFactorsFieldBuilder().addBuilder(
org.openlca.proto.ProtoAllocationFactor.getDefaultInstance());
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public org.openlca.proto.ProtoAllocationFactor.Builder addAllocationFactorsBuilder(
int index) {
return getAllocationFactorsFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoAllocationFactor.getDefaultInstance());
}
/**
* repeated .protolca.ProtoAllocationFactor allocation_factors = 10;
*/
public java.util.List
getAllocationFactorsBuilderList() {
return getAllocationFactorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoAllocationFactor, org.openlca.proto.ProtoAllocationFactor.Builder, org.openlca.proto.ProtoAllocationFactorOrBuilder>
getAllocationFactorsFieldBuilder() {
if (allocationFactorsBuilder_ == null) {
allocationFactorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoAllocationFactor, org.openlca.proto.ProtoAllocationFactor.Builder, org.openlca.proto.ProtoAllocationFactorOrBuilder>(
allocationFactors_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
allocationFactors_ = null;
}
return allocationFactorsBuilder_;
}
private int defaultAllocationMethod_ = 0;
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @return The enum numeric value on the wire for defaultAllocationMethod.
*/
@java.lang.Override public int getDefaultAllocationMethodValue() {
return defaultAllocationMethod_;
}
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @param value The enum numeric value on the wire for defaultAllocationMethod to set.
* @return This builder for chaining.
*/
public Builder setDefaultAllocationMethodValue(int value) {
defaultAllocationMethod_ = value;
onChanged();
return this;
}
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @return The defaultAllocationMethod.
*/
@java.lang.Override
public org.openlca.proto.ProtoAllocationType getDefaultAllocationMethod() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoAllocationType result = org.openlca.proto.ProtoAllocationType.valueOf(defaultAllocationMethod_);
return result == null ? org.openlca.proto.ProtoAllocationType.UNRECOGNIZED : result;
}
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @param value The defaultAllocationMethod to set.
* @return This builder for chaining.
*/
public Builder setDefaultAllocationMethod(org.openlca.proto.ProtoAllocationType value) {
if (value == null) {
throw new NullPointerException();
}
defaultAllocationMethod_ = value.getNumber();
onChanged();
return this;
}
/**
* .protolca.ProtoAllocationType default_allocation_method = 11;
* @return This builder for chaining.
*/
public Builder clearDefaultAllocationMethod() {
defaultAllocationMethod_ = 0;
onChanged();
return this;
}
private java.util.List exchanges_ =
java.util.Collections.emptyList();
private void ensureExchangesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
exchanges_ = new java.util.ArrayList(exchanges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoExchange, org.openlca.proto.ProtoExchange.Builder, org.openlca.proto.ProtoExchangeOrBuilder> exchangesBuilder_;
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public java.util.List getExchangesList() {
if (exchangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(exchanges_);
} else {
return exchangesBuilder_.getMessageList();
}
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public int getExchangesCount() {
if (exchangesBuilder_ == null) {
return exchanges_.size();
} else {
return exchangesBuilder_.getCount();
}
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public org.openlca.proto.ProtoExchange getExchanges(int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index);
} else {
return exchangesBuilder_.getMessage(index);
}
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder setExchanges(
int index, org.openlca.proto.ProtoExchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.set(index, value);
onChanged();
} else {
exchangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder setExchanges(
int index, org.openlca.proto.ProtoExchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.set(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder addExchanges(org.openlca.proto.ProtoExchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(value);
onChanged();
} else {
exchangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder addExchanges(
int index, org.openlca.proto.ProtoExchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(index, value);
onChanged();
} else {
exchangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder addExchanges(
org.openlca.proto.ProtoExchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder addExchanges(
int index, org.openlca.proto.ProtoExchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder addAllExchanges(
java.lang.Iterable extends org.openlca.proto.ProtoExchange> values) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, exchanges_);
onChanged();
} else {
exchangesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder clearExchanges() {
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
exchangesBuilder_.clear();
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public Builder removeExchanges(int index) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.remove(index);
onChanged();
} else {
exchangesBuilder_.remove(index);
}
return this;
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public org.openlca.proto.ProtoExchange.Builder getExchangesBuilder(
int index) {
return getExchangesFieldBuilder().getBuilder(index);
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public org.openlca.proto.ProtoExchangeOrBuilder getExchangesOrBuilder(
int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index); } else {
return exchangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public java.util.List extends org.openlca.proto.ProtoExchangeOrBuilder>
getExchangesOrBuilderList() {
if (exchangesBuilder_ != null) {
return exchangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(exchanges_);
}
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public org.openlca.proto.ProtoExchange.Builder addExchangesBuilder() {
return getExchangesFieldBuilder().addBuilder(
org.openlca.proto.ProtoExchange.getDefaultInstance());
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public org.openlca.proto.ProtoExchange.Builder addExchangesBuilder(
int index) {
return getExchangesFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoExchange.getDefaultInstance());
}
/**
*
* The inputs and outputs of the process.
*
*
* repeated .protolca.ProtoExchange exchanges = 12;
*/
public java.util.List
getExchangesBuilderList() {
return getExchangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoExchange, org.openlca.proto.ProtoExchange.Builder, org.openlca.proto.ProtoExchangeOrBuilder>
getExchangesFieldBuilder() {
if (exchangesBuilder_ == null) {
exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoExchange, org.openlca.proto.ProtoExchange.Builder, org.openlca.proto.ProtoExchangeOrBuilder>(
exchanges_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
exchanges_ = null;
}
return exchangesBuilder_;
}
private int lastInternalId_ ;
/**
*
* This field holds the last internal ID that was used in an exchange (which
* may have been deleted, so it can be larger than the largest internal ID of
* the exchanges of the process.) The internal ID of an exchange is used to
* identify exchanges within a process (for updates, data exchanges (see
* process links), etc.). When you add an exchange to a process, you should
* increment this field in the process and set the resulting value as the
* internal ID of that exchange. The sequence of internal IDs should start
* with `1`.
*
*
* int32 last_internal_id = 13;
* @return The lastInternalId.
*/
@java.lang.Override
public int getLastInternalId() {
return lastInternalId_;
}
/**
*
* This field holds the last internal ID that was used in an exchange (which
* may have been deleted, so it can be larger than the largest internal ID of
* the exchanges of the process.) The internal ID of an exchange is used to
* identify exchanges within a process (for updates, data exchanges (see
* process links), etc.). When you add an exchange to a process, you should
* increment this field in the process and set the resulting value as the
* internal ID of that exchange. The sequence of internal IDs should start
* with `1`.
*
*
* int32 last_internal_id = 13;
* @param value The lastInternalId to set.
* @return This builder for chaining.
*/
public Builder setLastInternalId(int value) {
lastInternalId_ = value;
onChanged();
return this;
}
/**
*
* This field holds the last internal ID that was used in an exchange (which
* may have been deleted, so it can be larger than the largest internal ID of
* the exchanges of the process.) The internal ID of an exchange is used to
* identify exchanges within a process (for updates, data exchanges (see
* process links), etc.). When you add an exchange to a process, you should
* increment this field in the process and set the resulting value as the
* internal ID of that exchange. The sequence of internal IDs should start
* with `1`.
*
*
* int32 last_internal_id = 13;
* @return This builder for chaining.
*/
public Builder clearLastInternalId() {
lastInternalId_ = 0;
onChanged();
return this;
}
private org.openlca.proto.ProtoRef location_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> locationBuilder_;
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
* @return Whether the location field is set.
*/
public boolean hasLocation() {
return locationBuilder_ != null || location_ != null;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
* @return The location.
*/
public org.openlca.proto.ProtoRef getLocation() {
if (locationBuilder_ == null) {
return location_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public Builder setLocation(org.openlca.proto.ProtoRef value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
return this;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public Builder setLocation(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public Builder mergeLocation(org.openlca.proto.ProtoRef value) {
if (locationBuilder_ == null) {
if (location_ != null) {
location_ =
org.openlca.proto.ProtoRef.newBuilder(location_).mergeFrom(value).buildPartial();
} else {
location_ = value;
}
onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = null;
onChanged();
} else {
location_ = null;
locationBuilder_ = null;
}
return this;
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public org.openlca.proto.ProtoRef.Builder getLocationBuilder() {
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
public org.openlca.proto.ProtoRefOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : location_;
}
}
/**
*
* The location of the process.
*
*
* .protolca.ProtoRef location = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getLocation(),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private java.util.List parameters_ =
java.util.Collections.emptyList();
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
parameters_ = new java.util.ArrayList(parameters_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoParameter, org.openlca.proto.ProtoParameter.Builder, org.openlca.proto.ProtoParameterOrBuilder> parametersBuilder_;
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public java.util.List getParametersList() {
if (parametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameters_);
} else {
return parametersBuilder_.getMessageList();
}
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public int getParametersCount() {
if (parametersBuilder_ == null) {
return parameters_.size();
} else {
return parametersBuilder_.getCount();
}
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public org.openlca.proto.ProtoParameter getParameters(int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index);
} else {
return parametersBuilder_.getMessage(index);
}
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder setParameters(
int index, org.openlca.proto.ProtoParameter value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
} else {
parametersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder setParameters(
int index, org.openlca.proto.ProtoParameter.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.set(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder addParameters(org.openlca.proto.ProtoParameter value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
} else {
parametersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder addParameters(
int index, org.openlca.proto.ProtoParameter value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(index, value);
onChanged();
} else {
parametersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder addParameters(
org.openlca.proto.ProtoParameter.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder addParameters(
int index, org.openlca.proto.ProtoParameter.Builder builderForValue) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.add(index, builderForValue.build());
onChanged();
} else {
parametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder addAllParameters(
java.lang.Iterable extends org.openlca.proto.ProtoParameter> values) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
} else {
parametersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
parametersBuilder_.clear();
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public Builder removeParameters(int index) {
if (parametersBuilder_ == null) {
ensureParametersIsMutable();
parameters_.remove(index);
onChanged();
} else {
parametersBuilder_.remove(index);
}
return this;
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public org.openlca.proto.ProtoParameter.Builder getParametersBuilder(
int index) {
return getParametersFieldBuilder().getBuilder(index);
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public org.openlca.proto.ProtoParameterOrBuilder getParametersOrBuilder(
int index) {
if (parametersBuilder_ == null) {
return parameters_.get(index); } else {
return parametersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public java.util.List extends org.openlca.proto.ProtoParameterOrBuilder>
getParametersOrBuilderList() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameters_);
}
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public org.openlca.proto.ProtoParameter.Builder addParametersBuilder() {
return getParametersFieldBuilder().addBuilder(
org.openlca.proto.ProtoParameter.getDefaultInstance());
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public org.openlca.proto.ProtoParameter.Builder addParametersBuilder(
int index) {
return getParametersFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoParameter.getDefaultInstance());
}
/**
* repeated .protolca.ProtoParameter parameters = 15;
*/
public java.util.List
getParametersBuilderList() {
return getParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoParameter, org.openlca.proto.ProtoParameter.Builder, org.openlca.proto.ProtoParameterOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoParameter, org.openlca.proto.ProtoParameter.Builder, org.openlca.proto.ProtoParameterOrBuilder>(
parameters_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
parameters_ = null;
}
return parametersBuilder_;
}
private org.openlca.proto.ProtoProcessDocumentation processDocumentation_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoProcessDocumentation, org.openlca.proto.ProtoProcessDocumentation.Builder, org.openlca.proto.ProtoProcessDocumentationOrBuilder> processDocumentationBuilder_;
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
* @return Whether the processDocumentation field is set.
*/
public boolean hasProcessDocumentation() {
return processDocumentationBuilder_ != null || processDocumentation_ != null;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
* @return The processDocumentation.
*/
public org.openlca.proto.ProtoProcessDocumentation getProcessDocumentation() {
if (processDocumentationBuilder_ == null) {
return processDocumentation_ == null ? org.openlca.proto.ProtoProcessDocumentation.getDefaultInstance() : processDocumentation_;
} else {
return processDocumentationBuilder_.getMessage();
}
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public Builder setProcessDocumentation(org.openlca.proto.ProtoProcessDocumentation value) {
if (processDocumentationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
processDocumentation_ = value;
onChanged();
} else {
processDocumentationBuilder_.setMessage(value);
}
return this;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public Builder setProcessDocumentation(
org.openlca.proto.ProtoProcessDocumentation.Builder builderForValue) {
if (processDocumentationBuilder_ == null) {
processDocumentation_ = builderForValue.build();
onChanged();
} else {
processDocumentationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public Builder mergeProcessDocumentation(org.openlca.proto.ProtoProcessDocumentation value) {
if (processDocumentationBuilder_ == null) {
if (processDocumentation_ != null) {
processDocumentation_ =
org.openlca.proto.ProtoProcessDocumentation.newBuilder(processDocumentation_).mergeFrom(value).buildPartial();
} else {
processDocumentation_ = value;
}
onChanged();
} else {
processDocumentationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public Builder clearProcessDocumentation() {
if (processDocumentationBuilder_ == null) {
processDocumentation_ = null;
onChanged();
} else {
processDocumentation_ = null;
processDocumentationBuilder_ = null;
}
return this;
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public org.openlca.proto.ProtoProcessDocumentation.Builder getProcessDocumentationBuilder() {
onChanged();
return getProcessDocumentationFieldBuilder().getBuilder();
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
public org.openlca.proto.ProtoProcessDocumentationOrBuilder getProcessDocumentationOrBuilder() {
if (processDocumentationBuilder_ != null) {
return processDocumentationBuilder_.getMessageOrBuilder();
} else {
return processDocumentation_ == null ?
org.openlca.proto.ProtoProcessDocumentation.getDefaultInstance() : processDocumentation_;
}
}
/**
* .protolca.ProtoProcessDocumentation process_documentation = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoProcessDocumentation, org.openlca.proto.ProtoProcessDocumentation.Builder, org.openlca.proto.ProtoProcessDocumentationOrBuilder>
getProcessDocumentationFieldBuilder() {
if (processDocumentationBuilder_ == null) {
processDocumentationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoProcessDocumentation, org.openlca.proto.ProtoProcessDocumentation.Builder, org.openlca.proto.ProtoProcessDocumentationOrBuilder>(
getProcessDocumentation(),
getParentForChildren(),
isClean());
processDocumentation_ = null;
}
return processDocumentationBuilder_;
}
private int processType_ = 0;
/**
* .protolca.ProtoProcessType process_type = 17;
* @return The enum numeric value on the wire for processType.
*/
@java.lang.Override public int getProcessTypeValue() {
return processType_;
}
/**
* .protolca.ProtoProcessType process_type = 17;
* @param value The enum numeric value on the wire for processType to set.
* @return This builder for chaining.
*/
public Builder setProcessTypeValue(int value) {
processType_ = value;
onChanged();
return this;
}
/**
* .protolca.ProtoProcessType process_type = 17;
* @return The processType.
*/
@java.lang.Override
public org.openlca.proto.ProtoProcessType getProcessType() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoProcessType result = org.openlca.proto.ProtoProcessType.valueOf(processType_);
return result == null ? org.openlca.proto.ProtoProcessType.UNRECOGNIZED : result;
}
/**
* .protolca.ProtoProcessType process_type = 17;
* @param value The processType to set.
* @return This builder for chaining.
*/
public Builder setProcessType(org.openlca.proto.ProtoProcessType value) {
if (value == null) {
throw new NullPointerException();
}
processType_ = value.getNumber();
onChanged();
return this;
}
/**
* .protolca.ProtoProcessType process_type = 17;
* @return This builder for chaining.
*/
public Builder clearProcessType() {
processType_ = 0;
onChanged();
return this;
}
private org.openlca.proto.ProtoRef dqSystem_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> dqSystemBuilder_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
* @return Whether the dqSystem field is set.
*/
public boolean hasDqSystem() {
return dqSystemBuilder_ != null || dqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
* @return The dqSystem.
*/
public org.openlca.proto.ProtoRef getDqSystem() {
if (dqSystemBuilder_ == null) {
return dqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : dqSystem_;
} else {
return dqSystemBuilder_.getMessage();
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public Builder setDqSystem(org.openlca.proto.ProtoRef value) {
if (dqSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dqSystem_ = value;
onChanged();
} else {
dqSystemBuilder_.setMessage(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public Builder setDqSystem(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (dqSystemBuilder_ == null) {
dqSystem_ = builderForValue.build();
onChanged();
} else {
dqSystemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public Builder mergeDqSystem(org.openlca.proto.ProtoRef value) {
if (dqSystemBuilder_ == null) {
if (dqSystem_ != null) {
dqSystem_ =
org.openlca.proto.ProtoRef.newBuilder(dqSystem_).mergeFrom(value).buildPartial();
} else {
dqSystem_ = value;
}
onChanged();
} else {
dqSystemBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public Builder clearDqSystem() {
if (dqSystemBuilder_ == null) {
dqSystem_ = null;
onChanged();
} else {
dqSystem_ = null;
dqSystemBuilder_ = null;
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public org.openlca.proto.ProtoRef.Builder getDqSystemBuilder() {
onChanged();
return getDqSystemFieldBuilder().getBuilder();
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
public org.openlca.proto.ProtoRefOrBuilder getDqSystemOrBuilder() {
if (dqSystemBuilder_ != null) {
return dqSystemBuilder_.getMessageOrBuilder();
} else {
return dqSystem_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : dqSystem_;
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the overall
* quality of the process can be assessed.
*
*
* .protolca.ProtoRef dq_system = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getDqSystemFieldBuilder() {
if (dqSystemBuilder_ == null) {
dqSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getDqSystem(),
getParentForChildren(),
isClean());
dqSystem_ = null;
}
return dqSystemBuilder_;
}
private org.openlca.proto.ProtoRef exchangeDqSystem_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> exchangeDqSystemBuilder_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
* @return Whether the exchangeDqSystem field is set.
*/
public boolean hasExchangeDqSystem() {
return exchangeDqSystemBuilder_ != null || exchangeDqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
* @return The exchangeDqSystem.
*/
public org.openlca.proto.ProtoRef getExchangeDqSystem() {
if (exchangeDqSystemBuilder_ == null) {
return exchangeDqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : exchangeDqSystem_;
} else {
return exchangeDqSystemBuilder_.getMessage();
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public Builder setExchangeDqSystem(org.openlca.proto.ProtoRef value) {
if (exchangeDqSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchangeDqSystem_ = value;
onChanged();
} else {
exchangeDqSystemBuilder_.setMessage(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public Builder setExchangeDqSystem(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (exchangeDqSystemBuilder_ == null) {
exchangeDqSystem_ = builderForValue.build();
onChanged();
} else {
exchangeDqSystemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public Builder mergeExchangeDqSystem(org.openlca.proto.ProtoRef value) {
if (exchangeDqSystemBuilder_ == null) {
if (exchangeDqSystem_ != null) {
exchangeDqSystem_ =
org.openlca.proto.ProtoRef.newBuilder(exchangeDqSystem_).mergeFrom(value).buildPartial();
} else {
exchangeDqSystem_ = value;
}
onChanged();
} else {
exchangeDqSystemBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public Builder clearExchangeDqSystem() {
if (exchangeDqSystemBuilder_ == null) {
exchangeDqSystem_ = null;
onChanged();
} else {
exchangeDqSystem_ = null;
exchangeDqSystemBuilder_ = null;
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public org.openlca.proto.ProtoRef.Builder getExchangeDqSystemBuilder() {
onChanged();
return getExchangeDqSystemFieldBuilder().getBuilder();
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
public org.openlca.proto.ProtoRefOrBuilder getExchangeDqSystemOrBuilder() {
if (exchangeDqSystemBuilder_ != null) {
return exchangeDqSystemBuilder_.getMessageOrBuilder();
} else {
return exchangeDqSystem_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : exchangeDqSystem_;
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual inputs and outputs ([Exchange]s) of the process can be
* assessed.
*
*
* .protolca.ProtoRef exchange_dq_system = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getExchangeDqSystemFieldBuilder() {
if (exchangeDqSystemBuilder_ == null) {
exchangeDqSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getExchangeDqSystem(),
getParentForChildren(),
isClean());
exchangeDqSystem_ = null;
}
return exchangeDqSystemBuilder_;
}
private org.openlca.proto.ProtoRef socialDqSystem_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> socialDqSystemBuilder_;
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
* @return Whether the socialDqSystem field is set.
*/
public boolean hasSocialDqSystem() {
return socialDqSystemBuilder_ != null || socialDqSystem_ != null;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
* @return The socialDqSystem.
*/
public org.openlca.proto.ProtoRef getSocialDqSystem() {
if (socialDqSystemBuilder_ == null) {
return socialDqSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : socialDqSystem_;
} else {
return socialDqSystemBuilder_.getMessage();
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public Builder setSocialDqSystem(org.openlca.proto.ProtoRef value) {
if (socialDqSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
socialDqSystem_ = value;
onChanged();
} else {
socialDqSystemBuilder_.setMessage(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public Builder setSocialDqSystem(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (socialDqSystemBuilder_ == null) {
socialDqSystem_ = builderForValue.build();
onChanged();
} else {
socialDqSystemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public Builder mergeSocialDqSystem(org.openlca.proto.ProtoRef value) {
if (socialDqSystemBuilder_ == null) {
if (socialDqSystem_ != null) {
socialDqSystem_ =
org.openlca.proto.ProtoRef.newBuilder(socialDqSystem_).mergeFrom(value).buildPartial();
} else {
socialDqSystem_ = value;
}
onChanged();
} else {
socialDqSystemBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public Builder clearSocialDqSystem() {
if (socialDqSystemBuilder_ == null) {
socialDqSystem_ = null;
onChanged();
} else {
socialDqSystem_ = null;
socialDqSystemBuilder_ = null;
}
return this;
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public org.openlca.proto.ProtoRef.Builder getSocialDqSystemBuilder() {
onChanged();
return getSocialDqSystemFieldBuilder().getBuilder();
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
public org.openlca.proto.ProtoRefOrBuilder getSocialDqSystemOrBuilder() {
if (socialDqSystemBuilder_ != null) {
return socialDqSystemBuilder_.getMessageOrBuilder();
} else {
return socialDqSystem_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : socialDqSystem_;
}
}
/**
*
* A reference to a data quality system ([DQSystem]) with which the quality
* of individual social aspects of the process can be assessed.
*
*
* .protolca.ProtoRef social_dq_system = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getSocialDqSystemFieldBuilder() {
if (socialDqSystemBuilder_ == null) {
socialDqSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getSocialDqSystem(),
getParentForChildren(),
isClean());
socialDqSystem_ = null;
}
return socialDqSystemBuilder_;
}
private java.lang.Object dqEntry_ = "";
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @return The dqEntry.
*/
public java.lang.String getDqEntry() {
java.lang.Object ref = dqEntry_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dqEntry_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @return The bytes for dqEntry.
*/
public com.google.protobuf.ByteString
getDqEntryBytes() {
java.lang.Object ref = dqEntry_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dqEntry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @param value The dqEntry to set.
* @return This builder for chaining.
*/
public Builder setDqEntry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dqEntry_ = value;
onChanged();
return this;
}
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @return This builder for chaining.
*/
public Builder clearDqEntry() {
dqEntry_ = getDefaultInstance().getDqEntry();
onChanged();
return this;
}
/**
*
* A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data
* quality values that need to match the overall data quality system of the
* process (the system that is stored in the `dqSystem` property). In such a
* system the data quality indicators have fixed positions and the respective
* values in the `dqEntry` vector map to these positions.
*
*
* string dq_entry = 21;
* @param value The bytes for dqEntry to set.
* @return This builder for chaining.
*/
public Builder setDqEntryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dqEntry_ = value;
onChanged();
return this;
}
private boolean infrastructureProcess_ ;
/**
*
* Indicates whether this process describes an infrastructure process. This
* field is part of the openLCA schema because of backward compatibility with
* EcoSpold 1. It does not really have a meaning in openLCA and should not be
* used anymore.
*
*
* bool infrastructure_process = 22;
* @return The infrastructureProcess.
*/
@java.lang.Override
public boolean getInfrastructureProcess() {
return infrastructureProcess_;
}
/**
*
* Indicates whether this process describes an infrastructure process. This
* field is part of the openLCA schema because of backward compatibility with
* EcoSpold 1. It does not really have a meaning in openLCA and should not be
* used anymore.
*
*
* bool infrastructure_process = 22;
* @param value The infrastructureProcess to set.
* @return This builder for chaining.
*/
public Builder setInfrastructureProcess(boolean value) {
infrastructureProcess_ = value;
onChanged();
return this;
}
/**
*
* Indicates whether this process describes an infrastructure process. This
* field is part of the openLCA schema because of backward compatibility with
* EcoSpold 1. It does not really have a meaning in openLCA and should not be
* used anymore.
*
*
* bool infrastructure_process = 22;
* @return This builder for chaining.
*/
public Builder clearInfrastructureProcess() {
infrastructureProcess_ = false;
onChanged();
return this;
}
private java.util.List socialAspects_ =
java.util.Collections.emptyList();
private void ensureSocialAspectsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
socialAspects_ = new java.util.ArrayList(socialAspects_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoSocialAspect, org.openlca.proto.ProtoSocialAspect.Builder, org.openlca.proto.ProtoSocialAspectOrBuilder> socialAspectsBuilder_;
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public java.util.List getSocialAspectsList() {
if (socialAspectsBuilder_ == null) {
return java.util.Collections.unmodifiableList(socialAspects_);
} else {
return socialAspectsBuilder_.getMessageList();
}
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public int getSocialAspectsCount() {
if (socialAspectsBuilder_ == null) {
return socialAspects_.size();
} else {
return socialAspectsBuilder_.getCount();
}
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public org.openlca.proto.ProtoSocialAspect getSocialAspects(int index) {
if (socialAspectsBuilder_ == null) {
return socialAspects_.get(index);
} else {
return socialAspectsBuilder_.getMessage(index);
}
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder setSocialAspects(
int index, org.openlca.proto.ProtoSocialAspect value) {
if (socialAspectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocialAspectsIsMutable();
socialAspects_.set(index, value);
onChanged();
} else {
socialAspectsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder setSocialAspects(
int index, org.openlca.proto.ProtoSocialAspect.Builder builderForValue) {
if (socialAspectsBuilder_ == null) {
ensureSocialAspectsIsMutable();
socialAspects_.set(index, builderForValue.build());
onChanged();
} else {
socialAspectsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder addSocialAspects(org.openlca.proto.ProtoSocialAspect value) {
if (socialAspectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocialAspectsIsMutable();
socialAspects_.add(value);
onChanged();
} else {
socialAspectsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder addSocialAspects(
int index, org.openlca.proto.ProtoSocialAspect value) {
if (socialAspectsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocialAspectsIsMutable();
socialAspects_.add(index, value);
onChanged();
} else {
socialAspectsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder addSocialAspects(
org.openlca.proto.ProtoSocialAspect.Builder builderForValue) {
if (socialAspectsBuilder_ == null) {
ensureSocialAspectsIsMutable();
socialAspects_.add(builderForValue.build());
onChanged();
} else {
socialAspectsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder addSocialAspects(
int index, org.openlca.proto.ProtoSocialAspect.Builder builderForValue) {
if (socialAspectsBuilder_ == null) {
ensureSocialAspectsIsMutable();
socialAspects_.add(index, builderForValue.build());
onChanged();
} else {
socialAspectsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder addAllSocialAspects(
java.lang.Iterable extends org.openlca.proto.ProtoSocialAspect> values) {
if (socialAspectsBuilder_ == null) {
ensureSocialAspectsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, socialAspects_);
onChanged();
} else {
socialAspectsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder clearSocialAspects() {
if (socialAspectsBuilder_ == null) {
socialAspects_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
socialAspectsBuilder_.clear();
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public Builder removeSocialAspects(int index) {
if (socialAspectsBuilder_ == null) {
ensureSocialAspectsIsMutable();
socialAspects_.remove(index);
onChanged();
} else {
socialAspectsBuilder_.remove(index);
}
return this;
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public org.openlca.proto.ProtoSocialAspect.Builder getSocialAspectsBuilder(
int index) {
return getSocialAspectsFieldBuilder().getBuilder(index);
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public org.openlca.proto.ProtoSocialAspectOrBuilder getSocialAspectsOrBuilder(
int index) {
if (socialAspectsBuilder_ == null) {
return socialAspects_.get(index); } else {
return socialAspectsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public java.util.List extends org.openlca.proto.ProtoSocialAspectOrBuilder>
getSocialAspectsOrBuilderList() {
if (socialAspectsBuilder_ != null) {
return socialAspectsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(socialAspects_);
}
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public org.openlca.proto.ProtoSocialAspect.Builder addSocialAspectsBuilder() {
return getSocialAspectsFieldBuilder().addBuilder(
org.openlca.proto.ProtoSocialAspect.getDefaultInstance());
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public org.openlca.proto.ProtoSocialAspect.Builder addSocialAspectsBuilder(
int index) {
return getSocialAspectsFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoSocialAspect.getDefaultInstance());
}
/**
*
* A set of social aspects related to this process.
*
*
* repeated .protolca.ProtoSocialAspect social_aspects = 23;
*/
public java.util.List
getSocialAspectsBuilderList() {
return getSocialAspectsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoSocialAspect, org.openlca.proto.ProtoSocialAspect.Builder, org.openlca.proto.ProtoSocialAspectOrBuilder>
getSocialAspectsFieldBuilder() {
if (socialAspectsBuilder_ == null) {
socialAspectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoSocialAspect, org.openlca.proto.ProtoSocialAspect.Builder, org.openlca.proto.ProtoSocialAspectOrBuilder>(
socialAspects_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
socialAspects_ = null;
}
return socialAspectsBuilder_;
}
@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.ProtoProcess)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoProcess)
private static final org.openlca.proto.ProtoProcess DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoProcess();
}
public static org.openlca.proto.ProtoProcess getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoProcess parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoProcess(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.ProtoProcess getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy