Package com.google.cloud
Class Structs
java.lang.Object
com.google.cloud.Structs
This class contains static utility methods that operate on or return protobuf's
Struct
objects. This is considered an internal class and implementation detail.-
Method Summary
Modifier and TypeMethodDescriptionasMap
(com.google.protobuf.Struct struct) Returns an unmodifiable map view of theStruct
parameter.static com.google.protobuf.Struct
Creates a newStruct
object given the content of the providedmap
parameter.
-
Method Details
-
asMap
Returns an unmodifiable map view of theStruct
parameter. -
newStruct
Creates a newStruct
object given the content of the providedmap
parameter.Notice that all numbers (int, long, float and double) are serialized as double values. Enums are serialized as strings.
-