Represents an Attributes.
Package
@google-shopping/cssConstructors
(constructor)(properties)
constructor(properties?: google.shopping.css.v1.IAttributes);
Constructs a new Attributes.
Parameter | |
---|---|
Name | Description |
properties |
IAttributes
Properties to set |
Properties
_adult
public _adult?: "adult";
Attributes _adult.
_ageGroup
public _ageGroup?: "ageGroup";
Attributes _ageGroup.
_brand
public _brand?: "brand";
Attributes _brand.
_color
public _color?: "color";
Attributes _color.
_cppAdsRedirect
public _cppAdsRedirect?: "cppAdsRedirect";
Attributes _cppAdsRedirect.
_cppLink
public _cppLink?: "cppLink";
Attributes _cppLink.
_cppMobileLink
public _cppMobileLink?: "cppMobileLink";
Attributes _cppMobileLink.
_customLabel_0
public _customLabel_0?: "customLabel_0";
Attributes _customLabel_0.
_customLabel_1
public _customLabel_1?: "customLabel_1";
Attributes _customLabel_1.
_customLabel_2
public _customLabel_2?: "customLabel_2";
Attributes _customLabel_2.
_customLabel_3
public _customLabel_3?: "customLabel_3";
Attributes _customLabel_3.
_customLabel_4
public _customLabel_4?: "customLabel_4";
Attributes _customLabel_4.
_description
public _description?: "description";
Attributes _description.
_gender
public _gender?: "gender";
Attributes _gender.
_googleProductCategory
public _googleProductCategory?: "googleProductCategory";
Attributes _googleProductCategory.
_gtin
public _gtin?: "gtin";
Attributes _gtin.
_headlineOfferCondition
public _headlineOfferCondition?: "headlineOfferCondition";
Attributes _headlineOfferCondition.
_headlineOfferLink
public _headlineOfferLink?: "headlineOfferLink";
Attributes _headlineOfferLink.
_headlineOfferMobileLink
public _headlineOfferMobileLink?: "headlineOfferMobileLink";
Attributes _headlineOfferMobileLink.
_imageLink
public _imageLink?: "imageLink";
Attributes _imageLink.
_isBundle
public _isBundle?: "isBundle";
Attributes _isBundle.
_itemGroupId
public _itemGroupId?: "itemGroupId";
Attributes _itemGroupId.
_material
public _material?: "material";
Attributes _material.
_mpn
public _mpn?: "mpn";
Attributes _mpn.
_multipack
public _multipack?: "multipack";
Attributes _multipack.
_numberOfOffers
public _numberOfOffers?: "numberOfOffers";
Attributes _numberOfOffers.
_pattern
public _pattern?: "pattern";
Attributes _pattern.
_pause
public _pause?: "pause";
Attributes _pause.
_size
public _size?: "size";
Attributes _size.
_sizeSystem
public _sizeSystem?: "sizeSystem";
Attributes _sizeSystem.
_title
public _title?: "title";
Attributes _title.
additionalImageLinks
public additionalImageLinks: string[];
Attributes additionalImageLinks.
adult
public adult?: (boolean|null);
Attributes adult.
ageGroup
public ageGroup?: (string|null);
Attributes ageGroup.
brand
public brand?: (string|null);
Attributes brand.
certifications
public certifications: google.shopping.css.v1.ICertification[];
Attributes certifications.
color
public color?: (string|null);
Attributes color.
cppAdsRedirect
public cppAdsRedirect?: (string|null);
Attributes cppAdsRedirect.
cppLink
public cppLink?: (string|null);
Attributes cppLink.
cppMobileLink
public cppMobileLink?: (string|null);
Attributes cppMobileLink.
customLabel_0
public customLabel_0?: (string|null);
Attributes customLabel_0.
customLabel_1
public customLabel_1?: (string|null);
Attributes customLabel_1.
customLabel_2
public customLabel_2?: (string|null);
Attributes customLabel_2.
customLabel_3
public customLabel_3?: (string|null);
Attributes customLabel_3.
customLabel_4
public customLabel_4?: (string|null);
Attributes customLabel_4.
description
public description?: (string|null);
Attributes description.
excludedDestinations
public excludedDestinations: string[];
Attributes excludedDestinations.
expirationDate
public expirationDate?: (google.protobuf.ITimestamp|null);
Attributes expirationDate.
gender
public gender?: (string|null);
Attributes gender.
googleProductCategory
public googleProductCategory?: (string|null);
Attributes googleProductCategory.
gtin
public gtin?: (string|null);
Attributes gtin.
headlineOfferCondition
public headlineOfferCondition?: (string|null);
Attributes headlineOfferCondition.
headlineOfferLink
public headlineOfferLink?: (string|null);
Attributes headlineOfferLink.
headlineOfferMobileLink
public headlineOfferMobileLink?: (string|null);
Attributes headlineOfferMobileLink.
headlineOfferPrice
public headlineOfferPrice?: (google.shopping.type.IPrice|null);
Attributes headlineOfferPrice.
headlineOfferShippingPrice
public headlineOfferShippingPrice?: (google.shopping.type.IPrice|null);
Attributes headlineOfferShippingPrice.
highPrice
public highPrice?: (google.shopping.type.IPrice|null);
Attributes highPrice.
imageLink
public imageLink?: (string|null);
Attributes imageLink.
includedDestinations
public includedDestinations: string[];
Attributes includedDestinations.
isBundle
public isBundle?: (boolean|null);
Attributes isBundle.
itemGroupId
public itemGroupId?: (string|null);
Attributes itemGroupId.
lowPrice
public lowPrice?: (google.shopping.type.IPrice|null);
Attributes lowPrice.
material
public material?: (string|null);
Attributes material.
mpn
public mpn?: (string|null);
Attributes mpn.
multipack
public multipack?: (number|Long|string|null);
Attributes multipack.
numberOfOffers
public numberOfOffers?: (number|Long|string|null);
Attributes numberOfOffers.
pattern
public pattern?: (string|null);
Attributes pattern.
pause
public pause?: (string|null);
Attributes pause.
productDetails
public productDetails: google.shopping.css.v1.IProductDetail[];
Attributes productDetails.
productHeight
public productHeight?: (google.shopping.css.v1.IProductDimension|null);
Attributes productHeight.
productHighlights
public productHighlights: string[];
Attributes productHighlights.
productLength
public productLength?: (google.shopping.css.v1.IProductDimension|null);
Attributes productLength.
productTypes
public productTypes: string[];
Attributes productTypes.
productWeight
public productWeight?: (google.shopping.css.v1.IProductWeight|null);
Attributes productWeight.
productWidth
public productWidth?: (google.shopping.css.v1.IProductDimension|null);
Attributes productWidth.
size
public size?: (string|null);
Attributes size.
sizeSystem
public sizeSystem?: (string|null);
Attributes sizeSystem.
sizeTypes
public sizeTypes: string[];
Attributes sizeTypes.
title
public title?: (string|null);
Attributes title.
Methods
create(properties)
public static create(properties?: google.shopping.css.v1.IAttributes): google.shopping.css.v1.Attributes;
Creates a new Attributes instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IAttributes
Properties to set |
Returns | |
---|---|
Type | Description |
Attributes |
Attributes instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.css.v1.Attributes;
Decodes an Attributes message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
Attributes |
Attributes |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.css.v1.Attributes;
Decodes an Attributes message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
Attributes |
Attributes |
encode(message, writer)
public static encode(message: google.shopping.css.v1.IAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Attributes message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IAttributes
Attributes message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.shopping.css.v1.IAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Attributes message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IAttributes
Attributes message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.shopping.css.v1.Attributes;
Creates an Attributes message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
Attributes |
Attributes |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for Attributes
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this Attributes to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.shopping.css.v1.Attributes, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an Attributes message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
Attributes
Attributes |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an Attributes message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|