Class protos.google.shopping.merchant.reports.v1beta.ReportRow (0.5.0)

Represents a ReportRow.

Package

@google-shopping/reports

Constructors

(constructor)(properties)

constructor(properties?: google.shopping.merchant.reports.v1beta.IReportRow);

Constructs a new ReportRow.

Parameter
Name Description
properties IReportRow

Properties to set

Properties

bestSellersBrandView

public bestSellersBrandView?: (google.shopping.merchant.reports.v1beta.IBestSellersBrandView|null);

ReportRow bestSellersBrandView.

bestSellersProductClusterView

public bestSellersProductClusterView?: (google.shopping.merchant.reports.v1beta.IBestSellersProductClusterView|null);

ReportRow bestSellersProductClusterView.

competitiveVisibilityBenchmarkView

public competitiveVisibilityBenchmarkView?: (google.shopping.merchant.reports.v1beta.ICompetitiveVisibilityBenchmarkView|null);

ReportRow competitiveVisibilityBenchmarkView.

competitiveVisibilityCompetitorView

public competitiveVisibilityCompetitorView?: (google.shopping.merchant.reports.v1beta.ICompetitiveVisibilityCompetitorView|null);

ReportRow competitiveVisibilityCompetitorView.

competitiveVisibilityTopMerchantView

public competitiveVisibilityTopMerchantView?: (google.shopping.merchant.reports.v1beta.ICompetitiveVisibilityTopMerchantView|null);

ReportRow competitiveVisibilityTopMerchantView.

priceCompetitivenessProductView

public priceCompetitivenessProductView?: (google.shopping.merchant.reports.v1beta.IPriceCompetitivenessProductView|null);

ReportRow priceCompetitivenessProductView.

priceInsightsProductView

public priceInsightsProductView?: (google.shopping.merchant.reports.v1beta.IPriceInsightsProductView|null);

ReportRow priceInsightsProductView.

productPerformanceView

public productPerformanceView?: (google.shopping.merchant.reports.v1beta.IProductPerformanceView|null);

ReportRow productPerformanceView.

productView

public productView?: (google.shopping.merchant.reports.v1beta.IProductView|null);

ReportRow productView.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.reports.v1beta.IReportRow): google.shopping.merchant.reports.v1beta.ReportRow;

Creates a new ReportRow instance using the specified properties.

Parameter
Name Description
properties IReportRow

Properties to set

Returns
Type Description
ReportRow

ReportRow instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.reports.v1beta.ReportRow;

Decodes a ReportRow 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
ReportRow

ReportRow

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.reports.v1beta.ReportRow;

Decodes a ReportRow message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ReportRow

ReportRow

encode(message, writer)

public static encode(message: google.shopping.merchant.reports.v1beta.IReportRow, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ReportRow message. Does not implicitly messages.

Parameters
Name Description
message IReportRow

ReportRow 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.IReportRow, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ReportRow message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IReportRow

ReportRow 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.ReportRow;

Creates a ReportRow 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
ReportRow

ReportRow

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for ReportRow

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 ReportRow to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.shopping.merchant.reports.v1beta.ReportRow, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a ReportRow message. Also converts values to other types if specified.

Parameters
Name Description
message ReportRow

ReportRow

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 ReportRow message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not