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 | Field and Description |
|---|---|
private List<Common.TypedValue> |
arrayValue_ |
private com.google.protobuf.RepeatedFieldBuilderV3<Common.TypedValue,Common.TypedValue.Builder,Common.TypedValueOrBuilder> |
arrayValueBuilder_ |
private int |
bitField0_ |
private boolean |
boolValue_ |
private com.google.protobuf.ByteString |
bytesValue_ |
private int |
componentType_ |
private double |
doubleValue_ |
private boolean |
implicitlyNull_ |
private boolean |
null_ |
private long |
numberValue_ |
private Object |
stringValue_ |
private int |
type_ |
| Modifier | Constructor and Description |
|---|---|
private |
Builder() |
private |
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
| 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() |
private void |
ensureArrayValueIsMutable() |
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
|
private com.google.protobuf.RepeatedFieldBuilderV3<Common.TypedValue,Common.TypedValue.Builder,Common.TypedValueOrBuilder> |
getArrayValueFieldBuilder() |
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() |
private void |
maybeForceBuilderInitialization() |
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, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprivate int bitField0_
private int type_
private boolean boolValue_
private Object stringValue_
private long numberValue_
private com.google.protobuf.ByteString bytesValue_
private double doubleValue_
private boolean null_
private List<Common.TypedValue> arrayValue_
private com.google.protobuf.RepeatedFieldBuilderV3<Common.TypedValue,Common.TypedValue.Builder,Common.TypedValueOrBuilder> arrayValueBuilder_
private int componentType_
private boolean implicitlyNull_
private Builder()
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
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>private void maybeForceBuilderInitialization()
public Common.TypedValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>public Common.TypedValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Common.TypedValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Common.TypedValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Common.TypedValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Common.TypedValue.Builder>IOExceptionpublic int getTypeValue()
The actual type that was serialized in the general attribute below
optional .Rep type = 1;getTypeValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setTypeValue(int value)
The actual type that was serialized in the general attribute below
optional .Rep type = 1;public Common.Rep getType()
The actual type that was serialized in the general attribute below
optional .Rep type = 1;getType in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setType(Common.Rep value)
The actual type that was serialized in the general attribute below
optional .Rep type = 1;public Common.TypedValue.Builder clearType()
The actual type that was serialized in the general attribute below
optional .Rep type = 1;public boolean getBoolValue()
boolean
optional bool bool_value = 2;getBoolValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setBoolValue(boolean value)
boolean
optional bool bool_value = 2;public Common.TypedValue.Builder clearBoolValue()
boolean
optional bool bool_value = 2;public 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 Common.TypedValue.Builder setStringValue(String value)
char/varchar
optional string string_value = 3;public Common.TypedValue.Builder clearStringValue()
char/varchar
optional string string_value = 3;public Common.TypedValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
char/varchar
optional string string_value = 3;public long getNumberValue()
var-len encoding lets us shove anything from byte to long
optional sint64 number_value = 4;getNumberValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setNumberValue(long value)
var-len encoding lets us shove anything from byte to long
optional sint64 number_value = 4;public Common.TypedValue.Builder clearNumberValue()
var-len encoding lets us shove anything from byte to long
optional sint64 number_value = 4;public com.google.protobuf.ByteString getBytesValue()
includes numeric types and date/time types.
optional bytes bytes_value = 5;getBytesValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setBytesValue(com.google.protobuf.ByteString value)
includes numeric types and date/time types.
optional bytes bytes_value = 5;public Common.TypedValue.Builder clearBytesValue()
includes numeric types and date/time types.
optional bytes bytes_value = 5;public double getDoubleValue()
big numbers
optional double double_value = 6;getDoubleValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setDoubleValue(double value)
big numbers
optional double double_value = 6;public Common.TypedValue.Builder clearDoubleValue()
big numbers
optional double double_value = 6;public boolean getNull()
a null object
optional bool null = 7;getNull in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setNull(boolean value)
a null object
optional bool null = 7;public Common.TypedValue.Builder clearNull()
a null object
optional bool null = 7;private void ensureArrayValueIsMutable()
public List<Common.TypedValue> getArrayValueList()
The Array
repeated .TypedValue array_value = 8;getArrayValueList 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.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.TypedValueOrBuilderpublic List<? extends Common.TypedValueOrBuilder> getArrayValueOrBuilderList()
The Array
repeated .TypedValue array_value = 8;getArrayValueOrBuilderList in interface Common.TypedValueOrBuilderpublic 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;private com.google.protobuf.RepeatedFieldBuilderV3<Common.TypedValue,Common.TypedValue.Builder,Common.TypedValueOrBuilder> getArrayValueFieldBuilder()
public int getComponentTypeValue()
If an Array, the representation for the array values
optional .Rep component_type = 9;getComponentTypeValue in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setComponentTypeValue(int value)
If an Array, the representation for the array values
optional .Rep component_type = 9;public Common.Rep getComponentType()
If an Array, the representation for the array values
optional .Rep component_type = 9;getComponentType in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setComponentType(Common.Rep value)
If an Array, the representation for the array values
optional .Rep component_type = 9;public Common.TypedValue.Builder clearComponentType()
If an Array, the representation for the array values
optional .Rep component_type = 9;public boolean getImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
optional bool implicitly_null = 10;getImplicitlyNull in interface Common.TypedValueOrBuilderpublic Common.TypedValue.Builder setImplicitlyNull(boolean value)
Differentiate between explicitly null (user-set) and implicitly null
optional bool implicitly_null = 10;public Common.TypedValue.Builder clearImplicitlyNull()
Differentiate between explicitly null (user-set) and implicitly null
optional bool implicitly_null = 10;public final Common.TypedValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Common.TypedValue.Builder>Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.