AttributeValueType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe "value type" of an attribute defines the kind of data it can hold, like boolean values, URLs, or predefined options from a list.\u003c/p\u003e\n"],["\u003cp\u003eSome attributes use enums, which have a specific set of allowed values, potentially including multiple selections for "REPEATED_ENUM" types.\u003c/p\u003e\n"],["\u003cp\u003eWhile most value types are straightforward, using "ATTRIBUTE_VALUE_TYPE_UNSPECIFIED" is discouraged as it lacks clarity.\u003c/p\u003e\n"]]],["The core content describes different attribute value types. `BOOL` indicates boolean values, `ENUM` denotes a predefined list of values, and `URL` signifies URL values. `REPEATED_ENUM` represents an enum with multiple selectable values. `ATTRIBUTE_VALUE_TYPE_UNSPECIFIED` means the value type is not defined. The information provided is a description of the different types and not a guide to action.\n"],null,["# AttributeValueType\n\nThe value type of the attribute.\n\n| Enums ||\n|------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `ATTRIBUTE_VALUE_TYPE_UNSPECIFIED` | Not specified. |\n| `BOOL` | The values for this attribute are boolean values. |\n| `ENUM` | The attribute has a predetermined list of available values that can be used. Metadata for this attribute will list these values. |\n| `URL` | The values for this attribute are URLs. |\n| `REPEATED_ENUM` | The attribute value is an enum with multiple possible values that can be explicitly set or unset. |"]]