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 |
BOOL_VALUE_FIELD_NUMBER |
private boolean |
boolValue_ |
static int |
BYTES_VALUE_FIELD_NUMBER |
private com.google.protobuf.ByteString |
bytesValue_ |
private static Common.TypedValue |
DEFAULT_INSTANCE |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
private double |
doubleValue_ |
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 |
Common.TypedValue() |
private |
Common.TypedValue(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
Common.TypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getBoolValue()
boolean
|
com.google.protobuf.ByteString |
getBytesValue()
includes numeric types and date/time types.
|
static Common.TypedValue |
getDefaultInstance() |
Common.TypedValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
big numbers
|
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(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, waitpublic 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_
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 Common.TypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private Common.TypedValue()
private Common.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
optional .Rep type = 1;getTypeValue in interface Common.TypedValueOrBuilderpublic Common.Rep getType()
The actual type that was serialized in the general attribute below
optional .Rep type = 1;getType in interface Common.TypedValueOrBuilderpublic boolean getBoolValue()
boolean
optional bool bool_value = 2;getBoolValue in interface Common.TypedValueOrBuilderpublic String getStringValue()
char/varchar
optional string string_value = 3;getStringValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
char/varchar
optional string string_value = 3;getStringValueBytes in interface Common.TypedValueOrBuilderpublic long getNumberValue()
var-len encoding lets us shove anything from byte to long
optional sint64 number_value = 4;getNumberValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
optional bytes bytes_value = 5;getBytesValue in interface Common.TypedValueOrBuilderpublic double getDoubleValue()
big numbers
optional double double_value = 6;getDoubleValue in interface Common.TypedValueOrBuilderpublic boolean getNull()
a null object
optional bool null = 7;getNull 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(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–2016 The Apache Software Foundation. All rights reserved.