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
Name Description
k1 String
v1 Value
Returns
Type Description
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
Name Description
k1 String
v1 Value
k2 String
v2 Value
Returns
Type Description
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
Name Description
k1 String
v1 Value
k2 String
v2 Value
k3 String
v3 Value
Returns
Type Description
Struct