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

org.yamcs.protobuf.ExtractedParameterValue Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/packets/packets_service.proto

package org.yamcs.protobuf;

/**
 * 
 * Contents of a container, can be either a parameter entry, or
 * a nested container entry.
 * 
* * Protobuf type {@code yamcs.protobuf.packets.ExtractedParameterValue} */ public final class ExtractedParameterValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yamcs.protobuf.packets.ExtractedParameterValue) ExtractedParameterValueOrBuilder { private static final long serialVersionUID = 0L; // Use ExtractedParameterValue.newBuilder() to construct. private ExtractedParameterValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtractedParameterValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtractedParameterValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtractedParameterValue( 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: { org.yamcs.protobuf.Mdb.ParameterInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = parameter_.toBuilder(); } parameter_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parameter_); parameter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.yamcs.protobuf.Mdb.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = entryContainer_.toBuilder(); } entryContainer_ = input.readMessage(org.yamcs.protobuf.Mdb.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(entryContainer_); entryContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; location_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; size_ = input.readInt32(); break; } case 42: { org.yamcs.protobuf.Yamcs.Value.Builder subBuilder = null; if (((bitField0_ & 0x00000010) != 0)) { subBuilder = rawValue_.toBuilder(); } rawValue_ = input.readMessage(org.yamcs.protobuf.Yamcs.Value.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rawValue_); rawValue_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { org.yamcs.protobuf.Yamcs.Value.Builder subBuilder = null; if (((bitField0_ & 0x00000020) != 0)) { subBuilder = engValue_.toBuilder(); } engValue_ = input.readMessage(org.yamcs.protobuf.Yamcs.Value.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(engValue_); engValue_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; 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.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ExtractedParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ExtractedParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ExtractedParameterValue.class, org.yamcs.protobuf.ExtractedParameterValue.Builder.class); } private int bitField0_; public static final int PARAMETER_FIELD_NUMBER = 1; private org.yamcs.protobuf.Mdb.ParameterInfo parameter_; /** *
   * Qualified name of the parameter
   * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; * @return Whether the parameter field is set. */ @java.lang.Override public boolean hasParameter() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Qualified name of the parameter
   * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; * @return The parameter. */ @java.lang.Override public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() { return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_; } /** *
   * Qualified name of the parameter
   * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ @java.lang.Override public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() { return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_; } public static final int ENTRYCONTAINER_FIELD_NUMBER = 2; private org.yamcs.protobuf.Mdb.ContainerInfo entryContainer_; /** *
   * Qualified name of the container that defines this
   * specific entry.
   * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; * @return Whether the entryContainer field is set. */ @java.lang.Override public boolean hasEntryContainer() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Qualified name of the container that defines this
   * specific entry.
   * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; * @return The entryContainer. */ @java.lang.Override public org.yamcs.protobuf.Mdb.ContainerInfo getEntryContainer() { return entryContainer_ == null ? org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance() : entryContainer_; } /** *
   * Qualified name of the container that defines this
   * specific entry.
   * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ @java.lang.Override public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getEntryContainerOrBuilder() { return entryContainer_ == null ? org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance() : entryContainer_; } public static final int LOCATION_FIELD_NUMBER = 3; private int location_; /** *
   * Absolute location in bits, within the full packet
   * 
* * optional int32 location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Absolute location in bits, within the full packet
   * 
* * optional int32 location = 3; * @return The location. */ @java.lang.Override public int getLocation() { return location_; } public static final int SIZE_FIELD_NUMBER = 4; private int size_; /** *
   * Bit length
   * 
* * optional int32 size = 4; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Bit length
   * 
* * optional int32 size = 4; * @return The size. */ @java.lang.Override public int getSize() { return size_; } public static final int RAWVALUE_FIELD_NUMBER = 5; private org.yamcs.protobuf.Yamcs.Value rawValue_; /** *
   * Raw value
   * 
* * optional .yamcs.protobuf.Value rawValue = 5; * @return Whether the rawValue field is set. */ @java.lang.Override public boolean hasRawValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Raw value
   * 
* * optional .yamcs.protobuf.Value rawValue = 5; * @return The rawValue. */ @java.lang.Override public org.yamcs.protobuf.Yamcs.Value getRawValue() { return rawValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : rawValue_; } /** *
   * Raw value
   * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ @java.lang.Override public org.yamcs.protobuf.Yamcs.ValueOrBuilder getRawValueOrBuilder() { return rawValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : rawValue_; } public static final int ENGVALUE_FIELD_NUMBER = 6; private org.yamcs.protobuf.Yamcs.Value engValue_; /** *
   * Engineering value
   * 
* * optional .yamcs.protobuf.Value engValue = 6; * @return Whether the engValue field is set. */ @java.lang.Override public boolean hasEngValue() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Engineering value
   * 
* * optional .yamcs.protobuf.Value engValue = 6; * @return The engValue. */ @java.lang.Override public org.yamcs.protobuf.Yamcs.Value getEngValue() { return engValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : engValue_; } /** *
   * Engineering value
   * 
* * optional .yamcs.protobuf.Value engValue = 6; */ @java.lang.Override public org.yamcs.protobuf.Yamcs.ValueOrBuilder getEngValueOrBuilder() { return engValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : engValue_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasParameter()) { if (!getParameter().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasEntryContainer()) { if (!getEntryContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRawValue()) { if (!getRawValue().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasEngValue()) { if (!getEngValue().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getParameter()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEntryContainer()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, location_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, size_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getRawValue()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getEngValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParameter()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEntryContainer()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, location_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, size_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRawValue()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getEngValue()); } 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.yamcs.protobuf.ExtractedParameterValue)) { return super.equals(obj); } org.yamcs.protobuf.ExtractedParameterValue other = (org.yamcs.protobuf.ExtractedParameterValue) obj; if (hasParameter() != other.hasParameter()) return false; if (hasParameter()) { if (!getParameter() .equals(other.getParameter())) return false; } if (hasEntryContainer() != other.hasEntryContainer()) return false; if (hasEntryContainer()) { if (!getEntryContainer() .equals(other.getEntryContainer())) return false; } if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (getLocation() != other.getLocation()) return false; } if (hasSize() != other.hasSize()) return false; if (hasSize()) { if (getSize() != other.getSize()) return false; } if (hasRawValue() != other.hasRawValue()) return false; if (hasRawValue()) { if (!getRawValue() .equals(other.getRawValue())) return false; } if (hasEngValue() != other.hasEngValue()) return false; if (hasEngValue()) { if (!getEngValue() .equals(other.getEngValue())) 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 (hasParameter()) { hash = (37 * hash) + PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getParameter().hashCode(); } if (hasEntryContainer()) { hash = (37 * hash) + ENTRYCONTAINER_FIELD_NUMBER; hash = (53 * hash) + getEntryContainer().hashCode(); } if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation(); } if (hasSize()) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); } if (hasRawValue()) { hash = (37 * hash) + RAWVALUE_FIELD_NUMBER; hash = (53 * hash) + getRawValue().hashCode(); } if (hasEngValue()) { hash = (37 * hash) + ENGVALUE_FIELD_NUMBER; hash = (53 * hash) + getEngValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ExtractedParameterValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ExtractedParameterValue 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.yamcs.protobuf.ExtractedParameterValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ExtractedParameterValue 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.yamcs.protobuf.ExtractedParameterValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ExtractedParameterValue 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.yamcs.protobuf.ExtractedParameterValue 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; } /** *
   * Contents of a container, can be either a parameter entry, or
   * a nested container entry.
   * 
* * Protobuf type {@code yamcs.protobuf.packets.ExtractedParameterValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.packets.ExtractedParameterValue) org.yamcs.protobuf.ExtractedParameterValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ExtractedParameterValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ExtractedParameterValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ExtractedParameterValue.class, org.yamcs.protobuf.ExtractedParameterValue.Builder.class); } // Construct using org.yamcs.protobuf.ExtractedParameterValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParameterFieldBuilder(); getEntryContainerFieldBuilder(); getRawValueFieldBuilder(); getEngValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (parameterBuilder_ == null) { parameter_ = null; } else { parameterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (entryContainerBuilder_ == null) { entryContainer_ = null; } else { entryContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); location_ = 0; bitField0_ = (bitField0_ & ~0x00000004); size_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (rawValueBuilder_ == null) { rawValue_ = null; } else { rawValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (engValueBuilder_ == null) { engValue_ = null; } else { engValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ExtractedParameterValue_descriptor; } @java.lang.Override public org.yamcs.protobuf.ExtractedParameterValue getDefaultInstanceForType() { return org.yamcs.protobuf.ExtractedParameterValue.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ExtractedParameterValue build() { org.yamcs.protobuf.ExtractedParameterValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ExtractedParameterValue buildPartial() { org.yamcs.protobuf.ExtractedParameterValue result = new org.yamcs.protobuf.ExtractedParameterValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (parameterBuilder_ == null) { result.parameter_ = parameter_; } else { result.parameter_ = parameterBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (entryContainerBuilder_ == null) { result.entryContainer_ = entryContainer_; } else { result.entryContainer_ = entryContainerBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.location_ = location_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.size_ = size_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { if (rawValueBuilder_ == null) { result.rawValue_ = rawValue_; } else { result.rawValue_ = rawValueBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (engValueBuilder_ == null) { result.engValue_ = engValue_; } else { result.engValue_ = engValueBuilder_.build(); } to_bitField0_ |= 0x00000020; } result.bitField0_ = to_bitField0_; 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.yamcs.protobuf.ExtractedParameterValue) { return mergeFrom((org.yamcs.protobuf.ExtractedParameterValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ExtractedParameterValue other) { if (other == org.yamcs.protobuf.ExtractedParameterValue.getDefaultInstance()) return this; if (other.hasParameter()) { mergeParameter(other.getParameter()); } if (other.hasEntryContainer()) { mergeEntryContainer(other.getEntryContainer()); } if (other.hasLocation()) { setLocation(other.getLocation()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasRawValue()) { mergeRawValue(other.getRawValue()); } if (other.hasEngValue()) { mergeEngValue(other.getEngValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasParameter()) { if (!getParameter().isInitialized()) { return false; } } if (hasEntryContainer()) { if (!getEntryContainer().isInitialized()) { return false; } } if (hasRawValue()) { if (!getRawValue().isInitialized()) { return false; } } if (hasEngValue()) { if (!getEngValue().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.yamcs.protobuf.ExtractedParameterValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ExtractedParameterValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.yamcs.protobuf.Mdb.ParameterInfo parameter_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> parameterBuilder_; /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; * @return Whether the parameter field is set. */ public boolean hasParameter() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; * @return The parameter. */ public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() { if (parameterBuilder_ == null) { return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_; } else { return parameterBuilder_.getMessage(); } } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public Builder setParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) { if (parameterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameter_ = value; onChanged(); } else { parameterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public Builder setParameter( org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) { if (parameterBuilder_ == null) { parameter_ = builderForValue.build(); onChanged(); } else { parameterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public Builder mergeParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) { if (parameterBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && parameter_ != null && parameter_ != org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()) { parameter_ = org.yamcs.protobuf.Mdb.ParameterInfo.newBuilder(parameter_).mergeFrom(value).buildPartial(); } else { parameter_ = value; } onChanged(); } else { parameterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public Builder clearParameter() { if (parameterBuilder_ == null) { parameter_ = null; onChanged(); } else { parameterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getParameterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getParameterFieldBuilder().getBuilder(); } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() { if (parameterBuilder_ != null) { return parameterBuilder_.getMessageOrBuilder(); } else { return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_; } } /** *
     * Qualified name of the parameter
     * 
* * optional .yamcs.protobuf.mdb.ParameterInfo parameter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> getParameterFieldBuilder() { if (parameterBuilder_ == null) { parameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>( getParameter(), getParentForChildren(), isClean()); parameter_ = null; } return parameterBuilder_; } private org.yamcs.protobuf.Mdb.ContainerInfo entryContainer_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder> entryContainerBuilder_; /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; * @return Whether the entryContainer field is set. */ public boolean hasEntryContainer() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; * @return The entryContainer. */ public org.yamcs.protobuf.Mdb.ContainerInfo getEntryContainer() { if (entryContainerBuilder_ == null) { return entryContainer_ == null ? org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance() : entryContainer_; } else { return entryContainerBuilder_.getMessage(); } } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public Builder setEntryContainer(org.yamcs.protobuf.Mdb.ContainerInfo value) { if (entryContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entryContainer_ = value; onChanged(); } else { entryContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public Builder setEntryContainer( org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) { if (entryContainerBuilder_ == null) { entryContainer_ = builderForValue.build(); onChanged(); } else { entryContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public Builder mergeEntryContainer(org.yamcs.protobuf.Mdb.ContainerInfo value) { if (entryContainerBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && entryContainer_ != null && entryContainer_ != org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance()) { entryContainer_ = org.yamcs.protobuf.Mdb.ContainerInfo.newBuilder(entryContainer_).mergeFrom(value).buildPartial(); } else { entryContainer_ = value; } onChanged(); } else { entryContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public Builder clearEntryContainer() { if (entryContainerBuilder_ == null) { entryContainer_ = null; onChanged(); } else { entryContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public org.yamcs.protobuf.Mdb.ContainerInfo.Builder getEntryContainerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEntryContainerFieldBuilder().getBuilder(); } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getEntryContainerOrBuilder() { if (entryContainerBuilder_ != null) { return entryContainerBuilder_.getMessageOrBuilder(); } else { return entryContainer_ == null ? org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance() : entryContainer_; } } /** *
     * Qualified name of the container that defines this
     * specific entry.
     * 
* * optional .yamcs.protobuf.mdb.ContainerInfo entryContainer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder> getEntryContainerFieldBuilder() { if (entryContainerBuilder_ == null) { entryContainerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>( getEntryContainer(), getParentForChildren(), isClean()); entryContainer_ = null; } return entryContainerBuilder_; } private int location_ ; /** *
     * Absolute location in bits, within the full packet
     * 
* * optional int32 location = 3; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Absolute location in bits, within the full packet
     * 
* * optional int32 location = 3; * @return The location. */ @java.lang.Override public int getLocation() { return location_; } /** *
     * Absolute location in bits, within the full packet
     * 
* * optional int32 location = 3; * @param value The location to set. * @return This builder for chaining. */ public Builder setLocation(int value) { bitField0_ |= 0x00000004; location_ = value; onChanged(); return this; } /** *
     * Absolute location in bits, within the full packet
     * 
* * optional int32 location = 3; * @return This builder for chaining. */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000004); location_ = 0; onChanged(); return this; } private int size_ ; /** *
     * Bit length
     * 
* * optional int32 size = 4; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Bit length
     * 
* * optional int32 size = 4; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** *
     * Bit length
     * 
* * optional int32 size = 4; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { bitField0_ |= 0x00000008; size_ = value; onChanged(); return this; } /** *
     * Bit length
     * 
* * optional int32 size = 4; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000008); size_ = 0; onChanged(); return this; } private org.yamcs.protobuf.Yamcs.Value rawValue_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder> rawValueBuilder_; /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; * @return Whether the rawValue field is set. */ public boolean hasRawValue() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; * @return The rawValue. */ public org.yamcs.protobuf.Yamcs.Value getRawValue() { if (rawValueBuilder_ == null) { return rawValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : rawValue_; } else { return rawValueBuilder_.getMessage(); } } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public Builder setRawValue(org.yamcs.protobuf.Yamcs.Value value) { if (rawValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rawValue_ = value; onChanged(); } else { rawValueBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public Builder setRawValue( org.yamcs.protobuf.Yamcs.Value.Builder builderForValue) { if (rawValueBuilder_ == null) { rawValue_ = builderForValue.build(); onChanged(); } else { rawValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public Builder mergeRawValue(org.yamcs.protobuf.Yamcs.Value value) { if (rawValueBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && rawValue_ != null && rawValue_ != org.yamcs.protobuf.Yamcs.Value.getDefaultInstance()) { rawValue_ = org.yamcs.protobuf.Yamcs.Value.newBuilder(rawValue_).mergeFrom(value).buildPartial(); } else { rawValue_ = value; } onChanged(); } else { rawValueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public Builder clearRawValue() { if (rawValueBuilder_ == null) { rawValue_ = null; onChanged(); } else { rawValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public org.yamcs.protobuf.Yamcs.Value.Builder getRawValueBuilder() { bitField0_ |= 0x00000010; onChanged(); return getRawValueFieldBuilder().getBuilder(); } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ public org.yamcs.protobuf.Yamcs.ValueOrBuilder getRawValueOrBuilder() { if (rawValueBuilder_ != null) { return rawValueBuilder_.getMessageOrBuilder(); } else { return rawValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : rawValue_; } } /** *
     * Raw value
     * 
* * optional .yamcs.protobuf.Value rawValue = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder> getRawValueFieldBuilder() { if (rawValueBuilder_ == null) { rawValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder>( getRawValue(), getParentForChildren(), isClean()); rawValue_ = null; } return rawValueBuilder_; } private org.yamcs.protobuf.Yamcs.Value engValue_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder> engValueBuilder_; /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; * @return Whether the engValue field is set. */ public boolean hasEngValue() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; * @return The engValue. */ public org.yamcs.protobuf.Yamcs.Value getEngValue() { if (engValueBuilder_ == null) { return engValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : engValue_; } else { return engValueBuilder_.getMessage(); } } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public Builder setEngValue(org.yamcs.protobuf.Yamcs.Value value) { if (engValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } engValue_ = value; onChanged(); } else { engValueBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public Builder setEngValue( org.yamcs.protobuf.Yamcs.Value.Builder builderForValue) { if (engValueBuilder_ == null) { engValue_ = builderForValue.build(); onChanged(); } else { engValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public Builder mergeEngValue(org.yamcs.protobuf.Yamcs.Value value) { if (engValueBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && engValue_ != null && engValue_ != org.yamcs.protobuf.Yamcs.Value.getDefaultInstance()) { engValue_ = org.yamcs.protobuf.Yamcs.Value.newBuilder(engValue_).mergeFrom(value).buildPartial(); } else { engValue_ = value; } onChanged(); } else { engValueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public Builder clearEngValue() { if (engValueBuilder_ == null) { engValue_ = null; onChanged(); } else { engValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public org.yamcs.protobuf.Yamcs.Value.Builder getEngValueBuilder() { bitField0_ |= 0x00000020; onChanged(); return getEngValueFieldBuilder().getBuilder(); } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ public org.yamcs.protobuf.Yamcs.ValueOrBuilder getEngValueOrBuilder() { if (engValueBuilder_ != null) { return engValueBuilder_.getMessageOrBuilder(); } else { return engValue_ == null ? org.yamcs.protobuf.Yamcs.Value.getDefaultInstance() : engValue_; } } /** *
     * Engineering value
     * 
* * optional .yamcs.protobuf.Value engValue = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder> getEngValueFieldBuilder() { if (engValueBuilder_ == null) { engValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder>( getEngValue(), getParentForChildren(), isClean()); engValue_ = null; } return engValueBuilder_; } @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:yamcs.protobuf.packets.ExtractedParameterValue) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.packets.ExtractedParameterValue) private static final org.yamcs.protobuf.ExtractedParameterValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ExtractedParameterValue(); } public static org.yamcs.protobuf.ExtractedParameterValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExtractedParameterValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtractedParameterValue(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.yamcs.protobuf.ExtractedParameterValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy