BranchService

google.cloud.retail.v2alpha. BranchService

Represents a BranchService

Constructor

new BranchService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new BranchService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

getBranch(request, callback) → {undefined}

Calls GetBranch.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetBranchRequest

GetBranchRequest message or plain object

callback google.cloud.retail.v2alpha.BranchService.GetBranchCallback

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

Returns:
Type Description
undefined

getBranch(request) → {Promise.<google.cloud.retail.v2alpha.Branch>}

Calls GetBranch.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IGetBranchRequest

GetBranchRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.Branch>

Promise

listBranches(request, callback) → {undefined}

Calls ListBranches.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListBranchesRequest

ListBranchesRequest message or plain object

callback google.cloud.retail.v2alpha.BranchService.ListBranchesCallback

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

Returns:
Type Description
undefined

listBranches(request) → {Promise.<google.cloud.retail.v2alpha.ListBranchesResponse>}

Calls ListBranches.

Parameters:
Name Type Description
request google.cloud.retail.v2alpha.IListBranchesRequest

ListBranchesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2alpha.ListBranchesResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {BranchService}

Creates new BranchService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
BranchService

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

Type Definitions

GetBranchCallback(error, responseopt)

Callback as used by getBranch.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.Branch <optional>

Branch

ListBranchesCallback(error, responseopt)

Callback as used by listBranches.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2alpha.ListBranchesResponse <optional>

ListBranchesResponse