Represents a ProductView.
Package
@google-shopping/reportsConstructors
(constructor)(properties)
constructor(properties?: google.shopping.merchant.reports.v1beta.IProductView);
Constructs a new ProductView.
Parameter | |
---|---|
Name | Description |
properties |
IProductView
Properties to set |
Properties
aggregatedReportingContextStatus
public aggregatedReportingContextStatus?: (google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus|keyof typeof google.shopping.merchant.reports.v1beta.ProductView.AggregatedReportingContextStatus|null);
ProductView aggregatedReportingContextStatus.
availability
public availability?: (string|null);
ProductView availability.
brand
public brand?: (string|null);
ProductView brand.
categoryL1
public categoryL1?: (string|null);
ProductView categoryL1.
categoryL2
public categoryL2?: (string|null);
ProductView categoryL2.
categoryL3
public categoryL3?: (string|null);
ProductView categoryL3.
categoryL4
public categoryL4?: (string|null);
ProductView categoryL4.
categoryL5
public categoryL5?: (string|null);
ProductView categoryL5.
channel
public channel?: (google.shopping.type.Channel.ChannelEnum|keyof typeof google.shopping.type.Channel.ChannelEnum|null);
ProductView channel.
clickPotential
public clickPotential: (google.shopping.merchant.reports.v1beta.ProductView.ClickPotential|keyof typeof google.shopping.merchant.reports.v1beta.ProductView.ClickPotential);
ProductView clickPotential.
clickPotentialRank
public clickPotentialRank?: (number|Long|string|null);
ProductView clickPotentialRank.
condition
public condition?: (string|null);
ProductView condition.
creationTime
public creationTime?: (google.protobuf.ITimestamp|null);
ProductView creationTime.
expirationDate
public expirationDate?: (google.type.IDate|null);
ProductView expirationDate.
feedLabel
public feedLabel?: (string|null);
ProductView feedLabel.
gtin
public gtin: string[];
ProductView gtin.
id
public id?: (string|null);
ProductView id.
itemGroupId
public itemGroupId?: (string|null);
ProductView itemGroupId.
itemIssues
public itemIssues: google.shopping.merchant.reports.v1beta.ProductView.IItemIssue[];
ProductView itemIssues.
languageCode
public languageCode?: (string|null);
ProductView languageCode.
offerId
public offerId?: (string|null);
ProductView offerId.
price
public price?: (google.shopping.type.IPrice|null);
ProductView price.
productTypeL1
public productTypeL1?: (string|null);
ProductView productTypeL1.
productTypeL2
public productTypeL2?: (string|null);
ProductView productTypeL2.
productTypeL3
public productTypeL3?: (string|null);
ProductView productTypeL3.
productTypeL4
public productTypeL4?: (string|null);
ProductView productTypeL4.
productTypeL5
public productTypeL5?: (string|null);
ProductView productTypeL5.
shippingLabel
public shippingLabel?: (string|null);
ProductView shippingLabel.
thumbnailLink
public thumbnailLink?: (string|null);
ProductView thumbnailLink.
title
public title?: (string|null);
ProductView title.
Methods
create(properties)
public static create(properties?: google.shopping.merchant.reports.v1beta.IProductView): google.shopping.merchant.reports.v1beta.ProductView;
Creates a new ProductView instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IProductView
Properties to set |
Returns | |
---|---|
Type | Description |
ProductView |
ProductView instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.reports.v1beta.ProductView;
Decodes a ProductView 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 |
ProductView |
ProductView |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.reports.v1beta.ProductView;
Decodes a ProductView message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
ProductView |
ProductView |
encode(message, writer)
public static encode(message: google.shopping.merchant.reports.v1beta.IProductView, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ProductView message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IProductView
ProductView 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.merchant.reports.v1beta.IProductView, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified ProductView message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IProductView
ProductView 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.merchant.reports.v1beta.ProductView;
Creates a ProductView 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 |
ProductView |
ProductView |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for ProductView
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 ProductView to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.shopping.merchant.reports.v1beta.ProductView, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a ProductView message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
ProductView
ProductView |
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 a ProductView message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|