Class CustomAttribute
A custom attribute that is not explicitly modeled in [Product][google.cloud.retail.v2.Product]].
Inheritance
Inherited Members
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class CustomAttribute : IMessage<CustomAttribute>, IEquatable<CustomAttribute>, IDeepCloneable<CustomAttribute>, IBufferMessage, IMessage
Constructors
CustomAttribute()
Declaration
public CustomAttribute()
CustomAttribute(CustomAttribute)
Declaration
public CustomAttribute(CustomAttribute other)
Parameters
Type | Name | Description |
---|---|---|
CustomAttribute | other |
Properties
Numbers
The numerical values of this custom attribute. For example, [2.3, 15.4]
when the key is "lengths_cm".
At most 400 values are allowed.Otherwise, an INVALID_ARGUMENT error is returned.
Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
public RepeatedField<double> Numbers { get; }
Property Value
Type | Description |
---|---|
RepeatedField<System.Double> |
Text
The textual values of this custom attribute. For example, ["yellow",
"green"]
when the key is "color".
At most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
public RepeatedField<string> Text { get; }
Property Value
Type | Description |
---|---|
RepeatedField<System.String> |