Class Common.TypedValue

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Common.TypedValueOrBuilder
    Enclosing class:
    Common

    public static final class Common.TypedValue
    extends com.google.protobuf.GeneratedMessageV3
    implements Common.TypedValueOrBuilder
     Generic wrapper to support any SQL type. Struct-like to work around no polymorphism construct.
     
    Protobuf type TypedValue
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • type_

        private int type_
      • BOOL_VALUE_FIELD_NUMBER

        public static final int BOOL_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • boolValue_

        private boolean boolValue_
      • STRING_VALUE_FIELD_NUMBER

        public static final int STRING_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • stringValue_

        private volatile java.lang.Object stringValue_
      • NUMBER_VALUE_FIELD_NUMBER

        public static final int NUMBER_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numberValue_

        private long numberValue_
      • BYTES_VALUE_FIELD_NUMBER

        public static final int BYTES_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • bytesValue_

        private com.google.protobuf.ByteString bytesValue_
      • DOUBLE_VALUE_FIELD_NUMBER

        public static final int DOUBLE_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • doubleValue_

        private double doubleValue_
      • null_

        private boolean null_
      • ARRAY_VALUE_FIELD_NUMBER

        public static final int ARRAY_VALUE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPONENT_TYPE_FIELD_NUMBER

        public static final int COMPONENT_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • componentType_

        private int componentType_
      • IMPLICITLY_NULL_FIELD_NUMBER

        public static final int IMPLICITLY_NULL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • implicitlyNull_

        private boolean implicitlyNull_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • TypedValue

        private TypedValue​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • TypedValue

        private TypedValue()
      • TypedValue

        private TypedValue​(com.google.protobuf.CodedInputStream input,
                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
    • Method Detail

      • 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
      • getTypeValue

        public int getTypeValue()
         The actual type that was serialized in the general attribute below
         
        .Rep type = 1;
        Specified by:
        getTypeValue in interface Common.TypedValueOrBuilder
      • getNumberValue

        public long getNumberValue()
         var-len encoding lets us shove anything from byte to long
         
        sint64 number_value = 4;
        Specified by:
        getNumberValue in interface Common.TypedValueOrBuilder
      • getBytesValue

        public com.google.protobuf.ByteString getBytesValue()
         includes numeric types and date/time types.
         
        bytes bytes_value = 5;
        Specified by:
        getBytesValue in interface Common.TypedValueOrBuilder
      • getImplicitlyNull

        public boolean getImplicitlyNull()
         Differentiate between explicitly null (user-set) and implicitly null
         
        bool implicitly_null = 10;
        Specified by:
        getImplicitlyNull in interface Common.TypedValueOrBuilder
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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 Common.TypedValue parseFrom​(java.nio.ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Common.TypedValue parseFrom​(java.nio.ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Common.TypedValue parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Common.TypedValue parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Common.TypedValue parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static Common.TypedValue parseFrom​(java.io.InputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Common.TypedValue parseFrom​(java.io.InputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Common.TypedValue parseDelimitedFrom​(java.io.InputStream input)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Common.TypedValue parseDelimitedFrom​(java.io.InputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Common.TypedValue parseFrom​(com.google.protobuf.CodedInputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Common.TypedValue parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected Common.TypedValue.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Common.TypedValue> 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 Common.TypedValue getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder