Package com.google.protobuf.util
Class Values
- java.lang.Object
-
- com.google.protobuf.util.Values
-
public final class Values extends java.lang.ObjectUtilities to help creategoogle.protobuf.Valuemessages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Valueof(boolean value)Returns aValueobject with number set to value.static Valueof(double value)Returns aValueobject with number set to value.static Valueof(ListValue value)static Valueof(Struct value)Returns aValueobject with struct set to value.static Valueof(java.lang.Iterable<Value> values)Returns aValuewith aListValuewhose values are set to the result of callingof(boolean)on each element in the iterable.static Valueof(java.lang.String value)Returns aValueobject with string set to value.static Valueof(java.util.Map<java.lang.String,Value> values)Returns aValuewith aStructwhose fields are set to the result of callingof(boolean)on each value in the map, preserving keys.static ValueofNull()
-
-
-
Method Detail
-
ofNull
public static Value ofNull()
-
of
public static Value of(java.lang.Iterable<Value> values)
Returns aValuewith aListValuewhose values are set to the result of callingof(boolean)on each element in the iterable.
-
of
public static Value of(java.util.Map<java.lang.String,Value> values)
Returns aValuewith aStructwhose fields are set to the result of callingof(boolean)on each value in the map, preserving keys.
-
-