Send feedback
Class Value (2.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.46.0 (latest)
2.42.0
2.41.0
2.40.0
2.38.0
2.35.4
2.34.0
2.33.2
2.32.3
2.31.2
2.30.4
2.28.0
2.27.1
2.26.1
2.25.1
2.24.1
2.23.0
2.22.1
2.21.0
2.20.2
2.19.3
2.18.1
2.17.0
2.16.1
2.15.5
2.14.6
2.13.4
2.11.4
2.10.0
2.9.16
2.8.0
2.7.12
2.6.4
2.5.11
public abstract class Value implements Serializable
Static Fields
COMMIT_TIMESTAMP
public static final Timestamp COMMIT_TIMESTAMP
Field Value
Type
Description
com.google.cloud.Timestamp
NAN
public static final String NAN
Field Value
Type
Description
String
Static Methods
bool(boolean arg0)
public static Value bool ( boolean arg0 )
Parameter
Name
Description
arg0
boolean
Returns
Type
Description
Value
bool(Boolean arg0)
public static Value bool ( Boolean arg0 )
Parameter
Name
Description
arg0
Boolean
Returns
Type
Description
Value
boolArray(boolean[] arg0)
public static Value boolArray ( boolean [] arg0 )
Parameter
Name
Description
arg0
boolean []
Returns
Type
Description
Value
boolArray(boolean[] arg0, int arg1, int arg2)
public static Value boolArray ( boolean [] arg0 , int arg1 , int arg2 )
Returns
Type
Description
Value
boolArray(Iterable arg0)
public static Value boolArray ( Iterable arg0 )
Returns
Type
Description
Value
bytes(ByteArray arg0)
public static Value bytes ( ByteArray arg0 )
Parameter
Name
Description
arg0
com.google.cloud.ByteArray
Returns
Type
Description
Value
bytesArray(Iterable arg0)
public static Value bytesArray ( Iterable arg0 )
Parameter
Name
Description
arg0
Iterable <com.google.cloud.ByteArray >
Returns
Type
Description
Value
bytesArrayFromBase64(Iterable arg0)
public static Value bytesArrayFromBase64 ( Iterable arg0 )
Returns
Type
Description
Value
bytesFromBase64(String arg0)
public static Value bytesFromBase64 ( String arg0 )
Parameter
Name
Description
arg0
String
Returns
Type
Description
Value
date(Date arg0)
public static Value date ( Date arg0 )
Parameter
Name
Description
arg0
com.google.cloud.Date
Returns
Type
Description
Value
dateArray(Iterable arg0)
public static Value dateArray ( Iterable arg0 )
Parameter
Name
Description
arg0
Iterable <com.google.cloud.Date >
Returns
Type
Description
Value
float32(float arg0)
public static Value float32 ( float arg0 )
Parameter
Name
Description
arg0
float
Returns
Type
Description
Value
float32(Float arg0)
public static Value float32 ( Float arg0 )
Parameter
Name
Description
arg0
Float
Returns
Type
Description
Value
float32Array(float[] arg0)
public static Value float32Array ( float [] arg0 )
Parameter
Name
Description
arg0
float []
Returns
Type
Description
Value
float32Array(float[] arg0, int arg1, int arg2)
public static Value float32Array ( float [] arg0 , int arg1 , int arg2 )
Parameters
Name
Description
arg0
float []
arg1
int
arg2
int
Returns
Type
Description
Value
float32Array(Iterable arg0)
public static Value float32Array ( Iterable arg0 )
Returns
Type
Description
Value
float64(double arg0)
public static Value float64 ( double arg0 )
Parameter
Name
Description
arg0
double
Returns
Type
Description
Value
float64(Double arg0)
public static Value float64 ( Double arg0 )
Parameter
Name
Description
arg0
Double
Returns
Type
Description
Value
float64Array(double[] arg0)
public static Value float64Array ( double [] arg0 )
Parameter
Name
Description
arg0
double []
Returns
Type
Description
Value
float64Array(double[] arg0, int arg1, int arg2)
public static Value float64Array ( double [] arg0 , int arg1 , int arg2 )
Returns
Type
Description
Value
float64Array(Iterable arg0)
public static Value float64Array ( Iterable arg0 )
Returns
Type
Description
Value
int64(Long arg0)
public static Value int64 ( Long arg0 )
Parameter
Name
Description
arg0
Long
Returns
Type
Description
Value
int64(long arg0)
public static Value int64 ( long arg0 )
Parameter
Name
Description
arg0
long
Returns
Type
Description
Value
int64Array(Iterable arg0)
public static Value int64Array ( Iterable arg0 )
Returns
Type
Description
Value
int64Array(long[] arg0)
public static Value int64Array ( long [] arg0 )
Parameter
Name
Description
arg0
long []
Returns
Type
Description
Value
int64Array(long[] arg0, int arg1, int arg2)
public static Value int64Array ( long [] arg0 , int arg1 , int arg2 )
Parameters
Name
Description
arg0
long []
arg1
int
arg2
int
Returns
Type
Description
Value
interval(Interval arg0)
public static Value interval ( Interval arg0 )
Parameter
Name
Description
arg0
Interval
Returns
Type
Description
Value
intervalArray(Iterable arg0)
public static Value intervalArray ( Iterable arg0 )
Returns
Type
Description
Value
json(String arg0)
public static Value json ( String arg0 )
Parameter
Name
Description
arg0
String
Returns
Type
Description
Value
jsonArray(Iterable arg0)
public static Value jsonArray ( Iterable arg0 )
Returns
Type
Description
Value
numeric(BigDecimal arg0)
public static Value numeric ( BigDecimal arg0 )
Returns
Type
Description
Value
numericArray(Iterable arg0)
public static Value numericArray ( Iterable arg0 )
Returns
Type
Description
Value
pgJsonb(String arg0)
public static Value pgJsonb ( String arg0 )
Parameter
Name
Description
arg0
String
Returns
Type
Description
Value
pgJsonbArray(Iterable arg0)
public static Value pgJsonbArray ( Iterable arg0 )
Returns
Type
Description
Value
pgNumeric(String arg0)
public static Value pgNumeric ( String arg0 )
Parameter
Name
Description
arg0
String
Returns
Type
Description
Value
pgNumericArray(Iterable arg0)
public static Value pgNumericArray ( Iterable arg0 )
Returns
Type
Description
Value
pgOid(Long arg0)
public static Value pgOid ( Long arg0 )
Parameter
Name
Description
arg0
Long
Returns
Type
Description
Value
pgOid(long arg0)
public static Value pgOid ( long arg0 )
Parameter
Name
Description
arg0
long
Returns
Type
Description
Value
pgOidArray(Iterable arg0)
public static Value pgOidArray ( Iterable arg0 )
Returns
Type
Description
Value
pgOidArray(long[] arg0)
public static Value pgOidArray ( long [] arg0 )
Parameter
Name
Description
arg0
long []
Returns
Type
Description
Value
pgOidArray(long[] arg0, int arg1, int arg2)
public static Value pgOidArray ( long [] arg0 , int arg1 , int arg2 )
Parameters
Name
Description
arg0
long []
arg1
int
arg2
int
Returns
Type
Description
Value
protoEnum(ProtocolMessageEnum arg0)
public static Value protoEnum ( ProtocolMessageEnum arg0 )
Returns
Type
Description
Value
protoEnum(Long arg0, Descriptors.EnumDescriptor arg1)
public static Value protoEnum ( Long arg0 , Descriptors . EnumDescriptor arg1 )
Returns
Type
Description
Value
protoEnum(Long arg0, String arg1)
public static Value protoEnum ( Long arg0 , String arg1 )
Returns
Type
Description
Value
protoEnum(long arg0, String arg1)
public static Value protoEnum ( long arg0 , String arg1 )
Returns
Type
Description
Value
protoEnumArray(Iterable arg0, Descriptors.EnumDescriptor arg1)
public static Value protoEnumArray ( Iterable arg0 , Descriptors . EnumDescriptor arg1 )
Returns
Type
Description
Value
protoEnumArray(Iterable arg0, String arg1)
public static Value protoEnumArray ( Iterable arg0 , String arg1 )
Returns
Type
Description
Value
protoMessage(ByteArray arg0, Descriptors.Descriptor arg1)
public static Value protoMessage ( ByteArray arg0 , Descriptors . Descriptor arg1 )
Parameters
Name
Description
arg0
com.google.cloud.ByteArray
arg1
Descriptor
Returns
Type
Description
Value
protoMessage(ByteArray arg0, String arg1)
public static Value protoMessage ( ByteArray arg0 , String arg1 )
Parameters
Name
Description
arg0
com.google.cloud.ByteArray
arg1
String
Returns
Type
Description
Value
protoMessage(AbstractMessage arg0)
public static Value protoMessage ( AbstractMessage arg0 )
Returns
Type
Description
Value
protoMessageArray(Iterable arg0, String arg1)
public static Value protoMessageArray ( Iterable arg0 , String arg1 )
Parameters
Name
Description
arg0
Iterable <com.google.cloud.ByteArray >
arg1
String
Returns
Type
Description
Value
protoMessageArray(Iterable arg0, Descriptors.Descriptor arg1)
public static Value protoMessageArray ( Iterable arg0 , Descriptors . Descriptor arg1 )
Returns
Type
Description
Value
string(String arg0)
public static Value string ( String arg0 )
Parameter
Name
Description
arg0
String
Returns
Type
Description
Value
stringArray(Iterable arg0)
public static Value stringArray ( Iterable arg0 )
Returns
Type
Description
Value
struct(Struct arg0)
public static Value struct ( Struct arg0 )
Parameter
Name
Description
arg0
Struct
Returns
Type
Description
Value
struct(Type arg0, Struct arg1)
public static Value struct ( Type arg0 , Struct arg1 )
Returns
Type
Description
Value
structArray(Type arg0, Iterable arg1)
public static Value structArray ( Type arg0 , Iterable arg1 )
Returns
Type
Description
Value
timestamp(Timestamp arg0)
public static Value timestamp ( Timestamp arg0 )
Parameter
Name
Description
arg0
com.google.cloud.Timestamp
Returns
Type
Description
Value
timestampArray(Iterable arg0)
public static Value timestampArray ( Iterable arg0 )
Parameter
Name
Description
arg0
Iterable <com.google.cloud.Timestamp >
Returns
Type
Description
Value
untyped(Value arg0)
public static Value untyped ( Value arg0 )
Parameter
Name
Description
arg0
Value
Returns
Type
Description
Value
uuid(UUID arg0)
public static Value uuid ( UUID arg0 )
Parameter
Name
Description
arg0
UUID
Returns
Type
Description
Value
uuidArray(Iterable arg0)
public static Value uuidArray ( Iterable arg0 )
Returns
Type
Description
Value
Methods
getProtoEnum(Function arg0)
public T <T>getProtoEnum ( Function, ProtocolMessageEnum > arg0 )
Returns
Type
Description
T
getProtoEnumArray(Function arg0)
public List <T>getProtoEnumArray ( Function, ProtocolMessageEnum > arg0 )
Returns
Type
Description
List <T >
getProtoMessage(T arg0)
public T <T>getProtoMessage ( T arg0 )
Parameter
Name
Description
arg0
T
Returns
Type
Description
T
getProtoMessageArray(T arg0)
public List <T>getProtoMessageArray ( T arg0 )
Parameter
Name
Description
arg0
T
Returns
Type
Description
List <T >
getAsString()
public String getAsString ()
Returns
Type
Description
String
getAsStringList()
public ImmutableList getAsStringList ()
Returns
Type
Description
com.google.common.collect.ImmutableList <String >
getBool()
public abstract boolean getBool ()
getBoolArray()
public abstract List getBoolArray ()
getBytes()
public abstract ByteArray getBytes ()
Returns
Type
Description
com.google.cloud.ByteArray
getBytesArray()
public abstract List getBytesArray ()
Returns
Type
Description
List <com.google.cloud.ByteArray >
getDate()
public abstract Date getDate ()
Returns
Type
Description
com.google.cloud.Date
getDateArray()
public abstract List getDateArray ()
Returns
Type
Description
List <com.google.cloud.Date >
getFloat32()
public abstract float getFloat32 ()
Returns
Type
Description
float
getFloat32Array()
public abstract List getFloat32Array ()
getFloat64()
public abstract double getFloat64 ()
Returns
Type
Description
double
getFloat64Array()
public abstract List getFloat64Array ()
getInt64()
public abstract long getInt64 ()
Returns
Type
Description
long
getInt64Array()
public abstract List getInt64Array ()
getInterval()
public abstract Interval getInterval ()
getIntervalArray()
public abstract List getIntervalArray ()
getJson()
Returns
Type
Description
String
getJsonArray()
public List getJsonArray ()
getNumeric()
public abstract BigDecimal getNumeric ()
getNumericArray()
public abstract List getNumericArray ()
getPgJsonb()
public String getPgJsonb ()
Returns
Type
Description
String
getPgJsonbArray()
public List getPgJsonbArray ()
getString()
public abstract String getString ()
Returns
Type
Description
String
getStringArray()
public abstract List getStringArray ()
getStruct()
public abstract Struct getStruct ()
Returns
Type
Description
Struct
getStructArray()
public abstract List getStructArray ()
getTimestamp()
public abstract Timestamp getTimestamp ()
Returns
Type
Description
com.google.cloud.Timestamp
getTimestampArray()
public abstract List getTimestampArray ()
Returns
Type
Description
List <com.google.cloud.Timestamp >
getType()
public abstract Type getType ()
Returns
Type
Description
Type
getUuid()
public abstract UUID getUuid ()
Returns
Type
Description
UUID
getUuidArray()
public abstract List getUuidArray ()
isCommitTimestamp()
public abstract boolean isCommitTimestamp ()
isNull()
public abstract boolean isNull ()
toString()
Returns
Type
Description
String
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-06 UTC."],[],[]]