ClassReference
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Alan veya döndürülen değerin türünü bildirmek için kullanılan sınıfa başvuru. Sıralamalar, ClassReference kullanılarak referans verilebilecek bir sınıf türüdür.
YAML temsili |
name: string
list: boolean |
Alanlar |
name |
string
Zorunlu. Parametrenin yerleşik türünün veya özel türünün adı. Örnekler: PizzaToppings , actions.type.Number
|
list |
boolean
İsteğe bağlı. Veri türünün bir değer listesini temsil edip etmediğini belirtir.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\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. |"]]