Class protos.google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView (0.7.0)

Represents a PriceCompetitivenessProductView.

Package

@google-shopping/reports

Constructors

(constructor)(properties)

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

Constructs a new PriceCompetitivenessProductView.

Parameter
Name Description
properties IPriceCompetitivenessProductView

Properties to set

Properties

_brand

public _brand?: "brand";

PriceCompetitivenessProductView _brand.

_categoryL1

public _categoryL1?: "categoryL1";

PriceCompetitivenessProductView _categoryL1.

_categoryL2

public _categoryL2?: "categoryL2";

PriceCompetitivenessProductView _categoryL2.

_categoryL3

public _categoryL3?: "categoryL3";

PriceCompetitivenessProductView _categoryL3.

_categoryL4

public _categoryL4?: "categoryL4";

PriceCompetitivenessProductView _categoryL4.

_categoryL5

public _categoryL5?: "categoryL5";

PriceCompetitivenessProductView _categoryL5.

_id

public _id?: "id";

PriceCompetitivenessProductView _id.

_offerId

public _offerId?: "offerId";

PriceCompetitivenessProductView _offerId.

_productTypeL1

public _productTypeL1?: "productTypeL1";

PriceCompetitivenessProductView _productTypeL1.

_productTypeL2

public _productTypeL2?: "productTypeL2";

PriceCompetitivenessProductView _productTypeL2.

_productTypeL3

public _productTypeL3?: "productTypeL3";

PriceCompetitivenessProductView _productTypeL3.

_productTypeL4

public _productTypeL4?: "productTypeL4";

PriceCompetitivenessProductView _productTypeL4.

_productTypeL5

public _productTypeL5?: "productTypeL5";

PriceCompetitivenessProductView _productTypeL5.

_reportCountryCode

public _reportCountryCode?: "reportCountryCode";

PriceCompetitivenessProductView _reportCountryCode.

_title

public _title?: "title";

PriceCompetitivenessProductView _title.

benchmarkPrice

public benchmarkPrice?: (google.shopping.type.IPrice|null);

PriceCompetitivenessProductView benchmarkPrice.

brand

public brand?: (string|null);

PriceCompetitivenessProductView brand.

categoryL1

public categoryL1?: (string|null);

PriceCompetitivenessProductView categoryL1.

categoryL2

public categoryL2?: (string|null);

PriceCompetitivenessProductView categoryL2.

categoryL3

public categoryL3?: (string|null);

PriceCompetitivenessProductView categoryL3.

categoryL4

public categoryL4?: (string|null);

PriceCompetitivenessProductView categoryL4.

categoryL5

public categoryL5?: (string|null);

PriceCompetitivenessProductView categoryL5.

id

public id?: (string|null);

PriceCompetitivenessProductView id.

offerId

public offerId?: (string|null);

PriceCompetitivenessProductView offerId.

price

public price?: (google.shopping.type.IPrice|null);

PriceCompetitivenessProductView price.

productTypeL1

public productTypeL1?: (string|null);

PriceCompetitivenessProductView productTypeL1.

productTypeL2

public productTypeL2?: (string|null);

PriceCompetitivenessProductView productTypeL2.

productTypeL3

public productTypeL3?: (string|null);

PriceCompetitivenessProductView productTypeL3.

productTypeL4

public productTypeL4?: (string|null);

PriceCompetitivenessProductView productTypeL4.

productTypeL5

public productTypeL5?: (string|null);

PriceCompetitivenessProductView productTypeL5.

reportCountryCode

public reportCountryCode?: (string|null);

PriceCompetitivenessProductView reportCountryCode.

title

public title?: (string|null);

PriceCompetitivenessProductView title.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.reports.v1beta.IPriceCompetitivenessProductView): google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView;

Creates a new PriceCompetitivenessProductView instance using the specified properties.

Parameter
Name Description
properties IPriceCompetitivenessProductView

Properties to set

Returns
Type Description
PriceCompetitivenessProductView

PriceCompetitivenessProductView instance

decode(reader, length)

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

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

PriceCompetitivenessProductView

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
PriceCompetitivenessProductView

PriceCompetitivenessProductView

encode(message, writer)

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

Encodes the specified PriceCompetitivenessProductView message. Does not implicitly messages.

Parameters
Name Description
message IPriceCompetitivenessProductView

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

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

Parameters
Name Description
message IPriceCompetitivenessProductView

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

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

PriceCompetitivenessProductView

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for PriceCompetitivenessProductView

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message PriceCompetitivenessProductView

PriceCompetitivenessProductView

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 PriceCompetitivenessProductView 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