Class Values (3.19.4)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Values
Utilities to help create google.protobuf.Value
messages.
Static Methods
of(boolean value)
public static Value of(boolean value)
Returns a Value object with number set to value.
Parameter |
---|
Name | Description |
value | boolean
|
Returns |
---|
Type | Description |
Value | |
of(ListValue value)
public static Value of(ListValue value)
Returns a Value with ListValue set to value.
Returns |
---|
Type | Description |
Value | |
of(Struct value)
public static Value of(Struct value)
Returns a Value object with struct set to value.
Parameter |
---|
Name | Description |
value | Struct
|
Returns |
---|
Type | Description |
Value | |
of(double value)
public static Value of(double value)
Returns a Value object with number set to value.
Parameter |
---|
Name | Description |
value | double
|
Returns |
---|
Type | Description |
Value | |
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.
Returns |
---|
Type | Description |
Value | |
of(String value)
public static Value of(String value)
Returns a Value object with string set to value.
Parameter |
---|
Name | Description |
value | String
|
Returns |
---|
Type | Description |
Value | |
ofNull()
public static Value ofNull()
Returns |
---|
Type | Description |
Value | |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}