Class Values


  • public final class Values
    extends java.lang.Object
    Utilities to help create google.protobuf.Value messages.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.protobuf.Value of​(boolean value)
      Returns a Value object with number set to value.
      static com.google.protobuf.Value of​(double value)
      Returns a Value object with number set to value.
      static com.google.protobuf.Value of​(com.google.protobuf.ListValue value)
      Returns a Value with ListValue set to value.
      static com.google.protobuf.Value of​(com.google.protobuf.Struct value)
      Returns a Value object with struct set to value.
      static com.google.protobuf.Value of​(java.lang.Iterable<com.google.protobuf.Value> values)
      Returns a Value with ListValue set to the appending the result of calling of(boolean) on each element in the iterable.
      static com.google.protobuf.Value of​(java.lang.String value)
      Returns a Value object with string set to value.
      static com.google.protobuf.Value ofNull()  
      • Methods inherited from class java.lang.Object

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

      • ofNull

        public static com.google.protobuf.Value ofNull()
      • of

        public static com.google.protobuf.Value of​(boolean value)
        Returns a Value object with number set to value.
      • of

        public static com.google.protobuf.Value of​(double value)
        Returns a Value object with number set to value.
      • of

        public static com.google.protobuf.Value of​(java.lang.String value)
        Returns a Value object with string set to value.
      • of

        public static com.google.protobuf.Value of​(com.google.protobuf.Struct value)
        Returns a Value object with struct set to value.
      • of

        public static com.google.protobuf.Value of​(com.google.protobuf.ListValue value)
        Returns a Value with ListValue set to value.
      • of

        public static com.google.protobuf.Value of​(java.lang.Iterable<com.google.protobuf.Value> values)
        Returns a Value with ListValue set to the appending the result of calling of(boolean) on each element in the iterable.