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

org.openlca.proto.ProtoFlowMapEntry 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 mapping from a source flow to a target flow.
 * 
* * Protobuf type {@code protolca.ProtoFlowMapEntry} */ public final class ProtoFlowMapEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoFlowMapEntry) ProtoFlowMapEntryOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoFlowMapEntry.newBuilder() to construct. private ProtoFlowMapEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoFlowMapEntry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoFlowMapEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoFlowMapEntry( 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.ProtoFlowMapRef.Builder subBuilder = null; if (from_ != null) { subBuilder = from_.toBuilder(); } from_ = input.readMessage(org.openlca.proto.ProtoFlowMapRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(from_); from_ = subBuilder.buildPartial(); } break; } case 18: { org.openlca.proto.ProtoFlowMapRef.Builder subBuilder = null; if (to_ != null) { subBuilder = to_.toBuilder(); } to_ = input.readMessage(org.openlca.proto.ProtoFlowMapRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(to_); to_ = subBuilder.buildPartial(); } break; } case 25: { conversionFactor_ = input.readDouble(); 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_ProtoFlowMapEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoFlowMapEntry.class, org.openlca.proto.ProtoFlowMapEntry.Builder.class); } public static final int FROM_FIELD_NUMBER = 1; private org.openlca.proto.ProtoFlowMapRef from_; /** *
   * Describes the source flow of the mapping.
   * 
* * .protolca.ProtoFlowMapRef from = 1; * @return Whether the from field is set. */ @java.lang.Override public boolean hasFrom() { return from_ != null; } /** *
   * Describes the source flow of the mapping.
   * 
* * .protolca.ProtoFlowMapRef from = 1; * @return The from. */ @java.lang.Override public org.openlca.proto.ProtoFlowMapRef getFrom() { return from_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : from_; } /** *
   * Describes the source flow of the mapping.
   * 
* * .protolca.ProtoFlowMapRef from = 1; */ @java.lang.Override public org.openlca.proto.ProtoFlowMapRefOrBuilder getFromOrBuilder() { return getFrom(); } public static final int TO_FIELD_NUMBER = 2; private org.openlca.proto.ProtoFlowMapRef to_; /** *
   * Describes the target of the mapping.
   * 
* * .protolca.ProtoFlowMapRef to = 2; * @return Whether the to field is set. */ @java.lang.Override public boolean hasTo() { return to_ != null; } /** *
   * Describes the target of the mapping.
   * 
* * .protolca.ProtoFlowMapRef to = 2; * @return The to. */ @java.lang.Override public org.openlca.proto.ProtoFlowMapRef getTo() { return to_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : to_; } /** *
   * Describes the target of the mapping.
   * 
* * .protolca.ProtoFlowMapRef to = 2; */ @java.lang.Override public org.openlca.proto.ProtoFlowMapRefOrBuilder getToOrBuilder() { return getTo(); } public static final int CONVERSION_FACTOR_FIELD_NUMBER = 3; private double conversionFactor_; /** *
   * The conversion factor to convert the amount of 1 unit of the source flow
   * into the corresponding quantity of the target flow.
   * 
* * double conversion_factor = 3; * @return The conversionFactor. */ @java.lang.Override public double getConversionFactor() { return conversionFactor_; } 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 (from_ != null) { output.writeMessage(1, getFrom()); } if (to_ != null) { output.writeMessage(2, getTo()); } if (conversionFactor_ != 0D) { output.writeDouble(3, conversionFactor_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (from_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrom()); } if (to_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTo()); } if (conversionFactor_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, conversionFactor_); } 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.ProtoFlowMapEntry)) { return super.equals(obj); } org.openlca.proto.ProtoFlowMapEntry other = (org.openlca.proto.ProtoFlowMapEntry) obj; if (hasFrom() != other.hasFrom()) return false; if (hasFrom()) { if (!getFrom() .equals(other.getFrom())) return false; } if (hasTo() != other.hasTo()) return false; if (hasTo()) { if (!getTo() .equals(other.getTo())) return false; } if (java.lang.Double.doubleToLongBits(getConversionFactor()) != java.lang.Double.doubleToLongBits( other.getConversionFactor())) 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 (hasFrom()) { hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); } if (hasTo()) { hash = (37 * hash) + TO_FIELD_NUMBER; hash = (53 * hash) + getTo().hashCode(); } hash = (37 * hash) + CONVERSION_FACTOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConversionFactor())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoFlowMapEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowMapEntry 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.ProtoFlowMapEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowMapEntry 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.ProtoFlowMapEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoFlowMapEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoFlowMapEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowMapEntry 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.ProtoFlowMapEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowMapEntry 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.ProtoFlowMapEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoFlowMapEntry 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.ProtoFlowMapEntry 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 mapping from a source flow to a target flow.
   * 
