agones.dev/agones@v1.54.0/pkg/allocation/go/processor.pb.go (about) 1 // Copyright 2024 Google LLC All Rights Reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // This code was autogenerated. Do not edit directly. 16 // Copyright 2025 Google LLC All Rights Reserved. 17 // 18 // Licensed under the Apache License, Version 2.0 (the "License"); 19 // you may not use this file except in compliance with the License. 20 // You may obtain a copy of the License at 21 // 22 // http://www.apache.org/licenses/LICENSE-2.0 23 // 24 // Unless required by applicable law or agreed to in writing, software 25 // distributed under the License is distributed on an "AS IS" BASIS, 26 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 // See the License for the specific language governing permissions and 28 // limitations under the License. 29 30 // Code generated by protoc-gen-go. DO NOT EDIT. 31 // versions: 32 // protoc-gen-go v1.28.1 33 // protoc v6.31.1 34 // source: proto/allocation/processor.proto 35 36 package allocation 37 38 import ( 39 reflect "reflect" 40 sync "sync" 41 42 status "google.golang.org/genproto/googleapis/rpc/status" 43 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 44 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 45 ) 46 47 const ( 48 // Verify that this generated code is sufficiently up-to-date. 49 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 50 // Verify that runtime/protoimpl is sufficiently up-to-date. 51 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 52 ) 53 54 // The ProcessorMessage is used to send and receive messages between the client and server. 55 type ProcessorMessage struct { 56 state protoimpl.MessageState 57 sizeCache protoimpl.SizeCache 58 unknownFields protoimpl.UnknownFields 59 60 // The client ID is used to identify the client that is sending the message. 61 ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` 62 // The payload is a oneof field that can contain either a PullRequest, Batch, or BatchResponse. 63 // 64 // Types that are assignable to Payload: 65 // 66 // *ProcessorMessage_Pull 67 // *ProcessorMessage_BatchRequest 68 // *ProcessorMessage_BatchResponse 69 Payload isProcessorMessage_Payload `protobuf_oneof:"payload"` 70 } 71 72 func (x *ProcessorMessage) Reset() { 73 *x = ProcessorMessage{} 74 if protoimpl.UnsafeEnabled { 75 mi := &file_proto_allocation_processor_proto_msgTypes[0] 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 ms.StoreMessageInfo(mi) 78 } 79 } 80 81 func (x *ProcessorMessage) String() string { 82 return protoimpl.X.MessageStringOf(x) 83 } 84 85 func (*ProcessorMessage) ProtoMessage() {} 86 87 func (x *ProcessorMessage) ProtoReflect() protoreflect.Message { 88 mi := &file_proto_allocation_processor_proto_msgTypes[0] 89 if protoimpl.UnsafeEnabled && x != nil { 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 if ms.LoadMessageInfo() == nil { 92 ms.StoreMessageInfo(mi) 93 } 94 return ms 95 } 96 return mi.MessageOf(x) 97 } 98 99 // Deprecated: Use ProcessorMessage.ProtoReflect.Descriptor instead. 100 func (*ProcessorMessage) Descriptor() ([]byte, []int) { 101 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{0} 102 } 103 104 func (x *ProcessorMessage) GetClientId() string { 105 if x != nil { 106 return x.ClientId 107 } 108 return "" 109 } 110 111 func (m *ProcessorMessage) GetPayload() isProcessorMessage_Payload { 112 if m != nil { 113 return m.Payload 114 } 115 return nil 116 } 117 118 func (x *ProcessorMessage) GetPull() *PullRequest { 119 if x, ok := x.GetPayload().(*ProcessorMessage_Pull); ok { 120 return x.Pull 121 } 122 return nil 123 } 124 125 func (x *ProcessorMessage) GetBatchRequest() *BatchRequest { 126 if x, ok := x.GetPayload().(*ProcessorMessage_BatchRequest); ok { 127 return x.BatchRequest 128 } 129 return nil 130 } 131 132 func (x *ProcessorMessage) GetBatchResponse() *BatchResponse { 133 if x, ok := x.GetPayload().(*ProcessorMessage_BatchResponse); ok { 134 return x.BatchResponse 135 } 136 return nil 137 } 138 139 type isProcessorMessage_Payload interface { 140 isProcessorMessage_Payload() 141 } 142 143 type ProcessorMessage_Pull struct { 144 // A PullRequest is used to request a batch of allocation requests. 145 Pull *PullRequest `protobuf:"bytes,2,opt,name=pull,proto3,oneof"` 146 } 147 148 type ProcessorMessage_BatchRequest struct { 149 // A BatchRequest is used to send a batch of allocation requests. 150 BatchRequest *BatchRequest `protobuf:"bytes,3,opt,name=batch_request,json=batchRequest,proto3,oneof"` 151 } 152 153 type ProcessorMessage_BatchResponse struct { 154 // A BatchResponse is used to send a response to a batch of allocation requests. 155 BatchResponse *BatchResponse `protobuf:"bytes,4,opt,name=batch_response,json=batchResponse,proto3,oneof"` 156 } 157 158 func (*ProcessorMessage_Pull) isProcessorMessage_Payload() {} 159 160 func (*ProcessorMessage_BatchRequest) isProcessorMessage_Payload() {} 161 162 func (*ProcessorMessage_BatchResponse) isProcessorMessage_Payload() {} 163 164 // A PullRequest is used to request a batch of allocation requests. 165 type PullRequest struct { 166 state protoimpl.MessageState 167 sizeCache protoimpl.SizeCache 168 unknownFields protoimpl.UnknownFields 169 170 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 171 } 172 173 func (x *PullRequest) Reset() { 174 *x = PullRequest{} 175 if protoimpl.UnsafeEnabled { 176 mi := &file_proto_allocation_processor_proto_msgTypes[1] 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 ms.StoreMessageInfo(mi) 179 } 180 } 181 182 func (x *PullRequest) String() string { 183 return protoimpl.X.MessageStringOf(x) 184 } 185 186 func (*PullRequest) ProtoMessage() {} 187 188 func (x *PullRequest) ProtoReflect() protoreflect.Message { 189 mi := &file_proto_allocation_processor_proto_msgTypes[1] 190 if protoimpl.UnsafeEnabled && x != nil { 191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 192 if ms.LoadMessageInfo() == nil { 193 ms.StoreMessageInfo(mi) 194 } 195 return ms 196 } 197 return mi.MessageOf(x) 198 } 199 200 // Deprecated: Use PullRequest.ProtoReflect.Descriptor instead. 201 func (*PullRequest) Descriptor() ([]byte, []int) { 202 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{1} 203 } 204 205 func (x *PullRequest) GetMessage() string { 206 if x != nil { 207 return x.Message 208 } 209 return "" 210 } 211 212 // BatchRequest to encapsulate multiple allocation requests 213 // This is used to send a batch of requests in a single gRPC call. 214 type BatchRequest struct { 215 state protoimpl.MessageState 216 sizeCache protoimpl.SizeCache 217 unknownFields protoimpl.UnknownFields 218 219 // Unique batch ID for tracking 220 BatchId string `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` 221 // List of allocation requests 222 Requests []*RequestWrapper `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` 223 } 224 225 func (x *BatchRequest) Reset() { 226 *x = BatchRequest{} 227 if protoimpl.UnsafeEnabled { 228 mi := &file_proto_allocation_processor_proto_msgTypes[2] 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 ms.StoreMessageInfo(mi) 231 } 232 } 233 234 func (x *BatchRequest) String() string { 235 return protoimpl.X.MessageStringOf(x) 236 } 237 238 func (*BatchRequest) ProtoMessage() {} 239 240 func (x *BatchRequest) ProtoReflect() protoreflect.Message { 241 mi := &file_proto_allocation_processor_proto_msgTypes[2] 242 if protoimpl.UnsafeEnabled && x != nil { 243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 244 if ms.LoadMessageInfo() == nil { 245 ms.StoreMessageInfo(mi) 246 } 247 return ms 248 } 249 return mi.MessageOf(x) 250 } 251 252 // Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead. 253 func (*BatchRequest) Descriptor() ([]byte, []int) { 254 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{2} 255 } 256 257 func (x *BatchRequest) GetBatchId() string { 258 if x != nil { 259 return x.BatchId 260 } 261 return "" 262 } 263 264 func (x *BatchRequest) GetRequests() []*RequestWrapper { 265 if x != nil { 266 return x.Requests 267 } 268 return nil 269 } 270 271 // RequestWrapper to encapsulate individual allocation requests 272 type RequestWrapper struct { 273 state protoimpl.MessageState 274 sizeCache protoimpl.SizeCache 275 unknownFields protoimpl.UnknownFields 276 277 // Unique request ID for tracking 278 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 279 // The actual allocation request 280 Request *AllocationRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` 281 } 282 283 func (x *RequestWrapper) Reset() { 284 *x = RequestWrapper{} 285 if protoimpl.UnsafeEnabled { 286 mi := &file_proto_allocation_processor_proto_msgTypes[3] 287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 288 ms.StoreMessageInfo(mi) 289 } 290 } 291 292 func (x *RequestWrapper) String() string { 293 return protoimpl.X.MessageStringOf(x) 294 } 295 296 func (*RequestWrapper) ProtoMessage() {} 297 298 func (x *RequestWrapper) ProtoReflect() protoreflect.Message { 299 mi := &file_proto_allocation_processor_proto_msgTypes[3] 300 if protoimpl.UnsafeEnabled && x != nil { 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 if ms.LoadMessageInfo() == nil { 303 ms.StoreMessageInfo(mi) 304 } 305 return ms 306 } 307 return mi.MessageOf(x) 308 } 309 310 // Deprecated: Use RequestWrapper.ProtoReflect.Descriptor instead. 311 func (*RequestWrapper) Descriptor() ([]byte, []int) { 312 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{3} 313 } 314 315 func (x *RequestWrapper) GetRequestId() string { 316 if x != nil { 317 return x.RequestId 318 } 319 return "" 320 } 321 322 func (x *RequestWrapper) GetRequest() *AllocationRequest { 323 if x != nil { 324 return x.Request 325 } 326 return nil 327 } 328 329 // BatchResponse to encapsulate multiple allocation responses 330 type BatchResponse struct { 331 state protoimpl.MessageState 332 sizeCache protoimpl.SizeCache 333 unknownFields protoimpl.UnknownFields 334 335 // Unique batch ID for tracking 336 BatchId string `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` 337 // List of responses for each request in the batch 338 Responses []*ResponseWrapper `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` 339 } 340 341 func (x *BatchResponse) Reset() { 342 *x = BatchResponse{} 343 if protoimpl.UnsafeEnabled { 344 mi := &file_proto_allocation_processor_proto_msgTypes[4] 345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 346 ms.StoreMessageInfo(mi) 347 } 348 } 349 350 func (x *BatchResponse) String() string { 351 return protoimpl.X.MessageStringOf(x) 352 } 353 354 func (*BatchResponse) ProtoMessage() {} 355 356 func (x *BatchResponse) ProtoReflect() protoreflect.Message { 357 mi := &file_proto_allocation_processor_proto_msgTypes[4] 358 if protoimpl.UnsafeEnabled && x != nil { 359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 360 if ms.LoadMessageInfo() == nil { 361 ms.StoreMessageInfo(mi) 362 } 363 return ms 364 } 365 return mi.MessageOf(x) 366 } 367 368 // Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead. 369 func (*BatchResponse) Descriptor() ([]byte, []int) { 370 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{4} 371 } 372 373 func (x *BatchResponse) GetBatchId() string { 374 if x != nil { 375 return x.BatchId 376 } 377 return "" 378 } 379 380 func (x *BatchResponse) GetResponses() []*ResponseWrapper { 381 if x != nil { 382 return x.Responses 383 } 384 return nil 385 } 386 387 // ResponseWrapper to encapsulate individual allocation responses 388 type ResponseWrapper struct { 389 state protoimpl.MessageState 390 sizeCache protoimpl.SizeCache 391 unknownFields protoimpl.UnknownFields 392 393 // Unique request ID for tracking 394 RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 395 // The actual allocation response 396 // 397 // Types that are assignable to Result: 398 // 399 // *ResponseWrapper_Response 400 // *ResponseWrapper_Error 401 Result isResponseWrapper_Result `protobuf_oneof:"result"` 402 } 403 404 func (x *ResponseWrapper) Reset() { 405 *x = ResponseWrapper{} 406 if protoimpl.UnsafeEnabled { 407 mi := &file_proto_allocation_processor_proto_msgTypes[5] 408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 409 ms.StoreMessageInfo(mi) 410 } 411 } 412 413 func (x *ResponseWrapper) String() string { 414 return protoimpl.X.MessageStringOf(x) 415 } 416 417 func (*ResponseWrapper) ProtoMessage() {} 418 419 func (x *ResponseWrapper) ProtoReflect() protoreflect.Message { 420 mi := &file_proto_allocation_processor_proto_msgTypes[5] 421 if protoimpl.UnsafeEnabled && x != nil { 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 if ms.LoadMessageInfo() == nil { 424 ms.StoreMessageInfo(mi) 425 } 426 return ms 427 } 428 return mi.MessageOf(x) 429 } 430 431 // Deprecated: Use ResponseWrapper.ProtoReflect.Descriptor instead. 432 func (*ResponseWrapper) Descriptor() ([]byte, []int) { 433 return file_proto_allocation_processor_proto_rawDescGZIP(), []int{5} 434 } 435 436 func (x *ResponseWrapper) GetRequestId() string { 437 if x != nil { 438 return x.RequestId 439 } 440 return "" 441 } 442 443 func (m *ResponseWrapper) GetResult() isResponseWrapper_Result { 444 if m != nil { 445 return m.Result 446 } 447 return nil 448 } 449 450 func (x *ResponseWrapper) GetResponse() *AllocationResponse { 451 if x, ok := x.GetResult().(*ResponseWrapper_Response); ok { 452 return x.Response 453 } 454 return nil 455 } 456 457 func (x *ResponseWrapper) GetError() *status.Status { 458 if x, ok := x.GetResult().(*ResponseWrapper_Error); ok { 459 return x.Error 460 } 461 return nil 462 } 463 464 type isResponseWrapper_Result interface { 465 isResponseWrapper_Result() 466 } 467 468 type ResponseWrapper_Response struct { 469 // Successful response 470 Response *AllocationResponse `protobuf:"bytes,2,opt,name=response,proto3,oneof"` 471 } 472 473 type ResponseWrapper_Error struct { 474 // Error response 475 Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"` 476 } 477 478 func (*ResponseWrapper_Response) isResponseWrapper_Result() {} 479 480 func (*ResponseWrapper_Error) isResponseWrapper_Result() {} 481 482 var File_proto_allocation_processor_proto protoreflect.FileDescriptor 483 484 var file_proto_allocation_processor_proto_rawDesc = []byte{ 485 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 486 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 487 0x74, 0x6f, 0x12, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x17, 488 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 489 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 490 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 491 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xee, 0x01, 0x0a, 0x10, 0x50, 492 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 493 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 494 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x04, 495 0x70, 0x75, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6c, 0x6c, 496 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 497 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x70, 0x75, 0x6c, 0x6c, 0x12, 0x3f, 0x0a, 0x0d, 0x62, 498 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 499 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 500 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 501 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0e, 502 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 503 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 504 0x6e, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 505 0x00, 0x52, 0x0d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 506 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x27, 0x0a, 0x0b, 0x50, 507 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 508 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 509 0x73, 0x61, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 510 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 511 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 512 0x36, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 513 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 514 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x08, 0x72, 515 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x68, 0x0a, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 516 0x73, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 517 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 518 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 519 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 520 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 521 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 522 0x74, 0x22, 0x65, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 523 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x01, 524 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x39, 0x0a, 525 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 526 0x32, 0x1b, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 527 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x09, 0x72, 528 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 529 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 530 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 531 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x72, 532 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 533 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 534 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 535 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, 536 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 537 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x05, 538 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 539 0x5c, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x4f, 0x0a, 0x0d, 540 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x1c, 0x2e, 541 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 542 0x73, 0x73, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x1c, 0x2e, 0x61, 0x6c, 543 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 544 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x0e, 0x5a, 545 0x0c, 0x2e, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 546 0x72, 0x6f, 0x74, 0x6f, 0x33, 547 } 548 549 var ( 550 file_proto_allocation_processor_proto_rawDescOnce sync.Once 551 file_proto_allocation_processor_proto_rawDescData = file_proto_allocation_processor_proto_rawDesc 552 ) 553 554 func file_proto_allocation_processor_proto_rawDescGZIP() []byte { 555 file_proto_allocation_processor_proto_rawDescOnce.Do(func() { 556 file_proto_allocation_processor_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_allocation_processor_proto_rawDescData) 557 }) 558 return file_proto_allocation_processor_proto_rawDescData 559 } 560 561 var file_proto_allocation_processor_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 562 var file_proto_allocation_processor_proto_goTypes = []interface{}{ 563 (*ProcessorMessage)(nil), // 0: allocation.ProcessorMessage 564 (*PullRequest)(nil), // 1: allocation.PullRequest 565 (*BatchRequest)(nil), // 2: allocation.BatchRequest 566 (*RequestWrapper)(nil), // 3: allocation.RequestWrapper 567 (*BatchResponse)(nil), // 4: allocation.BatchResponse 568 (*ResponseWrapper)(nil), // 5: allocation.ResponseWrapper 569 (*AllocationRequest)(nil), // 6: allocation.AllocationRequest 570 (*AllocationResponse)(nil), // 7: allocation.AllocationResponse 571 (*status.Status)(nil), // 8: google.rpc.Status 572 } 573 var file_proto_allocation_processor_proto_depIdxs = []int32{ 574 1, // 0: allocation.ProcessorMessage.pull:type_name -> allocation.PullRequest 575 2, // 1: allocation.ProcessorMessage.batch_request:type_name -> allocation.BatchRequest 576 4, // 2: allocation.ProcessorMessage.batch_response:type_name -> allocation.BatchResponse 577 3, // 3: allocation.BatchRequest.requests:type_name -> allocation.RequestWrapper 578 6, // 4: allocation.RequestWrapper.request:type_name -> allocation.AllocationRequest 579 5, // 5: allocation.BatchResponse.responses:type_name -> allocation.ResponseWrapper 580 7, // 6: allocation.ResponseWrapper.response:type_name -> allocation.AllocationResponse 581 8, // 7: allocation.ResponseWrapper.error:type_name -> google.rpc.Status 582 0, // 8: allocation.Processor.StreamBatches:input_type -> allocation.ProcessorMessage 583 0, // 9: allocation.Processor.StreamBatches:output_type -> allocation.ProcessorMessage 584 9, // [9:10] is the sub-list for method output_type 585 8, // [8:9] is the sub-list for method input_type 586 8, // [8:8] is the sub-list for extension type_name 587 8, // [8:8] is the sub-list for extension extendee 588 0, // [0:8] is the sub-list for field type_name 589 } 590 591 func init() { file_proto_allocation_processor_proto_init() } 592 func file_proto_allocation_processor_proto_init() { 593 if File_proto_allocation_processor_proto != nil { 594 return 595 } 596 file_proto_allocation_allocation_proto_init() 597 if !protoimpl.UnsafeEnabled { 598 file_proto_allocation_processor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 599 switch v := v.(*ProcessorMessage); i { 600 case 0: 601 return &v.state 602 case 1: 603 return &v.sizeCache 604 case 2: 605 return &v.unknownFields 606 default: 607 return nil 608 } 609 } 610 file_proto_allocation_processor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 611 switch v := v.(*PullRequest); i { 612 case 0: 613 return &v.state 614 case 1: 615 return &v.sizeCache 616 case 2: 617 return &v.unknownFields 618 default: 619 return nil 620 } 621 } 622 file_proto_allocation_processor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 623 switch v := v.(*BatchRequest); i { 624 case 0: 625 return &v.state 626 case 1: 627 return &v.sizeCache 628 case 2: 629 return &v.unknownFields 630 default: 631 return nil 632 } 633 } 634 file_proto_allocation_processor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 635 switch v := v.(*RequestWrapper); i { 636 case 0: 637 return &v.state 638 case 1: 639 return &v.sizeCache 640 case 2: 641 return &v.unknownFields 642 default: 643 return nil 644 } 645 } 646 file_proto_allocation_processor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 647 switch v := v.(*BatchResponse); i { 648 case 0: 649 return &v.state 650 case 1: 651 return &v.sizeCache 652 case 2: 653 return &v.unknownFields 654 default: 655 return nil 656 } 657 } 658 file_proto_allocation_processor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 659 switch v := v.(*ResponseWrapper); i { 660 case 0: 661 return &v.state 662 case 1: 663 return &v.sizeCache 664 case 2: 665 return &v.unknownFields 666 default: 667 return nil 668 } 669 } 670 } 671 file_proto_allocation_processor_proto_msgTypes[0].OneofWrappers = []interface{}{ 672 (*ProcessorMessage_Pull)(nil), 673 (*ProcessorMessage_BatchRequest)(nil), 674 (*ProcessorMessage_BatchResponse)(nil), 675 } 676 file_proto_allocation_processor_proto_msgTypes[5].OneofWrappers = []interface{}{ 677 (*ResponseWrapper_Response)(nil), 678 (*ResponseWrapper_Error)(nil), 679 } 680 type x struct{} 681 out := protoimpl.TypeBuilder{ 682 File: protoimpl.DescBuilder{ 683 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 684 RawDescriptor: file_proto_allocation_processor_proto_rawDesc, 685 NumEnums: 0, 686 NumMessages: 6, 687 NumExtensions: 0, 688 NumServices: 1, 689 }, 690 GoTypes: file_proto_allocation_processor_proto_goTypes, 691 DependencyIndexes: file_proto_allocation_processor_proto_depIdxs, 692 MessageInfos: file_proto_allocation_processor_proto_msgTypes, 693 }.Build() 694 File_proto_allocation_processor_proto = out.File 695 file_proto_allocation_processor_proto_rawDesc = nil 696 file_proto_allocation_processor_proto_goTypes = nil 697 file_proto_allocation_processor_proto_depIdxs = nil 698 }