# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/servicehealth/v1/event_service.proto for package 'Google.Cloud.ServiceHealth.V1'
# Original file comments:
# Copyright 2023 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/cloud/servicehealth/v1/event_service_pb'

module Google
  module Cloud
    module ServiceHealth
      module V1
        module ServiceHealth
          # Request service health events relevant to your Google Cloud project.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.servicehealth.v1.ServiceHealth'

            # Lists events under a given project and location.
            rpc :ListEvents, ::Google::Cloud::ServiceHealth::V1::ListEventsRequest, ::Google::Cloud::ServiceHealth::V1::ListEventsResponse
            # Retrieves a resource containing information about an event.
            rpc :GetEvent, ::Google::Cloud::ServiceHealth::V1::GetEventRequest, ::Google::Cloud::ServiceHealth::V1::Event
            # Lists organization events under a given organization and location.
            rpc :ListOrganizationEvents, ::Google::Cloud::ServiceHealth::V1::ListOrganizationEventsRequest, ::Google::Cloud::ServiceHealth::V1::ListOrganizationEventsResponse
            # Retrieves a resource containing information about an event affecting an
            # organization .
            rpc :GetOrganizationEvent, ::Google::Cloud::ServiceHealth::V1::GetOrganizationEventRequest, ::Google::Cloud::ServiceHealth::V1::OrganizationEvent
            # Lists assets impacted by organization events under a given organization and
            # location.
            rpc :ListOrganizationImpacts, ::Google::Cloud::ServiceHealth::V1::ListOrganizationImpactsRequest, ::Google::Cloud::ServiceHealth::V1::ListOrganizationImpactsResponse
            # Retrieves a resource containing information about impact to an asset under
            # an organization affected by a service health event.
            rpc :GetOrganizationImpact, ::Google::Cloud::ServiceHealth::V1::GetOrganizationImpactRequest, ::Google::Cloud::ServiceHealth::V1::OrganizationImpact
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
