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 |
static int |
BOOL_VALUE_FIELD_NUMBER |
static int |
BYTES_VALUE_FIELD_NUMBER |
static int |
COMPONENT_TYPE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
IMPLICITLY_NULL_FIELD_NUMBER |
static int |
NULL_FIELD_NUMBER |
static int |
NUMBER_VALUE_FIELD_NUMBER |
static int |
STRING_VALUE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
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) |
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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int TYPE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
public static final int NUMBER_VALUE_FIELD_NUMBER
public static final int BYTES_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public static final int NULL_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER
public static final int COMPONENT_TYPE_FIELD_NUMBER
public static final int IMPLICITLY_NULL_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public int getTypeValue()
The actual type that was serialized in the general attribute below
.Rep type = 1;
getTypeValue
in interface Common.TypedValueOrBuilder
public Common.Rep getType()
The actual type that was serialized in the general attribute below
.Rep type = 1;
getType
in interface Common.TypedValueOrBuilder
public boolean getBoolValue()
boolean
bool bool_value = 2;
getBoolValue
in interface Common.TypedValueOrBuilder
public String getStringValue()
char/varchar
string string_value = 3;
getStringValue
in interface Common.TypedValueOrBuilder
public com.google.protobuf.ByteString getStringValueBytes()
char/varchar
string string_value = 3;
getStringValueBytes
in interface Common.TypedValueOrBuilder
public long getNumberValue()
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;
getNumberValue
in interface Common.TypedValueOrBuilder
public com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
bytes bytes_value = 5;
getBytesValue
in interface Common.TypedValueOrBuilder
public double getDoubleValue()
big numbers
double double_value = 6;
getDoubleValue
in interface Common.TypedValueOrBuilder
public boolean getNull()
a null object
bool null = 7;
getNull
in interface Common.TypedValueOrBuilder
public List<Common.TypedValue> getArrayValueList()
The Array
repeated .TypedValue array_value = 8;
getArrayValueList
in interface Common.TypedValueOrBuilder
public List<? extends Common.TypedValueOrBuilder> getArrayValueOrBuilderList()
The Array
repeated .TypedValue array_value = 8;
getArrayValueOrBuilderList
in interface Common.TypedValueOrBuilder
public int getArrayValueCount()
The Array
repeated .TypedValue array_value = 8;
getArrayValueCount
in interface Common.TypedValueOrBuilder
public Common.TypedValue getArrayValue(int index)
The Array
repeated .TypedValue array_value = 8;
getArrayValue
in interface Common.TypedValueOrBuilder
public Common.TypedValueOrBuilder getArrayValueOrBuilder(int index)
The Array
repeated .TypedValue array_value = 8;
getArrayValueOrBuilder
in interface Common.TypedValueOrBuilder
public int getComponentTypeValue()
If an Array, the representation for the array values
.Rep component_type = 9;
getComponentTypeValue
in interface Common.TypedValueOrBuilder
public Common.Rep getComponentType()
If an Array, the representation for the array values
.Rep component_type = 9;
getComponentType
in interface Common.TypedValueOrBuilder
public boolean getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;
getImplicitlyNull
in interface Common.TypedValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Common.TypedValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Common.TypedValue parseFrom(InputStream input) throws IOException
IOException
public static Common.TypedValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Common.TypedValue parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Common.TypedValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Common.TypedValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Common.TypedValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Common.TypedValue.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Common.TypedValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Common.TypedValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.