Class protos.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService (2.2.0)

Represents a TermsOfServiceAgreementStateService

Inheritance

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

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TermsOfServiceAgreementStateService 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): TermsOfServiceAgreementStateService;

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

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

getTermsOfServiceAgreementState(request, callback)

public getTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementStateCallback): void;

Calls GetTermsOfServiceAgreementState.

Parameters
Name Description
request IGetTermsOfServiceAgreementStateRequest

GetTermsOfServiceAgreementStateRequest message or plain object

callback GetTermsOfServiceAgreementStateCallback

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

Returns
Type Description
void

getTermsOfServiceAgreementState(request)

public getTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IGetTermsOfServiceAgreementStateRequest): Promise<google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState>;

Calls GetTermsOfServiceAgreementState.

Parameter
Name Description
request IGetTermsOfServiceAgreementStateRequest

GetTermsOfServiceAgreementStateRequest message or plain object

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

Promise

retrieveForApplicationTermsOfServiceAgreementState(request, callback)

public retrieveForApplicationTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest, callback: google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementStateCallback): void;

Calls RetrieveForApplicationTermsOfServiceAgreementState.

Parameters
Name Description
request IRetrieveForApplicationTermsOfServiceAgreementStateRequest

RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object

callback RetrieveForApplicationTermsOfServiceAgreementStateCallback

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

Returns
Type Description
void

retrieveForApplicationTermsOfServiceAgreementState(request)

public retrieveForApplicationTermsOfServiceAgreementState(request: google.shopping.merchant.accounts.v1beta.IRetrieveForApplicationTermsOfServiceAgreementStateRequest): Promise<google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState>;

Calls RetrieveForApplicationTermsOfServiceAgreementState.

Parameter
Name Description
request IRetrieveForApplicationTermsOfServiceAgreementStateRequest

RetrieveForApplicationTermsOfServiceAgreementStateRequest message or plain object

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

Promise