Class 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:
    Serialized Form
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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​(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
      • 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