Class GrpcNotificationChannelServiceStub
- java.lang.Object
-
- com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStub
-
- com.google.cloud.monitoring.v3.stub.GrpcNotificationChannelServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcNotificationChannelServiceStub extends NotificationChannelServiceStub
gRPC stub implementation for the NotificationChannelService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcNotificationChannelServiceStub, using the given settings.protected
GrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcNotificationChannelServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcNotificationChannelServiceStub
protected GrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcNotificationChannelServiceStub, 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
-
GrpcNotificationChannelServiceStub
protected GrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcNotificationChannelServiceStub, 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 GrpcNotificationChannelServiceStub create(NotificationChannelServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcNotificationChannelServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcNotificationChannelServiceStub 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()
-
listNotificationChannelDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationChannelDescriptorsRequest,ListNotificationChannelDescriptorsResponse> listNotificationChannelDescriptorsCallable()
- Overrides:
listNotificationChannelDescriptorsCallable
in classNotificationChannelServiceStub
-
listNotificationChannelDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationChannelDescriptorsRequest,NotificationChannelServiceClient.ListNotificationChannelDescriptorsPagedResponse> listNotificationChannelDescriptorsPagedCallable()
- Overrides:
listNotificationChannelDescriptorsPagedCallable
in classNotificationChannelServiceStub
-
getNotificationChannelDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationChannelDescriptorRequest,NotificationChannelDescriptor> getNotificationChannelDescriptorCallable()
- Overrides:
getNotificationChannelDescriptorCallable
in classNotificationChannelServiceStub
-
listNotificationChannelsCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationChannelsRequest,ListNotificationChannelsResponse> listNotificationChannelsCallable()
- Overrides:
listNotificationChannelsCallable
in classNotificationChannelServiceStub
-
listNotificationChannelsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationChannelsRequest,NotificationChannelServiceClient.ListNotificationChannelsPagedResponse> listNotificationChannelsPagedCallable()
- Overrides:
listNotificationChannelsPagedCallable
in classNotificationChannelServiceStub
-
getNotificationChannelCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationChannelRequest,NotificationChannel> getNotificationChannelCallable()
- Overrides:
getNotificationChannelCallable
in classNotificationChannelServiceStub
-
createNotificationChannelCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNotificationChannelRequest,NotificationChannel> createNotificationChannelCallable()
- Overrides:
createNotificationChannelCallable
in classNotificationChannelServiceStub
-
updateNotificationChannelCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNotificationChannelRequest,NotificationChannel> updateNotificationChannelCallable()
- Overrides:
updateNotificationChannelCallable
in classNotificationChannelServiceStub
-
deleteNotificationChannelCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNotificationChannelRequest,com.google.protobuf.Empty> deleteNotificationChannelCallable()
- Overrides:
deleteNotificationChannelCallable
in classNotificationChannelServiceStub
-
sendNotificationChannelVerificationCodeCallable
public com.google.api.gax.rpc.UnaryCallable<SendNotificationChannelVerificationCodeRequest,com.google.protobuf.Empty> sendNotificationChannelVerificationCodeCallable()
- Overrides:
sendNotificationChannelVerificationCodeCallable
in classNotificationChannelServiceStub
-
getNotificationChannelVerificationCodeCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationChannelVerificationCodeRequest,GetNotificationChannelVerificationCodeResponse> getNotificationChannelVerificationCodeCallable()
- Overrides:
getNotificationChannelVerificationCodeCallable
in classNotificationChannelServiceStub
-
verifyNotificationChannelCallable
public com.google.api.gax.rpc.UnaryCallable<VerifyNotificationChannelRequest,NotificationChannel> verifyNotificationChannelCallable()
- Overrides:
verifyNotificationChannelCallable
in classNotificationChannelServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classNotificationChannelServiceStub
-
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
-
-