Class protos.google.shopping.merchant.reports.v1beta.PriceInsightsProductView (0.9.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?: (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.

effectiveness

public effectiveness: (google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness|keyof typeof google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness);

PriceInsightsProductView effectiveness.

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