org.openlca.proto.ProtoFlowMap Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
*
* A crosswalk of flows from a source flow list to a target flow list.
*
*
* Protobuf type {@code protolca.ProtoFlowMap}
*/
public final class ProtoFlowMap extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoFlowMap)
ProtoFlowMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoFlowMap.newBuilder() to construct.
private ProtoFlowMap(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoFlowMap() {
id_ = "";
name_ = "";
description_ = "";
version_ = "";
lastChange_ = "";
mappings_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoFlowMap();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoFlowMap(
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 50: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (source_ != null) {
subBuilder = source_.toBuilder();
}
source_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(source_);
source_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (target_ != null) {
subBuilder = target_.toBuilder();
}
target_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(target_);
target_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
mappings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
mappings_.add(
input.readMessage(org.openlca.proto.ProtoFlowMapEntry.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)) {
mappings_ = java.util.Collections.unmodifiableList(mappings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMap_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoFlowMap.class, org.openlca.proto.ProtoFlowMap.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 SOURCE_FIELD_NUMBER = 6;
private org.openlca.proto.ProtoRef source_;
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return source_ != null;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
* @return The source.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getSource() {
return source_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getSourceOrBuilder() {
return getSource();
}
public static final int TARGET_FIELD_NUMBER = 7;
private org.openlca.proto.ProtoRef target_;
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return target_ != null;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
* @return The target.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getTarget() {
return target_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : target_;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getTargetOrBuilder() {
return getTarget();
}
public static final int MAPPINGS_FIELD_NUMBER = 8;
private java.util.List mappings_;
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
@java.lang.Override
public java.util.List getMappingsList() {
return mappings_;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoFlowMapEntryOrBuilder>
getMappingsOrBuilderList() {
return mappings_;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
@java.lang.Override
public int getMappingsCount() {
return mappings_.size();
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
@java.lang.Override
public org.openlca.proto.ProtoFlowMapEntry getMappings(int index) {
return mappings_.get(index);
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
@java.lang.Override
public org.openlca.proto.ProtoFlowMapEntryOrBuilder getMappingsOrBuilder(
int index) {
return mappings_.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 (source_ != null) {
output.writeMessage(6, getSource());
}
if (target_ != null) {
output.writeMessage(7, getTarget());
}
for (int i = 0; i < mappings_.size(); i++) {
output.writeMessage(8, mappings_.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 (source_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSource());
}
if (target_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTarget());
}
for (int i = 0; i < mappings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, mappings_.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.ProtoFlowMap)) {
return super.equals(obj);
}
org.openlca.proto.ProtoFlowMap other = (org.openlca.proto.ProtoFlowMap) 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 (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) return false;
}
if (!getMappingsList()
.equals(other.getMappingsList())) 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();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (getMappingsCount() > 0) {
hash = (37 * hash) + MAPPINGS_FIELD_NUMBER;
hash = (53 * hash) + getMappingsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoFlowMap parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoFlowMap 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.ProtoFlowMap parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoFlowMap 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.ProtoFlowMap parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoFlowMap parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoFlowMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoFlowMap 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.ProtoFlowMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoFlowMap 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.ProtoFlowMap parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoFlowMap 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.ProtoFlowMap 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;
}
/**
*
* A crosswalk of flows from a source flow list to a target flow list.
*
*
* Protobuf type {@code protolca.ProtoFlowMap}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoFlowMap)
org.openlca.proto.ProtoFlowMapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMap_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoFlowMap.class, org.openlca.proto.ProtoFlowMap.Builder.class);
}
// Construct using org.openlca.proto.ProtoFlowMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMappingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
name_ = "";
description_ = "";
version_ = "";
lastChange_ = "";
if (sourceBuilder_ == null) {
source_ = null;
} else {
source_ = null;
sourceBuilder_ = null;
}
if (targetBuilder_ == null) {
target_ = null;
} else {
target_ = null;
targetBuilder_ = null;
}
if (mappingsBuilder_ == null) {
mappings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
mappingsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMap_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoFlowMap getDefaultInstanceForType() {
return org.openlca.proto.ProtoFlowMap.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoFlowMap build() {
org.openlca.proto.ProtoFlowMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoFlowMap buildPartial() {
org.openlca.proto.ProtoFlowMap result = new org.openlca.proto.ProtoFlowMap(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.name_ = name_;
result.description_ = description_;
result.version_ = version_;
result.lastChange_ = lastChange_;
if (sourceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceBuilder_.build();
}
if (targetBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetBuilder_.build();
}
if (mappingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
mappings_ = java.util.Collections.unmodifiableList(mappings_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.mappings_ = mappings_;
} else {
result.mappings_ = mappingsBuilder_.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.ProtoFlowMap) {
return mergeFrom((org.openlca.proto.ProtoFlowMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoFlowMap other) {
if (other == org.openlca.proto.ProtoFlowMap.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.hasSource()) {
mergeSource(other.getSource());
}
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
if (mappingsBuilder_ == null) {
if (!other.mappings_.isEmpty()) {
if (mappings_.isEmpty()) {
mappings_ = other.mappings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMappingsIsMutable();
mappings_.addAll(other.mappings_);
}
onChanged();
}
} else {
if (!other.mappings_.isEmpty()) {
if (mappingsBuilder_.isEmpty()) {
mappingsBuilder_.dispose();
mappingsBuilder_ = null;
mappings_ = other.mappings_;
bitField0_ = (bitField0_ & ~0x00000001);
mappingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMappingsFieldBuilder() : null;
} else {
mappingsBuilder_.addAllMessages(other.mappings_);
}
}
}
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.ProtoFlowMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoFlowMap) 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 org.openlca.proto.ProtoRef source_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> sourceBuilder_;
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return sourceBuilder_ != null || source_ != null;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
* @return The source.
*/
public org.openlca.proto.ProtoRef getSource() {
if (sourceBuilder_ == null) {
return source_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public Builder setSource(org.openlca.proto.ProtoRef value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceBuilder_.setMessage(value);
}
return this;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public Builder setSource(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public Builder mergeSource(org.openlca.proto.ProtoRef value) {
if (sourceBuilder_ == null) {
if (source_ != null) {
source_ =
org.openlca.proto.ProtoRef.newBuilder(source_).mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
sourceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public Builder clearSource() {
if (sourceBuilder_ == null) {
source_ = null;
onChanged();
} else {
source_ = null;
sourceBuilder_ = null;
}
return this;
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public org.openlca.proto.ProtoRef.Builder getSourceBuilder() {
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
public org.openlca.proto.ProtoRefOrBuilder getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
}
}
/**
*
* The reference (id, name, description) of the source flow list.
*
*
* .protolca.ProtoRef source = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getSource(),
getParentForChildren(),
isClean());
source_ = null;
}
return sourceBuilder_;
}
private org.openlca.proto.ProtoRef target_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> targetBuilder_;
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return targetBuilder_ != null || target_ != null;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
* @return The target.
*/
public org.openlca.proto.ProtoRef getTarget() {
if (targetBuilder_ == null) {
return target_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public Builder setTarget(org.openlca.proto.ProtoRef value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetBuilder_.setMessage(value);
}
return this;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public Builder setTarget(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public Builder mergeTarget(org.openlca.proto.ProtoRef value) {
if (targetBuilder_ == null) {
if (target_ != null) {
target_ =
org.openlca.proto.ProtoRef.newBuilder(target_).mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
targetBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public Builder clearTarget() {
if (targetBuilder_ == null) {
target_ = null;
onChanged();
} else {
target_ = null;
targetBuilder_ = null;
}
return this;
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public org.openlca.proto.ProtoRef.Builder getTargetBuilder() {
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
public org.openlca.proto.ProtoRefOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : target_;
}
}
/**
*
* The reference (id, name, description) of the target flow list.
*
*
* .protolca.ProtoRef target = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getTarget(),
getParentForChildren(),
isClean());
target_ = null;
}
return targetBuilder_;
}
private java.util.List mappings_ =
java.util.Collections.emptyList();
private void ensureMappingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
mappings_ = new java.util.ArrayList(mappings_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowMapEntry, org.openlca.proto.ProtoFlowMapEntry.Builder, org.openlca.proto.ProtoFlowMapEntryOrBuilder> mappingsBuilder_;
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public java.util.List getMappingsList() {
if (mappingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(mappings_);
} else {
return mappingsBuilder_.getMessageList();
}
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public int getMappingsCount() {
if (mappingsBuilder_ == null) {
return mappings_.size();
} else {
return mappingsBuilder_.getCount();
}
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public org.openlca.proto.ProtoFlowMapEntry getMappings(int index) {
if (mappingsBuilder_ == null) {
return mappings_.get(index);
} else {
return mappingsBuilder_.getMessage(index);
}
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder setMappings(
int index, org.openlca.proto.ProtoFlowMapEntry value) {
if (mappingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMappingsIsMutable();
mappings_.set(index, value);
onChanged();
} else {
mappingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder setMappings(
int index, org.openlca.proto.ProtoFlowMapEntry.Builder builderForValue) {
if (mappingsBuilder_ == null) {
ensureMappingsIsMutable();
mappings_.set(index, builderForValue.build());
onChanged();
} else {
mappingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder addMappings(org.openlca.proto.ProtoFlowMapEntry value) {
if (mappingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMappingsIsMutable();
mappings_.add(value);
onChanged();
} else {
mappingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder addMappings(
int index, org.openlca.proto.ProtoFlowMapEntry value) {
if (mappingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMappingsIsMutable();
mappings_.add(index, value);
onChanged();
} else {
mappingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder addMappings(
org.openlca.proto.ProtoFlowMapEntry.Builder builderForValue) {
if (mappingsBuilder_ == null) {
ensureMappingsIsMutable();
mappings_.add(builderForValue.build());
onChanged();
} else {
mappingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder addMappings(
int index, org.openlca.proto.ProtoFlowMapEntry.Builder builderForValue) {
if (mappingsBuilder_ == null) {
ensureMappingsIsMutable();
mappings_.add(index, builderForValue.build());
onChanged();
} else {
mappingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder addAllMappings(
java.lang.Iterable extends org.openlca.proto.ProtoFlowMapEntry> values) {
if (mappingsBuilder_ == null) {
ensureMappingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mappings_);
onChanged();
} else {
mappingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder clearMappings() {
if (mappingsBuilder_ == null) {
mappings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
mappingsBuilder_.clear();
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public Builder removeMappings(int index) {
if (mappingsBuilder_ == null) {
ensureMappingsIsMutable();
mappings_.remove(index);
onChanged();
} else {
mappingsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public org.openlca.proto.ProtoFlowMapEntry.Builder getMappingsBuilder(
int index) {
return getMappingsFieldBuilder().getBuilder(index);
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public org.openlca.proto.ProtoFlowMapEntryOrBuilder getMappingsOrBuilder(
int index) {
if (mappingsBuilder_ == null) {
return mappings_.get(index); } else {
return mappingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public java.util.List extends org.openlca.proto.ProtoFlowMapEntryOrBuilder>
getMappingsOrBuilderList() {
if (mappingsBuilder_ != null) {
return mappingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mappings_);
}
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public org.openlca.proto.ProtoFlowMapEntry.Builder addMappingsBuilder() {
return getMappingsFieldBuilder().addBuilder(
org.openlca.proto.ProtoFlowMapEntry.getDefaultInstance());
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public org.openlca.proto.ProtoFlowMapEntry.Builder addMappingsBuilder(
int index) {
return getMappingsFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoFlowMapEntry.getDefaultInstance());
}
/**
*
* A list of flow mappings from flows in a source flow list to flows in a
* target flow list.
*
*
* repeated .protolca.ProtoFlowMapEntry mappings = 8;
*/
public java.util.List
getMappingsBuilderList() {
return getMappingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowMapEntry, org.openlca.proto.ProtoFlowMapEntry.Builder, org.openlca.proto.ProtoFlowMapEntryOrBuilder>
getMappingsFieldBuilder() {
if (mappingsBuilder_ == null) {
mappingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowMapEntry, org.openlca.proto.ProtoFlowMapEntry.Builder, org.openlca.proto.ProtoFlowMapEntryOrBuilder>(
mappings_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
mappings_ = null;
}
return mappingsBuilder_;
}
@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.ProtoFlowMap)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoFlowMap)
private static final org.openlca.proto.ProtoFlowMap DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoFlowMap();
}
public static org.openlca.proto.ProtoFlowMap getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoFlowMap parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoFlowMap(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.ProtoFlowMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy