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

Represents a RegionsService

Inheritance

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

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createRegion(request, callback)

public createRegion(request: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.CreateRegionCallback): void;

Calls CreateRegion.

Parameters
Name Description
request ICreateRegionRequest

CreateRegionRequest message or plain object

callback CreateRegionCallback

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

Returns
Type Description
void

createRegion(request)

public createRegion(request: google.shopping.merchant.accounts.v1beta.ICreateRegionRequest): Promise<google.shopping.merchant.accounts.v1beta.Region>;

Calls CreateRegion.

Parameter
Name Description
request ICreateRegionRequest

CreateRegionRequest message or plain object

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

Promise

deleteRegion(request, callback)

public deleteRegion(request: google.shopping.merchant.accounts.v1beta.IDeleteRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.DeleteRegionCallback): void;

Calls DeleteRegion.

Parameters
Name Description
request IDeleteRegionRequest

DeleteRegionRequest message or plain object

callback DeleteRegionCallback

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

Returns
Type Description
void

deleteRegion(request)

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

Calls DeleteRegion.

Parameter
Name Description
request IDeleteRegionRequest

DeleteRegionRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getRegion(request, callback)

public getRegion(request: google.shopping.merchant.accounts.v1beta.IGetRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.GetRegionCallback): void;

Calls GetRegion.

Parameters
Name Description
request IGetRegionRequest

GetRegionRequest message or plain object

callback GetRegionCallback

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

Returns
Type Description
void

getRegion(request)

public getRegion(request: google.shopping.merchant.accounts.v1beta.IGetRegionRequest): Promise<google.shopping.merchant.accounts.v1beta.Region>;

Calls GetRegion.

Parameter
Name Description
request IGetRegionRequest

GetRegionRequest message or plain object

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

Promise

listRegions(request, callback)

public listRegions(request: google.shopping.merchant.accounts.v1beta.IListRegionsRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.ListRegionsCallback): void;

Calls ListRegions.

Parameters
Name Description
request IListRegionsRequest

ListRegionsRequest message or plain object

callback ListRegionsCallback

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

Returns
Type Description
void

listRegions(request)

public listRegions(request: google.shopping.merchant.accounts.v1beta.IListRegionsRequest): Promise<google.shopping.merchant.accounts.v1beta.ListRegionsResponse>;

Calls ListRegions.

Parameter
Name Description
request IListRegionsRequest

ListRegionsRequest message or plain object

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

Promise

updateRegion(request, callback)

public updateRegion(request: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest, callback: google.shopping.merchant.accounts.v1beta.RegionsService.UpdateRegionCallback): void;

Calls UpdateRegion.

Parameters
Name Description
request IUpdateRegionRequest

UpdateRegionRequest message or plain object

callback UpdateRegionCallback

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

Returns
Type Description
void

updateRegion(request)

public updateRegion(request: google.shopping.merchant.accounts.v1beta.IUpdateRegionRequest): Promise<google.shopping.merchant.accounts.v1beta.Region>;

Calls UpdateRegion.

Parameter
Name Description
request IUpdateRegionRequest

UpdateRegionRequest message or plain object

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

Promise