Class GrpcNotificationChannelServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.NotificationChannelServiceStub
com.google.cloud.monitoring.v3.stub.GrpcNotificationChannelServiceStub
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotectedGrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcNotificationChannelServiceStub, using the given settings.protectedGrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcNotificationChannelServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcNotificationChannelServiceStubcreate(ClientContext clientContext) static final GrpcNotificationChannelServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcNotificationChannelServiceStubcreate(NotificationChannelServiceStubSettings settings) UnaryCallable<DeleteNotificationChannelRequest,com.google.protobuf.Empty> UnaryCallable<GetNotificationChannelVerificationCodeRequest,GetNotificationChannelVerificationCodeResponse> booleanbooleanUnaryCallable<ListNotificationChannelDescriptorsRequest,NotificationChannelServiceClient.ListNotificationChannelDescriptorsPagedResponse> UnaryCallable<ListNotificationChannelsRequest,NotificationChannelServiceClient.ListNotificationChannelsPagedResponse> UnaryCallable<SendNotificationChannelVerificationCodeRequest,com.google.protobuf.Empty> voidshutdown()void
-
Constructor Details
-
GrpcNotificationChannelServiceStub
protected GrpcNotificationChannelServiceStub(NotificationChannelServiceStubSettings settings, 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, ClientContext clientContext, 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 Details
-
create
public static final GrpcNotificationChannelServiceStub create(NotificationChannelServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcNotificationChannelServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcNotificationChannelServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listNotificationChannelDescriptorsCallable
public UnaryCallable<ListNotificationChannelDescriptorsRequest,ListNotificationChannelDescriptorsResponse> listNotificationChannelDescriptorsCallable()- Overrides:
listNotificationChannelDescriptorsCallablein classNotificationChannelServiceStub
-
listNotificationChannelDescriptorsPagedCallable
public UnaryCallable<ListNotificationChannelDescriptorsRequest,NotificationChannelServiceClient.ListNotificationChannelDescriptorsPagedResponse> listNotificationChannelDescriptorsPagedCallable()- Overrides:
listNotificationChannelDescriptorsPagedCallablein classNotificationChannelServiceStub
-
getNotificationChannelDescriptorCallable
public UnaryCallable<GetNotificationChannelDescriptorRequest,NotificationChannelDescriptor> getNotificationChannelDescriptorCallable()- Overrides:
getNotificationChannelDescriptorCallablein classNotificationChannelServiceStub
-
listNotificationChannelsCallable
public UnaryCallable<ListNotificationChannelsRequest,ListNotificationChannelsResponse> listNotificationChannelsCallable()- Overrides:
listNotificationChannelsCallablein classNotificationChannelServiceStub
-
listNotificationChannelsPagedCallable
public UnaryCallable<ListNotificationChannelsRequest,NotificationChannelServiceClient.ListNotificationChannelsPagedResponse> listNotificationChannelsPagedCallable()- Overrides:
listNotificationChannelsPagedCallablein classNotificationChannelServiceStub
-
getNotificationChannelCallable
public UnaryCallable<GetNotificationChannelRequest,NotificationChannel> getNotificationChannelCallable()- Overrides:
getNotificationChannelCallablein classNotificationChannelServiceStub
-
createNotificationChannelCallable
public UnaryCallable<CreateNotificationChannelRequest,NotificationChannel> createNotificationChannelCallable()- Overrides:
createNotificationChannelCallablein classNotificationChannelServiceStub
-
updateNotificationChannelCallable
public UnaryCallable<UpdateNotificationChannelRequest,NotificationChannel> updateNotificationChannelCallable()- Overrides:
updateNotificationChannelCallablein classNotificationChannelServiceStub
-
deleteNotificationChannelCallable
public UnaryCallable<DeleteNotificationChannelRequest,com.google.protobuf.Empty> deleteNotificationChannelCallable()- Overrides:
deleteNotificationChannelCallablein classNotificationChannelServiceStub
-
sendNotificationChannelVerificationCodeCallable
public UnaryCallable<SendNotificationChannelVerificationCodeRequest,com.google.protobuf.Empty> sendNotificationChannelVerificationCodeCallable()- Overrides:
sendNotificationChannelVerificationCodeCallablein classNotificationChannelServiceStub
-
getNotificationChannelVerificationCodeCallable
public UnaryCallable<GetNotificationChannelVerificationCodeRequest,GetNotificationChannelVerificationCodeResponse> getNotificationChannelVerificationCodeCallable()- Overrides:
getNotificationChannelVerificationCodeCallablein classNotificationChannelServiceStub
-
verifyNotificationChannelCallable
public UnaryCallable<VerifyNotificationChannelRequest,NotificationChannel> verifyNotificationChannelCallable()- Overrides:
verifyNotificationChannelCallablein classNotificationChannelServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classNotificationChannelServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-