public static final class Common.TypedValue extends com.google.protobuf.GeneratedMessage implements Common.TypedValueOrBuilder
TypedValue
Generic wrapper to support any SQL type. Struct-like to work around no polymorphism construct.
| Modifier and Type | Class and Description |
|---|---|
static class |
Common.TypedValue.Builder
Protobuf type
TypedValue |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
BOOL_VALUE_FIELD_NUMBER |
private boolean |
boolValue_ |
static int |
BYTES_VALUES_FIELD_NUMBER |
private com.google.protobuf.ByteString |
bytesValues_ |
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.GeneratedMessage.Builder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolValue()
optional bool bool_value = 2; |
com.google.protobuf.ByteString |
getBytesValues()
optional bytes bytes_values = 5; |
static Common.TypedValue |
getDefaultInstance() |
Common.TypedValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
optional double double_value = 6; |
boolean |
getNull()
optional bool null = 7; |
long |
getNumberValue()
optional sint64 number_value = 4; |
com.google.protobuf.Parser<Common.TypedValue> |
getParserForType() |
int |
getSerializedSize() |
String |
getStringValue()
optional string string_value = 3; |
com.google.protobuf.ByteString |
getStringValueBytes()
optional string string_value = 3; |
Common.Rep |
getType()
optional .Rep type = 1; |
int |
getTypeValue()
optional .Rep type = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField, writeReplace, writeString, writeStringNoTagequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, 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_VALUES_FIELD_NUMBER
private com.google.protobuf.ByteString bytesValues_
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.GeneratedMessage.Builder<?> builder)
private Common.TypedValue()
private Common.TypedValue(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic int getTypeValue()
optional .Rep type = 1;
The actual type that was serialized in the general attribute below
getTypeValue in interface Common.TypedValueOrBuilderpublic Common.Rep getType()
optional .Rep type = 1;
The actual type that was serialized in the general attribute below
getType in interface Common.TypedValueOrBuilderpublic boolean getBoolValue()
optional bool bool_value = 2;
boolean
getBoolValue in interface Common.TypedValueOrBuilderpublic String getStringValue()
optional string string_value = 3;
char/varchar
getStringValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
optional string string_value = 3;
char/varchar
getStringValueBytes in interface Common.TypedValueOrBuilderpublic long getNumberValue()
optional sint64 number_value = 4;
var-len encoding lets us shove anything from byte to long
getNumberValue in interface Common.TypedValueOrBuilderpublic com.google.protobuf.ByteString getBytesValues()
optional bytes bytes_values = 5;
includes numeric types and date/time types.
getBytesValues in interface Common.TypedValueOrBuilderpublic double getDoubleValue()
optional double double_value = 6;
big numbers
getDoubleValue in interface Common.TypedValueOrBuilderpublic boolean getNull()
optional bool null = 7;
a null object
getNull in interface Common.TypedValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic 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.