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 的引用,该命名 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

对函数值的引用。这通常是对 FunctionDefinition 值的直接引用,但不一定是:它可以是指向 FunctionInvocation(其结果为函数)的引用,也可以是指向函数值参数值的引用。