Represents a BranchService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.BranchServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new BranchService 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): BranchService;
Creates new BranchService 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 |
BranchService |
RPC service. Useful where requests and/or responses are streamed. |
getBranch(request, callback)
public getBranch(request: google.cloud.retail.v2alpha.IGetBranchRequest, callback: google.cloud.retail.v2alpha.BranchService.GetBranchCallback): void;
Calls GetBranch.
Parameters | |
---|---|
Name | Description |
request |
IGetBranchRequest
GetBranchRequest message or plain object |
callback |
GetBranchCallback
Node-style callback called with the error, if any, and Branch |
Returns | |
---|---|
Type | Description |
void |
getBranch(request)
public getBranch(request: google.cloud.retail.v2alpha.IGetBranchRequest): Promise<google.cloud.retail.v2alpha.Branch>;
Calls GetBranch.
Parameter | |
---|---|
Name | Description |
request |
IGetBranchRequest
GetBranchRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.Branch> |
Promise |
listBranches(request, callback)
public listBranches(request: google.cloud.retail.v2alpha.IListBranchesRequest, callback: google.cloud.retail.v2alpha.BranchService.ListBranchesCallback): void;
Calls ListBranches.
Parameters | |
---|---|
Name | Description |
request |
IListBranchesRequest
ListBranchesRequest message or plain object |
callback |
ListBranchesCallback
Node-style callback called with the error, if any, and ListBranchesResponse |
Returns | |
---|---|
Type | Description |
void |
listBranches(request)
public listBranches(request: google.cloud.retail.v2alpha.IListBranchesRequest): Promise<google.cloud.retail.v2alpha.ListBranchesResponse>;
Calls ListBranches.
Parameter | |
---|---|
Name | Description |
request |
IListBranchesRequest
ListBranchesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2alpha.ListBranchesResponse> |
Promise |