ArrayValue

ValueNode 陣列。元素不保證為相同類型,舉例來說,其中一個值可能會設為 constantValue,而另一個值則可能會設為 valueReference。

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

object (ValueNode)

陣列的元素。

ValueNode

代表單一值或物件。

JSON 表示法
{

  // Union field kind can be only one of the following:
  "constantValue": value,
  "integerValue": string,
  "bytesValue": string,
  "arrayValue": {
    object (ArrayValue)
  },
  "dictionaryValue": {
    object (DictionaryValue)
  },
  "functionDefinitionValue": {
    object (FunctionDefinition)
  },
  "functionInvocationValue": {
    object (FunctionInvocation)
  },
  "argumentReference": string,
  "valueReference": string
  // End of list of possible types for union field kind.
}
欄位
聯集欄位 kind。必須設定其中一個,否則會發生錯誤。kind 只能是下列其中一項:
constantValue

value (Value format)

常數值。這項資料可為任意複雜度 (也就是說,可能包含結構體和 ListValue)。

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

對名為 ValueNode 的參照,在包含的運算式「values」欄位中定義。

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)
    },
    ...
  },

  // Union field function can be only one of the following:
  "functionName": string,
  "functionReference": string
  // End of list of possible types for union field function.
}
欄位
arguments

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

此叫用作業的引數。順序無關緊要。

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

聯集欄位 function。您可以叫用預先定義和使用者定義的函式。function 只能是下列其中一項:
functionName

string

Earth Engine API 中的命名函式。

functionReference

string

函式值的參照。這通常是直接參照函式定義值,但不一定是:它可以是參照函式呼叫 (結果為函式),或參照函式值引數值。