Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

591 rader
25 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/servicecontrol/v1/quota_controller.proto
  3. package servicecontrol // import "google.golang.org/genproto/googleapis/api/servicecontrol/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  21. // Supported quota modes.
  22. type QuotaOperation_QuotaMode int32
  23. const (
  24. // Guard against implicit default. Must not be used.
  25. QuotaOperation_UNSPECIFIED QuotaOperation_QuotaMode = 0
  26. // For AllocateQuota request, allocates quota for the amount specified in
  27. // the service configuration or specified using the quota metrics. If the
  28. // amount is higher than the available quota, allocation error will be
  29. // returned and no quota will be allocated.
  30. QuotaOperation_NORMAL QuotaOperation_QuotaMode = 1
  31. // The operation allocates quota for the amount specified in the service
  32. // configuration or specified using the quota metrics. If the amount is
  33. // higher than the available quota, request does not fail but all available
  34. // quota will be allocated.
  35. QuotaOperation_BEST_EFFORT QuotaOperation_QuotaMode = 2
  36. // For AllocateQuota request, only checks if there is enough quota
  37. // available and does not change the available quota. No lock is placed on
  38. // the available quota either.
  39. QuotaOperation_CHECK_ONLY QuotaOperation_QuotaMode = 3
  40. )
  41. var QuotaOperation_QuotaMode_name = map[int32]string{
  42. 0: "UNSPECIFIED",
  43. 1: "NORMAL",
  44. 2: "BEST_EFFORT",
  45. 3: "CHECK_ONLY",
  46. }
  47. var QuotaOperation_QuotaMode_value = map[string]int32{
  48. "UNSPECIFIED": 0,
  49. "NORMAL": 1,
  50. "BEST_EFFORT": 2,
  51. "CHECK_ONLY": 3,
  52. }
  53. func (x QuotaOperation_QuotaMode) String() string {
  54. return proto.EnumName(QuotaOperation_QuotaMode_name, int32(x))
  55. }
  56. func (QuotaOperation_QuotaMode) EnumDescriptor() ([]byte, []int) {
  57. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{1, 0}
  58. }
  59. // Error codes related to project config validations are deprecated since the
  60. // quota controller methods do not perform these validations. Instead services
  61. // have to call the Check method, without quota_properties field, to perform
  62. // these validations before calling the quota controller methods. These
  63. // methods check only for project deletion to be wipe out compliant.
  64. type QuotaError_Code int32
  65. const (
  66. // This is never used.
  67. QuotaError_UNSPECIFIED QuotaError_Code = 0
  68. // Quota allocation failed.
  69. // Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
  70. QuotaError_RESOURCE_EXHAUSTED QuotaError_Code = 8
  71. // Consumer cannot access the service because the service requires active
  72. // billing.
  73. QuotaError_BILLING_NOT_ACTIVE QuotaError_Code = 107
  74. // Consumer's project has been marked as deleted (soft deletion).
  75. QuotaError_PROJECT_DELETED QuotaError_Code = 108
  76. // Specified API key is invalid.
  77. QuotaError_API_KEY_INVALID QuotaError_Code = 105
  78. // Specified API Key has expired.
  79. QuotaError_API_KEY_EXPIRED QuotaError_Code = 112
  80. )
  81. var QuotaError_Code_name = map[int32]string{
  82. 0: "UNSPECIFIED",
  83. 8: "RESOURCE_EXHAUSTED",
  84. 107: "BILLING_NOT_ACTIVE",
  85. 108: "PROJECT_DELETED",
  86. 105: "API_KEY_INVALID",
  87. 112: "API_KEY_EXPIRED",
  88. }
  89. var QuotaError_Code_value = map[string]int32{
  90. "UNSPECIFIED": 0,
  91. "RESOURCE_EXHAUSTED": 8,
  92. "BILLING_NOT_ACTIVE": 107,
  93. "PROJECT_DELETED": 108,
  94. "API_KEY_INVALID": 105,
  95. "API_KEY_EXPIRED": 112,
  96. }
  97. func (x QuotaError_Code) String() string {
  98. return proto.EnumName(QuotaError_Code_name, int32(x))
  99. }
  100. func (QuotaError_Code) EnumDescriptor() ([]byte, []int) {
  101. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{3, 0}
  102. }
  103. // Request message for the AllocateQuota method.
  104. type AllocateQuotaRequest struct {
  105. // Name of the service as specified in the service configuration. For example,
  106. // `"pubsub.googleapis.com"`.
  107. //
  108. // See [google.api.Service][google.api.Service] for the definition of a
  109. // service name.
  110. ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
  111. // Operation that describes the quota allocation.
  112. AllocateOperation *QuotaOperation `protobuf:"bytes,2,opt,name=allocate_operation,json=allocateOperation,proto3" json:"allocate_operation,omitempty"`
  113. // Specifies which version of service configuration should be used to process
  114. // the request. If unspecified or no matching version can be found, the latest
  115. // one will be used.
  116. ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
  117. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  118. XXX_unrecognized []byte `json:"-"`
  119. XXX_sizecache int32 `json:"-"`
  120. }
  121. func (m *AllocateQuotaRequest) Reset() { *m = AllocateQuotaRequest{} }
  122. func (m *AllocateQuotaRequest) String() string { return proto.CompactTextString(m) }
  123. func (*AllocateQuotaRequest) ProtoMessage() {}
  124. func (*AllocateQuotaRequest) Descriptor() ([]byte, []int) {
  125. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{0}
  126. }
  127. func (m *AllocateQuotaRequest) XXX_Unmarshal(b []byte) error {
  128. return xxx_messageInfo_AllocateQuotaRequest.Unmarshal(m, b)
  129. }
  130. func (m *AllocateQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  131. return xxx_messageInfo_AllocateQuotaRequest.Marshal(b, m, deterministic)
  132. }
  133. func (dst *AllocateQuotaRequest) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_AllocateQuotaRequest.Merge(dst, src)
  135. }
  136. func (m *AllocateQuotaRequest) XXX_Size() int {
  137. return xxx_messageInfo_AllocateQuotaRequest.Size(m)
  138. }
  139. func (m *AllocateQuotaRequest) XXX_DiscardUnknown() {
  140. xxx_messageInfo_AllocateQuotaRequest.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_AllocateQuotaRequest proto.InternalMessageInfo
  143. func (m *AllocateQuotaRequest) GetServiceName() string {
  144. if m != nil {
  145. return m.ServiceName
  146. }
  147. return ""
  148. }
  149. func (m *AllocateQuotaRequest) GetAllocateOperation() *QuotaOperation {
  150. if m != nil {
  151. return m.AllocateOperation
  152. }
  153. return nil
  154. }
  155. func (m *AllocateQuotaRequest) GetServiceConfigId() string {
  156. if m != nil {
  157. return m.ServiceConfigId
  158. }
  159. return ""
  160. }
  161. // Represents information regarding a quota operation.
  162. type QuotaOperation struct {
  163. // Identity of the operation. This is expected to be unique within the scope
  164. // of the service that generated the operation, and guarantees idempotency in
  165. // case of retries.
  166. //
  167. // UUID version 4 is recommended, though not required. In scenarios where an
  168. // operation is computed from existing information and an idempotent id is
  169. // desirable for deduplication purpose, UUID version 5 is recommended. See
  170. // RFC 4122 for details.
  171. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
  172. // Fully qualified name of the API method for which this quota operation is
  173. // requested. This name is used for matching quota rules or metric rules and
  174. // billing status rules defined in service configuration. This field is not
  175. // required if the quota operation is performed on non-API resources.
  176. //
  177. // Example of an RPC method name:
  178. // google.example.library.v1.LibraryService.CreateShelf
  179. MethodName string `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
  180. // Identity of the consumer for whom this quota operation is being performed.
  181. //
  182. // This can be in one of the following formats:
  183. // project:<project_id>,
  184. // project_number:<project_number>,
  185. // api_key:<api_key>.
  186. ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
  187. // Labels describing the operation.
  188. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  189. // Represents information about this operation. Each MetricValueSet
  190. // corresponds to a metric defined in the service configuration.
  191. // The data type used in the MetricValueSet must agree with
  192. // the data type specified in the metric definition.
  193. //
  194. // Within a single operation, it is not allowed to have more than one
  195. // MetricValue instances that have the same metric names and identical
  196. // label value combinations. If a request has such duplicated MetricValue
  197. // instances, the entire request is rejected with
  198. // an invalid argument error.
  199. QuotaMetrics []*MetricValueSet `protobuf:"bytes,5,rep,name=quota_metrics,json=quotaMetrics,proto3" json:"quota_metrics,omitempty"`
  200. // Quota mode for this operation.
  201. QuotaMode QuotaOperation_QuotaMode `protobuf:"varint,6,opt,name=quota_mode,json=quotaMode,proto3,enum=google.api.servicecontrol.v1.QuotaOperation_QuotaMode" json:"quota_mode,omitempty"`
  202. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  203. XXX_unrecognized []byte `json:"-"`
  204. XXX_sizecache int32 `json:"-"`
  205. }
  206. func (m *QuotaOperation) Reset() { *m = QuotaOperation{} }
  207. func (m *QuotaOperation) String() string { return proto.CompactTextString(m) }
  208. func (*QuotaOperation) ProtoMessage() {}
  209. func (*QuotaOperation) Descriptor() ([]byte, []int) {
  210. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{1}
  211. }
  212. func (m *QuotaOperation) XXX_Unmarshal(b []byte) error {
  213. return xxx_messageInfo_QuotaOperation.Unmarshal(m, b)
  214. }
  215. func (m *QuotaOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  216. return xxx_messageInfo_QuotaOperation.Marshal(b, m, deterministic)
  217. }
  218. func (dst *QuotaOperation) XXX_Merge(src proto.Message) {
  219. xxx_messageInfo_QuotaOperation.Merge(dst, src)
  220. }
  221. func (m *QuotaOperation) XXX_Size() int {
  222. return xxx_messageInfo_QuotaOperation.Size(m)
  223. }
  224. func (m *QuotaOperation) XXX_DiscardUnknown() {
  225. xxx_messageInfo_QuotaOperation.DiscardUnknown(m)
  226. }
  227. var xxx_messageInfo_QuotaOperation proto.InternalMessageInfo
  228. func (m *QuotaOperation) GetOperationId() string {
  229. if m != nil {
  230. return m.OperationId
  231. }
  232. return ""
  233. }
  234. func (m *QuotaOperation) GetMethodName() string {
  235. if m != nil {
  236. return m.MethodName
  237. }
  238. return ""
  239. }
  240. func (m *QuotaOperation) GetConsumerId() string {
  241. if m != nil {
  242. return m.ConsumerId
  243. }
  244. return ""
  245. }
  246. func (m *QuotaOperation) GetLabels() map[string]string {
  247. if m != nil {
  248. return m.Labels
  249. }
  250. return nil
  251. }
  252. func (m *QuotaOperation) GetQuotaMetrics() []*MetricValueSet {
  253. if m != nil {
  254. return m.QuotaMetrics
  255. }
  256. return nil
  257. }
  258. func (m *QuotaOperation) GetQuotaMode() QuotaOperation_QuotaMode {
  259. if m != nil {
  260. return m.QuotaMode
  261. }
  262. return QuotaOperation_UNSPECIFIED
  263. }
  264. // Response message for the AllocateQuota method.
  265. type AllocateQuotaResponse struct {
  266. // The same operation_id value used in the AllocateQuotaRequest. Used for
  267. // logging and diagnostics purposes.
  268. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
  269. // Indicates the decision of the allocate.
  270. AllocateErrors []*QuotaError `protobuf:"bytes,2,rep,name=allocate_errors,json=allocateErrors,proto3" json:"allocate_errors,omitempty"`
  271. // Quota metrics to indicate the result of allocation. Depending on the
  272. // request, one or more of the following metrics will be included:
  273. //
  274. // 1. Per quota group or per quota metric incremental usage will be specified
  275. // using the following delta metric :
  276. // "serviceruntime.googleapis.com/api/consumer/quota_used_count"
  277. //
  278. // 2. The quota limit reached condition will be specified using the following
  279. // boolean metric :
  280. // "serviceruntime.googleapis.com/quota/exceeded"
  281. QuotaMetrics []*MetricValueSet `protobuf:"bytes,3,rep,name=quota_metrics,json=quotaMetrics,proto3" json:"quota_metrics,omitempty"`
  282. // ID of the actual config used to process the request.
  283. ServiceConfigId string `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
  284. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  285. XXX_unrecognized []byte `json:"-"`
  286. XXX_sizecache int32 `json:"-"`
  287. }
  288. func (m *AllocateQuotaResponse) Reset() { *m = AllocateQuotaResponse{} }
  289. func (m *AllocateQuotaResponse) String() string { return proto.CompactTextString(m) }
  290. func (*AllocateQuotaResponse) ProtoMessage() {}
  291. func (*AllocateQuotaResponse) Descriptor() ([]byte, []int) {
  292. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{2}
  293. }
  294. func (m *AllocateQuotaResponse) XXX_Unmarshal(b []byte) error {
  295. return xxx_messageInfo_AllocateQuotaResponse.Unmarshal(m, b)
  296. }
  297. func (m *AllocateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  298. return xxx_messageInfo_AllocateQuotaResponse.Marshal(b, m, deterministic)
  299. }
  300. func (dst *AllocateQuotaResponse) XXX_Merge(src proto.Message) {
  301. xxx_messageInfo_AllocateQuotaResponse.Merge(dst, src)
  302. }
  303. func (m *AllocateQuotaResponse) XXX_Size() int {
  304. return xxx_messageInfo_AllocateQuotaResponse.Size(m)
  305. }
  306. func (m *AllocateQuotaResponse) XXX_DiscardUnknown() {
  307. xxx_messageInfo_AllocateQuotaResponse.DiscardUnknown(m)
  308. }
  309. var xxx_messageInfo_AllocateQuotaResponse proto.InternalMessageInfo
  310. func (m *AllocateQuotaResponse) GetOperationId() string {
  311. if m != nil {
  312. return m.OperationId
  313. }
  314. return ""
  315. }
  316. func (m *AllocateQuotaResponse) GetAllocateErrors() []*QuotaError {
  317. if m != nil {
  318. return m.AllocateErrors
  319. }
  320. return nil
  321. }
  322. func (m *AllocateQuotaResponse) GetQuotaMetrics() []*MetricValueSet {
  323. if m != nil {
  324. return m.QuotaMetrics
  325. }
  326. return nil
  327. }
  328. func (m *AllocateQuotaResponse) GetServiceConfigId() string {
  329. if m != nil {
  330. return m.ServiceConfigId
  331. }
  332. return ""
  333. }
  334. // Represents error information for
  335. // [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
  336. type QuotaError struct {
  337. // Error code.
  338. Code QuotaError_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.api.servicecontrol.v1.QuotaError_Code" json:"code,omitempty"`
  339. // Subject to whom this error applies. See the specific enum for more details
  340. // on this field. For example, "clientip:<ip address of client>" or
  341. // "project:<Google developer project id>".
  342. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
  343. // Free-form text that provides details on the cause of the error.
  344. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  345. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  346. XXX_unrecognized []byte `json:"-"`
  347. XXX_sizecache int32 `json:"-"`
  348. }
  349. func (m *QuotaError) Reset() { *m = QuotaError{} }
  350. func (m *QuotaError) String() string { return proto.CompactTextString(m) }
  351. func (*QuotaError) ProtoMessage() {}
  352. func (*QuotaError) Descriptor() ([]byte, []int) {
  353. return fileDescriptor_quota_controller_d139447685d0f7c2, []int{3}
  354. }
  355. func (m *QuotaError) XXX_Unmarshal(b []byte) error {
  356. return xxx_messageInfo_QuotaError.Unmarshal(m, b)
  357. }
  358. func (m *QuotaError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  359. return xxx_messageInfo_QuotaError.Marshal(b, m, deterministic)
  360. }
  361. func (dst *QuotaError) XXX_Merge(src proto.Message) {
  362. xxx_messageInfo_QuotaError.Merge(dst, src)
  363. }
  364. func (m *QuotaError) XXX_Size() int {
  365. return xxx_messageInfo_QuotaError.Size(m)
  366. }
  367. func (m *QuotaError) XXX_DiscardUnknown() {
  368. xxx_messageInfo_QuotaError.DiscardUnknown(m)
  369. }
  370. var xxx_messageInfo_QuotaError proto.InternalMessageInfo
  371. func (m *QuotaError) GetCode() QuotaError_Code {
  372. if m != nil {
  373. return m.Code
  374. }
  375. return QuotaError_UNSPECIFIED
  376. }
  377. func (m *QuotaError) GetSubject() string {
  378. if m != nil {
  379. return m.Subject
  380. }
  381. return ""
  382. }
  383. func (m *QuotaError) GetDescription() string {
  384. if m != nil {
  385. return m.Description
  386. }
  387. return ""
  388. }
  389. func init() {
  390. proto.RegisterType((*AllocateQuotaRequest)(nil), "google.api.servicecontrol.v1.AllocateQuotaRequest")
  391. proto.RegisterType((*QuotaOperation)(nil), "google.api.servicecontrol.v1.QuotaOperation")
  392. proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.QuotaOperation.LabelsEntry")
  393. proto.RegisterType((*AllocateQuotaResponse)(nil), "google.api.servicecontrol.v1.AllocateQuotaResponse")
  394. proto.RegisterType((*QuotaError)(nil), "google.api.servicecontrol.v1.QuotaError")
  395. proto.RegisterEnum("google.api.servicecontrol.v1.QuotaOperation_QuotaMode", QuotaOperation_QuotaMode_name, QuotaOperation_QuotaMode_value)
  396. proto.RegisterEnum("google.api.servicecontrol.v1.QuotaError_Code", QuotaError_Code_name, QuotaError_Code_value)
  397. }
  398. // Reference imports to suppress errors if they are not otherwise used.
  399. var _ context.Context
  400. var _ grpc.ClientConn
  401. // This is a compile-time assertion to ensure that this generated file
  402. // is compatible with the grpc package it is being compiled against.
  403. const _ = grpc.SupportPackageIsVersion4
  404. // QuotaControllerClient is the client API for QuotaController service.
  405. //
  406. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  407. type QuotaControllerClient interface {
  408. // Attempts to allocate quota for the specified consumer. It should be called
  409. // before the operation is executed.
  410. //
  411. // This method requires the `servicemanagement.services.quota`
  412. // permission on the specified service. For more information, see
  413. // [Cloud IAM](https://cloud.google.com/iam).
  414. //
  415. // **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
  416. // `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
  417. // reliability, the server may inject these errors to prohibit any hard
  418. // dependency on the quota functionality.
  419. AllocateQuota(ctx context.Context, in *AllocateQuotaRequest, opts ...grpc.CallOption) (*AllocateQuotaResponse, error)
  420. }
  421. type quotaControllerClient struct {
  422. cc *grpc.ClientConn
  423. }
  424. func NewQuotaControllerClient(cc *grpc.ClientConn) QuotaControllerClient {
  425. return &quotaControllerClient{cc}
  426. }
  427. func (c *quotaControllerClient) AllocateQuota(ctx context.Context, in *AllocateQuotaRequest, opts ...grpc.CallOption) (*AllocateQuotaResponse, error) {
  428. out := new(AllocateQuotaResponse)
  429. err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.QuotaController/AllocateQuota", in, out, opts...)
  430. if err != nil {
  431. return nil, err
  432. }
  433. return out, nil
  434. }
  435. // QuotaControllerServer is the server API for QuotaController service.
  436. type QuotaControllerServer interface {
  437. // Attempts to allocate quota for the specified consumer. It should be called
  438. // before the operation is executed.
  439. //
  440. // This method requires the `servicemanagement.services.quota`
  441. // permission on the specified service. For more information, see
  442. // [Cloud IAM](https://cloud.google.com/iam).
  443. //
  444. // **NOTE:** The client **must** fail-open on server errors `INTERNAL`,
  445. // `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
  446. // reliability, the server may inject these errors to prohibit any hard
  447. // dependency on the quota functionality.
  448. AllocateQuota(context.Context, *AllocateQuotaRequest) (*AllocateQuotaResponse, error)
  449. }
  450. func RegisterQuotaControllerServer(s *grpc.Server, srv QuotaControllerServer) {
  451. s.RegisterService(&_QuotaController_serviceDesc, srv)
  452. }
  453. func _QuotaController_AllocateQuota_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  454. in := new(AllocateQuotaRequest)
  455. if err := dec(in); err != nil {
  456. return nil, err
  457. }
  458. if interceptor == nil {
  459. return srv.(QuotaControllerServer).AllocateQuota(ctx, in)
  460. }
  461. info := &grpc.UnaryServerInfo{
  462. Server: srv,
  463. FullMethod: "/google.api.servicecontrol.v1.QuotaController/AllocateQuota",
  464. }
  465. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  466. return srv.(QuotaControllerServer).AllocateQuota(ctx, req.(*AllocateQuotaRequest))
  467. }
  468. return interceptor(ctx, in, info, handler)
  469. }
  470. var _QuotaController_serviceDesc = grpc.ServiceDesc{
  471. ServiceName: "google.api.servicecontrol.v1.QuotaController",
  472. HandlerType: (*QuotaControllerServer)(nil),
  473. Methods: []grpc.MethodDesc{
  474. {
  475. MethodName: "AllocateQuota",
  476. Handler: _QuotaController_AllocateQuota_Handler,
  477. },
  478. },
  479. Streams: []grpc.StreamDesc{},
  480. Metadata: "google/api/servicecontrol/v1/quota_controller.proto",
  481. }
  482. func init() {
  483. proto.RegisterFile("google/api/servicecontrol/v1/quota_controller.proto", fileDescriptor_quota_controller_d139447685d0f7c2)
  484. }
  485. var fileDescriptor_quota_controller_d139447685d0f7c2 = []byte{
  486. // 775 bytes of a gzipped FileDescriptorProto
  487. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xc1, 0x6e, 0xea, 0x46,
  488. 0x14, 0xed, 0x18, 0x42, 0x9b, 0xeb, 0x04, 0x9c, 0x69, 0x5a, 0x59, 0x28, 0x52, 0x28, 0x2b, 0x1a,
  489. 0xb5, 0x46, 0x21, 0x55, 0x95, 0xa6, 0x2b, 0x30, 0x93, 0xc6, 0x09, 0x01, 0x62, 0x20, 0x4a, 0xda,
  490. 0x85, 0xe5, 0xd8, 0x53, 0xea, 0xc6, 0x78, 0x1c, 0xdb, 0x20, 0x45, 0x55, 0x37, 0x5d, 0x54, 0xaa,
  491. 0xd4, 0x5d, 0xfb, 0x1d, 0xfd, 0x88, 0xfc, 0x42, 0x7f, 0xe1, 0xfd, 0xc3, 0x7b, 0xcb, 0x27, 0x8f,
  492. 0x0d, 0x0f, 0x22, 0xc4, 0x0b, 0x7a, 0x3b, 0xcf, 0xf1, 0x9c, 0x33, 0xf7, 0xde, 0x73, 0xe7, 0x0e,
  493. 0x1c, 0x0d, 0x19, 0x1b, 0xba, 0xb4, 0x6a, 0xfa, 0x4e, 0x35, 0xa4, 0xc1, 0xc4, 0xb1, 0xa8, 0xc5,
  494. 0xbc, 0x28, 0x60, 0x6e, 0x75, 0x72, 0x58, 0x7d, 0x18, 0xb3, 0xc8, 0x34, 0x52, 0xc0, 0xa5, 0x81,
  495. 0xe2, 0x07, 0x2c, 0x62, 0x78, 0x2f, 0x21, 0x29, 0xa6, 0xef, 0x28, 0x8b, 0x24, 0x65, 0x72, 0x58,
  496. 0xdc, 0x9b, 0x93, 0x34, 0x3d, 0x8f, 0x45, 0x66, 0xe4, 0x30, 0x2f, 0x4c, 0xb8, 0xc5, 0xea, 0xca,
  497. 0x03, 0x47, 0x34, 0x0a, 0x1c, 0xcb, 0x98, 0x98, 0xee, 0x98, 0x26, 0x84, 0xf2, 0x13, 0x82, 0xdd,
  498. 0xba, 0xeb, 0x32, 0xcb, 0x8c, 0xe8, 0x55, 0x1c, 0x8f, 0x4e, 0x1f, 0xc6, 0x34, 0x8c, 0xf0, 0x17,
  499. 0xb0, 0x95, 0x0a, 0x18, 0x9e, 0x39, 0xa2, 0x32, 0x2a, 0xa1, 0xca, 0xa6, 0x2e, 0xa6, 0x58, 0xdb,
  500. 0x1c, 0x51, 0xfc, 0x13, 0x60, 0x33, 0xa5, 0x1a, 0xcc, 0xa7, 0x01, 0x8f, 0x44, 0x16, 0x4a, 0xa8,
  501. 0x22, 0xd6, 0xbe, 0x52, 0x56, 0x65, 0xa1, 0xf0, 0xa3, 0x3a, 0x53, 0x8e, 0xbe, 0x33, 0xd5, 0x99,
  502. 0x41, 0xf8, 0x00, 0x76, 0xa6, 0xe7, 0x5b, 0xcc, 0xfb, 0xd9, 0x19, 0x1a, 0x8e, 0x2d, 0x67, 0x79,
  503. 0x10, 0x85, 0xf4, 0x87, 0xca, 0x71, 0xcd, 0x2e, 0xbf, 0xce, 0x40, 0x7e, 0x51, 0x31, 0x0e, 0x7f,
  504. 0x16, 0x52, 0xcc, 0x4c, 0xc3, 0x9f, 0x61, 0x9a, 0x8d, 0xf7, 0x41, 0x1c, 0xd1, 0xe8, 0x17, 0x66,
  505. 0x27, 0x09, 0x0a, 0x7c, 0x07, 0x24, 0x10, 0xcf, 0x6f, 0x1f, 0x44, 0x8b, 0x79, 0xe1, 0x78, 0x44,
  506. 0x83, 0x58, 0x22, 0x93, 0x6c, 0x98, 0x42, 0x9a, 0x8d, 0xbb, 0x90, 0x73, 0xcd, 0x3b, 0xea, 0x86,
  507. 0x72, 0xb6, 0x94, 0xa9, 0x88, 0xb5, 0xe3, 0x75, 0x92, 0x56, 0x5a, 0x9c, 0x4a, 0xbc, 0x28, 0x78,
  508. 0xd4, 0x53, 0x1d, 0x7c, 0x05, 0xdb, 0x49, 0x57, 0x24, 0x56, 0x85, 0xf2, 0x06, 0x17, 0x7e, 0x4f,
  509. 0x35, 0x2f, 0xf9, 0xe6, 0xeb, 0xd8, 0xd6, 0x1e, 0x8d, 0xf4, 0x2d, 0x2e, 0x91, 0x80, 0x21, 0x1e,
  510. 0x00, 0xa4, 0x92, 0xcc, 0xa6, 0x72, 0xae, 0x84, 0x2a, 0xf9, 0xda, 0xb7, 0x6b, 0x05, 0xca, 0x97,
  511. 0x97, 0xcc, 0xa6, 0xfa, 0xe6, 0xc3, 0xf4, 0xb3, 0xf8, 0x1d, 0x88, 0x73, 0x09, 0x60, 0x09, 0x32,
  512. 0xf7, 0xf4, 0x31, 0x2d, 0x73, 0xfc, 0x89, 0x77, 0x61, 0x83, 0x37, 0x5a, 0x5a, 0xd8, 0x64, 0x71,
  513. 0x22, 0x1c, 0xa3, 0xb2, 0x06, 0x9b, 0x33, 0x49, 0x5c, 0x00, 0x71, 0xd0, 0xee, 0x75, 0x89, 0xaa,
  514. 0x9d, 0x6a, 0xa4, 0x29, 0x7d, 0x84, 0x01, 0x72, 0xed, 0x8e, 0x7e, 0x59, 0x6f, 0x49, 0x28, 0xfe,
  515. 0xd9, 0x20, 0xbd, 0xbe, 0x41, 0x4e, 0x4f, 0x3b, 0x7a, 0x5f, 0x12, 0x70, 0x1e, 0x40, 0x3d, 0x23,
  516. 0xea, 0x85, 0xd1, 0x69, 0xb7, 0x6e, 0xa5, 0x4c, 0xf9, 0x6f, 0x01, 0x3e, 0x7b, 0xd6, 0xbe, 0xa1,
  517. 0xcf, 0xbc, 0x90, 0xbe, 0xa4, 0x01, 0xae, 0xa0, 0x30, 0xeb, 0x5f, 0x1a, 0x04, 0x2c, 0x08, 0x65,
  518. 0x81, 0x97, 0xbb, 0xf2, 0x82, 0xf2, 0x90, 0x98, 0xa0, 0xe7, 0xa7, 0x02, 0x7c, 0xb9, 0xc4, 0xbf,
  519. 0xcc, 0x07, 0xfb, 0xb7, 0xce, 0x45, 0xf8, 0x57, 0x00, 0x78, 0x17, 0x1d, 0xae, 0x43, 0xd6, 0x8a,
  520. 0x4d, 0x47, 0xdc, 0xf4, 0xaf, 0x5f, 0x9a, 0x95, 0xa2, 0xc6, 0x5e, 0x73, 0x2a, 0x96, 0xe1, 0xe3,
  521. 0x70, 0x7c, 0xf7, 0x2b, 0xb5, 0xa2, 0xd4, 0xc7, 0xe9, 0x12, 0x97, 0x40, 0xb4, 0x69, 0x68, 0x05,
  522. 0x8e, 0xcf, 0xaf, 0x7d, 0x72, 0x3b, 0xe6, 0xa1, 0xf2, 0x9f, 0x08, 0xb2, 0xea, 0x52, 0x8f, 0x3f,
  523. 0x07, 0xac, 0x93, 0x5e, 0x67, 0xa0, 0xab, 0xc4, 0x20, 0x37, 0x67, 0xf5, 0x41, 0xaf, 0x4f, 0x9a,
  524. 0xd2, 0x27, 0x31, 0xde, 0xd0, 0x5a, 0x2d, 0xad, 0xfd, 0x83, 0xd1, 0xee, 0xf4, 0x8d, 0xba, 0xda,
  525. 0xd7, 0xae, 0x89, 0x74, 0x8f, 0x3f, 0x85, 0x42, 0x57, 0xef, 0x9c, 0x13, 0xb5, 0x6f, 0x34, 0x49,
  526. 0x8b, 0xc4, 0x9b, 0xdd, 0x18, 0xac, 0x77, 0x35, 0xe3, 0x82, 0xdc, 0x1a, 0x5a, 0xfb, 0xba, 0xde,
  527. 0xd2, 0x9a, 0x92, 0x33, 0x0f, 0x92, 0x9b, 0xae, 0xa6, 0x93, 0xa6, 0xe4, 0xd7, 0x9e, 0x10, 0x14,
  528. 0x78, 0x7a, 0xea, 0x6c, 0xd6, 0xe2, 0xff, 0x10, 0x6c, 0x2f, 0x74, 0x0e, 0xae, 0xad, 0xae, 0xcf,
  529. 0xb2, 0x29, 0x59, 0x3c, 0x5a, 0x8b, 0x93, 0xb4, 0x66, 0xf9, 0x9b, 0x3f, 0xfe, 0x7f, 0xf5, 0x8f,
  530. 0xa0, 0x94, 0xbf, 0x8c, 0x67, 0x72, 0x4a, 0x0a, 0xab, 0xbf, 0xcd, 0x8f, 0xdb, 0xdf, 0x4f, 0xcc,
  531. 0x79, 0xea, 0x09, 0x3a, 0x68, 0xfc, 0x85, 0xa0, 0x64, 0xb1, 0xd1, 0xca, 0x03, 0x1b, 0xbb, 0xcf,
  532. 0xd2, 0xec, 0xc6, 0x43, 0xbe, 0x8b, 0x7e, 0x3c, 0x4f, 0x59, 0x43, 0xe6, 0x9a, 0xde, 0x50, 0x61,
  533. 0xc1, 0xb0, 0x3a, 0xa4, 0x1e, 0x7f, 0x02, 0xd2, 0x27, 0xc3, 0xf4, 0x9d, 0x70, 0xf9, 0xb3, 0xf1,
  534. 0xfd, 0x22, 0xf2, 0x06, 0xa1, 0xbb, 0x1c, 0x67, 0x1e, 0xbd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xbb,
  535. 0x98, 0x03, 0x4f, 0xe0, 0x06, 0x00, 0x00,
  536. }