Class HubServiceGrpc.HubServiceStub (1.38.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

acceptHubSpoke(AcceptHubSpokeRequest request, StreamObserver<Operation> responseObserver)

public void acceptHubSpoke(AcceptHubSpokeRequest request, StreamObserver<Operation> responseObserver)

Accepts a proposal to attach a Network Connectivity Center spoke to a hub.

Parameters
NameDescription
requestAcceptHubSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

build(Channel channel, CallOptions callOptions)

protected HubServiceGrpc.HubServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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 Network Connectivity Center hub in the specified project.

Parameters
NameDescription
requestCreateHubRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createSpoke(CreateSpokeRequest request, StreamObserver<Operation> responseObserver)

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

Creates a Network Connectivity Center spoke.

Parameters
NameDescription
requestCreateSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteHub(DeleteHubRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a Network Connectivity Center hub.

Parameters
NameDescription
requestDeleteHubRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteSpoke(DeleteSpokeRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a Network Connectivity Center spoke.

Parameters
NameDescription
requestDeleteSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getGroup(GetGroupRequest request, StreamObserver<Group> responseObserver)

public void getGroup(GetGroupRequest request, StreamObserver<Group> responseObserver)

Gets details about a Network Connectivity Center group.

Parameters
NameDescription
requestGetGroupRequest
responseObserverio.grpc.stub.StreamObserver<Group>

getHub(GetHubRequest request, StreamObserver<Hub> responseObserver)

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

Gets details about a Network Connectivity Center hub.

Parameters
NameDescription
requestGetHubRequest
responseObserverio.grpc.stub.StreamObserver<Hub>

getRoute(GetRouteRequest request, StreamObserver<Route> responseObserver)

public void getRoute(GetRouteRequest request, StreamObserver<Route> responseObserver)

Gets details about the specified route.

Parameters
NameDescription
requestGetRouteRequest
responseObserverio.grpc.stub.StreamObserver<Route>

getRouteTable(GetRouteTableRequest request, StreamObserver<RouteTable> responseObserver)

public void getRouteTable(GetRouteTableRequest request, StreamObserver<RouteTable> responseObserver)

Gets details about a Network Connectivity Center route table.

Parameters
NameDescription
requestGetRouteTableRequest
responseObserverio.grpc.stub.StreamObserver<RouteTable>

getSpoke(GetSpokeRequest request, StreamObserver<Spoke> responseObserver)

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

Gets details about a Network Connectivity Center spoke.

Parameters
NameDescription
requestGetSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Spoke>

listGroups(ListGroupsRequest request, StreamObserver<ListGroupsResponse> responseObserver)

public void listGroups(ListGroupsRequest request, StreamObserver<ListGroupsResponse> responseObserver)

Lists groups in a given hub.

Parameters
NameDescription
requestListGroupsRequest
responseObserverio.grpc.stub.StreamObserver<ListGroupsResponse>

listHubSpokes(ListHubSpokesRequest request, StreamObserver<ListHubSpokesResponse> responseObserver)

public void listHubSpokes(ListHubSpokesRequest request, StreamObserver<ListHubSpokesResponse> responseObserver)

Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.

Parameters
NameDescription
requestListHubSpokesRequest
responseObserverio.grpc.stub.StreamObserver<ListHubSpokesResponse>

listHubs(ListHubsRequest request, StreamObserver<ListHubsResponse> responseObserver)

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

Lists the Network Connectivity Center hubs associated with a given project.

Parameters
NameDescription
requestListHubsRequest
responseObserverio.grpc.stub.StreamObserver<ListHubsResponse>

listRouteTables(ListRouteTablesRequest request, StreamObserver<ListRouteTablesResponse> responseObserver)

public void listRouteTables(ListRouteTablesRequest request, StreamObserver<ListRouteTablesResponse> responseObserver)

Lists route tables in a given project.

Parameters
NameDescription
requestListRouteTablesRequest
responseObserverio.grpc.stub.StreamObserver<ListRouteTablesResponse>

listRoutes(ListRoutesRequest request, StreamObserver<ListRoutesResponse> responseObserver)

public void listRoutes(ListRoutesRequest request, StreamObserver<ListRoutesResponse> responseObserver)

Lists routes in a given project.

Parameters
NameDescription
requestListRoutesRequest
responseObserverio.grpc.stub.StreamObserver<ListRoutesResponse>

listSpokes(ListSpokesRequest request, StreamObserver<ListSpokesResponse> responseObserver)

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

Lists the Network Connectivity Center spokes in a specified project and location.

Parameters
NameDescription
requestListSpokesRequest
responseObserverio.grpc.stub.StreamObserver<ListSpokesResponse>

rejectHubSpoke(RejectHubSpokeRequest request, StreamObserver<Operation> responseObserver)

public void rejectHubSpoke(RejectHubSpokeRequest request, StreamObserver<Operation> responseObserver)

Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the ACTIVE state, it transitions to the INACTIVE state and is no longer able to connect to other spokes that are attached to the hub.

Parameters
NameDescription
requestRejectHubSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateHub(UpdateHubRequest request, StreamObserver<Operation> responseObserver)

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

Updates the description and/or labels of a Network Connectivity Center hub.

Parameters
NameDescription
requestUpdateHubRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateSpoke(UpdateSpokeRequest request, StreamObserver<Operation> responseObserver)

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

Updates the parameters of a Network Connectivity Center spoke.

Parameters
NameDescription
requestUpdateSpokeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>