Class HttpJsonAdvisoryNotificationsServiceStub
- java.lang.Object
-
- com.google.cloud.advisorynotifications.v1.stub.AdvisoryNotificationsServiceStub
-
- com.google.cloud.advisorynotifications.v1.stub.HttpJsonAdvisoryNotificationsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonAdvisoryNotificationsServiceStub extends AdvisoryNotificationsServiceStub
REST 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
HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAdvisoryNotificationsServiceStub, using the given settings.protected
HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonAdvisoryNotificationsServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonAdvisoryNotificationsServiceStub
protected HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonAdvisoryNotificationsServiceStub, 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
-
HttpJsonAdvisoryNotificationsServiceStub
protected HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonAdvisoryNotificationsServiceStub, 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 HttpJsonAdvisoryNotificationsServiceStub create(AdvisoryNotificationsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAdvisoryNotificationsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAdvisoryNotificationsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
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
-
-