Package google.shopping.type
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis document provides details about two message types: \u003ccode\u003eCustomAttribute\u003c/code\u003e and \u003ccode\u003ePrice\u003c/code\u003e, used in Comparison Shopping Services.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomAttribute\u003c/code\u003e is used to define custom attributes with a name, a single value, or grouped sub-attributes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePrice\u003c/code\u003e represents a monetary value using \u003ccode\u003eamount_micros\u003c/code\u003e for the numerical price and \u003ccode\u003ecurrency_code\u003c/code\u003e for the currency in ISO 4217 format.\u003c/p\u003e\n"]]],[],null,["# Package google.shopping.type\n\nIndex\n-----\n\n- [CustomAttribute](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.CustomAttribute) (message)\n- [Price](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.Price) (message)\n\nCustomAttribute\n---------------\n\nA message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `group_values[]` | [CustomAttribute](/comparison-shopping-services/api/reference/rpc/google.shopping.type#google.shopping.type.CustomAttribute) Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty. |\n| `name` | `string` The name of the attribute. |\n| `value` | `string` The value of the attribute. If `value` is not empty, `group_values` must be empty. |\n\nPrice\n-----\n\nThe price represented as a number and currency.\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `amount_micros` | `int64` The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros). |\n| `currency_code` | `string` The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217). |"]]