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

org.openlca.proto.ProtoNwSet 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 normalization and weighting set.
 * 
* * Protobuf type {@code protolca.ProtoNwSet} */ public final class ProtoNwSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoNwSet) ProtoNwSetOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoNwSet.newBuilder() to construct. private ProtoNwSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoNwSet() { id_ = ""; name_ = ""; description_ = ""; version_ = ""; lastChange_ = ""; weightedScoreUnit_ = ""; factors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoNwSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoNwSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); lastChange_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); weightedScoreUnit_ = s; break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { factors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } factors_.add( input.readMessage(org.openlca.proto.ProtoNwFactor.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { factors_ = java.util.Collections.unmodifiableList(factors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoNwSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoNwSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoNwSet.class, org.openlca.proto.ProtoNwSet.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
   * The reference ID (typically an UUID) of the entity.
   * 
* * string id = 1 [json_name = "@id"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
   * The reference ID (typically an UUID) of the entity.
   * 
* * string id = 1 [json_name = "@id"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * The name of the entity.
   * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The name of the entity.
   * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
   * The description of the entity.
   * 
* * string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
   * The description of the entity.
   * 
* * string description = 3; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** *
   * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
   * fields are optional and the fields may have leading zeros (so 01.00.00 is
   * the same as 1.0.0 or 1).
   * 
* * string version = 4; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** *
   * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
   * fields are optional and the fields may have leading zeros (so 01.00.00 is
   * the same as 1.0.0 or 1).
   * 
* * string version = 4; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LAST_CHANGE_FIELD_NUMBER = 5; private volatile java.lang.Object lastChange_; /** *
   * The timestamp when the entity was changed the last time.
   * 
* * string last_change = 5; * @return The lastChange. */ @java.lang.Override public java.lang.String getLastChange() { java.lang.Object ref = lastChange_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastChange_ = s; return s; } } /** *
   * The timestamp when the entity was changed the last time.
   * 
* * string last_change = 5; * @return The bytes for lastChange. */ @java.lang.Override public com.google.protobuf.ByteString getLastChangeBytes() { java.lang.Object ref = lastChange_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastChange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEIGHTED_SCORE_UNIT_FIELD_NUMBER = 6; private volatile java.lang.Object weightedScoreUnit_; /** *
   * This is the optional unit of the (normalized and) weighted score when this
   * normalization and weighting set was applied on a LCIA result.
   * 
* * string weighted_score_unit = 6; * @return The weightedScoreUnit. */ @java.lang.Override public java.lang.String getWeightedScoreUnit() { java.lang.Object ref = weightedScoreUnit_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); weightedScoreUnit_ = s; return s; } } /** *
   * This is the optional unit of the (normalized and) weighted score when this
   * normalization and weighting set was applied on a LCIA result.
   * 
* * string weighted_score_unit = 6; * @return The bytes for weightedScoreUnit. */ @java.lang.Override public com.google.protobuf.ByteString getWeightedScoreUnitBytes() { java.lang.Object ref = weightedScoreUnit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); weightedScoreUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FACTORS_FIELD_NUMBER = 7; private java.util.List factors_; /** *
   * The list of normalization and weighting factors of this set.
   * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ @java.lang.Override public java.util.List getFactorsList() { return factors_; } /** *
   * The list of normalization and weighting factors of this set.
   * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ @java.lang.Override public java.util.List getFactorsOrBuilderList() { return factors_; } /** *
   * The list of normalization and weighting factors of this set.
   * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ @java.lang.Override public int getFactorsCount() { return factors_.size(); } /** *
   * The list of normalization and weighting factors of this set.
   * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ @java.lang.Override public org.openlca.proto.ProtoNwFactor getFactors(int index) { return factors_.get(index); } /** *
   * The list of normalization and weighting factors of this set.
   * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ @java.lang.Override public org.openlca.proto.ProtoNwFactorOrBuilder getFactorsOrBuilder( int index) { return factors_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastChange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lastChange_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weightedScoreUnit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, weightedScoreUnit_); } for (int i = 0; i < factors_.size(); i++) { output.writeMessage(7, factors_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastChange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lastChange_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(weightedScoreUnit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, weightedScoreUnit_); } for (int i = 0; i < factors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, factors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.openlca.proto.ProtoNwSet)) { return super.equals(obj); } org.openlca.proto.ProtoNwSet other = (org.openlca.proto.ProtoNwSet) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getLastChange() .equals(other.getLastChange())) return false; if (!getWeightedScoreUnit() .equals(other.getWeightedScoreUnit())) return false; if (!getFactorsList() .equals(other.getFactorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + LAST_CHANGE_FIELD_NUMBER; hash = (53 * hash) + getLastChange().hashCode(); hash = (37 * hash) + WEIGHTED_SCORE_UNIT_FIELD_NUMBER; hash = (53 * hash) + getWeightedScoreUnit().hashCode(); if (getFactorsCount() > 0) { hash = (37 * hash) + FACTORS_FIELD_NUMBER; hash = (53 * hash) + getFactorsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoNwSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoNwSet 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.ProtoNwSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoNwSet 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.ProtoNwSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoNwSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoNwSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoNwSet 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.ProtoNwSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoNwSet 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.ProtoNwSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoNwSet 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.ProtoNwSet 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 normalization and weighting set.
   * 
* * Protobuf type {@code protolca.ProtoNwSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoNwSet) org.openlca.proto.ProtoNwSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoNwSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoNwSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoNwSet.class, org.openlca.proto.ProtoNwSet.Builder.class); } // Construct using org.openlca.proto.ProtoNwSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFactorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; description_ = ""; version_ = ""; lastChange_ = ""; weightedScoreUnit_ = ""; if (factorsBuilder_ == null) { factors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { factorsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoNwSet_descriptor; } @java.lang.Override public org.openlca.proto.ProtoNwSet getDefaultInstanceForType() { return org.openlca.proto.ProtoNwSet.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoNwSet build() { org.openlca.proto.ProtoNwSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoNwSet buildPartial() { org.openlca.proto.ProtoNwSet result = new org.openlca.proto.ProtoNwSet(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.description_ = description_; result.version_ = version_; result.lastChange_ = lastChange_; result.weightedScoreUnit_ = weightedScoreUnit_; if (factorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { factors_ = java.util.Collections.unmodifiableList(factors_); bitField0_ = (bitField0_ & ~0x00000001); } result.factors_ = factors_; } else { result.factors_ = factorsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openlca.proto.ProtoNwSet) { return mergeFrom((org.openlca.proto.ProtoNwSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoNwSet other) { if (other == org.openlca.proto.ProtoNwSet.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getLastChange().isEmpty()) { lastChange_ = other.lastChange_; onChanged(); } if (!other.getWeightedScoreUnit().isEmpty()) { weightedScoreUnit_ = other.weightedScoreUnit_; onChanged(); } if (factorsBuilder_ == null) { if (!other.factors_.isEmpty()) { if (factors_.isEmpty()) { factors_ = other.factors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFactorsIsMutable(); factors_.addAll(other.factors_); } onChanged(); } } else { if (!other.factors_.isEmpty()) { if (factorsBuilder_.isEmpty()) { factorsBuilder_.dispose(); factorsBuilder_ = null; factors_ = other.factors_; bitField0_ = (bitField0_ & ~0x00000001); factorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFactorsFieldBuilder() : null; } else { factorsBuilder_.addAllMessages(other.factors_); } } } 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.ProtoNwSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoNwSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * The reference ID (typically an UUID) of the entity.
     * 
* * string id = 1 [json_name = "@id"]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The reference ID (typically an UUID) of the entity.
     * 
* * string id = 1 [json_name = "@id"]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The reference ID (typically an UUID) of the entity.
     * 
* * string id = 1 [json_name = "@id"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * The reference ID (typically an UUID) of the entity.
     * 
* * string id = 1 [json_name = "@id"]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * The reference ID (typically an UUID) of the entity.
     * 
* * string id = 1 [json_name = "@id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name of the entity.
     * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the entity.
     * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the entity.
     * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The name of the entity.
     * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name of the entity.
     * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * The description of the entity.
     * 
* * string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The description of the entity.
     * 
* * string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The description of the entity.
     * 
* * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
     * The description of the entity.
     * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * The description of the entity.
     * 
* * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
     * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
     * fields are optional and the fields may have leading zeros (so 01.00.00 is
     * the same as 1.0.0 or 1).
     * 
* * string version = 4; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
     * fields are optional and the fields may have leading zeros (so 01.00.00 is
     * the same as 1.0.0 or 1).
     * 
* * string version = 4; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
     * fields are optional and the fields may have leading zeros (so 01.00.00 is
     * the same as 1.0.0 or 1).
     * 
* * string version = 4; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
     * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
     * fields are optional and the fields may have leading zeros (so 01.00.00 is
     * the same as 1.0.0 or 1).
     * 
* * string version = 4; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
     * A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH
     * fields are optional and the fields may have leading zeros (so 01.00.00 is
     * the same as 1.0.0 or 1).
     * 
* * string version = 4; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.lang.Object lastChange_ = ""; /** *
     * The timestamp when the entity was changed the last time.
     * 
* * string last_change = 5; * @return The lastChange. */ public java.lang.String getLastChange() { java.lang.Object ref = lastChange_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastChange_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The timestamp when the entity was changed the last time.
     * 
* * string last_change = 5; * @return The bytes for lastChange. */ public com.google.protobuf.ByteString getLastChangeBytes() { java.lang.Object ref = lastChange_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastChange_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The timestamp when the entity was changed the last time.
     * 
* * string last_change = 5; * @param value The lastChange to set. * @return This builder for chaining. */ public Builder setLastChange( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lastChange_ = value; onChanged(); return this; } /** *
     * The timestamp when the entity was changed the last time.
     * 
* * string last_change = 5; * @return This builder for chaining. */ public Builder clearLastChange() { lastChange_ = getDefaultInstance().getLastChange(); onChanged(); return this; } /** *
     * The timestamp when the entity was changed the last time.
     * 
* * string last_change = 5; * @param value The bytes for lastChange to set. * @return This builder for chaining. */ public Builder setLastChangeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastChange_ = value; onChanged(); return this; } private java.lang.Object weightedScoreUnit_ = ""; /** *
     * This is the optional unit of the (normalized and) weighted score when this
     * normalization and weighting set was applied on a LCIA result.
     * 
* * string weighted_score_unit = 6; * @return The weightedScoreUnit. */ public java.lang.String getWeightedScoreUnit() { java.lang.Object ref = weightedScoreUnit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); weightedScoreUnit_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This is the optional unit of the (normalized and) weighted score when this
     * normalization and weighting set was applied on a LCIA result.
     * 
* * string weighted_score_unit = 6; * @return The bytes for weightedScoreUnit. */ public com.google.protobuf.ByteString getWeightedScoreUnitBytes() { java.lang.Object ref = weightedScoreUnit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); weightedScoreUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This is the optional unit of the (normalized and) weighted score when this
     * normalization and weighting set was applied on a LCIA result.
     * 
* * string weighted_score_unit = 6; * @param value The weightedScoreUnit to set. * @return This builder for chaining. */ public Builder setWeightedScoreUnit( java.lang.String value) { if (value == null) { throw new NullPointerException(); } weightedScoreUnit_ = value; onChanged(); return this; } /** *
     * This is the optional unit of the (normalized and) weighted score when this
     * normalization and weighting set was applied on a LCIA result.
     * 
* * string weighted_score_unit = 6; * @return This builder for chaining. */ public Builder clearWeightedScoreUnit() { weightedScoreUnit_ = getDefaultInstance().getWeightedScoreUnit(); onChanged(); return this; } /** *
     * This is the optional unit of the (normalized and) weighted score when this
     * normalization and weighting set was applied on a LCIA result.
     * 
* * string weighted_score_unit = 6; * @param value The bytes for weightedScoreUnit to set. * @return This builder for chaining. */ public Builder setWeightedScoreUnitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); weightedScoreUnit_ = value; onChanged(); return this; } private java.util.List factors_ = java.util.Collections.emptyList(); private void ensureFactorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { factors_ = new java.util.ArrayList(factors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoNwFactor, org.openlca.proto.ProtoNwFactor.Builder, org.openlca.proto.ProtoNwFactorOrBuilder> factorsBuilder_; /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public java.util.List getFactorsList() { if (factorsBuilder_ == null) { return java.util.Collections.unmodifiableList(factors_); } else { return factorsBuilder_.getMessageList(); } } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public int getFactorsCount() { if (factorsBuilder_ == null) { return factors_.size(); } else { return factorsBuilder_.getCount(); } } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public org.openlca.proto.ProtoNwFactor getFactors(int index) { if (factorsBuilder_ == null) { return factors_.get(index); } else { return factorsBuilder_.getMessage(index); } } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder setFactors( int index, org.openlca.proto.ProtoNwFactor value) { if (factorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFactorsIsMutable(); factors_.set(index, value); onChanged(); } else { factorsBuilder_.setMessage(index, value); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder setFactors( int index, org.openlca.proto.ProtoNwFactor.Builder builderForValue) { if (factorsBuilder_ == null) { ensureFactorsIsMutable(); factors_.set(index, builderForValue.build()); onChanged(); } else { factorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder addFactors(org.openlca.proto.ProtoNwFactor value) { if (factorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFactorsIsMutable(); factors_.add(value); onChanged(); } else { factorsBuilder_.addMessage(value); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder addFactors( int index, org.openlca.proto.ProtoNwFactor value) { if (factorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFactorsIsMutable(); factors_.add(index, value); onChanged(); } else { factorsBuilder_.addMessage(index, value); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder addFactors( org.openlca.proto.ProtoNwFactor.Builder builderForValue) { if (factorsBuilder_ == null) { ensureFactorsIsMutable(); factors_.add(builderForValue.build()); onChanged(); } else { factorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder addFactors( int index, org.openlca.proto.ProtoNwFactor.Builder builderForValue) { if (factorsBuilder_ == null) { ensureFactorsIsMutable(); factors_.add(index, builderForValue.build()); onChanged(); } else { factorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder addAllFactors( java.lang.Iterable values) { if (factorsBuilder_ == null) { ensureFactorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, factors_); onChanged(); } else { factorsBuilder_.addAllMessages(values); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder clearFactors() { if (factorsBuilder_ == null) { factors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { factorsBuilder_.clear(); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public Builder removeFactors(int index) { if (factorsBuilder_ == null) { ensureFactorsIsMutable(); factors_.remove(index); onChanged(); } else { factorsBuilder_.remove(index); } return this; } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public org.openlca.proto.ProtoNwFactor.Builder getFactorsBuilder( int index) { return getFactorsFieldBuilder().getBuilder(index); } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public org.openlca.proto.ProtoNwFactorOrBuilder getFactorsOrBuilder( int index) { if (factorsBuilder_ == null) { return factors_.get(index); } else { return factorsBuilder_.getMessageOrBuilder(index); } } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public java.util.List getFactorsOrBuilderList() { if (factorsBuilder_ != null) { return factorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(factors_); } } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public org.openlca.proto.ProtoNwFactor.Builder addFactorsBuilder() { return getFactorsFieldBuilder().addBuilder( org.openlca.proto.ProtoNwFactor.getDefaultInstance()); } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public org.openlca.proto.ProtoNwFactor.Builder addFactorsBuilder( int index) { return getFactorsFieldBuilder().addBuilder( index, org.openlca.proto.ProtoNwFactor.getDefaultInstance()); } /** *
     * The list of normalization and weighting factors of this set.
     * 
* * repeated .protolca.ProtoNwFactor factors = 7; */ public java.util.List getFactorsBuilderList() { return getFactorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoNwFactor, org.openlca.proto.ProtoNwFactor.Builder, org.openlca.proto.ProtoNwFactorOrBuilder> getFactorsFieldBuilder() { if (factorsBuilder_ == null) { factorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoNwFactor, org.openlca.proto.ProtoNwFactor.Builder, org.openlca.proto.ProtoNwFactorOrBuilder>( factors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); factors_ = null; } return factorsBuilder_; } @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.ProtoNwSet) } // @@protoc_insertion_point(class_scope:protolca.ProtoNwSet) private static final org.openlca.proto.ProtoNwSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoNwSet(); } public static org.openlca.proto.ProtoNwSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoNwSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoNwSet(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.ProtoNwSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy