CustomAttribute
Stay organized with collections
Save and categorize content based on your preferences.
A message that represents custom attributes. Exactly one of value
or groupValues
must not be empty.
JSON representation |
{
"groupValues": [
{
object (CustomAttribute )
}
],
"name": string,
"value": string
} |
Fields |
groupValues[] |
object (CustomAttribute )
Subattributes within this attribute group. If groupValues is not empty, value must be empty.
|
name |
string
The name of the attribute.
|
value |
string
The value of the attribute. If value is not empty, groupValues must be empty.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eCustom attributes are represented using JSON and require either a single value or a group of sub-attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON structure includes fields for "groupValues," representing sub-attributes, "name" for the attribute's name, and "value" for a single attribute value.\u003c/p\u003e\n"],["\u003cp\u003eWhen using "groupValues" to define sub-attributes, the "value" field must be empty, and vice-versa.\u003c/p\u003e\n"]]],["The provided content describes a JSON structure for custom attributes. It details that each attribute must have a `name` and either a `value` (a string) or `groupValues` (an array of sub-attributes). If `value` is present, `groupValues` must be empty, and vice-versa. The `groupValues` field contains a list of `CustomAttribute` objects, which represent sub-attributes within an attribute group.\n"],null,["# CustomAttribute\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA message that represents custom attributes. Exactly one of `value` or `groupValues` must not be empty.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"groupValues\": [ { object (/merchant/api/reference/rest/Shared.Types/CustomAttribute) } ], \"name\": string, \"value\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `groupValues[]` | `object (`[CustomAttribute](/merchant/api/reference/rest/Shared.Types/CustomAttribute)`)` Subattributes within this attribute group. If `groupValues` 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, `groupValues` must be empty. |"]]