Class Values (3.19.4)

  public 
  
 final 
  
 class 
 Values 
 

Utilities to help create google.protobuf.Value messages.

Inheritance

java.lang.Object > Values

Static Methods

of(boolean value)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 boolean 
  
 value 
 ) 
 

Returns a Value object with number set to value.

Parameter
Name
Description
value
Returns
Type
Description

of(ListValue value)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 ListValue 
  
 value 
 ) 
 

Returns a Value with ListValue set to value.

Parameter
Name
Description
value
Returns
Type
Description

of(Struct value)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 Struct 
  
 value 
 ) 
 

Returns a Value object with struct set to value.

Parameter
Name
Description
value
Returns
Type
Description

of(double value)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 double 
  
 value 
 ) 
 

Returns a Value object with number set to value.

Parameter
Name
Description
value
Returns
Type
Description

of(Iterable<Value> values)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 Iterable<Value> 
  
 values 
 ) 
 

Returns a Value with ListValue set to the appending the result of calling #of on each element in the iterable.

Parameter
Name
Description
values
Returns
Type
Description

of(String value)

  public 
  
 static 
  
 Value 
  
 of 
 ( 
 String 
  
 value 
 ) 
 

Returns a Value object with string set to value.

Parameter
Name
Description
value
Returns
Type
Description

ofNull()

  public 
  
 static 
  
 Value 
  
 ofNull 
 () 
 
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: