Class Structs


  • public final class Structs
    extends java.lang.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​(java.lang.String k1, com.google.protobuf.Value v1)
      Returns a struct containing the key-value pair.
      static com.google.protobuf.Struct of​(java.lang.String k1, com.google.protobuf.Value v1, java.lang.String k2, com.google.protobuf.Value v2)
      Returns a struct containing each of the key-value pairs.
      static com.google.protobuf.Struct of​(java.lang.String k1, com.google.protobuf.Value v1, java.lang.String k2, com.google.protobuf.Value v2, java.lang.String k3, com.google.protobuf.Value v3)
      Returns a struct containing each of the key-value pairs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

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

        public static com.google.protobuf.Struct of​(java.lang.String k1,
                                                    com.google.protobuf.Value v1,
                                                    java.lang.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​(java.lang.String k1,
                                                    com.google.protobuf.Value v1,
                                                    java.lang.String k2,
                                                    com.google.protobuf.Value v2,
                                                    java.lang.String k3,
                                                    com.google.protobuf.Value v3)
        Returns a struct containing each of the key-value pairs.

        Providing duplicate keys is undefined behavior.