Package com.google.cloud.ids.v1.stub
Class GrpcIDSStub
java.lang.Object
com.google.cloud.ids.v1.stub.IDSStub
com.google.cloud.ids.v1.stub.GrpcIDSStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the IDS service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcIDSStub(IDSStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcIDSStub, using the given settings.protectedGrpcIDSStub(IDSStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcIDSStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcIDSStubcreate(ClientContext clientContext) static final GrpcIDSStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcIDSStubcreate(IDSStubSettings settings) OperationCallable<DeleteEndpointRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.ids.v1.stub.IDSStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcIDSStub
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.- Throws:
IOException
-
GrpcIDSStub
protected GrpcIDSStub(IDSStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcIDSStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classIDSStub
-
listEndpointsCallable
- Overrides:
listEndpointsCallablein classIDSStub
-
listEndpointsPagedCallable
public UnaryCallable<ListEndpointsRequest,IDSClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()- Overrides:
listEndpointsPagedCallablein classIDSStub
-
getEndpointCallable
- Overrides:
getEndpointCallablein classIDSStub
-
createEndpointCallable
- Overrides:
createEndpointCallablein classIDSStub
-
createEndpointOperationCallable
public OperationCallable<CreateEndpointRequest,Endpoint, createEndpointOperationCallable()OperationMetadata> - Overrides:
createEndpointOperationCallablein classIDSStub
-
deleteEndpointCallable
- Overrides:
deleteEndpointCallablein classIDSStub
-
deleteEndpointOperationCallable
public OperationCallable<DeleteEndpointRequest,com.google.protobuf.Empty, deleteEndpointOperationCallable()OperationMetadata> - Overrides:
deleteEndpointOperationCallablein classIDSStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classIDSStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-