* * Protobuf type {@code protolca.ProtoFlowMapEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoFlowMapEntry) org.openlca.proto.ProtoFlowMapEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMapEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoFlowMapEntry.class, org.openlca.proto.ProtoFlowMapEntry.Builder.class); } // Construct using org.openlca.proto.ProtoFlowMapEntry.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 (fromBuilder_ == null) { from_ = null; } else { from_ = null; fromBuilder_ = null; } if (toBuilder_ == null) { to_ = null; } else { to_ = null; toBuilder_ = null; } conversionFactor_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoFlowMapEntry_descriptor; } @java.lang.Override public org.openlca.proto.ProtoFlowMapEntry getDefaultInstanceForType() { return org.openlca.proto.ProtoFlowMapEntry.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoFlowMapEntry build() { org.openlca.proto.ProtoFlowMapEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoFlowMapEntry buildPartial() { org.openlca.proto.ProtoFlowMapEntry result = new org.openlca.proto.ProtoFlowMapEntry(this); if (fromBuilder_ == null) { result.from_ = from_; } else { result.from_ = fromBuilder_.build(); } if (toBuilder_ == null) { result.to_ = to_; } else { result.to_ = toBuilder_.build(); } result.conversionFactor_ = conversionFactor_; 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.ProtoFlowMapEntry) { return mergeFrom((org.openlca.proto.ProtoFlowMapEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoFlowMapEntry other) { if (other == org.openlca.proto.ProtoFlowMapEntry.getDefaultInstance()) return this; if (other.hasFrom()) { mergeFrom(other.getFrom()); } if (other.hasTo()) { mergeTo(other.getTo()); } if (other.getConversionFactor() != 0D) { setConversionFactor(other.getConversionFactor()); } 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.ProtoFlowMapEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoFlowMapEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.openlca.proto.ProtoFlowMapRef from_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder> fromBuilder_; /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; * @return Whether the from field is set. */ public boolean hasFrom() { return fromBuilder_ != null || from_ != null; } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; * @return The from. */ public org.openlca.proto.ProtoFlowMapRef getFrom() { if (fromBuilder_ == null) { return from_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : from_; } else { return fromBuilder_.getMessage(); } } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public Builder setFrom(org.openlca.proto.ProtoFlowMapRef value) { if (fromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } from_ = value; onChanged(); } else { fromBuilder_.setMessage(value); } return this; } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public Builder setFrom( org.openlca.proto.ProtoFlowMapRef.Builder builderForValue) { if (fromBuilder_ == null) { from_ = builderForValue.build(); onChanged(); } else { fromBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public Builder mergeFrom(org.openlca.proto.ProtoFlowMapRef value) { if (fromBuilder_ == null) { if (from_ != null) { from_ = org.openlca.proto.ProtoFlowMapRef.newBuilder(from_).mergeFrom(value).buildPartial(); } else { from_ = value; } onChanged(); } else { fromBuilder_.mergeFrom(value); } return this; } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public Builder clearFrom() { if (fromBuilder_ == null) { from_ = null; onChanged(); } else { from_ = null; fromBuilder_ = null; } return this; } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public org.openlca.proto.ProtoFlowMapRef.Builder getFromBuilder() { onChanged(); return getFromFieldBuilder().getBuilder(); } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ public org.openlca.proto.ProtoFlowMapRefOrBuilder getFromOrBuilder() { if (fromBuilder_ != null) { return fromBuilder_.getMessageOrBuilder(); } else { return from_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : from_; } } /** *
     * Describes the source flow of the mapping.
     * 
