Class Values

java.lang.Object
com.google.protobuf.util.Values

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

    Fields
    Modifier and Type
    Field
    Description
    private static final Value
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    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(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(String value)
    Returns a Value object with string set to value.
    static Value
     

    Methods inherited from class java.lang.Object

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

    • NULL_VALUE

      private static final Value NULL_VALUE
  • Constructor Details

    • Values

      private Values()
  • Method Details

    • 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(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(Iterable<Value> values)
      Returns a Value with ListValue set to the appending the result of calling of(boolean) on each element in the iterable.