Class Values


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

      Constructors 
      Modifier Constructor Description
      private Values()  
    • Method Summary

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

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

      • NULL_VALUE

        private static final Value NULL_VALUE
      • TRUE_VALUE

        private static final Value TRUE_VALUE
      • FALSE_VALUE

        private static final Value FALSE_VALUE
      • EMPTY_STR_VALUE

        private static final Value EMPTY_STR_VALUE
    • Constructor Detail

      • Values

        private Values()
    • Method Detail

      • ofNull

        public static Value ofNull()
      • of

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

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

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

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

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

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