Class Image
[Product][google.cloud.retail.v2.Product] thumbnail/detail image.
Inheritance
System.Object
Image
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class Image : IMessage<Image>, IEquatable<Image>, IDeepCloneable<Image>, IBufferMessage, IMessage
Constructors
Image()
Declaration
public Image()
Image(Image)
Declaration
public Image(Image other)
Parameters
Type | Name | Description |
---|---|---|
Image | other |
Properties
Height
Height of the image in number of pixels.
This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Uri
Required. URI of the image.
This field must be a valid UTF-8 encoded URI with a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Google Merchant Center property image_link. Schema.org property Product.image.
Declaration
public string Uri { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
Width of the image in number of pixels.
This field must be nonnegative. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |