All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openlca.proto.ProtoImpactFactor Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: olca.proto

package org.openlca.proto;

/**
 * 
 * A single characterisation factor of a LCIA category for a flow.
 * 
* * Protobuf type {@code protolca.ProtoImpactFactor} */ public final class ProtoImpactFactor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoImpactFactor) ProtoImpactFactorOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoImpactFactor.newBuilder() to construct. private ProtoImpactFactor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoImpactFactor() { formula_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoImpactFactor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoImpactFactor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (flow_ != null) { subBuilder = flow_.toBuilder(); } flow_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flow_); flow_ = subBuilder.buildPartial(); } break; } case 18: { 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 26: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (flowProperty_ != null) { subBuilder = flowProperty_.toBuilder(); } flowProperty_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flowProperty_); flowProperty_ = subBuilder.buildPartial(); } break; } case 34: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (unit_ != null) { subBuilder = unit_.toBuilder(); } unit_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unit_); unit_ = subBuilder.buildPartial(); } break; } case 41: { value_ = input.readDouble(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); formula_ = s; break; } case 58: { org.openlca.proto.ProtoUncertainty.Builder subBuilder = null; if (uncertainty_ != null) { subBuilder = uncertainty_.toBuilder(); } uncertainty_ = input.readMessage(org.openlca.proto.ProtoUncertainty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(uncertainty_); uncertainty_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoImpactFactor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoImpactFactor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoImpactFactor.class, org.openlca.proto.ProtoImpactFactor.Builder.class); } public static final int FLOW_FIELD_NUMBER = 1; private org.openlca.proto.ProtoRef flow_; /** *
   * The [Flow] of the impact assessment factor.
   * 
* * .protolca.ProtoRef flow = 1; * @return Whether the flow field is set. */ @java.lang.Override public boolean hasFlow() { return flow_ != null; } /** *
   * The [Flow] of the impact assessment factor.
   * 
* * .protolca.ProtoRef flow = 1; * @return The flow. */ @java.lang.Override public org.openlca.proto.ProtoRef getFlow() { return flow_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flow_; } /** *
   * The [Flow] of the impact assessment factor.
   * 
* * .protolca.ProtoRef flow = 1; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getFlowOrBuilder() { return getFlow(); } public static final int LOCATION_FIELD_NUMBER = 2; private org.openlca.proto.ProtoRef location_; /** *
   * In case of a regionalized impact category, this field can contain the
   * location for which this factor is valid.
   * 
* * .protolca.ProtoRef location = 2; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** *
   * In case of a regionalized impact category, this field can contain the
   * location for which this factor is valid.
   * 
* * .protolca.ProtoRef location = 2; * @return The location. */ @java.lang.Override public org.openlca.proto.ProtoRef getLocation() { return location_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : location_; } /** *
   * In case of a regionalized impact category, this field can contain the
   * location for which this factor is valid.
   * 
* * .protolca.ProtoRef location = 2; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int FLOW_PROPERTY_FIELD_NUMBER = 3; private org.openlca.proto.ProtoRef flowProperty_; /** *
   * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
   * 
* * .protolca.ProtoRef flow_property = 3; * @return Whether the flowProperty field is set. */ @java.lang.Override public boolean hasFlowProperty() { return flowProperty_ != null; } /** *
   * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
   * 
* * .protolca.ProtoRef flow_property = 3; * @return The flowProperty. */ @java.lang.Override public org.openlca.proto.ProtoRef getFlowProperty() { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } /** *
   * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
   * 
* * .protolca.ProtoRef flow_property = 3; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { return getFlowProperty(); } public static final int UNIT_FIELD_NUMBER = 4; private org.openlca.proto.ProtoRef unit_; /** *
   * The flow unit to which the LCIA factor is related (e.g. kg).
   * 
* * .protolca.ProtoRef unit = 4; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return unit_ != null; } /** *
   * The flow unit to which the LCIA factor is related (e.g. kg).
   * 
* * .protolca.ProtoRef unit = 4; * @return The unit. */ @java.lang.Override public org.openlca.proto.ProtoRef getUnit() { return unit_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : unit_; } /** *
   * The flow unit to which the LCIA factor is related (e.g. kg).
   * 
* * .protolca.ProtoRef unit = 4; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getUnitOrBuilder() { return getUnit(); } public static final int VALUE_FIELD_NUMBER = 5; private double value_; /** *
   * The value of the impact assessment factor.
   * 
* * double value = 5; * @return The value. */ @java.lang.Override public double getValue() { return value_; } public static final int FORMULA_FIELD_NUMBER = 6; private volatile java.lang.Object formula_; /** *
   * A mathematical formula for calculating the value of the LCIA factor.
   * 
* * string formula = 6; * @return The formula. */ @java.lang.Override public java.lang.String getFormula() { java.lang.Object ref = formula_; 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(); formula_ = s; return s; } } /** *
   * A mathematical formula for calculating the value of the LCIA factor.
   * 
* * string formula = 6; * @return The bytes for formula. */ @java.lang.Override public com.google.protobuf.ByteString getFormulaBytes() { java.lang.Object ref = formula_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formula_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNCERTAINTY_FIELD_NUMBER = 7; private org.openlca.proto.ProtoUncertainty uncertainty_; /** *
   * The uncertainty distribution of the factors' value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 7; * @return Whether the uncertainty field is set. */ @java.lang.Override public boolean hasUncertainty() { return uncertainty_ != null; } /** *
   * The uncertainty distribution of the factors' value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 7; * @return The uncertainty. */ @java.lang.Override public org.openlca.proto.ProtoUncertainty getUncertainty() { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } /** *
   * The uncertainty distribution of the factors' value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ @java.lang.Override public org.openlca.proto.ProtoUncertaintyOrBuilder getUncertaintyOrBuilder() { return getUncertainty(); } 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 (flow_ != null) { output.writeMessage(1, getFlow()); } if (location_ != null) { output.writeMessage(2, getLocation()); } if (flowProperty_ != null) { output.writeMessage(3, getFlowProperty()); } if (unit_ != null) { output.writeMessage(4, getUnit()); } if (value_ != 0D) { output.writeDouble(5, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formula_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, formula_); } if (uncertainty_ != null) { output.writeMessage(7, getUncertainty()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (flow_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFlow()); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocation()); } if (flowProperty_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFlowProperty()); } if (unit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUnit()); } if (value_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formula_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, formula_); } if (uncertainty_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getUncertainty()); } 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.ProtoImpactFactor)) { return super.equals(obj); } org.openlca.proto.ProtoImpactFactor other = (org.openlca.proto.ProtoImpactFactor) obj; if (hasFlow() != other.hasFlow()) return false; if (hasFlow()) { if (!getFlow() .equals(other.getFlow())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (hasFlowProperty() != other.hasFlowProperty()) return false; if (hasFlowProperty()) { if (!getFlowProperty() .equals(other.getFlowProperty())) return false; } if (hasUnit() != other.hasUnit()) return false; if (hasUnit()) { if (!getUnit() .equals(other.getUnit())) return false; } if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) return false; if (!getFormula() .equals(other.getFormula())) return false; if (hasUncertainty() != other.hasUncertainty()) return false; if (hasUncertainty()) { if (!getUncertainty() .equals(other.getUncertainty())) 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(); if (hasFlow()) { hash = (37 * hash) + FLOW_FIELD_NUMBER; hash = (53 * hash) + getFlow().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } if (hasFlowProperty()) { hash = (37 * hash) + FLOW_PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getFlowProperty().hashCode(); } if (hasUnit()) { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + FORMULA_FIELD_NUMBER; hash = (53 * hash) + getFormula().hashCode(); if (hasUncertainty()) { hash = (37 * hash) + UNCERTAINTY_FIELD_NUMBER; hash = (53 * hash) + getUncertainty().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoImpactFactor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoImpactFactor 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.ProtoImpactFactor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoImpactFactor 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.ProtoImpactFactor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoImpactFactor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoImpactFactor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoImpactFactor 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.ProtoImpactFactor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoImpactFactor 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.ProtoImpactFactor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoImpactFactor 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.ProtoImpactFactor 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 single characterisation factor of a LCIA category for a flow.
   * 
* * Protobuf type {@code protolca.ProtoImpactFactor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoImpactFactor) org.openlca.proto.ProtoImpactFactorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoImpactFactor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoImpactFactor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoImpactFactor.class, org.openlca.proto.ProtoImpactFactor.Builder.class); } // Construct using org.openlca.proto.ProtoImpactFactor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (flowBuilder_ == null) { flow_ = null; } else { flow_ = null; flowBuilder_ = null; } if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } if (flowPropertyBuilder_ == null) { flowProperty_ = null; } else { flowProperty_ = null; flowPropertyBuilder_ = null; } if (unitBuilder_ == null) { unit_ = null; } else { unit_ = null; unitBuilder_ = null; } value_ = 0D; formula_ = ""; if (uncertaintyBuilder_ == null) { uncertainty_ = null; } else { uncertainty_ = null; uncertaintyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoImpactFactor_descriptor; } @java.lang.Override public org.openlca.proto.ProtoImpactFactor getDefaultInstanceForType() { return org.openlca.proto.ProtoImpactFactor.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoImpactFactor build() { org.openlca.proto.ProtoImpactFactor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoImpactFactor buildPartial() { org.openlca.proto.ProtoImpactFactor result = new org.openlca.proto.ProtoImpactFactor(this); if (flowBuilder_ == null) { result.flow_ = flow_; } else { result.flow_ = flowBuilder_.build(); } if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (flowPropertyBuilder_ == null) { result.flowProperty_ = flowProperty_; } else { result.flowProperty_ = flowPropertyBuilder_.build(); } if (unitBuilder_ == null) { result.unit_ = unit_; } else { result.unit_ = unitBuilder_.build(); } result.value_ = value_; result.formula_ = formula_; if (uncertaintyBuilder_ == null) { result.uncertainty_ = uncertainty_; } else { result.uncertainty_ = uncertaintyBuilder_.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.ProtoImpactFactor) { return mergeFrom((org.openlca.proto.ProtoImpactFactor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoImpactFactor other) { if (other == org.openlca.proto.ProtoImpactFactor.getDefaultInstance()) return this; if (other.hasFlow()) { mergeFlow(other.getFlow()); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasFlowProperty()) { mergeFlowProperty(other.getFlowProperty()); } if (other.hasUnit()) { mergeUnit(other.getUnit()); } if (other.getValue() != 0D) { setValue(other.getValue()); } if (!other.getFormula().isEmpty()) { formula_ = other.formula_; onChanged(); } if (other.hasUncertainty()) { mergeUncertainty(other.getUncertainty()); } 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.ProtoImpactFactor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoImpactFactor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.openlca.proto.ProtoRef flow_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> flowBuilder_; /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; * @return Whether the flow field is set. */ public boolean hasFlow() { return flowBuilder_ != null || flow_ != null; } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; * @return The flow. */ public org.openlca.proto.ProtoRef getFlow() { if (flowBuilder_ == null) { return flow_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flow_; } else { return flowBuilder_.getMessage(); } } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public Builder setFlow(org.openlca.proto.ProtoRef value) { if (flowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flow_ = value; onChanged(); } else { flowBuilder_.setMessage(value); } return this; } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public Builder setFlow( org.openlca.proto.ProtoRef.Builder builderForValue) { if (flowBuilder_ == null) { flow_ = builderForValue.build(); onChanged(); } else { flowBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public Builder mergeFlow(org.openlca.proto.ProtoRef value) { if (flowBuilder_ == null) { if (flow_ != null) { flow_ = org.openlca.proto.ProtoRef.newBuilder(flow_).mergeFrom(value).buildPartial(); } else { flow_ = value; } onChanged(); } else { flowBuilder_.mergeFrom(value); } return this; } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public Builder clearFlow() { if (flowBuilder_ == null) { flow_ = null; onChanged(); } else { flow_ = null; flowBuilder_ = null; } return this; } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public org.openlca.proto.ProtoRef.Builder getFlowBuilder() { onChanged(); return getFlowFieldBuilder().getBuilder(); } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ public org.openlca.proto.ProtoRefOrBuilder getFlowOrBuilder() { if (flowBuilder_ != null) { return flowBuilder_.getMessageOrBuilder(); } else { return flow_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flow_; } } /** *
     * The [Flow] of the impact assessment factor.
     * 
* * .protolca.ProtoRef flow = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getFlowFieldBuilder() { if (flowBuilder_ == null) { flowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getFlow(), getParentForChildren(), isClean()); flow_ = null; } return flowBuilder_; } 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_; /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; * @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(); } } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ 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; } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ public Builder setLocation( org.openlca.proto.ProtoRef.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ 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; } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ public org.openlca.proto.ProtoRef.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ public org.openlca.proto.ProtoRefOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : location_; } } /** *
     * In case of a regionalized impact category, this field can contain the
     * location for which this factor is valid.
     * 
* * .protolca.ProtoRef location = 2; */ 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 org.openlca.proto.ProtoRef flowProperty_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> flowPropertyBuilder_; /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; * @return Whether the flowProperty field is set. */ public boolean hasFlowProperty() { return flowPropertyBuilder_ != null || flowProperty_ != null; } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; * @return The flowProperty. */ public org.openlca.proto.ProtoRef getFlowProperty() { if (flowPropertyBuilder_ == null) { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } else { return flowPropertyBuilder_.getMessage(); } } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public Builder setFlowProperty(org.openlca.proto.ProtoRef value) { if (flowPropertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flowProperty_ = value; onChanged(); } else { flowPropertyBuilder_.setMessage(value); } return this; } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public Builder setFlowProperty( org.openlca.proto.ProtoRef.Builder builderForValue) { if (flowPropertyBuilder_ == null) { flowProperty_ = builderForValue.build(); onChanged(); } else { flowPropertyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public Builder mergeFlowProperty(org.openlca.proto.ProtoRef value) { if (flowPropertyBuilder_ == null) { if (flowProperty_ != null) { flowProperty_ = org.openlca.proto.ProtoRef.newBuilder(flowProperty_).mergeFrom(value).buildPartial(); } else { flowProperty_ = value; } onChanged(); } else { flowPropertyBuilder_.mergeFrom(value); } return this; } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public Builder clearFlowProperty() { if (flowPropertyBuilder_ == null) { flowProperty_ = null; onChanged(); } else { flowProperty_ = null; flowPropertyBuilder_ = null; } return this; } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public org.openlca.proto.ProtoRef.Builder getFlowPropertyBuilder() { onChanged(); return getFlowPropertyFieldBuilder().getBuilder(); } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { if (flowPropertyBuilder_ != null) { return flowPropertyBuilder_.getMessageOrBuilder(); } else { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } } /** *
     * The quantity of the flow to which the LCIA factor is related (e.g. Mass).
     * 
* * .protolca.ProtoRef flow_property = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getFlowPropertyFieldBuilder() { if (flowPropertyBuilder_ == null) { flowPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getFlowProperty(), getParentForChildren(), isClean()); flowProperty_ = null; } return flowPropertyBuilder_; } private org.openlca.proto.ProtoRef unit_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> unitBuilder_; /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; * @return Whether the unit field is set. */ public boolean hasUnit() { return unitBuilder_ != null || unit_ != null; } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; * @return The unit. */ public org.openlca.proto.ProtoRef getUnit() { if (unitBuilder_ == null) { return unit_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : unit_; } else { return unitBuilder_.getMessage(); } } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public Builder setUnit(org.openlca.proto.ProtoRef value) { if (unitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unit_ = value; onChanged(); } else { unitBuilder_.setMessage(value); } return this; } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public Builder setUnit( org.openlca.proto.ProtoRef.Builder builderForValue) { if (unitBuilder_ == null) { unit_ = builderForValue.build(); onChanged(); } else { unitBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public Builder mergeUnit(org.openlca.proto.ProtoRef value) { if (unitBuilder_ == null) { if (unit_ != null) { unit_ = org.openlca.proto.ProtoRef.newBuilder(unit_).mergeFrom(value).buildPartial(); } else { unit_ = value; } onChanged(); } else { unitBuilder_.mergeFrom(value); } return this; } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public Builder clearUnit() { if (unitBuilder_ == null) { unit_ = null; onChanged(); } else { unit_ = null; unitBuilder_ = null; } return this; } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public org.openlca.proto.ProtoRef.Builder getUnitBuilder() { onChanged(); return getUnitFieldBuilder().getBuilder(); } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ public org.openlca.proto.ProtoRefOrBuilder getUnitOrBuilder() { if (unitBuilder_ != null) { return unitBuilder_.getMessageOrBuilder(); } else { return unit_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : unit_; } } /** *
     * The flow unit to which the LCIA factor is related (e.g. kg).
     * 
* * .protolca.ProtoRef unit = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getUnitFieldBuilder() { if (unitBuilder_ == null) { unitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getUnit(), getParentForChildren(), isClean()); unit_ = null; } return unitBuilder_; } private double value_ ; /** *
     * The value of the impact assessment factor.
     * 
* * double value = 5; * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** *
     * The value of the impact assessment factor.
     * 
* * double value = 5; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; onChanged(); return this; } /** *
     * The value of the impact assessment factor.
     * 
* * double value = 5; * @return This builder for chaining. */ public Builder clearValue() { value_ = 0D; onChanged(); return this; } private java.lang.Object formula_ = ""; /** *
     * A mathematical formula for calculating the value of the LCIA factor.
     * 
* * string formula = 6; * @return The formula. */ public java.lang.String getFormula() { java.lang.Object ref = formula_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); formula_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A mathematical formula for calculating the value of the LCIA factor.
     * 
* * string formula = 6; * @return The bytes for formula. */ public com.google.protobuf.ByteString getFormulaBytes() { java.lang.Object ref = formula_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formula_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A mathematical formula for calculating the value of the LCIA factor.
     * 
* * string formula = 6; * @param value The formula to set. * @return This builder for chaining. */ public Builder setFormula( java.lang.String value) { if (value == null) { throw new NullPointerException(); } formula_ = value; onChanged(); return this; } /** *
     * A mathematical formula for calculating the value of the LCIA factor.
     * 
* * string formula = 6; * @return This builder for chaining. */ public Builder clearFormula() { formula_ = getDefaultInstance().getFormula(); onChanged(); return this; } /** *
     * A mathematical formula for calculating the value of the LCIA factor.
     * 
* * string formula = 6; * @param value The bytes for formula to set. * @return This builder for chaining. */ public Builder setFormulaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); formula_ = value; onChanged(); return this; } private org.openlca.proto.ProtoUncertainty uncertainty_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder> uncertaintyBuilder_; /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; * @return Whether the uncertainty field is set. */ public boolean hasUncertainty() { return uncertaintyBuilder_ != null || uncertainty_ != null; } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; * @return The uncertainty. */ public org.openlca.proto.ProtoUncertainty getUncertainty() { if (uncertaintyBuilder_ == null) { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } else { return uncertaintyBuilder_.getMessage(); } } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public Builder setUncertainty(org.openlca.proto.ProtoUncertainty value) { if (uncertaintyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uncertainty_ = value; onChanged(); } else { uncertaintyBuilder_.setMessage(value); } return this; } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public Builder setUncertainty( org.openlca.proto.ProtoUncertainty.Builder builderForValue) { if (uncertaintyBuilder_ == null) { uncertainty_ = builderForValue.build(); onChanged(); } else { uncertaintyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public Builder mergeUncertainty(org.openlca.proto.ProtoUncertainty value) { if (uncertaintyBuilder_ == null) { if (uncertainty_ != null) { uncertainty_ = org.openlca.proto.ProtoUncertainty.newBuilder(uncertainty_).mergeFrom(value).buildPartial(); } else { uncertainty_ = value; } onChanged(); } else { uncertaintyBuilder_.mergeFrom(value); } return this; } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public Builder clearUncertainty() { if (uncertaintyBuilder_ == null) { uncertainty_ = null; onChanged(); } else { uncertainty_ = null; uncertaintyBuilder_ = null; } return this; } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public org.openlca.proto.ProtoUncertainty.Builder getUncertaintyBuilder() { onChanged(); return getUncertaintyFieldBuilder().getBuilder(); } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ public org.openlca.proto.ProtoUncertaintyOrBuilder getUncertaintyOrBuilder() { if (uncertaintyBuilder_ != null) { return uncertaintyBuilder_.getMessageOrBuilder(); } else { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } } /** *
     * The uncertainty distribution of the factors' value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder> getUncertaintyFieldBuilder() { if (uncertaintyBuilder_ == null) { uncertaintyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder>( getUncertainty(), getParentForChildren(), isClean()); uncertainty_ = null; } return uncertaintyBuilder_; } @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.ProtoImpactFactor) } // @@protoc_insertion_point(class_scope:protolca.ProtoImpactFactor) private static final org.openlca.proto.ProtoImpactFactor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoImpactFactor(); } public static org.openlca.proto.ProtoImpactFactor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoImpactFactor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoImpactFactor(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.ProtoImpactFactor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy