# ExecuteStreamResponse

- [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#SCHEMA_REPRESENTATION)
- [ScriptExecutionResult](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ScriptExecutionResult)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ScriptExecutionResult.SCHEMA_REPRESENTATION)
- [Value](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value.SCHEMA_REPRESENTATION)
- [Struct](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Struct)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Struct.SCHEMA_REPRESENTATION)
- [ListValue](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ListValue)
  - [JSON representation](https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ListValue.SCHEMA_REPRESENTATION)

The response for executing or debugging a function in an Apps Script project.

| JSON representation |
|---|
| ``` { // Union field `update` can be only one of the following: "result": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ScriptExecutionResult`) } // End of list of possible types for union field `update`. } ``` |

| Fields ||
|---|---|
| Union field `update`. Update from the server with pertinent data about your execution. `update` can be only one of the following: ||
| `result` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ScriptExecutionResult`)`` The result of the execution. |

## ScriptExecutionResult

The result of an execution.

| JSON representation |
|---|
| ``` { // Union field `result` can be only one of the following: "returnValue": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`) } // End of list of possible types for union field `result`. } ``` |

| Fields ||
|---|---|
| Union field `result`. The result of the execution. `result` can be only one of the following: ||
| `returnValue` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`)`` The returned value of the execution. |

## Value

`Value` represents a dynamically typed value which is the outcome of an executed script.

| JSON representation |
|---|
| ``` { // Union field `kind` can be only one of the following: "nullValue": enum (`https://developers.google.com/apps-script/api/reference/rest/v1/NullValue`), "numberValue": number, "stringValue": string, "boolValue": boolean, "structValue": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Struct`) }, "listValue": { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ListValue`) }, "dateValue": string, "protoValue": { "@type": string, field1: ..., ... }, "bytesValue": string // End of list of possible types for union field `kind`. } ``` |

| Fields ||
|---|---|
| Union field `kind`. The kind of value. `kind` can be only one of the following: ||
| `nullValue` | ``enum (`https://developers.google.com/apps-script/api/reference/rest/v1/NullValue`)`` Represents a null value. |
| `numberValue` | `number` Represents a double value. |
| `stringValue` | `string` Represents a string value. |
| `boolValue` | `boolean` Represents a boolean value. |
| `structValue` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Struct`)`` Represents a structured value. |
| `listValue` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#ListValue`)`` Represents a repeated `Value`. |
| `dateValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a date in ms since the epoch. |
| `protoValue` | `object` Represents a structured proto value. An object containing fields of an arbitrary type. An additional field `"@type"` contains a URI identifying the type. Example: `{ "id": 1234, "@type": "types.example.com/standard/id" }`. |
| `bytesValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents raw byte values. A base64-encoded string. |

## Struct

`Struct` represents a structured data value, consisting of fields which map to dynamically typed values.

| JSON representation |
|---|
| ``` { "fields": { string: { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`) }, ... } } ``` |

| Fields ||
|---|---|
| `fields` | ``map (key: string, value: object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`))`` Unordered map of dynamically typed values. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ListValue

`ListValue` is a wrapper around a repeated field of values.

| JSON representation |
|---|
| ``` { "values": [ { object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`) } ] } ``` |

| Fields ||
|---|---|
| `values[]` | ``object (`https://developers.google.com/apps-script/api/reference/rest/v1/ExecuteStreamResponse#Value`)`` Repeated field of dynamically typed values. |