Class Structs (3.19.4)

  public 
  
 final 
  
 class 
 Structs 
 

Utilities to help create google.protobuf.Struct messages.

Inheritance

java.lang.Object > Structs

Static Methods

of(String k1, Value v1)

  public 
  
 static 
  
 Struct 
  
 of 
 ( 
 String 
  
 k1 
 , 
  
 Value 
  
 v1 
 ) 
 

Returns a struct containing the key-value pair.

Parameters
Name
Description
k1
v1
Returns
Type
Description

of(String k1, Value v1, String k2, Value v2)

  public 
  
 static 
  
 Struct 
  
 of 
 ( 
 String 
  
 k1 
 , 
  
 Value 
  
 v1 
 , 
  
 String 
  
 k2 
 , 
  
 Value 
  
 v2 
 ) 
 

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

Parameters
Name
Description
k1
v1
k2
v2
Returns
Type
Description

of(String k1, Value v1, String k2, Value v2, String k3, Value v3)

  public 
  
 static 
  
 Struct 
  
 of 
 ( 
 String 
  
 k1 
 , 
  
 Value 
  
 v1 
 , 
  
 String 
  
 k2 
 , 
  
 Value 
  
 v2 
 , 
  
 String 
  
 k3 
 , 
  
 Value 
  
 v3 
 ) 
 

Returns a struct containing each of the key-value pairs.

Providing duplicate keys is undefined behavior.

Parameters
Name
Description
k1
v1
k2
v2
k3
v3
Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: