ExecuteStreamResponse

針對在 Apps Script 專案中執行或偵錯函式的回應。

JSON 表示法
{

  // Union field update can be only one of the following:
  "result": {
    object (ScriptExecutionResult)
  }
  // End of list of possible types for union field update.
}
欄位
聯集欄位 update。從伺服器更新執行作業的相關資料。update 只能是下列其中一項:
result

object (ScriptExecutionResult)

執行結果。

ScriptExecutionResult

執行的結果。

JSON 表示法
{

  // Union field result can be only one of the following:
  "returnValue": {
    object (Value)
  }
  // End of list of possible types for union field result.
}
欄位
聯集欄位 result。執行結果。result 只能是下列其中一項:
returnValue

object (Value)

執行作業傳回的值。

Value 代表動態類型值,此為已執行指令碼的結果。

JSON 表示法
{

  // Union field kind can be only one of the following:
  "nullValue": enum (NullValue),
  "numberValue": number,
  "stringValue": string,
  "boolValue": boolean,
  "structValue": {
    object (Struct)
  },
  "listValue": {
    object (ListValue)
  },
  "dateValue": string,
  "protoValue": {
    "@type": string,
    field1: ...,
    ...
  },
  "bytesValue": string
  // End of list of possible types for union field kind.
}
欄位
聯集欄位 kind。值的種類。kind 只能是下列其中一項:
nullValue

enum (NullValue)

代表空值。

numberValue

number

代表雙精度浮點值。

stringValue

string

代表字串值。

boolValue

boolean

代表布林值。

structValue

object (Struct)

代表結構化值。

listValue

object (ListValue)

代表重複的 Value

dateValue

string (int64 format)

代表自 Epoch 紀元時間起算的日期 (以毫秒為單位)。

protoValue

object

代表結構化的 proto 值。

包含任意類型欄位的物件。額外的 "@type" 欄位則包含能辨識類型的 URI。例如:{ "id": 1234, "@type": "types.example.com/standard/id" }.

bytesValue

string (bytes format)

代表原始位元組值。

Base64 編碼的字串。

結構

Struct 代表結構化資料值,包含對應至動態輸入值的欄位。

JSON 表示法
{
  "fields": {
    string: {
      object (Value)
    },
    ...
  }
}
欄位
fields

map (key: string, value: object (Value))

動態輸入值的對應未排序。

這個物件中包含 "key": value 組合的清單,例如:{ "name": "wrench", "mass": "1.3kg", "count": "3" }.

ListValue

ListValue 是包覆值欄位的包裝函式。

JSON 表示法
{
  "values": [
    {
      object (Value)
    }
  ]
}
欄位
values[]

object (Value)

動態類型值的重複欄位。