public static final class Common.TypedValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder> implements Common.TypedValueOrBuilder
Generic wrapper to support any SQL type. Struct-like to work around no polymorphism construct.Protobuf type
TypedValue
Modifier and Type | Method and Description |
---|---|
Common.TypedValue.Builder |
addAllArrayValue(Iterable<? extends Common.TypedValue> values)
The Array
|
Common.TypedValue.Builder |
addArrayValue(Common.TypedValue.Builder builderForValue)
The Array
|
Common.TypedValue.Builder |
addArrayValue(Common.TypedValue value)
The Array
|
Common.TypedValue.Builder |
addArrayValue(int index,
Common.TypedValue.Builder builderForValue)
The Array
|
Common.TypedValue.Builder |
addArrayValue(int index,
Common.TypedValue value)
The Array
|
Common.TypedValue.Builder |
addArrayValueBuilder()
The Array
|
Common.TypedValue.Builder |
addArrayValueBuilder(int index)
The Array
|
Common.TypedValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Common.TypedValue |
build() |
Common.TypedValue |
buildPartial() |
Common.TypedValue.Builder |
clear() |
Common.TypedValue.Builder |
clearArrayValue()
The Array
|
Common.TypedValue.Builder |
clearBoolValue()
boolean
|
Common.TypedValue.Builder |
clearBytesValue()
includes numeric types and date/time types.
|
Common.TypedValue.Builder |
clearComponentType()
If an Array, the representation for the array values
|
Common.TypedValue.Builder |
clearDoubleValue()
big numbers
|
Common.TypedValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Common.TypedValue.Builder |
clearImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
|
Common.TypedValue.Builder |
clearNull()
a null object
|
Common.TypedValue.Builder |
clearNumberValue()
var-len encoding lets us shove anything from byte to long
|
Common.TypedValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Common.TypedValue.Builder |
clearStringValue()
char/varchar
|
Common.TypedValue.Builder |
clearType()
The actual type that was serialized in the general attribute below
|
Common.TypedValue.Builder |
clone() |
Common.TypedValue |
getArrayValue(int index)
The Array
|
Common.TypedValue.Builder |
getArrayValueBuilder(int index)
The Array
|
List<Common.TypedValue.Builder> |
getArrayValueBuilderList()
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
|
Common.TypedValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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
|
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
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Common.TypedValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Common.TypedValue.Builder |
mergeFrom(Common.TypedValue other) |
Common.TypedValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
Common.TypedValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Common.TypedValue.Builder |
removeArrayValue(int index)
The Array
|
Common.TypedValue.Builder |
setArrayValue(int index,
Common.TypedValue.Builder builderForValue)
The Array
|
Common.TypedValue.Builder |
setArrayValue(int index,
Common.TypedValue value)
The Array
|
Common.TypedValue.Builder |
setBoolValue(boolean value)
boolean
|
Common.TypedValue.Builder |
setBytesValue(com.google.protobuf.ByteString value)
includes numeric types and date/time types.
|
Common.TypedValue.Builder |
setComponentType(Common.Rep value)
If an Array, the representation for the array values
|
Common.TypedValue.Builder |
setComponentTypeValue(int value)
If an Array, the representation for the array values
|
Common.TypedValue.Builder |
setDoubleValue(double value)
big numbers
|
Common.TypedValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Common.TypedValue.Builder |
setImplicitlyNull(boolean value)
Differentiate between explicitly null (user-set) and implicitly null
|
Common.TypedValue.Builder |
setNull(boolean value)
a null object
|
Common.TypedValue.Builder |
setNumberValue(long value)
var-len encoding lets us shove anything from byte to long
|
Common.TypedValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Common.TypedValue.Builder |
setStringValue(String value)
char/varchar
|
Common.TypedValue.Builder |
setStringValueBytes(com.google.protobuf.ByteString value)
char/varchar
|
Common.TypedValue.Builder |
setType(Common.Rep value)
The actual type that was serialized in the general attribute below
|
Common.TypedValue.Builder |
setTypeValue(int value)
The actual type that was serialized in the general attribute below
|
Common.TypedValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Common.TypedValue build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Common.TypedValue buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Common.TypedValue.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder mergeFrom(Common.TypedValue other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public Common.TypedValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Common.TypedValue.Builder>
IOException
public int getTypeValue()
The actual type that was serialized in the general attribute below
.Rep type = 1;
getTypeValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setTypeValue(int value)
The actual type that was serialized in the general attribute below
.Rep type = 1;
public Common.Rep getType()
The actual type that was serialized in the general attribute below
.Rep type = 1;
getType
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setType(Common.Rep value)
The actual type that was serialized in the general attribute below
.Rep type = 1;
public Common.TypedValue.Builder clearType()
The actual type that was serialized in the general attribute below
.Rep type = 1;
public boolean getBoolValue()
boolean
bool bool_value = 2;
getBoolValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setBoolValue(boolean value)
boolean
bool bool_value = 2;
public Common.TypedValue.Builder clearBoolValue()
boolean
bool bool_value = 2;
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 Common.TypedValue.Builder setStringValue(String value)
char/varchar
string string_value = 3;
public Common.TypedValue.Builder clearStringValue()
char/varchar
string string_value = 3;
public Common.TypedValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
char/varchar
string string_value = 3;
public long getNumberValue()
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;
getNumberValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setNumberValue(long value)
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;
public Common.TypedValue.Builder clearNumberValue()
var-len encoding lets us shove anything from byte to long
sint64 number_value = 4;
public com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
bytes bytes_value = 5;
getBytesValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setBytesValue(com.google.protobuf.ByteString value)
includes numeric types and date/time types.
bytes bytes_value = 5;
public Common.TypedValue.Builder clearBytesValue()
includes numeric types and date/time types.
bytes bytes_value = 5;
public double getDoubleValue()
big numbers
double double_value = 6;
getDoubleValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setDoubleValue(double value)
big numbers
double double_value = 6;
public Common.TypedValue.Builder clearDoubleValue()
big numbers
double double_value = 6;
public boolean getNull()
a null object
bool null = 7;
getNull
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setNull(boolean value)
a null object
bool null = 7;
public Common.TypedValue.Builder clearNull()
a null object
bool null = 7;
public List<Common.TypedValue> getArrayValueList()
The Array
repeated .TypedValue array_value = 8;
getArrayValueList
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.TypedValue.Builder setArrayValue(int index, Common.TypedValue value)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder setArrayValue(int index, Common.TypedValue.Builder builderForValue)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addArrayValue(Common.TypedValue value)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addArrayValue(int index, Common.TypedValue value)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addArrayValue(Common.TypedValue.Builder builderForValue)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addArrayValue(int index, Common.TypedValue.Builder builderForValue)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addAllArrayValue(Iterable<? extends Common.TypedValue> values)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder clearArrayValue()
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder removeArrayValue(int index)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder getArrayValueBuilder(int index)
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValueOrBuilder getArrayValueOrBuilder(int index)
The Array
repeated .TypedValue array_value = 8;
getArrayValueOrBuilder
in interface Common.TypedValueOrBuilder
public List<? extends Common.TypedValueOrBuilder> getArrayValueOrBuilderList()
The Array
repeated .TypedValue array_value = 8;
getArrayValueOrBuilderList
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder addArrayValueBuilder()
The Array
repeated .TypedValue array_value = 8;
public Common.TypedValue.Builder addArrayValueBuilder(int index)
The Array
repeated .TypedValue array_value = 8;
public List<Common.TypedValue.Builder> getArrayValueBuilderList()
The Array
repeated .TypedValue array_value = 8;
public int getComponentTypeValue()
If an Array, the representation for the array values
.Rep component_type = 9;
getComponentTypeValue
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setComponentTypeValue(int value)
If an Array, the representation for the array values
.Rep component_type = 9;
public Common.Rep getComponentType()
If an Array, the representation for the array values
.Rep component_type = 9;
getComponentType
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setComponentType(Common.Rep value)
If an Array, the representation for the array values
.Rep component_type = 9;
public Common.TypedValue.Builder clearComponentType()
If an Array, the representation for the array values
.Rep component_type = 9;
public boolean getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;
getImplicitlyNull
in interface Common.TypedValueOrBuilder
public Common.TypedValue.Builder setImplicitlyNull(boolean value)
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;
public Common.TypedValue.Builder clearImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
bool implicitly_null = 10;
public final Common.TypedValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
public final Common.TypedValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.