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

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

There is a newer version: 2.0.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: olca.proto

package org.openlca.proto;

/**
 * 
 * A setup for a product system calculation.
 * 
* * Protobuf type {@code protolca.ProtoCalculationSetup} */ public final class ProtoCalculationSetup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoCalculationSetup) ProtoCalculationSetupOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoCalculationSetup.newBuilder() to construct. private ProtoCalculationSetup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoCalculationSetup() { calculationType_ = 0; parameters_ = java.util.Collections.emptyList(); allocation_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoCalculationSetup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoCalculationSetup( 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 8: { int rawValue = input.readEnum(); calculationType_ = rawValue; break; } case 18: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (productSystem_ != null) { subBuilder = productSystem_.toBuilder(); } productSystem_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(productSystem_); productSystem_ = subBuilder.buildPartial(); } break; } case 26: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (process_ != null) { subBuilder = process_.toBuilder(); } process_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(process_); process_ = subBuilder.buildPartial(); } break; } case 34: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (impactMethod_ != null) { subBuilder = impactMethod_.toBuilder(); } impactMethod_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(impactMethod_); impactMethod_ = subBuilder.buildPartial(); } break; } case 42: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (nwSet_ != null) { subBuilder = nwSet_.toBuilder(); } nwSet_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nwSet_); nwSet_ = subBuilder.buildPartial(); } break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } parameters_.add( input.readMessage(org.openlca.proto.ProtoParameterRedef.parser(), extensionRegistry)); break; } case 56: { int rawValue = input.readEnum(); allocation_ = rawValue; break; } case 64: { withCosts_ = input.readBool(); break; } case 72: { withRegionalization_ = input.readBool(); break; } case 82: { 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 89: { amount_ = input.readDouble(); break; } case 98: { 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 104: { numberOfRuns_ = input.readInt32(); 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)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoCalculationSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoCalculationSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoCalculationSetup.class, org.openlca.proto.ProtoCalculationSetup.Builder.class); } public static final int CALCULATION_TYPE_FIELD_NUMBER = 1; private int calculationType_; /** *
   * The type of calculation that should be performed.
   * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @return The enum numeric value on the wire for calculationType. */ @java.lang.Override public int getCalculationTypeValue() { return calculationType_; } /** *
   * The type of calculation that should be performed.
   * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @return The calculationType. */ @java.lang.Override public org.openlca.proto.ProtoCalculationType getCalculationType() { @SuppressWarnings("deprecation") org.openlca.proto.ProtoCalculationType result = org.openlca.proto.ProtoCalculationType.valueOf(calculationType_); return result == null ? org.openlca.proto.ProtoCalculationType.UNRECOGNIZED : result; } public static final int PRODUCT_SYSTEM_FIELD_NUMBER = 2; private org.openlca.proto.ProtoRef productSystem_; /** *
   * The product system that should be calculated.
   * 
* * .protolca.ProtoRef product_system = 2; * @return Whether the productSystem field is set. */ @java.lang.Override public boolean hasProductSystem() { return productSystem_ != null; } /** *
   * The product system that should be calculated.
   * 
* * .protolca.ProtoRef product_system = 2; * @return The productSystem. */ @java.lang.Override public org.openlca.proto.ProtoRef getProductSystem() { return productSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : productSystem_; } /** *
   * The product system that should be calculated.
   * 
* * .protolca.ProtoRef product_system = 2; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getProductSystemOrBuilder() { return getProductSystem(); } public static final int PROCESS_FIELD_NUMBER = 3; private org.openlca.proto.ProtoRef process_; /** *
   * The process that should be calculated.
   * 
* * .protolca.ProtoRef process = 3; * @return Whether the process field is set. */ @java.lang.Override public boolean hasProcess() { return process_ != null; } /** *
   * The process that should be calculated.
   * 
* * .protolca.ProtoRef process = 3; * @return The process. */ @java.lang.Override public org.openlca.proto.ProtoRef getProcess() { return process_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : process_; } /** *
   * The process that should be calculated.
   * 
* * .protolca.ProtoRef process = 3; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getProcessOrBuilder() { return getProcess(); } public static final int IMPACT_METHOD_FIELD_NUMBER = 4; private org.openlca.proto.ProtoRef impactMethod_; /** *
   * The LCIA method for the calculation.
   * 
* * .protolca.ProtoRef impact_method = 4; * @return Whether the impactMethod field is set. */ @java.lang.Override public boolean hasImpactMethod() { return impactMethod_ != null; } /** *
   * The LCIA method for the calculation.
   * 
* * .protolca.ProtoRef impact_method = 4; * @return The impactMethod. */ @java.lang.Override public org.openlca.proto.ProtoRef getImpactMethod() { return impactMethod_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : impactMethod_; } /** *
   * The LCIA method for the calculation.
   * 
* * .protolca.ProtoRef impact_method = 4; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getImpactMethodOrBuilder() { return getImpactMethod(); } public static final int NW_SET_FIELD_NUMBER = 5; private org.openlca.proto.ProtoRef nwSet_; /** *
   * The normalisation and weighting set for the calculation.
   * 
* * .protolca.ProtoRef nw_set = 5; * @return Whether the nwSet field is set. */ @java.lang.Override public boolean hasNwSet() { return nwSet_ != null; } /** *
   * The normalisation and weighting set for the calculation.
   * 
* * .protolca.ProtoRef nw_set = 5; * @return The nwSet. */ @java.lang.Override public org.openlca.proto.ProtoRef getNwSet() { return nwSet_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : nwSet_; } /** *
   * The normalisation and weighting set for the calculation.
   * 
* * .protolca.ProtoRef nw_set = 5; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getNwSetOrBuilder() { return getNwSet(); } public static final int PARAMETERS_FIELD_NUMBER = 6; private java.util.List parameters_; /** *
   * A list of parameter redefinitions that should be used in the calculation.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ @java.lang.Override public java.util.List getParametersList() { return parameters_; } /** *
   * A list of parameter redefinitions that should be used in the calculation.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ @java.lang.Override public java.util.List getParametersOrBuilderList() { return parameters_; } /** *
   * A list of parameter redefinitions that should be used in the calculation.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** *
   * A list of parameter redefinitions that should be used in the calculation.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ @java.lang.Override public org.openlca.proto.ProtoParameterRedef getParameters(int index) { return parameters_.get(index); } /** *
   * A list of parameter redefinitions that should be used in the calculation.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ @java.lang.Override public org.openlca.proto.ProtoParameterRedefOrBuilder getParametersOrBuilder( int index) { return parameters_.get(index); } public static final int ALLOCATION_FIELD_NUMBER = 7; private int allocation_; /** *
   * The calculation type to be used in the calculation.
   * 
* * .protolca.ProtoAllocationType allocation = 7; * @return The enum numeric value on the wire for allocation. */ @java.lang.Override public int getAllocationValue() { return allocation_; } /** *
   * The calculation type to be used in the calculation.
   * 
* * .protolca.ProtoAllocationType allocation = 7; * @return The allocation. */ @java.lang.Override public org.openlca.proto.ProtoAllocationType getAllocation() { @SuppressWarnings("deprecation") org.openlca.proto.ProtoAllocationType result = org.openlca.proto.ProtoAllocationType.valueOf(allocation_); return result == null ? org.openlca.proto.ProtoAllocationType.UNRECOGNIZED : result; } public static final int WITH_COSTS_FIELD_NUMBER = 8; private boolean withCosts_; /** *
   * Indicates whether life cycle costs should be also calculated.
   * 
* * bool with_costs = 8; * @return The withCosts. */ @java.lang.Override public boolean getWithCosts() { return withCosts_; } public static final int WITH_REGIONALIZATION_FIELD_NUMBER = 9; private boolean withRegionalization_; /** *
   * Indicates whether a regionalized result should be calculated or not.
   * 
* * bool with_regionalization = 9; * @return The withRegionalization. */ @java.lang.Override public boolean getWithRegionalization() { return withRegionalization_; } public static final int UNIT_FIELD_NUMBER = 10; private org.openlca.proto.ProtoRef unit_; /** * .protolca.ProtoRef unit = 10; * @return Whether the unit field is set. */ @java.lang.Override public boolean hasUnit() { return unit_ != null; } /** * .protolca.ProtoRef unit = 10; * @return The unit. */ @java.lang.Override public org.openlca.proto.ProtoRef getUnit() { return unit_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : unit_; } /** * .protolca.ProtoRef unit = 10; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getUnitOrBuilder() { return getUnit(); } public static final int AMOUNT_FIELD_NUMBER = 11; private double amount_; /** * double amount = 11; * @return The amount. */ @java.lang.Override public double getAmount() { return amount_; } public static final int FLOW_PROPERTY_FIELD_NUMBER = 12; private org.openlca.proto.ProtoRef flowProperty_; /** * .protolca.ProtoRef flow_property = 12; * @return Whether the flowProperty field is set. */ @java.lang.Override public boolean hasFlowProperty() { return flowProperty_ != null; } /** * .protolca.ProtoRef flow_property = 12; * @return The flowProperty. */ @java.lang.Override public org.openlca.proto.ProtoRef getFlowProperty() { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } /** * .protolca.ProtoRef flow_property = 12; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { return getFlowProperty(); } public static final int NUMBER_OF_RUNS_FIELD_NUMBER = 13; private int numberOfRuns_; /** *
   * This field is only valid when this setup describes a Monte Carlo
   * simulation and contains the number of simulation runs in that case.
   * 
* * int32 number_of_runs = 13; * @return The numberOfRuns. */ @java.lang.Override public int getNumberOfRuns() { return numberOfRuns_; } 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 (calculationType_ != org.openlca.proto.ProtoCalculationType.UNDEFINED_CALCULATION_TYPE.getNumber()) { output.writeEnum(1, calculationType_); } if (productSystem_ != null) { output.writeMessage(2, getProductSystem()); } if (process_ != null) { output.writeMessage(3, getProcess()); } if (impactMethod_ != null) { output.writeMessage(4, getImpactMethod()); } if (nwSet_ != null) { output.writeMessage(5, getNwSet()); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(6, parameters_.get(i)); } if (allocation_ != org.openlca.proto.ProtoAllocationType.UNDEFINED_ALLOCATION_TYPE.getNumber()) { output.writeEnum(7, allocation_); } if (withCosts_ != false) { output.writeBool(8, withCosts_); } if (withRegionalization_ != false) { output.writeBool(9, withRegionalization_); } if (unit_ != null) { output.writeMessage(10, getUnit()); } if (amount_ != 0D) { output.writeDouble(11, amount_); } if (flowProperty_ != null) { output.writeMessage(12, getFlowProperty()); } if (numberOfRuns_ != 0) { output.writeInt32(13, numberOfRuns_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (calculationType_ != org.openlca.proto.ProtoCalculationType.UNDEFINED_CALCULATION_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, calculationType_); } if (productSystem_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getProductSystem()); } if (process_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getProcess()); } if (impactMethod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getImpactMethod()); } if (nwSet_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getNwSet()); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, parameters_.get(i)); } if (allocation_ != org.openlca.proto.ProtoAllocationType.UNDEFINED_ALLOCATION_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, allocation_); } if (withCosts_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, withCosts_); } if (withRegionalization_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, withRegionalization_); } if (unit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getUnit()); } if (amount_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, amount_); } if (flowProperty_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getFlowProperty()); } if (numberOfRuns_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, numberOfRuns_); } 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.ProtoCalculationSetup)) { return super.equals(obj); } org.openlca.proto.ProtoCalculationSetup other = (org.openlca.proto.ProtoCalculationSetup) obj; if (calculationType_ != other.calculationType_) return false; if (hasProductSystem() != other.hasProductSystem()) return false; if (hasProductSystem()) { if (!getProductSystem() .equals(other.getProductSystem())) return false; } if (hasProcess() != other.hasProcess()) return false; if (hasProcess()) { if (!getProcess() .equals(other.getProcess())) return false; } if (hasImpactMethod() != other.hasImpactMethod()) return false; if (hasImpactMethod()) { if (!getImpactMethod() .equals(other.getImpactMethod())) return false; } if (hasNwSet() != other.hasNwSet()) return false; if (hasNwSet()) { if (!getNwSet() .equals(other.getNwSet())) return false; } if (!getParametersList() .equals(other.getParametersList())) return false; if (allocation_ != other.allocation_) return false; if (getWithCosts() != other.getWithCosts()) return false; if (getWithRegionalization() != other.getWithRegionalization()) return false; if (hasUnit() != other.hasUnit()) return false; if (hasUnit()) { if (!getUnit() .equals(other.getUnit())) return false; } if (java.lang.Double.doubleToLongBits(getAmount()) != java.lang.Double.doubleToLongBits( other.getAmount())) return false; if (hasFlowProperty() != other.hasFlowProperty()) return false; if (hasFlowProperty()) { if (!getFlowProperty() .equals(other.getFlowProperty())) return false; } if (getNumberOfRuns() != other.getNumberOfRuns()) 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) + CALCULATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + calculationType_; if (hasProductSystem()) { hash = (37 * hash) + PRODUCT_SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getProductSystem().hashCode(); } if (hasProcess()) { hash = (37 * hash) + PROCESS_FIELD_NUMBER; hash = (53 * hash) + getProcess().hashCode(); } if (hasImpactMethod()) { hash = (37 * hash) + IMPACT_METHOD_FIELD_NUMBER; hash = (53 * hash) + getImpactMethod().hashCode(); } if (hasNwSet()) { hash = (37 * hash) + NW_SET_FIELD_NUMBER; hash = (53 * hash) + getNwSet().hashCode(); } if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } hash = (37 * hash) + ALLOCATION_FIELD_NUMBER; hash = (53 * hash) + allocation_; hash = (37 * hash) + WITH_COSTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithCosts()); hash = (37 * hash) + WITH_REGIONALIZATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWithRegionalization()); if (hasUnit()) { hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); } hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAmount())); if (hasFlowProperty()) { hash = (37 * hash) + FLOW_PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getFlowProperty().hashCode(); } hash = (37 * hash) + NUMBER_OF_RUNS_FIELD_NUMBER; hash = (53 * hash) + getNumberOfRuns(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoCalculationSetup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoCalculationSetup 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.ProtoCalculationSetup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoCalculationSetup 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.ProtoCalculationSetup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoCalculationSetup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoCalculationSetup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoCalculationSetup 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.ProtoCalculationSetup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoCalculationSetup 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.ProtoCalculationSetup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoCalculationSetup 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.ProtoCalculationSetup 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 setup for a product system calculation.
   * 
* * Protobuf type {@code protolca.ProtoCalculationSetup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoCalculationSetup) org.openlca.proto.ProtoCalculationSetupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoCalculationSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoCalculationSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoCalculationSetup.class, org.openlca.proto.ProtoCalculationSetup.Builder.class); } // Construct using org.openlca.proto.ProtoCalculationSetup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParametersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); calculationType_ = 0; if (productSystemBuilder_ == null) { productSystem_ = null; } else { productSystem_ = null; productSystemBuilder_ = null; } if (processBuilder_ == null) { process_ = null; } else { process_ = null; processBuilder_ = null; } if (impactMethodBuilder_ == null) { impactMethod_ = null; } else { impactMethod_ = null; impactMethodBuilder_ = null; } if (nwSetBuilder_ == null) { nwSet_ = null; } else { nwSet_ = null; nwSetBuilder_ = null; } if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { parametersBuilder_.clear(); } allocation_ = 0; withCosts_ = false; withRegionalization_ = false; if (unitBuilder_ == null) { unit_ = null; } else { unit_ = null; unitBuilder_ = null; } amount_ = 0D; if (flowPropertyBuilder_ == null) { flowProperty_ = null; } else { flowProperty_ = null; flowPropertyBuilder_ = null; } numberOfRuns_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoCalculationSetup_descriptor; } @java.lang.Override public org.openlca.proto.ProtoCalculationSetup getDefaultInstanceForType() { return org.openlca.proto.ProtoCalculationSetup.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoCalculationSetup build() { org.openlca.proto.ProtoCalculationSetup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoCalculationSetup buildPartial() { org.openlca.proto.ProtoCalculationSetup result = new org.openlca.proto.ProtoCalculationSetup(this); int from_bitField0_ = bitField0_; result.calculationType_ = calculationType_; if (productSystemBuilder_ == null) { result.productSystem_ = productSystem_; } else { result.productSystem_ = productSystemBuilder_.build(); } if (processBuilder_ == null) { result.process_ = process_; } else { result.process_ = processBuilder_.build(); } if (impactMethodBuilder_ == null) { result.impactMethod_ = impactMethod_; } else { result.impactMethod_ = impactMethodBuilder_.build(); } if (nwSetBuilder_ == null) { result.nwSet_ = nwSet_; } else { result.nwSet_ = nwSetBuilder_.build(); } if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); bitField0_ = (bitField0_ & ~0x00000001); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } result.allocation_ = allocation_; result.withCosts_ = withCosts_; result.withRegionalization_ = withRegionalization_; if (unitBuilder_ == null) { result.unit_ = unit_; } else { result.unit_ = unitBuilder_.build(); } result.amount_ = amount_; if (flowPropertyBuilder_ == null) { result.flowProperty_ = flowProperty_; } else { result.flowProperty_ = flowPropertyBuilder_.build(); } result.numberOfRuns_ = numberOfRuns_; 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.ProtoCalculationSetup) { return mergeFrom((org.openlca.proto.ProtoCalculationSetup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoCalculationSetup other) { if (other == org.openlca.proto.ProtoCalculationSetup.getDefaultInstance()) return this; if (other.calculationType_ != 0) { setCalculationTypeValue(other.getCalculationTypeValue()); } if (other.hasProductSystem()) { mergeProductSystem(other.getProductSystem()); } if (other.hasProcess()) { mergeProcess(other.getProcess()); } if (other.hasImpactMethod()) { mergeImpactMethod(other.getImpactMethod()); } if (other.hasNwSet()) { mergeNwSet(other.getNwSet()); } if (parametersBuilder_ == null) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } } else { if (!other.parameters_.isEmpty()) { if (parametersBuilder_.isEmpty()) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } } } if (other.allocation_ != 0) { setAllocationValue(other.getAllocationValue()); } if (other.getWithCosts() != false) { setWithCosts(other.getWithCosts()); } if (other.getWithRegionalization() != false) { setWithRegionalization(other.getWithRegionalization()); } if (other.hasUnit()) { mergeUnit(other.getUnit()); } if (other.getAmount() != 0D) { setAmount(other.getAmount()); } if (other.hasFlowProperty()) { mergeFlowProperty(other.getFlowProperty()); } if (other.getNumberOfRuns() != 0) { setNumberOfRuns(other.getNumberOfRuns()); } 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.ProtoCalculationSetup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoCalculationSetup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int calculationType_ = 0; /** *
     * The type of calculation that should be performed.
     * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @return The enum numeric value on the wire for calculationType. */ @java.lang.Override public int getCalculationTypeValue() { return calculationType_; } /** *
     * The type of calculation that should be performed.
     * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @param value The enum numeric value on the wire for calculationType to set. * @return This builder for chaining. */ public Builder setCalculationTypeValue(int value) { calculationType_ = value; onChanged(); return this; } /** *
     * The type of calculation that should be performed.
     * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @return The calculationType. */ @java.lang.Override public org.openlca.proto.ProtoCalculationType getCalculationType() { @SuppressWarnings("deprecation") org.openlca.proto.ProtoCalculationType result = org.openlca.proto.ProtoCalculationType.valueOf(calculationType_); return result == null ? org.openlca.proto.ProtoCalculationType.UNRECOGNIZED : result; } /** *
     * The type of calculation that should be performed.
     * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @param value The calculationType to set. * @return This builder for chaining. */ public Builder setCalculationType(org.openlca.proto.ProtoCalculationType value) { if (value == null) { throw new NullPointerException(); } calculationType_ = value.getNumber(); onChanged(); return this; } /** *
     * The type of calculation that should be performed.
     * 
* * .protolca.ProtoCalculationType calculation_type = 1; * @return This builder for chaining. */ public Builder clearCalculationType() { calculationType_ = 0; onChanged(); return this; } private org.openlca.proto.ProtoRef productSystem_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> productSystemBuilder_; /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; * @return Whether the productSystem field is set. */ public boolean hasProductSystem() { return productSystemBuilder_ != null || productSystem_ != null; } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; * @return The productSystem. */ public org.openlca.proto.ProtoRef getProductSystem() { if (productSystemBuilder_ == null) { return productSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : productSystem_; } else { return productSystemBuilder_.getMessage(); } } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public Builder setProductSystem(org.openlca.proto.ProtoRef value) { if (productSystemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } productSystem_ = value; onChanged(); } else { productSystemBuilder_.setMessage(value); } return this; } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public Builder setProductSystem( org.openlca.proto.ProtoRef.Builder builderForValue) { if (productSystemBuilder_ == null) { productSystem_ = builderForValue.build(); onChanged(); } else { productSystemBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public Builder mergeProductSystem(org.openlca.proto.ProtoRef value) { if (productSystemBuilder_ == null) { if (productSystem_ != null) { productSystem_ = org.openlca.proto.ProtoRef.newBuilder(productSystem_).mergeFrom(value).buildPartial(); } else { productSystem_ = value; } onChanged(); } else { productSystemBuilder_.mergeFrom(value); } return this; } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public Builder clearProductSystem() { if (productSystemBuilder_ == null) { productSystem_ = null; onChanged(); } else { productSystem_ = null; productSystemBuilder_ = null; } return this; } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public org.openlca.proto.ProtoRef.Builder getProductSystemBuilder() { onChanged(); return getProductSystemFieldBuilder().getBuilder(); } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ public org.openlca.proto.ProtoRefOrBuilder getProductSystemOrBuilder() { if (productSystemBuilder_ != null) { return productSystemBuilder_.getMessageOrBuilder(); } else { return productSystem_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : productSystem_; } } /** *
     * The product system that should be calculated.
     * 
* * .protolca.ProtoRef product_system = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getProductSystemFieldBuilder() { if (productSystemBuilder_ == null) { productSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getProductSystem(), getParentForChildren(), isClean()); productSystem_ = null; } return productSystemBuilder_; } private org.openlca.proto.ProtoRef process_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> processBuilder_; /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; * @return Whether the process field is set. */ public boolean hasProcess() { return processBuilder_ != null || process_ != null; } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; * @return The process. */ public org.openlca.proto.ProtoRef getProcess() { if (processBuilder_ == null) { return process_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : process_; } else { return processBuilder_.getMessage(); } } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public Builder setProcess(org.openlca.proto.ProtoRef value) { if (processBuilder_ == null) { if (value == null) { throw new NullPointerException(); } process_ = value; onChanged(); } else { processBuilder_.setMessage(value); } return this; } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public Builder setProcess( org.openlca.proto.ProtoRef.Builder builderForValue) { if (processBuilder_ == null) { process_ = builderForValue.build(); onChanged(); } else { processBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public Builder mergeProcess(org.openlca.proto.ProtoRef value) { if (processBuilder_ == null) { if (process_ != null) { process_ = org.openlca.proto.ProtoRef.newBuilder(process_).mergeFrom(value).buildPartial(); } else { process_ = value; } onChanged(); } else { processBuilder_.mergeFrom(value); } return this; } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public Builder clearProcess() { if (processBuilder_ == null) { process_ = null; onChanged(); } else { process_ = null; processBuilder_ = null; } return this; } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public org.openlca.proto.ProtoRef.Builder getProcessBuilder() { onChanged(); return getProcessFieldBuilder().getBuilder(); } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ public org.openlca.proto.ProtoRefOrBuilder getProcessOrBuilder() { if (processBuilder_ != null) { return processBuilder_.getMessageOrBuilder(); } else { return process_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : process_; } } /** *
     * The process that should be calculated.
     * 
* * .protolca.ProtoRef process = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getProcessFieldBuilder() { if (processBuilder_ == null) { processBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getProcess(), getParentForChildren(), isClean()); process_ = null; } return processBuilder_; } private org.openlca.proto.ProtoRef impactMethod_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> impactMethodBuilder_; /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; * @return Whether the impactMethod field is set. */ public boolean hasImpactMethod() { return impactMethodBuilder_ != null || impactMethod_ != null; } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; * @return The impactMethod. */ public org.openlca.proto.ProtoRef getImpactMethod() { if (impactMethodBuilder_ == null) { return impactMethod_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : impactMethod_; } else { return impactMethodBuilder_.getMessage(); } } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public Builder setImpactMethod(org.openlca.proto.ProtoRef value) { if (impactMethodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } impactMethod_ = value; onChanged(); } else { impactMethodBuilder_.setMessage(value); } return this; } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public Builder setImpactMethod( org.openlca.proto.ProtoRef.Builder builderForValue) { if (impactMethodBuilder_ == null) { impactMethod_ = builderForValue.build(); onChanged(); } else { impactMethodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public Builder mergeImpactMethod(org.openlca.proto.ProtoRef value) { if (impactMethodBuilder_ == null) { if (impactMethod_ != null) { impactMethod_ = org.openlca.proto.ProtoRef.newBuilder(impactMethod_).mergeFrom(value).buildPartial(); } else { impactMethod_ = value; } onChanged(); } else { impactMethodBuilder_.mergeFrom(value); } return this; } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public Builder clearImpactMethod() { if (impactMethodBuilder_ == null) { impactMethod_ = null; onChanged(); } else { impactMethod_ = null; impactMethodBuilder_ = null; } return this; } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public org.openlca.proto.ProtoRef.Builder getImpactMethodBuilder() { onChanged(); return getImpactMethodFieldBuilder().getBuilder(); } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ public org.openlca.proto.ProtoRefOrBuilder getImpactMethodOrBuilder() { if (impactMethodBuilder_ != null) { return impactMethodBuilder_.getMessageOrBuilder(); } else { return impactMethod_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : impactMethod_; } } /** *
     * The LCIA method for the calculation.
     * 
* * .protolca.ProtoRef impact_method = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getImpactMethodFieldBuilder() { if (impactMethodBuilder_ == null) { impactMethodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getImpactMethod(), getParentForChildren(), isClean()); impactMethod_ = null; } return impactMethodBuilder_; } private org.openlca.proto.ProtoRef nwSet_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> nwSetBuilder_; /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; * @return Whether the nwSet field is set. */ public boolean hasNwSet() { return nwSetBuilder_ != null || nwSet_ != null; } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; * @return The nwSet. */ public org.openlca.proto.ProtoRef getNwSet() { if (nwSetBuilder_ == null) { return nwSet_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : nwSet_; } else { return nwSetBuilder_.getMessage(); } } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public Builder setNwSet(org.openlca.proto.ProtoRef value) { if (nwSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nwSet_ = value; onChanged(); } else { nwSetBuilder_.setMessage(value); } return this; } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public Builder setNwSet( org.openlca.proto.ProtoRef.Builder builderForValue) { if (nwSetBuilder_ == null) { nwSet_ = builderForValue.build(); onChanged(); } else { nwSetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public Builder mergeNwSet(org.openlca.proto.ProtoRef value) { if (nwSetBuilder_ == null) { if (nwSet_ != null) { nwSet_ = org.openlca.proto.ProtoRef.newBuilder(nwSet_).mergeFrom(value).buildPartial(); } else { nwSet_ = value; } onChanged(); } else { nwSetBuilder_.mergeFrom(value); } return this; } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public Builder clearNwSet() { if (nwSetBuilder_ == null) { nwSet_ = null; onChanged(); } else { nwSet_ = null; nwSetBuilder_ = null; } return this; } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public org.openlca.proto.ProtoRef.Builder getNwSetBuilder() { onChanged(); return getNwSetFieldBuilder().getBuilder(); } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ public org.openlca.proto.ProtoRefOrBuilder getNwSetOrBuilder() { if (nwSetBuilder_ != null) { return nwSetBuilder_.getMessageOrBuilder(); } else { return nwSet_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : nwSet_; } } /** *
     * The normalisation and weighting set for the calculation.
     * 
* * .protolca.ProtoRef nw_set = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getNwSetFieldBuilder() { if (nwSetBuilder_ == null) { nwSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getNwSet(), getParentForChildren(), isClean()); nwSet_ = null; } return nwSetBuilder_; } private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder> parametersBuilder_; /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { return parametersBuilder_.getMessageList(); } } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public int getParametersCount() { if (parametersBuilder_ == null) { return parameters_.size(); } else { return parametersBuilder_.getCount(); } } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public org.openlca.proto.ProtoParameterRedef getParameters(int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessage(index); } } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder setParameters( int index, org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.set(index, value); onChanged(); } else { parametersBuilder_.setMessage(index, value); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder setParameters( int index, org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder addParameters(org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(value); onChanged(); } else { parametersBuilder_.addMessage(value); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder addParameters( int index, org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(index, value); onChanged(); } else { parametersBuilder_.addMessage(index, value); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder addParameters( org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder addParameters( int index, org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { parametersBuilder_.clear(); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.remove(index); onChanged(); } else { parametersBuilder_.remove(index); } return this; } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public org.openlca.proto.ProtoParameterRedef.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public org.openlca.proto.ProtoParameterRedefOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public java.util.List getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameters_); } } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public org.openlca.proto.ProtoParameterRedef.Builder addParametersBuilder() { return getParametersFieldBuilder().addBuilder( org.openlca.proto.ProtoParameterRedef.getDefaultInstance()); } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public org.openlca.proto.ProtoParameterRedef.Builder addParametersBuilder( int index) { return getParametersFieldBuilder().addBuilder( index, org.openlca.proto.ProtoParameterRedef.getDefaultInstance()); } /** *
     * A list of parameter redefinitions that should be used in the calculation.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 6; */ public java.util.List getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder>( parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private int allocation_ = 0; /** *
     * The calculation type to be used in the calculation.
     * 
* * .protolca.ProtoAllocationType allocation = 7; * @return The enum numeric value on the wire for allocation. */ @java.lang.Override public int getAllocationValue() { return allocation_; } /** *
     * The calculation type to be used in the calculation.
     * 
* * .protolca.ProtoAllocationType allocation = 7; * @param value The enum numeric value on the wire for allocation to set. * @return This builder for chaining. */ public Builder setAllocationValue(int value) { allocation_ = value; onChanged(); return this; } /** *
     * The calculation type to be used in the calculation.
     * 
* * .protolca.ProtoAllocationType allocation = 7; * @return The allocation. */ @java.lang.Override public org.openlca.proto.ProtoAllocationType getAllocation() { @SuppressWarnings("deprecation") org.openlca.proto.ProtoAllocationType result = org.openlca.proto.ProtoAllocationType.valueOf(allocation_); return result == null ? org.openlca.proto.ProtoAllocationType.UNRECOGNIZED : result; } /** *
     * The calculation type to be used in the calculation.
     * 
* * .protolca.ProtoAllocationType allocation = 7; * @param value The allocation to set. * @return This builder for chaining. */ public Builder setAllocation(org.openlca.proto.ProtoAllocationType value) { if (value == null) { throw new NullPointerException(); } allocation_ = value.getNumber(); onChanged(); return this; } /** *
     * The calculation type to be used in the calculation.
     * 
* * .protolca.ProtoAllocationType allocation = 7; * @return This builder for chaining. */ public Builder clearAllocation() { allocation_ = 0; onChanged(); return this; } private boolean withCosts_ ; /** *
     * Indicates whether life cycle costs should be also calculated.
     * 
* * bool with_costs = 8; * @return The withCosts. */ @java.lang.Override public boolean getWithCosts() { return withCosts_; } /** *
     * Indicates whether life cycle costs should be also calculated.
     * 
* * bool with_costs = 8; * @param value The withCosts to set. * @return This builder for chaining. */ public Builder setWithCosts(boolean value) { withCosts_ = value; onChanged(); return this; } /** *
     * Indicates whether life cycle costs should be also calculated.
     * 
* * bool with_costs = 8; * @return This builder for chaining. */ public Builder clearWithCosts() { withCosts_ = false; onChanged(); return this; } private boolean withRegionalization_ ; /** *
     * Indicates whether a regionalized result should be calculated or not.
     * 
* * bool with_regionalization = 9; * @return The withRegionalization. */ @java.lang.Override public boolean getWithRegionalization() { return withRegionalization_; } /** *
     * Indicates whether a regionalized result should be calculated or not.
     * 
* * bool with_regionalization = 9; * @param value The withRegionalization to set. * @return This builder for chaining. */ public Builder setWithRegionalization(boolean value) { withRegionalization_ = value; onChanged(); return this; } /** *
     * Indicates whether a regionalized result should be calculated or not.
     * 
* * bool with_regionalization = 9; * @return This builder for chaining. */ public Builder clearWithRegionalization() { withRegionalization_ = false; onChanged(); return this; } 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_; /** * .protolca.ProtoRef unit = 10; * @return Whether the unit field is set. */ public boolean hasUnit() { return unitBuilder_ != null || unit_ != null; } /** * .protolca.ProtoRef unit = 10; * @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(); } } /** * .protolca.ProtoRef unit = 10; */ 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; } /** * .protolca.ProtoRef unit = 10; */ public Builder setUnit( org.openlca.proto.ProtoRef.Builder builderForValue) { if (unitBuilder_ == null) { unit_ = builderForValue.build(); onChanged(); } else { unitBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protolca.ProtoRef unit = 10; */ 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; } /** * .protolca.ProtoRef unit = 10; */ public Builder clearUnit() { if (unitBuilder_ == null) { unit_ = null; onChanged(); } else { unit_ = null; unitBuilder_ = null; } return this; } /** * .protolca.ProtoRef unit = 10; */ public org.openlca.proto.ProtoRef.Builder getUnitBuilder() { onChanged(); return getUnitFieldBuilder().getBuilder(); } /** * .protolca.ProtoRef unit = 10; */ public org.openlca.proto.ProtoRefOrBuilder getUnitOrBuilder() { if (unitBuilder_ != null) { return unitBuilder_.getMessageOrBuilder(); } else { return unit_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : unit_; } } /** * .protolca.ProtoRef unit = 10; */ 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 amount_ ; /** * double amount = 11; * @return The amount. */ @java.lang.Override public double getAmount() { return amount_; } /** * double amount = 11; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(double value) { amount_ = value; onChanged(); return this; } /** * double amount = 11; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = 0D; onChanged(); return this; } 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_; /** * .protolca.ProtoRef flow_property = 12; * @return Whether the flowProperty field is set. */ public boolean hasFlowProperty() { return flowPropertyBuilder_ != null || flowProperty_ != null; } /** * .protolca.ProtoRef flow_property = 12; * @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(); } } /** * .protolca.ProtoRef flow_property = 12; */ 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; } /** * .protolca.ProtoRef flow_property = 12; */ public Builder setFlowProperty( org.openlca.proto.ProtoRef.Builder builderForValue) { if (flowPropertyBuilder_ == null) { flowProperty_ = builderForValue.build(); onChanged(); } else { flowPropertyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protolca.ProtoRef flow_property = 12; */ 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; } /** * .protolca.ProtoRef flow_property = 12; */ public Builder clearFlowProperty() { if (flowPropertyBuilder_ == null) { flowProperty_ = null; onChanged(); } else { flowProperty_ = null; flowPropertyBuilder_ = null; } return this; } /** * .protolca.ProtoRef flow_property = 12; */ public org.openlca.proto.ProtoRef.Builder getFlowPropertyBuilder() { onChanged(); return getFlowPropertyFieldBuilder().getBuilder(); } /** * .protolca.ProtoRef flow_property = 12; */ public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { if (flowPropertyBuilder_ != null) { return flowPropertyBuilder_.getMessageOrBuilder(); } else { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } } /** * .protolca.ProtoRef flow_property = 12; */ 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 int numberOfRuns_ ; /** *
     * This field is only valid when this setup describes a Monte Carlo
     * simulation and contains the number of simulation runs in that case.
     * 
* * int32 number_of_runs = 13; * @return The numberOfRuns. */ @java.lang.Override public int getNumberOfRuns() { return numberOfRuns_; } /** *
     * This field is only valid when this setup describes a Monte Carlo
     * simulation and contains the number of simulation runs in that case.
     * 
* * int32 number_of_runs = 13; * @param value The numberOfRuns to set. * @return This builder for chaining. */ public Builder setNumberOfRuns(int value) { numberOfRuns_ = value; onChanged(); return this; } /** *
     * This field is only valid when this setup describes a Monte Carlo
     * simulation and contains the number of simulation runs in that case.
     * 
* * int32 number_of_runs = 13; * @return This builder for chaining. */ public Builder clearNumberOfRuns() { numberOfRuns_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protolca.ProtoCalculationSetup) } // @@protoc_insertion_point(class_scope:protolca.ProtoCalculationSetup) private static final org.openlca.proto.ProtoCalculationSetup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoCalculationSetup(); } public static org.openlca.proto.ProtoCalculationSetup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoCalculationSetup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoCalculationSetup(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.ProtoCalculationSetup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy