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

org.openlca.proto.ProtoParameterRedef 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 redefinition of a parameter in a product system.
 * 
* * Protobuf type {@code protolca.ProtoParameterRedef} */ public final class ProtoParameterRedef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protolca.ProtoParameterRedef) ProtoParameterRedefOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoParameterRedef.newBuilder() to construct. private ProtoParameterRedef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoParameterRedef() { description_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProtoParameterRedef(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProtoParameterRedef( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.openlca.proto.ProtoRef.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { org.openlca.proto.ProtoUncertainty.Builder subBuilder = null; if (uncertainty_ != null) { subBuilder = uncertainty_.toBuilder(); } uncertainty_ = input.readMessage(org.openlca.proto.ProtoUncertainty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(uncertainty_); uncertainty_ = subBuilder.buildPartial(); } break; } case 41: { value_ = 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_ProtoParameterRedef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoParameterRedef.class, org.openlca.proto.ProtoParameterRedef.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.openlca.proto.ProtoRef context_; /** *
   * The context of the paramater (a process or LCIA method). If no context is
   * provided it is assumed that this is a redefinition of a global parameter.
   * 
* * .protolca.ProtoRef context = 1; * @return Whether the context field is set. */ @java.lang.Override public boolean hasContext() { return context_ != null; } /** *
   * The context of the paramater (a process or LCIA method). If no context is
   * provided it is assumed that this is a redefinition of a global parameter.
   * 
* * .protolca.ProtoRef context = 1; * @return The context. */ @java.lang.Override public org.openlca.proto.ProtoRef getContext() { return context_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : context_; } /** *
   * The context of the paramater (a process or LCIA method). If no context is
   * provided it is assumed that this is a redefinition of a global parameter.
   * 
* * .protolca.ProtoRef context = 1; */ @java.lang.Override public org.openlca.proto.ProtoRefOrBuilder getContextOrBuilder() { return getContext(); } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
   * A description of this parameter redefinition.
   * 
* * 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 this parameter redefinition.
   * 
* * 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 NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * The name of the redefined parameter. Note that parameter names are used in
   * formulas so they need to follow specific syntax rules. A redefinition
   * replaces a bound parameter in a specific context and thus has to exactly
   * match the respective name.
   * 
* * string name = 3; * @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 redefined parameter. Note that parameter names are used in
   * formulas so they need to follow specific syntax rules. A redefinition
   * replaces a bound parameter in a specific context and thus has to exactly
   * match the respective name.
   * 
* * string name = 3; * @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 UNCERTAINTY_FIELD_NUMBER = 4; private org.openlca.proto.ProtoUncertainty uncertainty_; /** *
   * An uncertainty distribution for the redefined parameter value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 4; * @return Whether the uncertainty field is set. */ @java.lang.Override public boolean hasUncertainty() { return uncertainty_ != null; } /** *
   * An uncertainty distribution for the redefined parameter value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 4; * @return The uncertainty. */ @java.lang.Override public org.openlca.proto.ProtoUncertainty getUncertainty() { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } /** *
   * An uncertainty distribution for the redefined parameter value.
   * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ @java.lang.Override public org.openlca.proto.ProtoUncertaintyOrBuilder getUncertaintyOrBuilder() { return getUncertainty(); } public static final int VALUE_FIELD_NUMBER = 5; private double value_; /** *
   * The value of the redefined parameter.
   * 
* * double value = 5; * @return The value. */ @java.lang.Override public double getValue() { return value_; } 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 (context_ != null) { output.writeMessage(1, getContext()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (uncertainty_ != null) { output.writeMessage(4, getUncertainty()); } if (value_ != 0D) { output.writeDouble(5, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (uncertainty_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUncertainty()); } if (value_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, value_); } 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.ProtoParameterRedef)) { return super.equals(obj); } org.openlca.proto.ProtoParameterRedef other = (org.openlca.proto.ProtoParameterRedef) obj; if (hasContext() != other.hasContext()) return false; if (hasContext()) { if (!getContext() .equals(other.getContext())) return false; } if (!getDescription() .equals(other.getDescription())) return false; if (!getName() .equals(other.getName())) return false; if (hasUncertainty() != other.hasUncertainty()) return false; if (hasUncertainty()) { if (!getUncertainty() .equals(other.getUncertainty())) return false; } if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasUncertainty()) { hash = (37 * hash) + UNCERTAINTY_FIELD_NUMBER; hash = (53 * hash) + getUncertainty().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.openlca.proto.ProtoParameterRedef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedef 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.ProtoParameterRedef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedef 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.ProtoParameterRedef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openlca.proto.ProtoParameterRedef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openlca.proto.ProtoParameterRedef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedef 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.ProtoParameterRedef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedef 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.ProtoParameterRedef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.openlca.proto.ProtoParameterRedef 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.ProtoParameterRedef 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 redefinition of a parameter in a product system.
   * 
* * Protobuf type {@code protolca.ProtoParameterRedef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protolca.ProtoParameterRedef) org.openlca.proto.ProtoParameterRedefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openlca.proto.ProtoParameterRedef.class, org.openlca.proto.ProtoParameterRedef.Builder.class); } // Construct using org.openlca.proto.ProtoParameterRedef.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 (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } description_ = ""; name_ = ""; if (uncertaintyBuilder_ == null) { uncertainty_ = null; } else { uncertainty_ = null; uncertaintyBuilder_ = null; } value_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openlca.proto.Proto.internal_static_protolca_ProtoParameterRedef_descriptor; } @java.lang.Override public org.openlca.proto.ProtoParameterRedef getDefaultInstanceForType() { return org.openlca.proto.ProtoParameterRedef.getDefaultInstance(); } @java.lang.Override public org.openlca.proto.ProtoParameterRedef build() { org.openlca.proto.ProtoParameterRedef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openlca.proto.ProtoParameterRedef buildPartial() { org.openlca.proto.ProtoParameterRedef result = new org.openlca.proto.ProtoParameterRedef(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.description_ = description_; result.name_ = name_; if (uncertaintyBuilder_ == null) { result.uncertainty_ = uncertainty_; } else { result.uncertainty_ = uncertaintyBuilder_.build(); } result.value_ = value_; 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.ProtoParameterRedef) { return mergeFrom((org.openlca.proto.ProtoParameterRedef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openlca.proto.ProtoParameterRedef other) { if (other == org.openlca.proto.ProtoParameterRedef.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasUncertainty()) { mergeUncertainty(other.getUncertainty()); } if (other.getValue() != 0D) { setValue(other.getValue()); } 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.ProtoParameterRedef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.openlca.proto.ProtoParameterRedef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.openlca.proto.ProtoRef context_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> contextBuilder_; /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; * @return The context. */ public org.openlca.proto.ProtoRef getContext() { if (contextBuilder_ == null) { return context_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public Builder setContext(org.openlca.proto.ProtoRef value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public Builder setContext( org.openlca.proto.ProtoRef.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public Builder mergeContext(org.openlca.proto.ProtoRef value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.openlca.proto.ProtoRef.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public org.openlca.proto.ProtoRef.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ public org.openlca.proto.ProtoRefOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : context_; } } /** *
     * The context of the paramater (a process or LCIA method). If no context is
     * provided it is assumed that this is a redefinition of a global parameter.
     * 
* * .protolca.ProtoRef context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.lang.Object description_ = ""; /** *
     * A description of this parameter redefinition.
     * 
* * 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 this parameter redefinition.
     * 
* * 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 this parameter redefinition.
     * 
* * 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 this parameter redefinition.
     * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * A description of this parameter redefinition.
     * 
* * 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 java.lang.Object name_ = ""; /** *
     * The name of the redefined parameter. Note that parameter names are used in
     * formulas so they need to follow specific syntax rules. A redefinition
     * replaces a bound parameter in a specific context and thus has to exactly
     * match the respective name.
     * 
* * string name = 3; * @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 redefined parameter. Note that parameter names are used in
     * formulas so they need to follow specific syntax rules. A redefinition
     * replaces a bound parameter in a specific context and thus has to exactly
     * match the respective name.
     * 
* * string name = 3; * @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 redefined parameter. Note that parameter names are used in
     * formulas so they need to follow specific syntax rules. A redefinition
     * replaces a bound parameter in a specific context and thus has to exactly
     * match the respective name.
     * 
* * string name = 3; * @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 redefined parameter. Note that parameter names are used in
     * formulas so they need to follow specific syntax rules. A redefinition
     * replaces a bound parameter in a specific context and thus has to exactly
     * match the respective name.
     * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name of the redefined parameter. Note that parameter names are used in
     * formulas so they need to follow specific syntax rules. A redefinition
     * replaces a bound parameter in a specific context and thus has to exactly
     * match the respective name.
     * 
* * string name = 3; * @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 org.openlca.proto.ProtoUncertainty uncertainty_; private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder> uncertaintyBuilder_; /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; * @return Whether the uncertainty field is set. */ public boolean hasUncertainty() { return uncertaintyBuilder_ != null || uncertainty_ != null; } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; * @return The uncertainty. */ public org.openlca.proto.ProtoUncertainty getUncertainty() { if (uncertaintyBuilder_ == null) { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } else { return uncertaintyBuilder_.getMessage(); } } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public Builder setUncertainty(org.openlca.proto.ProtoUncertainty value) { if (uncertaintyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uncertainty_ = value; onChanged(); } else { uncertaintyBuilder_.setMessage(value); } return this; } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public Builder setUncertainty( org.openlca.proto.ProtoUncertainty.Builder builderForValue) { if (uncertaintyBuilder_ == null) { uncertainty_ = builderForValue.build(); onChanged(); } else { uncertaintyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public Builder mergeUncertainty(org.openlca.proto.ProtoUncertainty value) { if (uncertaintyBuilder_ == null) { if (uncertainty_ != null) { uncertainty_ = org.openlca.proto.ProtoUncertainty.newBuilder(uncertainty_).mergeFrom(value).buildPartial(); } else { uncertainty_ = value; } onChanged(); } else { uncertaintyBuilder_.mergeFrom(value); } return this; } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public Builder clearUncertainty() { if (uncertaintyBuilder_ == null) { uncertainty_ = null; onChanged(); } else { uncertainty_ = null; uncertaintyBuilder_ = null; } return this; } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public org.openlca.proto.ProtoUncertainty.Builder getUncertaintyBuilder() { onChanged(); return getUncertaintyFieldBuilder().getBuilder(); } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ public org.openlca.proto.ProtoUncertaintyOrBuilder getUncertaintyOrBuilder() { if (uncertaintyBuilder_ != null) { return uncertaintyBuilder_.getMessageOrBuilder(); } else { return uncertainty_ == null ? org.openlca.proto.ProtoUncertainty.getDefaultInstance() : uncertainty_; } } /** *
     * An uncertainty distribution for the redefined parameter value.
     * 
* * .protolca.ProtoUncertainty uncertainty = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder> getUncertaintyFieldBuilder() { if (uncertaintyBuilder_ == null) { uncertaintyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.openlca.proto.ProtoUncertainty, org.openlca.proto.ProtoUncertainty.Builder, org.openlca.proto.ProtoUncertaintyOrBuilder>( getUncertainty(), getParentForChildren(), isClean()); uncertainty_ = null; } return uncertaintyBuilder_; } private double value_ ; /** *
     * The value of the redefined parameter.
     * 
* * double value = 5; * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** *
     * The value of the redefined parameter.
     * 
* * double value = 5; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; onChanged(); return this; } /** *
     * The value of the redefined parameter.
     * 
* * double value = 5; * @return This builder for chaining. */ public Builder clearValue() { value_ = 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.ProtoParameterRedef) } // @@protoc_insertion_point(class_scope:protolca.ProtoParameterRedef) private static final org.openlca.proto.ProtoParameterRedef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openlca.proto.ProtoParameterRedef(); } public static org.openlca.proto.ProtoParameterRedef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoParameterRedef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProtoParameterRedef(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.ProtoParameterRedef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy