Class protos.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView (0.4.0)

Represents a CompetitiveVisibilityTopMerchantView.

Package

@google-shopping/reports

Constructors

(constructor)(properties)

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

Constructs a new CompetitiveVisibilityTopMerchantView.

Parameter
Name Description
properties ICompetitiveVisibilityTopMerchantView

Properties to set

Properties

_adsOrganicRatio

public _adsOrganicRatio?: "adsOrganicRatio";

CompetitiveVisibilityTopMerchantView _adsOrganicRatio.

_domain

public _domain?: "domain";

CompetitiveVisibilityTopMerchantView _domain.

_higherPositionRate

public _higherPositionRate?: "higherPositionRate";

CompetitiveVisibilityTopMerchantView _higherPositionRate.

_isYourDomain

public _isYourDomain?: "isYourDomain";

CompetitiveVisibilityTopMerchantView _isYourDomain.

_pageOverlapRate

public _pageOverlapRate?: "pageOverlapRate";

CompetitiveVisibilityTopMerchantView _pageOverlapRate.

_rank

public _rank?: "rank";

CompetitiveVisibilityTopMerchantView _rank.

_reportCategoryId

public _reportCategoryId?: "reportCategoryId";

CompetitiveVisibilityTopMerchantView _reportCategoryId.

_reportCountryCode

public _reportCountryCode?: "reportCountryCode";

CompetitiveVisibilityTopMerchantView _reportCountryCode.

_trafficSource

public _trafficSource?: "trafficSource";

CompetitiveVisibilityTopMerchantView _trafficSource.

adsOrganicRatio

public adsOrganicRatio?: (number|null);

CompetitiveVisibilityTopMerchantView adsOrganicRatio.

date

public date?: (google.type.IDate|null);

CompetitiveVisibilityTopMerchantView date.

domain

public domain?: (string|null);

CompetitiveVisibilityTopMerchantView domain.

higherPositionRate

public higherPositionRate?: (number|null);

CompetitiveVisibilityTopMerchantView higherPositionRate.

isYourDomain

public isYourDomain?: (boolean|null);

CompetitiveVisibilityTopMerchantView isYourDomain.

pageOverlapRate

public pageOverlapRate?: (number|null);

CompetitiveVisibilityTopMerchantView pageOverlapRate.

rank

public rank?: (number|Long|string|null);

CompetitiveVisibilityTopMerchantView rank.

reportCategoryId

public reportCategoryId?: (number|Long|string|null);

CompetitiveVisibilityTopMerchantView reportCategoryId.

reportCountryCode

public reportCountryCode?: (string|null);

CompetitiveVisibilityTopMerchantView reportCountryCode.

trafficSource

public trafficSource?: (google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum|keyof typeof google.shopping.merchant.reports.v1beta.TrafficSource.TrafficSourceEnum|null);

CompetitiveVisibilityTopMerchantView trafficSource.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.reports.v1beta.ICompetitiveVisibilityTopMerchantView): google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView;

Creates a new CompetitiveVisibilityTopMerchantView instance using the specified properties.

Parameter
Name Description
properties ICompetitiveVisibilityTopMerchantView

Properties to set

Returns
Type Description
CompetitiveVisibilityTopMerchantView

CompetitiveVisibilityTopMerchantView instance

decode(reader, length)

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

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

CompetitiveVisibilityTopMerchantView

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
CompetitiveVisibilityTopMerchantView

CompetitiveVisibilityTopMerchantView

encode(message, writer)

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

Encodes the specified CompetitiveVisibilityTopMerchantView message. Does not implicitly messages.

Parameters
Name Description
message ICompetitiveVisibilityTopMerchantView

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

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

Parameters
Name Description
message ICompetitiveVisibilityTopMerchantView

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

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

CompetitiveVisibilityTopMerchantView

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for CompetitiveVisibilityTopMerchantView

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message CompetitiveVisibilityTopMerchantView

CompetitiveVisibilityTopMerchantView

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