go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/quotabeta/proto/service.pb.go (about) 1 // Copyright 2022 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/server/quotabeta/proto/service.proto 10 11 package proto 12 13 import prpc "go.chromium.org/luci/grpc/prpc" 14 15 import ( 16 context "context" 17 grpc "google.golang.org/grpc" 18 codes "google.golang.org/grpc/codes" 19 status "google.golang.org/grpc/status" 20 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 21 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 22 reflect "reflect" 23 sync "sync" 24 ) 25 26 const ( 27 // Verify that this generated code is sufficiently up-to-date. 28 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 29 // Verify that runtime/protoimpl is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 31 ) 32 33 // A GetRequest is a request to fetch the quota entry for a specfic policy. 34 type GetRequest struct { 35 state protoimpl.MessageState 36 sizeCache protoimpl.SizeCache 37 unknownFields protoimpl.UnknownFields 38 39 // The named policy. Valid names depend on the policies enumerated in this 40 // service's config.proto. 41 // 42 // Required. 43 Policy string `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` 44 // The user to fetch the named quota policy for. Must be specified when the 45 // policy contains the substring "${user}". 46 User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` 47 } 48 49 func (x *GetRequest) Reset() { 50 *x = GetRequest{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *GetRequest) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*GetRequest) ProtoMessage() {} 63 64 func (x *GetRequest) ProtoReflect() protoreflect.Message { 65 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. 77 func (*GetRequest) Descriptor() ([]byte, []int) { 78 return file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *GetRequest) GetPolicy() string { 82 if x != nil { 83 return x.Policy 84 } 85 return "" 86 } 87 88 func (x *GetRequest) GetUser() string { 89 if x != nil { 90 return x.User 91 } 92 return "" 93 } 94 95 // A SetRequest is a request to set available resources for a specific policy. 96 type SetRequest struct { 97 state protoimpl.MessageState 98 sizeCache protoimpl.SizeCache 99 unknownFields protoimpl.UnknownFields 100 101 // The named policy. Valid names depend on the policies enumerated in this 102 // service's config.proto. 103 // 104 // Required. 105 Policy string `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` 106 // The user to fetch the named quota policy for. Must be specified when the 107 // policy contains the substring "${user}". 108 User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` 109 // The amount of resources that should be available. Must be non-negative. 110 // Values exceeding the max specified in the policy config will be capped. 111 Resources int64 `protobuf:"varint,3,opt,name=resources,proto3" json:"resources,omitempty"` 112 } 113 114 func (x *SetRequest) Reset() { 115 *x = SetRequest{} 116 if protoimpl.UnsafeEnabled { 117 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[1] 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 ms.StoreMessageInfo(mi) 120 } 121 } 122 123 func (x *SetRequest) String() string { 124 return protoimpl.X.MessageStringOf(x) 125 } 126 127 func (*SetRequest) ProtoMessage() {} 128 129 func (x *SetRequest) ProtoReflect() protoreflect.Message { 130 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[1] 131 if protoimpl.UnsafeEnabled && x != nil { 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 if ms.LoadMessageInfo() == nil { 134 ms.StoreMessageInfo(mi) 135 } 136 return ms 137 } 138 return mi.MessageOf(x) 139 } 140 141 // Deprecated: Use SetRequest.ProtoReflect.Descriptor instead. 142 func (*SetRequest) Descriptor() ([]byte, []int) { 143 return file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescGZIP(), []int{1} 144 } 145 146 func (x *SetRequest) GetPolicy() string { 147 if x != nil { 148 return x.Policy 149 } 150 return "" 151 } 152 153 func (x *SetRequest) GetUser() string { 154 if x != nil { 155 return x.User 156 } 157 return "" 158 } 159 160 func (x *SetRequest) GetResources() int64 { 161 if x != nil { 162 return x.Resources 163 } 164 return 0 165 } 166 167 // A QuotaEntry represents a database entry for the named quota entry. 168 type QuotaEntry struct { 169 state protoimpl.MessageState 170 sizeCache protoimpl.SizeCache 171 unknownFields protoimpl.UnknownFields 172 173 // The name of this quota entry. 174 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 175 // The raw name of this entry in the redis database. 176 DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"` 177 // The amount of resources available. 178 Resources int64 `protobuf:"varint,3,opt,name=resources,proto3" json:"resources,omitempty"` 179 } 180 181 func (x *QuotaEntry) Reset() { 182 *x = QuotaEntry{} 183 if protoimpl.UnsafeEnabled { 184 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[2] 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 ms.StoreMessageInfo(mi) 187 } 188 } 189 190 func (x *QuotaEntry) String() string { 191 return protoimpl.X.MessageStringOf(x) 192 } 193 194 func (*QuotaEntry) ProtoMessage() {} 195 196 func (x *QuotaEntry) ProtoReflect() protoreflect.Message { 197 mi := &file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[2] 198 if protoimpl.UnsafeEnabled && x != nil { 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 if ms.LoadMessageInfo() == nil { 201 ms.StoreMessageInfo(mi) 202 } 203 return ms 204 } 205 return mi.MessageOf(x) 206 } 207 208 // Deprecated: Use QuotaEntry.ProtoReflect.Descriptor instead. 209 func (*QuotaEntry) Descriptor() ([]byte, []int) { 210 return file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescGZIP(), []int{2} 211 } 212 213 func (x *QuotaEntry) GetName() string { 214 if x != nil { 215 return x.Name 216 } 217 return "" 218 } 219 220 func (x *QuotaEntry) GetDbName() string { 221 if x != nil { 222 return x.DbName 223 } 224 return "" 225 } 226 227 func (x *QuotaEntry) GetResources() int64 { 228 if x != nil { 229 return x.Resources 230 } 231 return 0 232 } 233 234 var File_go_chromium_org_luci_server_quotabeta_proto_service_proto protoreflect.FileDescriptor 235 236 var file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDesc = []byte{ 237 0x0a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 238 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x71, 0x75, 239 0x6f, 0x74, 0x61, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 240 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 241 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 242 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 243 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 244 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x56, 0x0a, 0x0a, 245 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 246 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 247 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 248 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 249 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 250 0x72, 0x63, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x0a, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x45, 0x6e, 0x74, 251 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 252 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 253 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 254 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 255 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x32, 0x66, 0x0a, 256 0x0a, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2b, 0x0a, 0x03, 0x47, 257 0x65, 0x74, 0x12, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 258 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 259 0x6f, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 260 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 261 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 262 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 263 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 264 0x72, 0x76, 0x65, 0x72, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 265 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 266 } 267 268 var ( 269 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescOnce sync.Once 270 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescData = file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDesc 271 ) 272 273 func file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescGZIP() []byte { 274 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescOnce.Do(func() { 275 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescData) 276 }) 277 return file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDescData 278 } 279 280 var file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 281 var file_go_chromium_org_luci_server_quotabeta_proto_service_proto_goTypes = []interface{}{ 282 (*GetRequest)(nil), // 0: proto.GetRequest 283 (*SetRequest)(nil), // 1: proto.SetRequest 284 (*QuotaEntry)(nil), // 2: proto.QuotaEntry 285 } 286 var file_go_chromium_org_luci_server_quotabeta_proto_service_proto_depIdxs = []int32{ 287 0, // 0: proto.QuotaAdmin.Get:input_type -> proto.GetRequest 288 1, // 1: proto.QuotaAdmin.Set:input_type -> proto.SetRequest 289 2, // 2: proto.QuotaAdmin.Get:output_type -> proto.QuotaEntry 290 2, // 3: proto.QuotaAdmin.Set:output_type -> proto.QuotaEntry 291 2, // [2:4] is the sub-list for method output_type 292 0, // [0:2] is the sub-list for method input_type 293 0, // [0:0] is the sub-list for extension type_name 294 0, // [0:0] is the sub-list for extension extendee 295 0, // [0:0] is the sub-list for field type_name 296 } 297 298 func init() { file_go_chromium_org_luci_server_quotabeta_proto_service_proto_init() } 299 func file_go_chromium_org_luci_server_quotabeta_proto_service_proto_init() { 300 if File_go_chromium_org_luci_server_quotabeta_proto_service_proto != nil { 301 return 302 } 303 if !protoimpl.UnsafeEnabled { 304 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 305 switch v := v.(*GetRequest); i { 306 case 0: 307 return &v.state 308 case 1: 309 return &v.sizeCache 310 case 2: 311 return &v.unknownFields 312 default: 313 return nil 314 } 315 } 316 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 317 switch v := v.(*SetRequest); i { 318 case 0: 319 return &v.state 320 case 1: 321 return &v.sizeCache 322 case 2: 323 return &v.unknownFields 324 default: 325 return nil 326 } 327 } 328 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 329 switch v := v.(*QuotaEntry); i { 330 case 0: 331 return &v.state 332 case 1: 333 return &v.sizeCache 334 case 2: 335 return &v.unknownFields 336 default: 337 return nil 338 } 339 } 340 } 341 type x struct{} 342 out := protoimpl.TypeBuilder{ 343 File: protoimpl.DescBuilder{ 344 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 345 RawDescriptor: file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDesc, 346 NumEnums: 0, 347 NumMessages: 3, 348 NumExtensions: 0, 349 NumServices: 1, 350 }, 351 GoTypes: file_go_chromium_org_luci_server_quotabeta_proto_service_proto_goTypes, 352 DependencyIndexes: file_go_chromium_org_luci_server_quotabeta_proto_service_proto_depIdxs, 353 MessageInfos: file_go_chromium_org_luci_server_quotabeta_proto_service_proto_msgTypes, 354 }.Build() 355 File_go_chromium_org_luci_server_quotabeta_proto_service_proto = out.File 356 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_rawDesc = nil 357 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_goTypes = nil 358 file_go_chromium_org_luci_server_quotabeta_proto_service_proto_depIdxs = nil 359 } 360 361 // Reference imports to suppress errors if they are not otherwise used. 362 var _ context.Context 363 var _ grpc.ClientConnInterface 364 365 // This is a compile-time assertion to ensure that this generated file 366 // is compatible with the grpc package it is being compiled against. 367 const _ = grpc.SupportPackageIsVersion6 368 369 // QuotaAdminClient is the client API for QuotaAdmin service. 370 // 371 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 372 type QuotaAdminClient interface { 373 // Get returns the available resources for the given policy. 374 Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) 375 // Set updates the available resources for the given policy. 376 Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) 377 } 378 type quotaAdminPRPCClient struct { 379 client *prpc.Client 380 } 381 382 func NewQuotaAdminPRPCClient(client *prpc.Client) QuotaAdminClient { 383 return "aAdminPRPCClient{client} 384 } 385 386 func (c *quotaAdminPRPCClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) { 387 out := new(QuotaEntry) 388 err := c.client.Call(ctx, "proto.QuotaAdmin", "Get", in, out, opts...) 389 if err != nil { 390 return nil, err 391 } 392 return out, nil 393 } 394 395 func (c *quotaAdminPRPCClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) { 396 out := new(QuotaEntry) 397 err := c.client.Call(ctx, "proto.QuotaAdmin", "Set", in, out, opts...) 398 if err != nil { 399 return nil, err 400 } 401 return out, nil 402 } 403 404 type quotaAdminClient struct { 405 cc grpc.ClientConnInterface 406 } 407 408 func NewQuotaAdminClient(cc grpc.ClientConnInterface) QuotaAdminClient { 409 return "aAdminClient{cc} 410 } 411 412 func (c *quotaAdminClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) { 413 out := new(QuotaEntry) 414 err := c.cc.Invoke(ctx, "/proto.QuotaAdmin/Get", in, out, opts...) 415 if err != nil { 416 return nil, err 417 } 418 return out, nil 419 } 420 421 func (c *quotaAdminClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*QuotaEntry, error) { 422 out := new(QuotaEntry) 423 err := c.cc.Invoke(ctx, "/proto.QuotaAdmin/Set", in, out, opts...) 424 if err != nil { 425 return nil, err 426 } 427 return out, nil 428 } 429 430 // QuotaAdminServer is the server API for QuotaAdmin service. 431 type QuotaAdminServer interface { 432 // Get returns the available resources for the given policy. 433 Get(context.Context, *GetRequest) (*QuotaEntry, error) 434 // Set updates the available resources for the given policy. 435 Set(context.Context, *SetRequest) (*QuotaEntry, error) 436 } 437 438 // UnimplementedQuotaAdminServer can be embedded to have forward compatible implementations. 439 type UnimplementedQuotaAdminServer struct { 440 } 441 442 func (*UnimplementedQuotaAdminServer) Get(context.Context, *GetRequest) (*QuotaEntry, error) { 443 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 444 } 445 func (*UnimplementedQuotaAdminServer) Set(context.Context, *SetRequest) (*QuotaEntry, error) { 446 return nil, status.Errorf(codes.Unimplemented, "method Set not implemented") 447 } 448 449 func RegisterQuotaAdminServer(s prpc.Registrar, srv QuotaAdminServer) { 450 s.RegisterService(&_QuotaAdmin_serviceDesc, srv) 451 } 452 453 func _QuotaAdmin_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 454 in := new(GetRequest) 455 if err := dec(in); err != nil { 456 return nil, err 457 } 458 if interceptor == nil { 459 return srv.(QuotaAdminServer).Get(ctx, in) 460 } 461 info := &grpc.UnaryServerInfo{ 462 Server: srv, 463 FullMethod: "/proto.QuotaAdmin/Get", 464 } 465 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 466 return srv.(QuotaAdminServer).Get(ctx, req.(*GetRequest)) 467 } 468 return interceptor(ctx, in, info, handler) 469 } 470 471 func _QuotaAdmin_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 472 in := new(SetRequest) 473 if err := dec(in); err != nil { 474 return nil, err 475 } 476 if interceptor == nil { 477 return srv.(QuotaAdminServer).Set(ctx, in) 478 } 479 info := &grpc.UnaryServerInfo{ 480 Server: srv, 481 FullMethod: "/proto.QuotaAdmin/Set", 482 } 483 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 484 return srv.(QuotaAdminServer).Set(ctx, req.(*SetRequest)) 485 } 486 return interceptor(ctx, in, info, handler) 487 } 488 489 var _QuotaAdmin_serviceDesc = grpc.ServiceDesc{ 490 ServiceName: "proto.QuotaAdmin", 491 HandlerType: (*QuotaAdminServer)(nil), 492 Methods: []grpc.MethodDesc{ 493 { 494 MethodName: "Get", 495 Handler: _QuotaAdmin_Get_Handler, 496 }, 497 { 498 MethodName: "Set", 499 Handler: _QuotaAdmin_Set_Handler, 500 }, 501 }, 502 Streams: []grpc.StreamDesc{}, 503 Metadata: "go.chromium.org/luci/server/quotabeta/proto/service.proto", 504 }