Class GrpcIDSStub (1.23.0)

public class GrpcIDSStub extends IDSStub

gRPC stub implementation for the IDS service API.

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

Inheritance

java.lang.Object > IDSStub > GrpcIDSStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(IDSStubSettings settings)

public static final GrpcIDSStub create(IDSStubSettings settings)
Parameter
NameDescription
settingsIDSStubSettings
Returns
TypeDescription
GrpcIDSStub
Exceptions
TypeDescription
IOException

Constructors

GrpcIDSStub(IDSStubSettings settings, ClientContext clientContext)

protected GrpcIDSStub(IDSStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcIDSStub, 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
settingsIDSStubSettings
clientContextClientContext

GrpcIDSStub(IDSStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcIDSStub(IDSStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcIDSStub, 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
settingsIDSStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createEndpointCallable()

public UnaryCallable<CreateEndpointRequest,Operation> createEndpointCallable()
Returns
TypeDescription
UnaryCallable<CreateEndpointRequest,Operation>
Overrides

createEndpointOperationCallable()

public OperationCallable<CreateEndpointRequest,Endpoint,OperationMetadata> createEndpointOperationCallable()
Returns
TypeDescription
OperationCallable<CreateEndpointRequest,Endpoint,OperationMetadata>
Overrides

deleteEndpointCallable()

public UnaryCallable<DeleteEndpointRequest,Operation> deleteEndpointCallable()
Returns
TypeDescription
UnaryCallable<DeleteEndpointRequest,Operation>
Overrides

deleteEndpointOperationCallable()

public OperationCallable<DeleteEndpointRequest,Empty,OperationMetadata> deleteEndpointOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteEndpointRequest,Empty,OperationMetadata>
Overrides

getEndpointCallable()

public UnaryCallable<GetEndpointRequest,Endpoint> getEndpointCallable()
Returns
TypeDescription
UnaryCallable<GetEndpointRequest,Endpoint>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listEndpointsCallable()

public UnaryCallable<ListEndpointsRequest,ListEndpointsResponse> listEndpointsCallable()
Returns
TypeDescription
UnaryCallable<ListEndpointsRequest,ListEndpointsResponse>
Overrides

listEndpointsPagedCallable()

public UnaryCallable<ListEndpointsRequest,IDSClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListEndpointsRequest,ListEndpointsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()