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 theStructparameter.static com.google.protobuf.StructCreates a newStructobject given the content of the providedmapparameter.
-
Method Details
-
asMap
Returns an unmodifiable map view of theStructparameter. -
newStruct
Creates a newStructobject given the content of the providedmapparameter.Notice that all numbers (int, long, float and double) are serialized as double values. Enums are serialized as strings.
-