Package com.google.protobuf.util
Class Structs
- java.lang.Object
-
- com.google.protobuf.util.Structs
-
public final class Structs extends java.lang.Object
Utilities to help creategoogle.protobuf.Struct
messages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Struct
of(java.lang.String k1, Value v1)
Returns a struct containing the key-value pair.static Struct
of(java.lang.String k1, Value v1, java.lang.String k2, Value v2)
Returns a struct containing each of the key-value pairs.static Struct
of(java.lang.String k1, Value v1, java.lang.String k2, Value v2, java.lang.String k3, Value v3)
Returns a struct containing each of the key-value pairs.
-
-
-
Method Detail
-
of
public static Struct of(java.lang.String k1, Value v1)
Returns a struct containing the key-value pair.
-
of
public static Struct of(java.lang.String k1, Value v1, java.lang.String k2, Value v2)
Returns a struct containing each of the key-value pairs.Providing duplicate keys is undefined behavior.
-
-