Class Values

Stay organized with collections Save and categorize content based on your preferences.
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
NameDescription
valueboolean
Returns
TypeDescription
Value

of(ListValue value)

public static Value of(ListValue value)

Returns a Value with ListValue set to value.

Parameter
NameDescription
valueListValue
Returns
TypeDescription
Value

of(Struct value)

public static Value of(Struct value)

Returns a Value object with struct set to value.

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Value

of(double value)

public static Value of(double value)

Returns a Value object with number set to value.

Parameter
NameDescription
valuedouble
Returns
TypeDescription
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
NameDescription
valuesIterable<Value>
Returns
TypeDescription
Value

of(String value)

public static Value of(String value)

Returns a Value object with string set to value.

Parameter
NameDescription
valueString
Returns
TypeDescription
Value

ofNull()

public static Value ofNull()
Returns
TypeDescription
Value