Class HubServiceGrpc.HubServiceStub (1.54.0)

public static final class HubServiceGrpc.HubServiceStub extends AbstractAsyncStub<HubServiceGrpc.HubServiceStub>

A stub to allow clients to do asynchronous rpc calls to service HubService.

Network Connectivity Center is a hub-and-spoke abstraction for network connectivity management in Google Cloud. It reduces operational complexity through a simple, centralized connectivity management model.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > HubServiceGrpc.HubServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

createHub(CreateHubRequest request, StreamObserver<Operation> responseObserver)

public void createHub(CreateHubRequest request, StreamObserver<Operation> responseObserver)

Creates a new Hub in a given project and location.

Parameters
Name Description
request CreateHubRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createSpoke(CreateSpokeRequest request, StreamObserver<Operation> responseObserver)

public void createSpoke(CreateSpokeRequest request, StreamObserver<Operation> responseObserver)

Creates a new Spoke in a given project and location.

Parameters
Name Description
request CreateSpokeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteHub(DeleteHubRequest request, StreamObserver<Operation> responseObserver)

public void deleteHub(DeleteHubRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Hub.

Parameters
Name Description
request DeleteHubRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteSpoke(DeleteSpokeRequest request, StreamObserver<Operation> responseObserver)

public void deleteSpoke(DeleteSpokeRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Spoke.

Parameters
Name Description
request DeleteSpokeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getHub(GetHubRequest request, StreamObserver<Hub> responseObserver)

public void getHub(GetHubRequest request, StreamObserver<Hub> responseObserver)

Gets details of a single Hub.

Parameters
Name Description
request GetHubRequest
responseObserver io.grpc.stub.StreamObserver<Hub>

getSpoke(GetSpokeRequest request, StreamObserver<Spoke> responseObserver)

public void getSpoke(GetSpokeRequest request, StreamObserver<Spoke> responseObserver)

Gets details of a single Spoke.

Parameters
Name Description
request GetSpokeRequest
responseObserver io.grpc.stub.StreamObserver<Spoke>

listHubs(ListHubsRequest request, StreamObserver<ListHubsResponse> responseObserver)

public void listHubs(ListHubsRequest request, StreamObserver<ListHubsResponse> responseObserver)

Lists Hubs in a given project and location.

Parameters
Name Description
request ListHubsRequest
responseObserver io.grpc.stub.StreamObserver<ListHubsResponse>

listSpokes(ListSpokesRequest request, StreamObserver<ListSpokesResponse> responseObserver)

public void listSpokes(ListSpokesRequest request, StreamObserver<ListSpokesResponse> responseObserver)

Lists Spokes in a given project and location.

Parameters
Name Description
request ListSpokesRequest
responseObserver io.grpc.stub.StreamObserver<ListSpokesResponse>

updateHub(UpdateHubRequest request, StreamObserver<Operation> responseObserver)

public void updateHub(UpdateHubRequest request, StreamObserver<Operation> responseObserver)

Updates the parameters of a single Hub.

Parameters
Name Description
request UpdateHubRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateSpoke(UpdateSpokeRequest request, StreamObserver<Operation> responseObserver)

public void updateSpoke(UpdateSpokeRequest request, StreamObserver<Operation> responseObserver)

Updates the parameters of a single Spoke.

Parameters
Name Description
request UpdateSpokeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>