public final class Structs extends Object
google.protobuf.Struct messages.| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Struct |
of(String k1,
com.google.protobuf.Value v1)
Returns a struct containing the key-value pair.
|
static com.google.protobuf.Struct |
of(String k1,
com.google.protobuf.Value v1,
String k2,
com.google.protobuf.Value v2)
Returns a struct containing each of the key-value pairs.
|
static com.google.protobuf.Struct |
of(String k1,
com.google.protobuf.Value v1,
String k2,
com.google.protobuf.Value v2,
String k3,
com.google.protobuf.Value v3)
Returns a struct containing each of the key-value pairs.
|
public static com.google.protobuf.Struct of(String k1, com.google.protobuf.Value v1)
public static com.google.protobuf.Struct of(String k1, com.google.protobuf.Value v1, String k2, com.google.protobuf.Value v2)
Providing duplicate keys is undefined behavior.
Copyright © 2008–2021. All rights reserved.