Class Structs


  • public final class Structs
    extends Object
    Utilities to help create google.protobuf.Struct messages.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
    • Method Detail

      • of

        public static com.google.protobuf.Struct of​(String k1,
                                                    com.google.protobuf.Value v1)
        Returns a struct containing the key-value pair.
      • of

        public 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.

        Providing duplicate keys is undefined behavior.

      • of

        public 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.

        Providing duplicate keys is undefined behavior.