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

org.openlca.proto.ProtoFlowPropertyFactor 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 FlowPropertyFactor is a conversion factor between <a
 * href="./FlowProperty.html">flow properties (quantities)</a> of a <a
 * href="./Flow.html">flow</a>. As an example the amount of the flow 'water' in
 * a process could be expressed in 'kg' mass or 'm3' volume. In this case the
 * flow water would have two flow property factors: one for the flow property
 * 'mass' and one for 'volume'. Each of these flow properties has a reference
 * to a <a href="./UnitGroup.html">unit group</a> which again has a reference
 * unit. In the example the flow property 'mass' could reference the unit group
 * 'units of mass' with 'kg' as reference unit and volume could reference the
 * unit group 'units of volume' with 'm3' as reference unit. The flow property
 * factor is now the conversion factor between these two reference units where
 * the factor of the reference flow property of the flow is 1. If the reference
 * flow property of 'water' in the example would be 'mass' the respective flow
 * property factor would be 1 and the factor for 'volume' would be 0.001 (as 1
 * kg water is 0.001 m3). The amount of water in a process can now be also
 * given in liter, tons, grams etc. For this, the unit conversion factor of the
 * respective unit group can be used to convert into the reference unit (which
 * then can be used to convert to the reference unit of another flow property).
 * Another thing to note is that different flow properties can refer to the
 * same unit group (e.g. MJ upper calorific value and MJ lower calorific
 * value.)
 * 
