Class Values (3.19.4)

public final class Values

Utilities to help create google.protobuf.Value messages.

Inheritance

java.lang.Object > Values

Static Methods

of(boolean value)

public static Value of(boolean value)

Returns a Value object with number set to value.

Parameter
Name Description
value boolean
Returns
Type Description
Value

of(ListValue value)

public static Value of(ListValue value)

Returns a Value with ListValue set to value.

Parameter
Name Description
value ListValue
Returns
Type Description
Value

of(Struct value)

public static Value of(Struct value)

Returns a Value object with struct set to value.

Parameter
Name Description
value Struct
Returns
Type Description
Value

of(double value)

public static Value of(double value)

Returns a Value object with number set to value.

Parameter
Name Description
value double
Returns
Type Description
Value

of(Iterable<Value> values)

public static Value of(Iterable<Value> values)

Returns a Value with ListValue set to the appending the result of calling #of on each element in the iterable.

Parameter
Name Description
values Iterable<Value>
Returns
Type Description
Value

of(String value)

public static Value of(String value)

Returns a Value object with string set to value.

Parameter
Name Description
value String
Returns
Type Description
Value

ofNull()

public static Value ofNull()
Returns
Type Description
Value