Class GrpcDnsThreatDetectorServiceStub
java.lang.Object
com.google.cloud.networksecurity.v1.stub.DnsThreatDetectorServiceStub
com.google.cloud.networksecurity.v1.stub.GrpcDnsThreatDetectorServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcDnsThreatDetectorServiceStub
extends DnsThreatDetectorServiceStub
gRPC stub implementation for the DnsThreatDetectorService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcDnsThreatDetectorServiceStub(DnsThreatDetectorServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcDnsThreatDetectorServiceStub, using the given settings.protectedGrpcDnsThreatDetectorServiceStub(DnsThreatDetectorServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcDnsThreatDetectorServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcDnsThreatDetectorServiceStubcreate(ClientContext clientContext) static final GrpcDnsThreatDetectorServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcDnsThreatDetectorServiceStubcreate(DnsThreatDetectorServiceStubSettings settings) UnaryCallable<DeleteDnsThreatDetectorRequest,com.google.protobuf.Empty> booleanbooleanUnaryCallable<ListDnsThreatDetectorsRequest,DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcDnsThreatDetectorServiceStub
protected GrpcDnsThreatDetectorServiceStub(DnsThreatDetectorServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcDnsThreatDetectorServiceStub, 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
-
GrpcDnsThreatDetectorServiceStub
protected GrpcDnsThreatDetectorServiceStub(DnsThreatDetectorServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcDnsThreatDetectorServiceStub, 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
public static final GrpcDnsThreatDetectorServiceStub create(DnsThreatDetectorServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcDnsThreatDetectorServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcDnsThreatDetectorServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listDnsThreatDetectorsCallable
public UnaryCallable<ListDnsThreatDetectorsRequest,ListDnsThreatDetectorsResponse> listDnsThreatDetectorsCallable()- Overrides:
listDnsThreatDetectorsCallablein classDnsThreatDetectorServiceStub
-
listDnsThreatDetectorsPagedCallable
public UnaryCallable<ListDnsThreatDetectorsRequest,DnsThreatDetectorServiceClient.ListDnsThreatDetectorsPagedResponse> listDnsThreatDetectorsPagedCallable()- Overrides:
listDnsThreatDetectorsPagedCallablein classDnsThreatDetectorServiceStub
-
getDnsThreatDetectorCallable
- Overrides:
getDnsThreatDetectorCallablein classDnsThreatDetectorServiceStub
-
createDnsThreatDetectorCallable
public UnaryCallable<CreateDnsThreatDetectorRequest,DnsThreatDetector> createDnsThreatDetectorCallable()- Overrides:
createDnsThreatDetectorCallablein classDnsThreatDetectorServiceStub
-
updateDnsThreatDetectorCallable
public UnaryCallable<UpdateDnsThreatDetectorRequest,DnsThreatDetector> updateDnsThreatDetectorCallable()- Overrides:
updateDnsThreatDetectorCallablein classDnsThreatDetectorServiceStub
-
deleteDnsThreatDetectorCallable
public UnaryCallable<DeleteDnsThreatDetectorRequest,com.google.protobuf.Empty> deleteDnsThreatDetectorCallable()- Overrides:
deleteDnsThreatDetectorCallablein classDnsThreatDetectorServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classDnsThreatDetectorServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,DnsThreatDetectorServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classDnsThreatDetectorServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classDnsThreatDetectorServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classDnsThreatDetectorServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classDnsThreatDetectorServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classDnsThreatDetectorServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDnsThreatDetectorServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-