# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/servicecontrol/v1/quota_controller.proto require 'google/api/annotations_pb' require 'google/api/servicecontrol/v1/metric_value_pb' require 'google/rpc/status_pb' require 'google/api/client_pb' require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/api/servicecontrol/v1/quota_controller.proto", :syntax => :proto3) do add_message "google.api.servicecontrol.v1.AllocateQuotaRequest" do optional :service_name, :string, 1 optional :allocate_operation, :message, 2, "google.api.servicecontrol.v1.QuotaOperation" optional :service_config_id, :string, 4 end add_message "google.api.servicecontrol.v1.QuotaOperation" do optional :operation_id, :string, 1 optional :method_name, :string, 2 optional :consumer_id, :string, 3 map :labels, :string, :string, 4 repeated :quota_metrics, :message, 5, "google.api.servicecontrol.v1.MetricValueSet" optional :quota_mode, :enum, 6, "google.api.servicecontrol.v1.QuotaOperation.QuotaMode" end add_enum "google.api.servicecontrol.v1.QuotaOperation.QuotaMode" do value :UNSPECIFIED, 0 value :NORMAL, 1 value :BEST_EFFORT, 2 value :CHECK_ONLY, 3 value :QUERY_ONLY, 4 value :ADJUST_ONLY, 5 end add_message "google.api.servicecontrol.v1.AllocateQuotaResponse" do optional :operation_id, :string, 1 repeated :allocate_errors, :message, 2, "google.api.servicecontrol.v1.QuotaError" repeated :quota_metrics, :message, 3, "google.api.servicecontrol.v1.MetricValueSet" optional :service_config_id, :string, 4 end add_message "google.api.servicecontrol.v1.QuotaError" do optional :code, :enum, 1, "google.api.servicecontrol.v1.QuotaError.Code" optional :subject, :string, 2 optional :description, :string, 3 optional :status, :message, 4, "google.rpc.Status" end add_enum "google.api.servicecontrol.v1.QuotaError.Code" do value :UNSPECIFIED, 0 value :RESOURCE_EXHAUSTED, 8 value :BILLING_NOT_ACTIVE, 107 value :PROJECT_DELETED, 108 value :API_KEY_INVALID, 105 value :API_KEY_EXPIRED, 112 end end end module Google module Cloud module ServiceControl module V1 AllocateQuotaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.AllocateQuotaRequest").msgclass QuotaOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.QuotaOperation").msgclass QuotaOperation::QuotaMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.QuotaOperation.QuotaMode").enummodule AllocateQuotaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.AllocateQuotaResponse").msgclass QuotaError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.QuotaError").msgclass QuotaError::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicecontrol.v1.QuotaError.Code").enummodule end end end end