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

Represents a PriceInsightsProductView.

Package

@google-shopping/reports

Constructors

(constructor)(properties)

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

Constructs a new PriceInsightsProductView.

Parameter
Name Description
properties IPriceInsightsProductView

Properties to set

Properties

_brand

public _brand?: "brand";

PriceInsightsProductView _brand.

_categoryL1

public _categoryL1?: "categoryL1";

PriceInsightsProductView _categoryL1.

_categoryL2

public _categoryL2?: "categoryL2";

PriceInsightsProductView _categoryL2.

_categoryL3

public _categoryL3?: "categoryL3";

PriceInsightsProductView _categoryL3.

_categoryL4

public _categoryL4?: "categoryL4";

PriceInsightsProductView _categoryL4.

_categoryL5

public _categoryL5?: "categoryL5";

PriceInsightsProductView _categoryL5.

_id

public _id?: "id";

PriceInsightsProductView _id.

_offerId

public _offerId?: "offerId";

PriceInsightsProductView _offerId.

_predictedClicksChangeFraction

public _predictedClicksChangeFraction?: "predictedClicksChangeFraction";

PriceInsightsProductView _predictedClicksChangeFraction.

_predictedConversionsChangeFraction

public _predictedConversionsChangeFraction?: "predictedConversionsChangeFraction";

PriceInsightsProductView _predictedConversionsChangeFraction.

_predictedImpressionsChangeFraction

public _predictedImpressionsChangeFraction?: "predictedImpressionsChangeFraction";

PriceInsightsProductView _predictedImpressionsChangeFraction.

_productTypeL1

public _productTypeL1?: "productTypeL1";

PriceInsightsProductView _productTypeL1.

_productTypeL2

public _productTypeL2?: "productTypeL2";

PriceInsightsProductView _productTypeL2.

_productTypeL3

public _productTypeL3?: "productTypeL3";

PriceInsightsProductView _productTypeL3.

_productTypeL4

public _productTypeL4?: "productTypeL4";

PriceInsightsProductView _productTypeL4.

_productTypeL5

public _productTypeL5?: "productTypeL5";

PriceInsightsProductView _productTypeL5.

_title

public _title?: "title";

PriceInsightsProductView _title.

brand

public brand?: (string|null);

PriceInsightsProductView brand.

categoryL1

public categoryL1?: (string|null);

PriceInsightsProductView categoryL1.

categoryL2

public categoryL2?: (string|null);

PriceInsightsProductView categoryL2.

categoryL3

public categoryL3?: (string|null);

PriceInsightsProductView categoryL3.

categoryL4

public categoryL4?: (string|null);

PriceInsightsProductView categoryL4.

categoryL5

public categoryL5?: (string|null);

PriceInsightsProductView categoryL5.

id

public id?: (string|null);

PriceInsightsProductView id.

offerId

public offerId?: (string|null);

PriceInsightsProductView offerId.

predictedClicksChangeFraction

public predictedClicksChangeFraction?: (number|null);

PriceInsightsProductView predictedClicksChangeFraction.

predictedConversionsChangeFraction

public predictedConversionsChangeFraction?: (number|null);

PriceInsightsProductView predictedConversionsChangeFraction.

predictedImpressionsChangeFraction

public predictedImpressionsChangeFraction?: (number|null);

PriceInsightsProductView predictedImpressionsChangeFraction.

price

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

PriceInsightsProductView price.

productTypeL1

public productTypeL1?: (string|null);

PriceInsightsProductView productTypeL1.

productTypeL2

public productTypeL2?: (string|null);

PriceInsightsProductView productTypeL2.

productTypeL3

public productTypeL3?: (string|null);

PriceInsightsProductView productTypeL3.

productTypeL4

public productTypeL4?: (string|null);

PriceInsightsProductView productTypeL4.

productTypeL5

public productTypeL5?: (string|null);

PriceInsightsProductView productTypeL5.

suggestedPrice

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

PriceInsightsProductView suggestedPrice.

title

public title?: (string|null);

PriceInsightsProductView title.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.reports.v1beta.IPriceInsightsProductView): google.shopping.merchant.reports.v1beta.PriceInsightsProductView;

Creates a new PriceInsightsProductView instance using the specified properties.

Parameter
Name Description
properties IPriceInsightsProductView

Properties to set

Returns
Type Description
PriceInsightsProductView

PriceInsightsProductView instance

decode(reader, length)

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

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

PriceInsightsProductView

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
PriceInsightsProductView

PriceInsightsProductView

encode(message, writer)

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

Encodes the specified PriceInsightsProductView message. Does not implicitly messages.

Parameters
Name Description
message IPriceInsightsProductView

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

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

Parameters
Name Description
message IPriceInsightsProductView

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

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

PriceInsightsProductView

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for PriceInsightsProductView

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message PriceInsightsProductView

PriceInsightsProductView

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