ClassReference
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
对用于声明字段类型或返回值的类的引用。枚举也是一种可以使用 ClassReference 引用的类。
YAML 表示法 |
name: string
list: boolean |
字段 |
name |
string
必需。参数的内置类型或自定义类型的名称。示例:PizzaToppings 、actions.type.Number
|
list |
boolean
可选。指示数据类型是否表示值列表。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eClassReference is used to define the type of a field or return value, including enums.\u003c/p\u003e\n"],["\u003cp\u003eIt is represented in YAML with a \u003ccode\u003ename\u003c/code\u003e field (required) indicating the type and an optional \u003ccode\u003elist\u003c/code\u003e field specifying if it's a list of values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field can reference built-in types or custom types using their names.\u003c/p\u003e\n"]]],[],null,["# ClassReference\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n\nA reference to a class which is used to declare the type of a field or return value. Enums are also a type of class that can be referenced using ClassReference.\n\n| YAML representation ||\n|------------------------------------|---|\n| ``` name: string list: boolean ``` |\n\n| Fields ||\n|--------|------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Name of a built-in type or custom type of the parameter. Examples: `PizzaToppings`, `actions.type.Number` |\n| `list` | `boolean` Optional. Indicates whether the data type represents a list of values. |"]]