* * Protobuf type {@code protolca.ProtoFlowPropertyFactor} */ public final class ProtoFlowPropertyFactor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoFlowPropertyFactor) ProtoFlowPropertyFactorOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoFlowPropertyFactor.newBuilder() to construct. private ProtoFlowPropertyFactor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoFlowPropertyFactor() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoFlowPropertyFactor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoFlowPropertyFactor( 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 (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 17: { conversionFactor_ = input.readDouble(); break; } case 24: { referenceFlowProperty_ = input.readBool(); 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_ProtoFlowPropertyFactor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowPropertyFactor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoFlowPropertyFactor.class, org.openlca.proto.ProtoFlowPropertyFactor.Builder.class); } public static final int FLOW_PROPERTY_FIELD_NUMBER = 1; private org.openlca.proto.ProtoRef flowProperty_; /** *
   * The flow property (quantity) of the factor.
   * 
* * .protolca.ProtoRef flow_property = 1; * @return Whether the flowProperty field is set. */ @java.lang.Override public boolean hasFlowProperty() { return flowProperty_ != null; } /** *
   * The flow property (quantity) of the factor.
   * 
* * .protolca.ProtoRef flow_property = 1; * @return The flowProperty. */ @java.lang.Override public org.openlca.proto.ProtoRef getFlowProperty() { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } /** *
   * The flow property (quantity) of the factor.
   * 
* * .protolca.ProtoRef flow_property = 1; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { return getFlowProperty(); } public static final int CONVERSION_FACTOR_FIELD_NUMBER = 2; private double conversionFactor_; /** *
   * The value of the conversion factor.
   * 
* * double conversion_factor = 2; * @return The conversionFactor. */ @java.lang.Override public double getConversionFactor() { return conversionFactor_; } public static final int REFERENCE_FLOW_PROPERTY_FIELD_NUMBER = 3; private boolean referenceFlowProperty_; /** *
   * Indicates whether the flow property of the factor is the reference flow
   * property of the flow. The reference flow property must have a conversion
   * factor of 1.0 and there should be only one reference flow property.
   * 
* * bool reference_flow_property = 3; * @return The referenceFlowProperty. */ @java.lang.Override public boolean getReferenceFlowProperty() { return referenceFlowProperty_; } 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 (flowProperty_ != null) { output.writeMessage(1, getFlowProperty()); } if (conversionFactor_ != 0D) { output.writeDouble(2, conversionFactor_); } if (referenceFlowProperty_ != false) { output.writeBool(3, referenceFlowProperty_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (flowProperty_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFlowProperty()); } if (conversionFactor_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, conversionFactor_); } if (referenceFlowProperty_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, referenceFlowProperty_); } 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.ProtoFlowPropertyFactor)) { return super.equals(obj); } org.openlca.proto.ProtoFlowPropertyFactor other = (org.openlca.proto.ProtoFlowPropertyFactor) obj; if (hasFlowProperty() != other.hasFlowProperty()) return false; if (hasFlowProperty()) { if (!getFlowProperty() .equals(other.getFlowProperty())) return false; } if (java.lang.Double.doubleToLongBits(getConversionFactor()) != java.lang.Double.doubleToLongBits( other.getConversionFactor())) return false; if (getReferenceFlowProperty() != other.getReferenceFlowProperty()) 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 (hasFlowProperty()) { hash = (37 * hash) + FLOW_PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getFlowProperty().hashCode(); } hash = (37 * hash) + CONVERSION_FACTOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConversionFactor())); hash = (37 * hash) + REFERENCE_FLOW_PROPERTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReferenceFlowProperty()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoFlowPropertyFactor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowPropertyFactor 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.ProtoFlowPropertyFactor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowPropertyFactor 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.ProtoFlowPropertyFactor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowPropertyFactor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoFlowPropertyFactor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowPropertyFactor 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.ProtoFlowPropertyFactor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowPropertyFactor 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.ProtoFlowPropertyFactor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowPropertyFactor 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.ProtoFlowPropertyFactor 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 FlowPropertyFactor is a conversion factor between <a
   * href="./FlowProperty.html">flow properties (quantities)</a> of a <a
   * href="./Flow.html">flow</a>. As an example the amount of the flow 'water' in
   * a process could be expressed in 'kg' mass or 'm3' volume. In this case the
   * flow water would have two flow property factors: one for the flow property
   * 'mass' and one for 'volume'. Each of these flow properties has a reference
   * to a <a href="./UnitGroup.html">unit group</a> which again has a reference
   * unit. In the example the flow property 'mass' could reference the unit group
   * 'units of mass' with 'kg' as reference unit and volume could reference the
   * unit group 'units of volume' with 'm3' as reference unit. The flow property
   * factor is now the conversion factor between these two reference units where
   * the factor of the reference flow property of the flow is 1. If the reference
   * flow property of 'water' in the example would be 'mass' the respective flow
   * property factor would be 1 and the factor for 'volume' would be 0.001 (as 1
   * kg water is 0.001 m3). The amount of water in a process can now be also
   * given in liter, tons, grams etc. For this, the unit conversion factor of the
   * respective unit group can be used to convert into the reference unit (which
   * then can be used to convert to the reference unit of another flow property).
   * Another thing to note is that different flow properties can refer to the
   * same unit group (e.g. MJ upper calorific value and MJ lower calorific
   * value.)
   * 
