# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/apps/events/subscriptions/v1beta/subscriptions_service.proto for package 'Google.Apps.Events.Subscriptions.V1beta'
# Original file comments:
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'grpc'
require 'google/apps/events/subscriptions/v1beta/subscriptions_service_pb'

module Google
  module Apps
    module Events
      module Subscriptions
        module V1beta
          module SubscriptionsService
            # A service that manages subscriptions to Google Workspace events.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.apps.events.subscriptions.v1beta.SubscriptionsService'

              # Creates a Google Workspace subscription. To learn how to use this
              # method, see [Create a Google Workspace
              # subscription](https://developers.google.com/workspace/events/guides/create-subscription).
              #
              rpc :CreateSubscription, ::Google::Apps::Events::Subscriptions::V1beta::CreateSubscriptionRequest, ::Google::Longrunning::Operation
              # Deletes a Google Workspace subscription.
              # To learn how to use this method, see [Delete a Google Workspace
              # subscription](https://developers.google.com/workspace/events/guides/delete-subscription).
              rpc :DeleteSubscription, ::Google::Apps::Events::Subscriptions::V1beta::DeleteSubscriptionRequest, ::Google::Longrunning::Operation
              # Gets details about a Google Workspace subscription. To learn how to use
              # this method, see [Get details about a Google Workspace
              # subscription](https://developers.google.com/workspace/events/guides/get-subscription).
              rpc :GetSubscription, ::Google::Apps::Events::Subscriptions::V1beta::GetSubscriptionRequest, ::Google::Apps::Events::Subscriptions::V1beta::Subscription
              # Lists Google Workspace subscriptions. To learn how to use this method, see
              # [List Google Workspace
              # subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).
              rpc :ListSubscriptions, ::Google::Apps::Events::Subscriptions::V1beta::ListSubscriptionsRequest, ::Google::Apps::Events::Subscriptions::V1beta::ListSubscriptionsResponse
              # Updates or renews a Google Workspace subscription. To learn how to use this
              # method, see [Update or renew a Google Workspace
              # subscription](https://developers.google.com/workspace/events/guides/update-subscription).
              rpc :UpdateSubscription, ::Google::Apps::Events::Subscriptions::V1beta::UpdateSubscriptionRequest, ::Google::Longrunning::Operation
              # Reactivates a suspended Google Workspace subscription.
              #
              #  This method resets your subscription's `State` field to `ACTIVE`. Before
              #  you use this method, you must fix the error that suspended the
              #  subscription. This method will ignore or reject any subscription that
              #  isn't currently in a suspended state. To learn how to use this method, see
              # [Reactivate a Google Workspace
              #  subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).
              rpc :ReactivateSubscription, ::Google::Apps::Events::Subscriptions::V1beta::ReactivateSubscriptionRequest, ::Google::Longrunning::Operation
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
