ArrayValue

ValueNode 陣列。元素不一定屬於相同類型,因此舉例來說,其中一個值可能已設定 constantValue,另一個值可能已設定 valueReference。

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

object (ValueNode)

陣列的元素。

ValueNode

代表單一值或物件。

JSON 表示法
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "constantValue": value,
  "integerValue": string,
  "bytesValue": string,
  "arrayValue": {
    object (ArrayValue)
  },
  "dictionaryValue": {
    object (DictionaryValue)
  },
  "functionDefinitionValue": {
    object (FunctionDefinition)
  },
  "functionInvocationValue": {
    object (FunctionInvocation)
  },
  "argumentReference": string,
  "valueReference": string
  // End of mutually exclusive fields.
}
欄位
必須設定其中一個,如果未設定任何一個,就會發生錯誤。以下列出互斥的欄位。回應中最多只會設定一個欄位:
constantValue

value (Value format)

常數值。這項值可具有任意複雜度 (即可能包含 Structs 和 ListValues)。

integerValue

string (int64 format)

整數值。

bytesValue

string (bytes format)

不透明的位元組序列。

Base64 編碼字串。

arrayValue

object (ArrayValue)

值的陣列。

dictionaryValue

object (DictionaryValue)

值字典。

functionDefinitionValue

object (FunctionDefinition)

函式物件。

functionInvocationValue

object (FunctionInvocation)

函式叫用。

argumentReference

string

參照某些封閉式 FunctionDefinition 的引數。僅在以 FunctionDefinition 的「body」欄位為根的子圖中有效。

valueReference

string

參照在封閉運算式的「values」欄位中定義的具名 ValueNode。

互斥欄位的結尾。

DictionaryValue

以字串為鍵的無序 ValueNode 字典。鍵不得重複,且可能包含空字串。無法保證值類型相同,因此舉例來說,其中一個值可能已設定 constantValue,另一個值可能已設定 valueReference。

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

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

字典的元素。

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

FunctionDefinition

自訂函式定義。

JSON 表示法
{
  "argumentNames": [
    string
  ],
  "body": string
}
欄位
argumentNames[]

string

這個函式接受的引數名稱。主體中的 ValueNode 的「argumentReference」欄位可以參照這些項目。

body

string

函式主體本身,做為封閉運算式中 ValueNode 的參照。

FunctionInvocation

函式呼叫。

JSON 表示法
{
  "arguments": {
    string: {
      object (ValueNode)
    },
    ...
  },

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "functionName": string,
  "functionReference": string
  // End of mutually exclusive fields.
}
欄位
arguments

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

這個呼叫的引數。順序無關緊要。

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

您可以叫用預先定義和使用者定義的函式。以下列出互斥的欄位。回應中最多只會設定一個欄位:
functionName

string

Earth Engine API 中的已命名函式。

functionReference

string

函式值值的參照。這通常是 FunctionDefinition 值的直接參照,但不必如此:它可以是 FunctionInvocation 的參照 (結果是函式),也可以是函式值引數值的參照。

互斥欄位的結尾。