Expression
Specifies an arbitrary expression, of an arbitrary type. The context in which it is used determines the type of the response.
JSON representation |
{
"values": {
string: {
object (ValueNode )
},
...
},
"result": string
} |
Fields |
values |
map (key: string, value: object (ValueNode ))
All intermediate values in the computation. The directed graph these form must be acyclic. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
result |
string
Which of the ValueNodes in "values" is the final result of the computation.
|
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-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["Arbitrary expressions of any type are specified, with the context determining the response type."],["A JSON representation is used, including intermediate values within a directed acyclic graph and a final result."],["The `values` field maps keys to ValueNodes, representing all intermediate values in the computation."],["The `result` field indicates which ValueNode in `values` is the final result."]]],["The core content describes a structure for representing arbitrary expressions and their computations. It uses a JSON format with two main components: `values` and `result`. `values` is a map of intermediate computations, where each key-value pair represents a step, and the graph formed by these computations must be acyclic. `result` specifies the `string` key within `values` that represents the final outcome of the computation. The type of the response is determined by the context.\n"]]