Class GrpcPolicyBasedRoutingServiceStub (1.35.0)

public class GrpcPolicyBasedRoutingServiceStub extends PolicyBasedRoutingServiceStub

gRPC stub implementation for the PolicyBasedRoutingService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > PolicyBasedRoutingServiceStub > GrpcPolicyBasedRoutingServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcPolicyBasedRoutingServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcPolicyBasedRoutingServiceStub
Exceptions
TypeDescription
IOException

create(PolicyBasedRoutingServiceStubSettings settings)

public static final GrpcPolicyBasedRoutingServiceStub create(PolicyBasedRoutingServiceStubSettings settings)
Parameter
NameDescription
settingsPolicyBasedRoutingServiceStubSettings
Returns
TypeDescription
GrpcPolicyBasedRoutingServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext)

protected GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPolicyBasedRoutingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsPolicyBasedRoutingServiceStubSettings
clientContextClientContext

GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an i