# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/api/cloudquotas/v1/cloudquotas.proto for package 'Google.Cloud.CloudQuotas.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/api/cloudquotas/v1/cloudquotas_pb'

module Google
  module Cloud
    module CloudQuotas
      module V1
        module CloudQuotas
          # The Cloud Quotas API is an infrastructure service for Google Cloud that lets
          # service consumers list and manage their resource usage limits.
          #
          # - List/Get the metadata and current status of the quotas for a service.
          # - Create/Update quota preferencess that declare the preferred quota values.
          # - Check the status of a quota preference request.
          # - List/Get pending and historical quota preference.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.api.cloudquotas.v1.CloudQuotas'

            # Lists QuotaInfos of all quotas for a given project, folder or organization.
            rpc :ListQuotaInfos, ::Google::Cloud::CloudQuotas::V1::ListQuotaInfosRequest, ::Google::Cloud::CloudQuotas::V1::ListQuotaInfosResponse
            # Retrieve the QuotaInfo of a quota for a project, folder or organization.
            rpc :GetQuotaInfo, ::Google::Cloud::CloudQuotas::V1::GetQuotaInfoRequest, ::Google::Cloud::CloudQuotas::V1::QuotaInfo
            # Lists QuotaPreferences in a given project, folder or organization.
            rpc :ListQuotaPreferences, ::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesRequest, ::Google::Cloud::CloudQuotas::V1::ListQuotaPreferencesResponse
            # Gets details of a single QuotaPreference.
            rpc :GetQuotaPreference, ::Google::Cloud::CloudQuotas::V1::GetQuotaPreferenceRequest, ::Google::Cloud::CloudQuotas::V1::QuotaPreference
            # Creates a new QuotaPreference that declares the desired value for a quota.
            rpc :CreateQuotaPreference, ::Google::Cloud::CloudQuotas::V1::CreateQuotaPreferenceRequest, ::Google::Cloud::CloudQuotas::V1::QuotaPreference
            # Updates the parameters of a single QuotaPreference. It can updates the
            # config in any states, not just the ones pending approval.
            rpc :UpdateQuotaPreference, ::Google::Cloud::CloudQuotas::V1::UpdateQuotaPreferenceRequest, ::Google::Cloud::CloudQuotas::V1::QuotaPreference
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
