Class Structs (3.19.4)

public final class Structs

Utilities to help create google.protobuf.Struct messages.

Inheritance

java.lang.Object > Structs

Static Methods

of(String k1, Value v1)

public static Struct of(String k1, Value v1)

Returns a struct containing the key-value pair.

Parameters
NameDescription
k1String
v1Value
Returns
TypeDescription
Struct

of(String k1, Value v1, String k2, Value v2)

public static Struct of(String k1, Value v1, String k2, Value v2)

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

Parameters
NameDescription
k1String
v1Value
k2String
v2Value
Returns
TypeDescription
Struct

of(String k1, Value v1, String k2, Value v2, String k3, Value v3)

public static Struct of(String k1, Value v1, String k2, Value v2, String k3, Value v3)

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

Parameters
NameDescription
k1String
v1Value
k2String
v2Value
k3String
v3Value
Returns
TypeDescription
Struct