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

        public static Struct of​(java.lang.String k1,
                                Value v1,
                                java.lang.String k2,
                                Value v2)
        Returns a struct containing each of the key-value pairs.

        Providing duplicate keys is undefined behavior.

      • of

        public static Struct of​(java.lang.String k1,
                                Value v1,
                                java.lang.String k2,
                                Value v2,
                                java.lang.String k3,
                                Value v3)
        Returns a struct containing each of the key-value pairs.

        Providing duplicate keys is undefined behavior.