* * .protolca.ProtoFlowMapRef from = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder> getFromFieldBuilder() { if (fromBuilder_ == null) { fromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder>( getFrom(), getParentForChildren(), isClean()); from_ = null; } return fromBuilder_; } private org.openlca.proto.ProtoFlowMapRef to_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder> toBuilder_; /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; * @return Whether the to field is set. */ public boolean hasTo() { return toBuilder_ != null || to_ != null; } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; * @return The to. */ public org.openlca.proto.ProtoFlowMapRef getTo() { if (toBuilder_ == null) { return to_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : to_; } else { return toBuilder_.getMessage(); } } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public Builder setTo(org.openlca.proto.ProtoFlowMapRef value) { if (toBuilder_ == null) { if (value == null) { throw new NullPointerException(); } to_ = value; onChanged(); } else { toBuilder_.setMessage(value); } return this; } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public Builder setTo( org.openlca.proto.ProtoFlowMapRef.Builder builderForValue) { if (toBuilder_ == null) { to_ = builderForValue.build(); onChanged(); } else { toBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public Builder mergeTo(org.openlca.proto.ProtoFlowMapRef value) { if (toBuilder_ == null) { if (to_ != null) { to_ = org.openlca.proto.ProtoFlowMapRef.newBuilder(to_).mergeFrom(value).buildPartial(); } else { to_ = value; } onChanged(); } else { toBuilder_.mergeFrom(value); } return this; } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public Builder clearTo() { if (toBuilder_ == null) { to_ = null; onChanged(); } else { to_ = null; toBuilder_ = null; } return this; } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public org.openlca.proto.ProtoFlowMapRef.Builder getToBuilder() { onChanged(); return getToFieldBuilder().getBuilder(); } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ public org.openlca.proto.ProtoFlowMapRefOrBuilder getToOrBuilder() { if (toBuilder_ != null) { return toBuilder_.getMessageOrBuilder(); } else { return to_ == null ? org.openlca.proto.ProtoFlowMapRef.getDefaultInstance() : to_; } } /** *
     * Describes the target of the mapping.
     * 
* * .protolca.ProtoFlowMapRef to = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder> getToFieldBuilder() { if (toBuilder_ == null) { toBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoFlowMapRef, org.openlca.proto.ProtoFlowMapRef.Builder, org.openlca.proto.ProtoFlowMapRefOrBuilder>( getTo(), getParentForChildren(), isClean()); to_ = null; } return toBuilder_; } private double conversionFactor_ ; /** *
     * The conversion factor to convert the amount of 1 unit of the source flow
     * into the corresponding quantity of the target flow.
     * 
* * double conversion_factor = 3; * @return The conversionFactor. */ @java.lang.Override public double getConversionFactor() { return conversionFactor_; } /** *
     * The conversion factor to convert the amount of 1 unit of the source flow
     * into the corresponding quantity of the target flow.
     * 
* * double conversion_factor = 3; * @param value The conversionFactor to set. * @return This builder for chaining. */ public Builder setConversionFactor(double value) { conversionFactor_ = value; onChanged(); return this; } /** *
     * The conversion factor to convert the amount of 1 unit of the source flow
     * into the corresponding quantity of the target flow.
     * 
* * double conversion_factor = 3; * @return This builder for chaining. */ public Builder clearConversionFactor() { conversionFactor_ = 0D; 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.ProtoFlowMapEntry) } // @@protoc_insertion_point(class_scope:protolca.ProtoFlowMapEntry) private static final org.openlca.proto.ProtoFlowMapEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoFlowMapEntry(); } public static org.openlca.proto.ProtoFlowMapEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoFlowMapEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoFlowMapEntry(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.ProtoFlowMapEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy