Class protos.google.shopping.merchant.accounts.v1beta.TermsOfServiceService (1.0.0)

Represents a TermsOfServiceService

Inheritance

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

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TermsOfServiceService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

acceptTermsOfService(request, callback)

public acceptTermsOfService(request: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfServiceCallback): void;

Calls AcceptTermsOfService.

Parameters
Name Description
request IAcceptTermsOfServiceRequest

AcceptTermsOfServiceRequest message or plain object

callback AcceptTermsOfServiceCallback

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

Returns
Type Description
void

acceptTermsOfService(request)

public acceptTermsOfService(request: google.shopping.merchant.accounts.v1beta.IAcceptTermsOfServiceRequest): Promise<google.protobuf.Empty>;

Calls AcceptTermsOfService.

Parameter
Name Description
request IAcceptTermsOfServiceRequest

AcceptTermsOfServiceRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new TermsOfServiceService 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
TermsOfServiceService

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

getTermsOfService(request, callback)

public getTermsOfService(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfServiceCallback): void;

Calls GetTermsOfService.

Parameters
Name Description
request IGetTermsOfServiceRequest

GetTermsOfServiceRequest message or plain object

callback GetTermsOfServiceCallback

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

Returns
Type Description
void

getTermsOfService(request)

public getTermsOfService(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceRequest): Promise<google.shopping.merchant.accounts.v1beta.TermsOfService>;

Calls GetTermsOfService.

Parameter
Name Description
request IGetTermsOfServiceRequest

GetTermsOfServiceRequest message or plain object

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

Promise

retrieveLatestTermsOfService(request, callback)

public retrieveLatestTermsOfService(request: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfServiceCallback): void;

Calls RetrieveLatestTermsOfService.

Parameters
Name Description
request IRetrieveLatestTermsOfServiceRequest

RetrieveLatestTermsOfServiceRequest message or plain object

callback RetrieveLatestTermsOfServiceCallback

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

Returns
Type Description
void

retrieveLatestTermsOfService(request)

public retrieveLatestTermsOfService(request: google.shopping.merchant.accounts.v1beta.IRetrieveLatestTermsOfServiceRequest): Promise<google.shopping.merchant.accounts.v1beta.TermsOfService>;

Calls RetrieveLatestTermsOfService.

Parameter
Name Description
request IRetrieveLatestTermsOfServiceRequest

RetrieveLatestTermsOfServiceRequest message or plain object

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

Promise