Class PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub (1.35.0)

public static final class PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub extends AbstractAsyncStub<PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub>

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

Policy-Based Routing allows GCP customers to specify flexibile routing policies for Layer 4 traffic traversing through the connected service.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createPolicyBasedRoute(CreatePolicyBasedRouteRequest request, StreamObserver<Operation> responseObserver)

public void createPolicyBasedRoute(CreatePolicyBasedRouteRequest request, StreamObserver<Operation> responseObserver)

Creates a new PolicyBasedRoute in a given project and location.

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

deletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, StreamObserver<Operation> responseObserver)

public void deletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, StreamObserver<Operation> responseObserver)

Deletes a single PolicyBasedRoute.

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

getPolicyBasedRoute(GetPolicyBasedRouteRequest request, StreamObserver<PolicyBasedRoute> responseObserver)

public void getPolicyBasedRoute(GetPolicyBasedRouteRequest request, StreamObserver<PolicyBasedRoute> responseObserver)

Gets details of a single PolicyBasedRoute.

Parameters
NameDescription
requestGetPolicyBasedRouteRequest
responseObserverio.grpc.stub.StreamObserver<PolicyBasedRoute>

listPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, StreamObserver<ListPolicyBasedRoutesResponse> responseObserver)

public void listPolicyBasedRoutes(ListPolicyBasedRoutesRequest request, StreamObserver<ListPolicyBasedRoutesResponse> responseObserver)

Lists PolicyBasedRoutes in a given project and location.

Parameters
NameDescription
requestListPolicyBasedRoutesRequest
responseObserverio.grpc.stub.StreamObserver<ListPolicyBasedRoutesResponse>