Class Yamcs.Value

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.yamcs.protobuf.Yamcs.Value
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Yamcs.ValueOrBuilder
Enclosing class:
Yamcs

public static final class Yamcs.Value extends com.google.protobuf.GeneratedMessageV3 implements Yamcs.ValueOrBuilder
 Union type for storing a value
 
Protobuf type yamcs.protobuf.Value
See Also:
  • Field Details

    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • FLOATVALUE_FIELD_NUMBER

      public static final int FLOATVALUE_FIELD_NUMBER
      See Also:
    • DOUBLEVALUE_FIELD_NUMBER

      public static final int DOUBLEVALUE_FIELD_NUMBER
      See Also:
    • SINT32VALUE_FIELD_NUMBER

      public static final int SINT32VALUE_FIELD_NUMBER
      See Also:
    • UINT32VALUE_FIELD_NUMBER

      public static final int UINT32VALUE_FIELD_NUMBER
      See Also:
    • BINARYVALUE_FIELD_NUMBER

      public static final int BINARYVALUE_FIELD_NUMBER
      See Also:
    • STRINGVALUE_FIELD_NUMBER

      public static final int STRINGVALUE_FIELD_NUMBER
      See Also:
    • TIMESTAMPVALUE_FIELD_NUMBER

      public static final int TIMESTAMPVALUE_FIELD_NUMBER
      See Also:
    • UINT64VALUE_FIELD_NUMBER

      public static final int UINT64VALUE_FIELD_NUMBER
      See Also:
    • SINT64VALUE_FIELD_NUMBER

      public static final int SINT64VALUE_FIELD_NUMBER
      See Also:
    • BOOLEANVALUE_FIELD_NUMBER

      public static final int BOOLEANVALUE_FIELD_NUMBER
      See Also:
    • AGGREGATEVALUE_FIELD_NUMBER

      public static final int AGGREGATEVALUE_FIELD_NUMBER
      See Also:
    • ARRAYVALUE_FIELD_NUMBER

      public static final int ARRAYVALUE_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<Yamcs.Value> PARSER
      Deprecated.
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasType

      public boolean hasType()
      required .yamcs.protobuf.Value.Type type = 1;
      Specified by:
      hasType in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Yamcs.Value.Type getType()
      required .yamcs.protobuf.Value.Type type = 1;
      Specified by:
      getType in interface Yamcs.ValueOrBuilder
      Returns:
      The type.
    • hasFloatValue

      public boolean hasFloatValue()
      optional float floatValue = 2;
      Specified by:
      hasFloatValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the floatValue field is set.
    • getFloatValue

      public float getFloatValue()
      optional float floatValue = 2;
      Specified by:
      getFloatValue in interface Yamcs.ValueOrBuilder
      Returns:
      The floatValue.
    • hasDoubleValue

      public boolean hasDoubleValue()
      optional double doubleValue = 3;
      Specified by:
      hasDoubleValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
      optional double doubleValue = 3;
      Specified by:
      getDoubleValue in interface Yamcs.ValueOrBuilder
      Returns:
      The doubleValue.
    • hasSint32Value

      public boolean hasSint32Value()
      optional sint32 sint32Value = 4;
      Specified by:
      hasSint32Value in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the sint32Value field is set.
    • getSint32Value

      public int getSint32Value()
      optional sint32 sint32Value = 4;
      Specified by:
      getSint32Value in interface Yamcs.ValueOrBuilder
      Returns:
      The sint32Value.
    • hasUint32Value

      public boolean hasUint32Value()
      optional uint32 uint32Value = 5;
      Specified by:
      hasUint32Value in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the uint32Value field is set.
    • getUint32Value

      public int getUint32Value()
      optional uint32 uint32Value = 5;
      Specified by:
      getUint32Value in interface Yamcs.ValueOrBuilder
      Returns:
      The uint32Value.
    • hasBinaryValue

      public boolean hasBinaryValue()
      optional bytes binaryValue = 6;
      Specified by:
      hasBinaryValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the binaryValue field is set.
    • getBinaryValue

      public com.google.protobuf.ByteString getBinaryValue()
      optional bytes binaryValue = 6;
      Specified by:
      getBinaryValue in interface Yamcs.ValueOrBuilder
      Returns:
      The binaryValue.
    • hasStringValue

      public boolean hasStringValue()
      optional string stringValue = 7;
      Specified by:
      hasStringValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
      optional string stringValue = 7;
      Specified by:
      getStringValue in interface Yamcs.ValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
      optional string stringValue = 7;
      Specified by:
      getStringValueBytes in interface Yamcs.ValueOrBuilder
      Returns:
      The bytes for stringValue.
    • hasTimestampValue

      public boolean hasTimestampValue()
      optional int64 timestampValue = 8;
      Specified by:
      hasTimestampValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the timestampValue field is set.
    • getTimestampValue

      public long getTimestampValue()
      optional int64 timestampValue = 8;
      Specified by:
      getTimestampValue in interface Yamcs.ValueOrBuilder
      Returns:
      The timestampValue.
    • hasUint64Value

      public boolean hasUint64Value()
      optional uint64 uint64Value = 9;
      Specified by:
      hasUint64Value in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the uint64Value field is set.
    • getUint64Value

      public long getUint64Value()
      optional uint64 uint64Value = 9;
      Specified by:
      getUint64Value in interface Yamcs.ValueOrBuilder
      Returns:
      The uint64Value.
    • hasSint64Value

      public boolean hasSint64Value()
      optional sint64 sint64Value = 10;
      Specified by:
      hasSint64Value in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the sint64Value field is set.
    • getSint64Value

      public long getSint64Value()
      optional sint64 sint64Value = 10;
      Specified by:
      getSint64Value in interface Yamcs.ValueOrBuilder
      Returns:
      The sint64Value.
    • hasBooleanValue

      public boolean hasBooleanValue()
      optional bool booleanValue = 11;
      Specified by:
      hasBooleanValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the booleanValue field is set.
    • getBooleanValue

      public boolean getBooleanValue()
      optional bool booleanValue = 11;
      Specified by:
      getBooleanValue in interface Yamcs.ValueOrBuilder
      Returns:
      The booleanValue.
    • hasAggregateValue

      public boolean hasAggregateValue()
      optional .yamcs.protobuf.AggregateValue aggregateValue = 12;
      Specified by:
      hasAggregateValue in interface Yamcs.ValueOrBuilder
      Returns:
      Whether the aggregateValue field is set.
    • getAggregateValue

      public Yamcs.AggregateValue getAggregateValue()
      optional .yamcs.protobuf.AggregateValue aggregateValue = 12;
      Specified by:
      getAggregateValue in interface Yamcs.ValueOrBuilder
      Returns:
      The aggregateValue.
    • getAggregateValueOrBuilder

      public Yamcs.AggregateValueOrBuilder getAggregateValueOrBuilder()
      optional .yamcs.protobuf.AggregateValue aggregateValue = 12;
      Specified by:
      getAggregateValueOrBuilder in interface Yamcs.ValueOrBuilder
    • getArrayValueList

      public List<Yamcs.Value> getArrayValueList()
      repeated .yamcs.protobuf.Value arrayValue = 13;
      Specified by:
      getArrayValueList in interface Yamcs.ValueOrBuilder
    • getArrayValueOrBuilderList

      public List<? extends Yamcs.ValueOrBuilder> getArrayValueOrBuilderList()
      repeated .yamcs.protobuf.Value arrayValue = 13;
      Specified by:
      getArrayValueOrBuilderList in interface Yamcs.ValueOrBuilder
    • getArrayValueCount

      public int getArrayValueCount()
      repeated .yamcs.protobuf.Value arrayValue = 13;
      Specified by:
      getArrayValueCount in interface Yamcs.ValueOrBuilder
    • getArrayValue

      public Yamcs.Value getArrayValue(int index)
      repeated .yamcs.protobuf.Value arrayValue = 13;
      Specified by:
      getArrayValue in interface Yamcs.ValueOrBuilder
    • getArrayValueOrBuilder

      public Yamcs.ValueOrBuilder getArrayValueOrBuilder(int index)
      repeated .yamcs.protobuf.Value arrayValue = 13;
      Specified by:
      getArrayValueOrBuilder in interface Yamcs.ValueOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Yamcs.Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Yamcs.Value parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Yamcs.Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Yamcs.Value parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Yamcs.Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Yamcs.Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Yamcs.Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Yamcs.Value.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Yamcs.Value.Builder newBuilder()
    • newBuilder

      public static Yamcs.Value.Builder newBuilder(Yamcs.Value prototype)
    • toBuilder

      public Yamcs.Value.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Yamcs.Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Yamcs.Value getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Yamcs.Value> parser()
    • getParserForType

      public com.google.protobuf.Parser<Yamcs.Value> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Yamcs.Value getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder