ClassReference
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ارجاع به کلاسی که برای اعلام نوع فیلد یا مقدار بازگشتی استفاده می شود. Enum ها نیز نوعی کلاس هستند که می توان با استفاده از ClassReference به آنها ارجاع داد.
نمایندگی YAML |
---|
name: string
list: boolean |
فیلدها |
---|
name | string مورد نیاز. نام نوع داخلی یا نوع سفارشی پارامتر. مثالها: PizzaToppings ، actions.type.Number |
list | boolean اختیاری. نشان می دهد که آیا نوع داده فهرستی از مقادیر را نشان می دهد یا خیر. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]