Class PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceStub (1.47.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
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request CreatePolicyBasedRouteRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deletePolicyBasedRoute(DeletePolicyBasedRouteRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a single PolicyBasedRoute.

Parameters
Name Description
request DeletePolicyBasedRouteRequest
responseObserver io.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
Name Description
request GetPolicyBasedRouteRequest
responseObserver io.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
Name Description
request ListPolicyBasedRoutesRequest
responseObserver io.grpc.stub.StreamObserver<ListPolicyBasedRoutesResponse>