Class GrpcAdvisoryNotificationsServiceStub
- java.lang.Object
-
- com.google.cloud.advisorynotifications.v1.stub.AdvisoryNotificationsServiceStub
-
- com.google.cloud.advisorynotifications.v1.stub.GrpcAdvisoryNotificationsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcAdvisoryNotificationsServiceStub extends AdvisoryNotificationsServiceStub
gRPC stub implementation for the AdvisoryNotificationsService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAdvisoryNotificationsServiceStub, using the given settings.protected
GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAdvisoryNotificationsServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcAdvisoryNotificationsServiceStub
protected GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcAdvisoryNotificationsServiceStub, 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
-
GrpcAdvisoryNotificationsServiceStub
protected GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcAdvisoryNotificationsServiceStub, 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 Detail
-
create
public static final GrpcAdvisoryNotificationsServiceStub create(AdvisoryNotificationsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcAdvisoryNotificationsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcAdvisoryNotificationsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
listNotificationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationsRequest,ListNotificationsResponse> listNotificationsCallable()
- Overrides:
listNotificationsCallable
in classAdvisoryNotificationsServiceStub
-
listNotificationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationsRequest,AdvisoryNotificationsServiceClient.ListNotificationsPagedResponse> listNotificationsPagedCallable()
- Overrides:
listNotificationsPagedCallable
in classAdvisoryNotificationsServiceStub
-
getNotificationCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationRequest,Notification> getNotificationCallable()
- Overrides:
getNotificationCallable
in classAdvisoryNotificationsServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classAdvisoryNotificationsServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-