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

org.openlca.proto.ProtoParameterRedefSet 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;

/**
 * 
 * An instance of this class is just a set of parameter redefinitions attached
 * to a product system. It can have a name and a description. One of the
 * parameter sets can be defined as the baseline of the product system. In the
 * calculation the baseline set is then taken by default.
 * 
* * Protobuf type {@code protolca.ProtoParameterRedefSet} */ public final class ProtoParameterRedefSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoParameterRedefSet) ProtoParameterRedefSetOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoParameterRedefSet.newBuilder() to construct. private ProtoParameterRedefSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoParameterRedefSet() { name_ = ""; description_ = ""; parameters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoParameterRedefSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoParameterRedefSet( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 24: { isBaseline_ = input.readBool(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } parameters_.add( input.readMessage(org.openlca.proto.ProtoParameterRedef.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)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedefSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedefSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoParameterRedefSet.class, org.openlca.proto.ProtoParameterRedefSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * The name of the parameter set.
   * 
* * string name = 1; * @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 parameter set.
   * 
* * string name = 1; * @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 = 2; private volatile java.lang.Object description_; /** *
   * A description of the parameter set.
   * 
* * string description = 2; * @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; } } /** *
   * A description of the parameter set.
   * 
* * string description = 2; * @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 IS_BASELINE_FIELD_NUMBER = 3; private boolean isBaseline_; /** *
   * Indicates if this set of parameter redefinitions is the baseline for a
   * product system.
   * 
* * bool is_baseline = 3; * @return The isBaseline. */ @java.lang.Override public boolean getIsBaseline() { return isBaseline_; } public static final int PARAMETERS_FIELD_NUMBER = 4; private java.util.List parameters_; /** *
   * The parameter redefinitions of this redefinition set.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ @java.lang.Override public java.util.List getParametersList() { return parameters_; } /** *
   * The parameter redefinitions of this redefinition set.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ @java.lang.Override public java.util.List getParametersOrBuilderList() { return parameters_; } /** *
   * The parameter redefinitions of this redefinition set.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** *
   * The parameter redefinitions of this redefinition set.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ @java.lang.Override public org.openlca.proto.ProtoParameterRedef getParameters(int index) { return parameters_.get(index); } /** *
   * The parameter redefinitions of this redefinition set.
   * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ @java.lang.Override public org.openlca.proto.ProtoParameterRedefOrBuilder getParametersOrBuilder( int index) { return parameters_.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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (isBaseline_ != false) { output.writeBool(3, isBaseline_); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(4, parameters_.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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (isBaseline_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isBaseline_); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, parameters_.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.ProtoParameterRedefSet)) { return super.equals(obj); } org.openlca.proto.ProtoParameterRedefSet other = (org.openlca.proto.ProtoParameterRedefSet) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (getIsBaseline() != other.getIsBaseline()) return false; if (!getParametersList() .equals(other.getParametersList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + IS_BASELINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsBaseline()); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoParameterRedefSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedefSet 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.ProtoParameterRedefSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedefSet 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.ProtoParameterRedefSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedefSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoParameterRedefSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedefSet 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.ProtoParameterRedefSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedefSet 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.ProtoParameterRedefSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedefSet 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.ProtoParameterRedefSet 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; } /** *
   * An instance of this class is just a set of parameter redefinitions attached
   * to a product system. It can have a name and a description. One of the
   * parameter sets can be defined as the baseline of the product system. In the
   * calculation the baseline set is then taken by default.
   * 
* * Protobuf type {@code protolca.ProtoParameterRedefSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoParameterRedefSet) org.openlca.proto.ProtoParameterRedefSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedefSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedefSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoParameterRedefSet.class, org.openlca.proto.ProtoParameterRedefSet.Builder.class); } // Construct using org.openlca.proto.ProtoParameterRedefSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParametersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; isBaseline_ = false; if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { parametersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedefSet_descriptor; } @java.lang.Override public org.openlca.proto.ProtoParameterRedefSet getDefaultInstanceForType() { return org.openlca.proto.ProtoParameterRedefSet.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoParameterRedefSet build() { org.openlca.proto.ProtoParameterRedefSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoParameterRedefSet buildPartial() { org.openlca.proto.ProtoParameterRedefSet result = new org.openlca.proto.ProtoParameterRedefSet(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.isBaseline_ = isBaseline_; if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); bitField0_ = (bitField0_ & ~0x00000001); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.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.ProtoParameterRedefSet) { return mergeFrom((org.openlca.proto.ProtoParameterRedefSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoParameterRedefSet other) { if (other == org.openlca.proto.ProtoParameterRedefSet.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.getIsBaseline() != false) { setIsBaseline(other.getIsBaseline()); } if (parametersBuilder_ == null) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } } else { if (!other.parameters_.isEmpty()) { if (parametersBuilder_.isEmpty()) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } } } 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.ProtoParameterRedefSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoParameterRedefSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * The name of the parameter set.
     * 
* * string name = 1; * @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 parameter set.
     * 
* * string name = 1; * @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 parameter set.
     * 
* * string name = 1; * @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 parameter set.
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name of the parameter set.
     * 
* * string name = 1; * @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_ = ""; /** *
     * A description of the parameter set.
     * 
* * string description = 2; * @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; } } /** *
     * A description of the parameter set.
     * 
* * string description = 2; * @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; } } /** *
     * A description of the parameter set.
     * 
* * string description = 2; * @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; } /** *
     * A description of the parameter set.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * A description of the parameter set.
     * 
* * string description = 2; * @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 boolean isBaseline_ ; /** *
     * Indicates if this set of parameter redefinitions is the baseline for a
     * product system.
     * 
* * bool is_baseline = 3; * @return The isBaseline. */ @java.lang.Override public boolean getIsBaseline() { return isBaseline_; } /** *
     * Indicates if this set of parameter redefinitions is the baseline for a
     * product system.
     * 
* * bool is_baseline = 3; * @param value The isBaseline to set. * @return This builder for chaining. */ public Builder setIsBaseline(boolean value) { isBaseline_ = value; onChanged(); return this; } /** *
     * Indicates if this set of parameter redefinitions is the baseline for a
     * product system.
     * 
* * bool is_baseline = 3; * @return This builder for chaining. */ public Builder clearIsBaseline() { isBaseline_ = false; onChanged(); return this; } private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder> parametersBuilder_; /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { return parametersBuilder_.getMessageList(); } } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public int getParametersCount() { if (parametersBuilder_ == null) { return parameters_.size(); } else { return parametersBuilder_.getCount(); } } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public org.openlca.proto.ProtoParameterRedef getParameters(int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessage(index); } } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder setParameters( int index, org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.set(index, value); onChanged(); } else { parametersBuilder_.setMessage(index, value); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder setParameters( int index, org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder addParameters(org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(value); onChanged(); } else { parametersBuilder_.addMessage(value); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder addParameters( int index, org.openlca.proto.ProtoParameterRedef value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(index, value); onChanged(); } else { parametersBuilder_.addMessage(index, value); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder addParameters( org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder addParameters( int index, org.openlca.proto.ProtoParameterRedef.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { parametersBuilder_.clear(); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.remove(index); onChanged(); } else { parametersBuilder_.remove(index); } return this; } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public org.openlca.proto.ProtoParameterRedef.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public org.openlca.proto.ProtoParameterRedefOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public java.util.List getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameters_); } } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public org.openlca.proto.ProtoParameterRedef.Builder addParametersBuilder() { return getParametersFieldBuilder().addBuilder( org.openlca.proto.ProtoParameterRedef.getDefaultInstance()); } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public org.openlca.proto.ProtoParameterRedef.Builder addParametersBuilder( int index) { return getParametersFieldBuilder().addBuilder( index, org.openlca.proto.ProtoParameterRedef.getDefaultInstance()); } /** *
     * The parameter redefinitions of this redefinition set.
     * 
* * repeated .protolca.ProtoParameterRedef parameters = 4; */ public java.util.List getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.openlca.proto.ProtoParameterRedef, org.openlca.proto.ProtoParameterRedef.Builder, org.openlca.proto.ProtoParameterRedefOrBuilder>( parameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } @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.ProtoParameterRedefSet) } // @@protoc_insertion_point(class_scope:protolca.ProtoParameterRedefSet) private static final org.openlca.proto.ProtoParameterRedefSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoParameterRedefSet(); } public static org.openlca.proto.ProtoParameterRedefSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoParameterRedefSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoParameterRedefSet(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.ProtoParameterRedefSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy