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 的引用,也可以是对函数值型实参值的引用。

互斥字段结束。