Class NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub>
com.google.monitoring.v3.NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub
Enclosing class:
NotificationChannelServiceGrpc

public static final class NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service NotificationChannelService.
 The Notification Channel API provides access to configuration that
 controls how messages related to incidents are sent.
 
  • Method Details

    • build

      protected NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<NotificationChannelServiceGrpc.NotificationChannelServiceBlockingV2Stub>
    • listNotificationChannelDescriptors

      public ListNotificationChannelDescriptorsResponse listNotificationChannelDescriptors(ListNotificationChannelDescriptorsRequest request) throws io.grpc.StatusException
       Lists the descriptors for supported channel types. The use of descriptors
       makes it possible for new channel types to be dynamically added.
       
      Throws:
      io.grpc.StatusException
    • getNotificationChannelDescriptor

      public NotificationChannelDescriptor getNotificationChannelDescriptor(GetNotificationChannelDescriptorRequest request) throws io.grpc.StatusException
       Gets a single channel descriptor. The descriptor indicates which fields
       are expected / permitted for a notification channel of the given type.
       
      Throws:
      io.grpc.StatusException
    • listNotificationChannels

      public ListNotificationChannelsResponse listNotificationChannels(ListNotificationChannelsRequest request) throws io.grpc.StatusException
       Lists the notification channels that have been created for the project.
       To list the types of notification channels that are supported, use
       the `ListNotificationChannelDescriptors` method.
       
      Throws:
      io.grpc.StatusException
    • getNotificationChannel

      public NotificationChannel getNotificationChannel(GetNotificationChannelRequest request) throws io.grpc.StatusException
       Gets a single notification channel. The channel includes the relevant
       configuration details with which the channel was created. However, the
       response may truncate or omit passwords, API keys, or other private key
       matter and thus the response may not be 100% identical to the information
       that was supplied in the call to the create method.
       
      Throws:
      io.grpc.StatusException
    • createNotificationChannel

      public NotificationChannel createNotificationChannel(CreateNotificationChannelRequest request) throws io.grpc.StatusException
       Creates a new notification channel, representing a single notification
       endpoint such as an email address, SMS number, or PagerDuty service.
       Design your application to single-thread API calls that modify the state of
       notification channels in a single project. This includes calls to
       CreateNotificationChannel, DeleteNotificationChannel and
       UpdateNotificationChannel.
       
      Throws:
      io.grpc.StatusException
    • updateNotificationChannel

      public NotificationChannel updateNotificationChannel(UpdateNotificationChannelRequest request) throws io.grpc.StatusException
       Updates a notification channel. Fields not specified in the field mask
       remain unchanged.
       Design your application to single-thread API calls that modify the state of
       notification channels in a single project. This includes calls to
       CreateNotificationChannel, DeleteNotificationChannel and
       UpdateNotificationChannel.
       
      Throws:
      io.grpc.StatusException
    • deleteNotificationChannel

      public com.google.protobuf.Empty deleteNotificationChannel(DeleteNotificationChannelRequest request) throws io.grpc.StatusException
       Deletes a notification channel.
       Design your application to single-thread API calls that modify the state of
       notification channels in a single project. This includes calls to
       CreateNotificationChannel, DeleteNotificationChannel and
       UpdateNotificationChannel.
       
      Throws:
      io.grpc.StatusException
    • sendNotificationChannelVerificationCode

      public com.google.protobuf.Empty sendNotificationChannelVerificationCode(SendNotificationChannelVerificationCodeRequest request) throws io.grpc.StatusException
       Causes a verification code to be delivered to the channel. The code
       can then be supplied in `VerifyNotificationChannel` to verify the channel.
       
      Throws:
      io.grpc.StatusException
    • getNotificationChannelVerificationCode

      public GetNotificationChannelVerificationCodeResponse getNotificationChannelVerificationCode(GetNotificationChannelVerificationCodeRequest request) throws io.grpc.StatusException
       Requests a verification code for an already verified channel that can then
       be used in a call to VerifyNotificationChannel() on a different channel
       with an equivalent identity in the same or in a different project. This
       makes it possible to copy a channel between projects without requiring
       manual reverification of the channel. If the channel is not in the
       verified state, this method will fail (in other words, this may only be
       used if the SendNotificationChannelVerificationCode and
       VerifyNotificationChannel paths have already been used to put the given
       channel into the verified state).
       There is no guarantee that the verification codes returned by this method
       will be of a similar structure or form as the ones that are delivered
       to the channel via SendNotificationChannelVerificationCode; while
       VerifyNotificationChannel() will recognize both the codes delivered via
       SendNotificationChannelVerificationCode() and returned from
       GetNotificationChannelVerificationCode(), it is typically the case that
       the verification codes delivered via
       SendNotificationChannelVerificationCode() will be shorter and also
       have a shorter expiration (e.g. codes such as "G-123456") whereas
       GetVerificationCode() will typically return a much longer, websafe base
       64 encoded string that has a longer expiration time.
       
      Throws:
      io.grpc.StatusException
    • verifyNotificationChannel

      public NotificationChannel verifyNotificationChannel(VerifyNotificationChannelRequest request) throws io.grpc.StatusException
       Verifies a `NotificationChannel` by proving receipt of the code
       delivered to the channel as a result of calling
       `SendNotificationChannelVerificationCode`.
       
      Throws:
      io.grpc.StatusException