Package org.apache.calcite.avatica.proto
Class Common.TypedValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.apache.calcite.avatica.proto.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 typeTypedValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommon.TypedValue.BuilderGeneric wrapper to support any SQL type.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-
-
Field Summary
Fields Modifier and Type Field Description static intARRAY_VALUE_FIELD_NUMBERprivate java.util.List<Common.TypedValue>arrayValue_private intbitField0_static intBOOL_VALUE_FIELD_NUMBERprivate booleanboolValue_static intBYTES_VALUE_FIELD_NUMBERprivate com.google.protobuf.ByteStringbytesValue_static intCOMPONENT_TYPE_FIELD_NUMBERprivate intcomponentType_private static Common.TypedValueDEFAULT_INSTANCEstatic intDOUBLE_VALUE_FIELD_NUMBERprivate doubledoubleValue_static intIMPLICITLY_NULL_FIELD_NUMBERprivate booleanimplicitlyNull_private bytememoizedIsInitializedprivate booleannull_static intNULL_FIELD_NUMBERstatic intNUMBER_VALUE_FIELD_NUMBERprivate longnumberValue_private static com.google.protobuf.Parser<Common.TypedValue>PARSERprivate static longserialVersionUIDstatic intSTRING_VALUE_FIELD_NUMBERprivate java.lang.ObjectstringValue_private inttype_static intTYPE_FIELD_NUMBER
-
Constructor Summary
Constructors Modifier Constructor Description privateTypedValue()privateTypedValue(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)privateTypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Common.TypedValuegetArrayValue(int index)The ArrayintgetArrayValueCount()The Arrayjava.util.List<Common.TypedValue>getArrayValueList()The ArrayCommon.TypedValueOrBuildergetArrayValueOrBuilder(int index)The Arrayjava.util.List<? extends Common.TypedValueOrBuilder>getArrayValueOrBuilderList()The ArraybooleangetBoolValue()booleancom.google.protobuf.ByteStringgetBytesValue()includes numeric types and date/time types.Common.RepgetComponentType()If an Array, the representation for the array valuesintgetComponentTypeValue()If an Array, the representation for the array valuesstatic Common.TypedValuegetDefaultInstance()Common.TypedValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDoubleValue()big numbersbooleangetImplicitlyNull()Differentiate between explicitly null (user-set) and implicitly nullbooleangetNull()a null objectlonggetNumberValue()var-len encoding lets us shove anything from byte to longcom.google.protobuf.Parser<Common.TypedValue>getParserForType()intgetSerializedSize()java.lang.StringgetStringValue()char/varcharcom.google.protobuf.ByteStringgetStringValueBytes()char/varcharCommon.RepgetType()The actual type that was serialized in the general attribute belowintgetTypeValue()The actual type that was serialized in the general attribute belowcom.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Common.TypedValue.BuildernewBuilder()static Common.TypedValue.BuildernewBuilder(Common.TypedValue prototype)Common.TypedValue.BuildernewBuilderForType()protected Common.TypedValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static Common.TypedValueparseDelimitedFrom(java.io.InputStream input)static Common.TypedValueparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.TypedValueparseFrom(byte[] data)static Common.TypedValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.TypedValueparseFrom(com.google.protobuf.ByteString data)static Common.TypedValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.TypedValueparseFrom(com.google.protobuf.CodedInputStream input)static Common.TypedValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.TypedValueparseFrom(java.io.InputStream input)static Common.TypedValueparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.TypedValueparseFrom(java.nio.ByteBuffer data)static Common.TypedValueparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Common.TypedValue>parser()Common.TypedValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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_FIELD_NUMBER
public static final int NULL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
null_
private boolean null_
-
ARRAY_VALUE_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
arrayValue_
private java.util.List<Common.TypedValue> arrayValue_
-
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
-
DEFAULT_INSTANCE
private static final Common.TypedValue DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Common.TypedValue> PARSER
-
-
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:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTypeValue
public int getTypeValue()
The actual type that was serialized in the general attribute below
.Rep type = 1;- Specified by:
getTypeValuein interfaceCommon.TypedValueOrBuilder
-
getType
public Common.Rep getType()
The actual type that was serialized in the general attribute below
.Rep type = 1;- Specified by:
getTypein interfaceCommon.TypedValueOrBuilder
-
getBoolValue
public boolean getBoolValue()
boolean
bool bool_value = 2;- Specified by:
getBoolValuein interfaceCommon.TypedValueOrBuilder
-
getStringValue
public java.lang.String getStringValue()
char/varchar
string string_value = 3;- Specified by:
getStringValuein interfaceCommon.TypedValueOrBuilder
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
char/varchar
string string_value = 3;- Specified by:
getStringValueBytesin interfaceCommon.TypedValueOrBuilder
-
getNumberValue
public long getNumberValue()
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;- Specified by:
getNumberValuein interfaceCommon.TypedValueOrBuilder
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
bytes bytes_value = 5;- Specified by:
getBytesValuein interfaceCommon.TypedValueOrBuilder
-
getDoubleValue
public double getDoubleValue()
big numbers
double double_value = 6;- Specified by:
getDoubleValuein interfaceCommon.TypedValueOrBuilder
-
getNull
public boolean getNull()
a null object
bool null = 7;- Specified by:
getNullin interfaceCommon.TypedValueOrBuilder
-
getArrayValueList
public java.util.List<Common.TypedValue> getArrayValueList()
The Array
repeated .TypedValue array_value = 8;- Specified by:
getArrayValueListin interfaceCommon.TypedValueOrBuilder
-
getArrayValueOrBuilderList
public java.util.List<? extends Common.TypedValueOrBuilder> getArrayValueOrBuilderList()
The Array
repeated .TypedValue array_value = 8;- Specified by:
getArrayValueOrBuilderListin interfaceCommon.TypedValueOrBuilder
-
getArrayValueCount
public int getArrayValueCount()
The Array
repeated .TypedValue array_value = 8;- Specified by:
getArrayValueCountin interfaceCommon.TypedValueOrBuilder
-
getArrayValue
public Common.TypedValue getArrayValue(int index)
The Array
repeated .TypedValue array_value = 8;- Specified by:
getArrayValuein interfaceCommon.TypedValueOrBuilder
-
getArrayValueOrBuilder
public Common.TypedValueOrBuilder getArrayValueOrBuilder(int index)
The Array
repeated .TypedValue array_value = 8;- Specified by:
getArrayValueOrBuilderin interfaceCommon.TypedValueOrBuilder
-
getComponentTypeValue
public int getComponentTypeValue()
If an Array, the representation for the array values
.Rep component_type = 9;- Specified by:
getComponentTypeValuein interfaceCommon.TypedValueOrBuilder
-
getComponentType
public Common.Rep getComponentType()
If an Array, the representation for the array values
.Rep component_type = 9;- Specified by:
getComponentTypein interfaceCommon.TypedValueOrBuilder
-
getImplicitlyNull
public boolean getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;- Specified by:
getImplicitlyNullin interfaceCommon.TypedValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Common.TypedValue.Builder newBuilder()
-
newBuilder
public static Common.TypedValue.Builder newBuilder(Common.TypedValue prototype)
-
toBuilder
public Common.TypedValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Common.TypedValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Common.TypedValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Common.TypedValue> parser()
-
getParserForType
public com.google.protobuf.Parser<Common.TypedValue> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Common.TypedValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-