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| Modifier and Type | Class and Description |
|---|---|
static class |
Common.TypedValue.Builder
Generic wrapper to support any SQL type.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAY_VALUE_FIELD_NUMBER |
private List<Common.TypedValue> |
arrayValue_ |
private int |
bitField0_ |
static int |
BOOL_VALUE_FIELD_NUMBER |
private boolean |
boolValue_ |
static int |
BYTES_VALUE_FIELD_NUMBER |
private com.google.protobuf.ByteString |
bytesValue_ |
static int |
COMPONENT_TYPE_FIELD_NUMBER |
private int |
componentType_ |
private static Common.TypedValue |
DEFAULT_INSTANCE |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
private double |
doubleValue_ |
static int |
IMPLICITLY_NULL_FIELD_NUMBER |
private boolean |
implicitlyNull_ |
private byte |
memoizedIsInitialized |
private boolean |
null_ |
static int |
NULL_FIELD_NUMBER |
static int |
NUMBER_VALUE_FIELD_NUMBER |
private long |
numberValue_ |
private static com.google.protobuf.Parser<Common.TypedValue> |
PARSER |
private static long |
serialVersionUID |
static int |
STRING_VALUE_FIELD_NUMBER |
private Object |
stringValue_ |
private int |
type_ |
static int |
TYPE_FIELD_NUMBER |
| Modifier | Constructor and Description |
|---|---|
private |
TypedValue() |
private |
TypedValue(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
TypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Common.TypedValue |
getArrayValue(int index)
The Array
|
int |
getArrayValueCount()
The Array
|
List<Common.TypedValue> |
getArrayValueList()
The Array
|
Common.TypedValueOrBuilder |
getArrayValueOrBuilder(int index)
The Array
|
List<? extends Common.TypedValueOrBuilder> |
getArrayValueOrBuilderList()
The Array
|
boolean |
getBoolValue()
boolean
|
com.google.protobuf.ByteString |
getBytesValue()
includes numeric types and date/time types.
|
Common.Rep |
getComponentType()
If an Array, the representation for the array values
|
int |
getComponentTypeValue()
If an Array, the representation for the array values
|
static Common.TypedValue |
getDefaultInstance() |
Common.TypedValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
big numbers
|
boolean |
getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
|
boolean |
getNull()
a null object
|
long |
getNumberValue()
var-len encoding lets us shove anything from byte to long
|
com.google.protobuf.Parser<Common.TypedValue> |
getParserForType() |
int |
getSerializedSize() |
String |
getStringValue()
char/varchar
|
com.google.protobuf.ByteString |
getStringValueBytes()
char/varchar
|
Common.Rep |
getType()
The actual type that was serialized in the general attribute below
|
int |
getTypeValue()
The actual type that was serialized in the general attribute below
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Common.TypedValue.Builder |
newBuilder() |
static Common.TypedValue.Builder |
newBuilder(Common.TypedValue prototype) |
Common.TypedValue.Builder |
newBuilderForType() |
protected Common.TypedValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Common.TypedValue |
parseDelimitedFrom(InputStream input) |
static Common.TypedValue |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Common.TypedValue |
parseFrom(byte[] data) |
static Common.TypedValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Common.TypedValue |
parseFrom(ByteBuffer data) |
static Common.TypedValue |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Common.TypedValue |
parseFrom(com.google.protobuf.ByteString data) |
static Common.TypedValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Common.TypedValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Common.TypedValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Common.TypedValue |
parseFrom(InputStream input) |
static Common.TypedValue |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Common.TypedValue> |
parser() |
Common.TypedValue.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate int bitField0_
public static final int TYPE_FIELD_NUMBER
private int type_
public static final int BOOL_VALUE_FIELD_NUMBER
private boolean boolValue_
public static final int STRING_VALUE_FIELD_NUMBER
private volatile Object stringValue_
public static final int NUMBER_VALUE_FIELD_NUMBER
private long numberValue_
public static final int BYTES_VALUE_FIELD_NUMBER
private com.google.protobuf.ByteString bytesValue_
public static final int DOUBLE_VALUE_FIELD_NUMBER
private double doubleValue_
public static final int NULL_FIELD_NUMBER
private boolean null_
public static final int ARRAY_VALUE_FIELD_NUMBER
private List<Common.TypedValue> arrayValue_
public static final int COMPONENT_TYPE_FIELD_NUMBER
private int componentType_
public static final int IMPLICITLY_NULL_FIELD_NUMBER
private boolean implicitlyNull_
private byte memoizedIsInitialized
private static final long serialVersionUID
private static final Common.TypedValue DEFAULT_INSTANCE
private static final com.google.protobuf.Parser<Common.TypedValue> PARSER
private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private TypedValue()
private TypedValue(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTypeValue()
The actual type that was serialized in the general attribute below
.Rep type = 1;getTypeValue in interface Common.TypedValueOrBuilderpublic Common.Rep getType()
The actual type that was serialized in the general attribute below
.Rep type = 1;getType in interface Common.TypedValueOrBuilderpublic boolean getBoolValue()
boolean
bool bool_value = 2;getBoolValue in interface Common.TypedValueOrBuilderpublic String getStringValue()
char/varchar
string string_value = 3;getStringValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
char/varchar
string string_value = 3;getStringValueBytes in interface Common.TypedValueOrBuilderpublic long getNumberValue()
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;getNumberValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
bytes bytes_value = 5;getBytesValue in interface Common.TypedValueOrBuilderpublic double getDoubleValue()
big numbers
double double_value = 6;getDoubleValue in interface Common.TypedValueOrBuilderpublic boolean getNull()
a null object
bool null = 7;getNull in interface Common.TypedValueOrBuilderpublic List<Common.TypedValue> getArrayValueList()
The Array
repeated .TypedValue array_value = 8;getArrayValueList in interface Common.TypedValueOrBuilderpublic List<? extends Common.TypedValueOrBuilder> getArrayValueOrBuilderList()
The Array
repeated .TypedValue array_value = 8;getArrayValueOrBuilderList in interface Common.TypedValueOrBuilderpublic int getArrayValueCount()
The Array
repeated .TypedValue array_value = 8;getArrayValueCount in interface Common.TypedValueOrBuilderpublic Common.TypedValue getArrayValue(int index)
The Array
repeated .TypedValue array_value = 8;getArrayValue in interface Common.TypedValueOrBuilderpublic Common.TypedValueOrBuilder getArrayValueOrBuilder(int index)
The Array
repeated .TypedValue array_value = 8;getArrayValueOrBuilder in interface Common.TypedValueOrBuilderpublic int getComponentTypeValue()
If an Array, the representation for the array values
.Rep component_type = 9;getComponentTypeValue in interface Common.TypedValueOrBuilderpublic Common.Rep getComponentType()
If an Array, the representation for the array values
.Rep component_type = 9;getComponentType in interface Common.TypedValueOrBuilderpublic boolean getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;getImplicitlyNull in interface Common.TypedValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Common.TypedValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Common.TypedValue parseFrom(InputStream input) throws IOException
IOExceptionpublic static Common.TypedValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Common.TypedValue parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Common.TypedValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Common.TypedValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Common.TypedValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Common.TypedValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Common.TypedValue.Builder newBuilder()
public static Common.TypedValue.Builder newBuilder(Common.TypedValue prototype)
public Common.TypedValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Common.TypedValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Common.TypedValue getDefaultInstance()
public static com.google.protobuf.Parser<Common.TypedValue> parser()
public com.google.protobuf.Parser<Common.TypedValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Common.TypedValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.