Class protos.google.shopping.merchant.accounts.v1beta.EmailPreferencesService (3.2.0)

Represents an EmailPreferencesService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.EmailPreferencesService

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new EmailPreferencesService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EmailPreferencesService;

Creates new EmailPreferencesService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
EmailPreferencesService

RPC service. Useful where requests and/or responses are streamed.

getEmailPreferences(request, callback)

public getEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest, callback: google.shopping.merchant.accounts.v1beta.EmailPreferencesService.GetEmailPreferencesCallback): void;

Calls GetEmailPreferences.

Parameters
Name Description
request IGetEmailPreferencesRequest

GetEmailPreferencesRequest message or plain object

callback GetEmailPreferencesCallback

Node-style callback called with the error, if any, and EmailPreferences

Returns
Type Description
void

getEmailPreferences(request)

public getEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IGetEmailPreferencesRequest): Promise<google.shopping.merchant.accounts.v1beta.EmailPreferences>;

Calls GetEmailPreferences.

Parameter
Name Description
request IGetEmailPreferencesRequest

GetEmailPreferencesRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.EmailPreferences>

Promise

updateEmailPreferences(request, callback)

public updateEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest, callback: google.shopping.merchant.accounts.v1beta.EmailPreferencesService.UpdateEmailPreferencesCallback): void;

Calls UpdateEmailPreferences.

Parameters
Name Description
request IUpdateEmailPreferencesRequest

UpdateEmailPreferencesRequest message or plain object

callback UpdateEmailPreferencesCallback

Node-style callback called with the error, if any, and EmailPreferences

Returns
Type Description
void

updateEmailPreferences(request)

public updateEmailPreferences(request: google.shopping.merchant.accounts.v1beta.IUpdateEmailPreferencesRequest): Promise<google.shopping.merchant.accounts.v1beta.EmailPreferences>;

Calls UpdateEmailPreferences.

Parameter
Name Description
request IUpdateEmailPreferencesRequest

UpdateEmailPreferencesRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.EmailPreferences>

Promise