Class BranchServiceGrpc.BranchServiceBlockingStub (2.54.0)

public static final class BranchServiceGrpc.BranchServiceBlockingStub extends AbstractBlockingStub<BranchServiceGrpc.BranchServiceBlockingStub>

A stub to allow clients to do synchronous rpc calls to service BranchService.

Service for Branch Management Branches are automatically created when a Catalog is created. There are fixed three branches in each catalog, and may use ListBranches method to get the details of all branches.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > BranchServiceGrpc.BranchServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected BranchServiceGrpc.BranchServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
BranchServiceGrpc.BranchServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getBranch(GetBranchRequest request)

public Branch getBranch(GetBranchRequest request)

Retrieves a Branch.

Parameter
Name Description
request GetBranchRequest
Returns
Type Description
Branch

listBranches(ListBranchesRequest request)

public ListBranchesResponse listBranches(ListBranchesRequest request)

Lists all instances of Branch under the specified parent Catalog.

Parameter
Name Description
request ListBranchesRequest
Returns
Type Description
ListBranchesResponse