* * Protobuf type {@code protolca.ProtoFlowPropertyFactor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoFlowPropertyFactor) org.openlca.proto.ProtoFlowPropertyFactorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowPropertyFactor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowPropertyFactor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoFlowPropertyFactor.class, org.openlca.proto.ProtoFlowPropertyFactor.Builder.class); } // Construct using org.openlca.proto.ProtoFlowPropertyFactor.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 (flowPropertyBuilder_ == null) { flowProperty_ = null; } else { flowProperty_ = null; flowPropertyBuilder_ = null; } conversionFactor_ = 0D; referenceFlowProperty_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowPropertyFactor_descriptor; } @java.lang.Override public org.openlca.proto.ProtoFlowPropertyFactor getDefaultInstanceForType() { return org.openlca.proto.ProtoFlowPropertyFactor.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoFlowPropertyFactor build() { org.openlca.proto.ProtoFlowPropertyFactor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoFlowPropertyFactor buildPartial() { org.openlca.proto.ProtoFlowPropertyFactor result = new org.openlca.proto.ProtoFlowPropertyFactor(this); if (flowPropertyBuilder_ == null) { result.flowProperty_ = flowProperty_; } else { result.flowProperty_ = flowPropertyBuilder_.build(); } result.conversionFactor_ = conversionFactor_; result.referenceFlowProperty_ = referenceFlowProperty_; 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.ProtoFlowPropertyFactor) { return mergeFrom((org.openlca.proto.ProtoFlowPropertyFactor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoFlowPropertyFactor other) { if (other == org.openlca.proto.ProtoFlowPropertyFactor.getDefaultInstance()) return this; if (other.hasFlowProperty()) { mergeFlowProperty(other.getFlowProperty()); } if (other.getConversionFactor() != 0D) { setConversionFactor(other.getConversionFactor()); } if (other.getReferenceFlowProperty() != false) { setReferenceFlowProperty(other.getReferenceFlowProperty()); } 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.ProtoFlowPropertyFactor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoFlowPropertyFactor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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_; /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; * @return Whether the flowProperty field is set. */ public boolean hasFlowProperty() { return flowPropertyBuilder_ != null || flowProperty_ != null; } /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; * @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 flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ 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 flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ public Builder setFlowProperty( org.openlca.proto.ProtoRef.Builder builderForValue) { if (flowPropertyBuilder_ == null) { flowProperty_ = builderForValue.build(); onChanged(); } else { flowPropertyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ 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 flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ public Builder clearFlowProperty() { if (flowPropertyBuilder_ == null) { flowProperty_ = null; onChanged(); } else { flowProperty_ = null; flowPropertyBuilder_ = null; } return this; } /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ public org.openlca.proto.ProtoRef.Builder getFlowPropertyBuilder() { onChanged(); return getFlowPropertyFieldBuilder().getBuilder(); } /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ public org.openlca.proto.ProtoRefOrBuilder getFlowPropertyOrBuilder() { if (flowPropertyBuilder_ != null) { return flowPropertyBuilder_.getMessageOrBuilder(); } else { return flowProperty_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flowProperty_; } } /** *
     * The flow property (quantity) of the factor.
     * 
* * .protolca.ProtoRef flow_property = 1; */ 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 double conversionFactor_ ; /** *
     * The value of the conversion factor.
     * 
* * double conversion_factor = 2; * @return The conversionFactor. */ @java.lang.Override public double getConversionFactor() { return conversionFactor_; } /** *
     * The value of the conversion factor.
     * 
* * double conversion_factor = 2; * @param value The conversionFactor to set. * @return This builder for chaining. */ public Builder setConversionFactor(double value) { conversionFactor_ = value; onChanged(); return this; } /** *
     * The value of the conversion factor.
     * 
* * double conversion_factor = 2; * @return This builder for chaining. */ public Builder clearConversionFactor() { conversionFactor_ = 0D; onChanged(); return this; } private boolean referenceFlowProperty_ ; /** *
     * Indicates whether the flow property of the factor is the reference flow
     * property of the flow. The reference flow property must have a conversion
     * factor of 1.0 and there should be only one reference flow property.
     * 
* * bool reference_flow_property = 3; * @return The referenceFlowProperty. */ @java.lang.Override public boolean getReferenceFlowProperty() { return referenceFlowProperty_; } /** *
     * Indicates whether the flow property of the factor is the reference flow
     * property of the flow. The reference flow property must have a conversion
     * factor of 1.0 and there should be only one reference flow property.
     * 
* * bool reference_flow_property = 3; * @param value The referenceFlowProperty to set. * @return This builder for chaining. */ public Builder setReferenceFlowProperty(boolean value) { referenceFlowProperty_ = value; onChanged(); return this; } /** *
     * Indicates whether the flow property of the factor is the reference flow
     * property of the flow. The reference flow property must have a conversion
     * factor of 1.0 and there should be only one reference flow property.
     * 
* * bool reference_flow_property = 3; * @return This builder for chaining. */ public Builder clearReferenceFlowProperty() { referenceFlowProperty_ = false; 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.ProtoFlowPropertyFactor) } // @@protoc_insertion_point(class_scope:protolca.ProtoFlowPropertyFactor) private static final org.openlca.proto.ProtoFlowPropertyFactor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoFlowPropertyFactor(); } public static org.openlca.proto.ProtoFlowPropertyFactor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoFlowPropertyFactor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoFlowPropertyFactor(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.ProtoFlowPropertyFactor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy