github.com/decred/dcrlnd@v0.7.6/lnrpc/autopilotrpc/autopilot.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.4.0 5 // source: autopilotrpc/autopilot.proto 6 7 package autopilotrpc 8 9 import ( 10 context "context" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 type StatusRequest struct { 28 state protoimpl.MessageState 29 sizeCache protoimpl.SizeCache 30 unknownFields protoimpl.UnknownFields 31 } 32 33 func (x *StatusRequest) Reset() { 34 *x = StatusRequest{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_autopilotrpc_autopilot_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *StatusRequest) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*StatusRequest) ProtoMessage() {} 47 48 func (x *StatusRequest) ProtoReflect() protoreflect.Message { 49 mi := &file_autopilotrpc_autopilot_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. 61 func (*StatusRequest) Descriptor() ([]byte, []int) { 62 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{0} 63 } 64 65 type StatusResponse struct { 66 state protoimpl.MessageState 67 sizeCache protoimpl.SizeCache 68 unknownFields protoimpl.UnknownFields 69 70 // Indicates whether the autopilot is active or not. 71 Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` 72 } 73 74 func (x *StatusResponse) Reset() { 75 *x = StatusResponse{} 76 if protoimpl.UnsafeEnabled { 77 mi := &file_autopilotrpc_autopilot_proto_msgTypes[1] 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 ms.StoreMessageInfo(mi) 80 } 81 } 82 83 func (x *StatusResponse) String() string { 84 return protoimpl.X.MessageStringOf(x) 85 } 86 87 func (*StatusResponse) ProtoMessage() {} 88 89 func (x *StatusResponse) ProtoReflect() protoreflect.Message { 90 mi := &file_autopilotrpc_autopilot_proto_msgTypes[1] 91 if protoimpl.UnsafeEnabled && x != nil { 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 if ms.LoadMessageInfo() == nil { 94 ms.StoreMessageInfo(mi) 95 } 96 return ms 97 } 98 return mi.MessageOf(x) 99 } 100 101 // Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. 102 func (*StatusResponse) Descriptor() ([]byte, []int) { 103 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{1} 104 } 105 106 func (x *StatusResponse) GetActive() bool { 107 if x != nil { 108 return x.Active 109 } 110 return false 111 } 112 113 type ModifyStatusRequest struct { 114 state protoimpl.MessageState 115 sizeCache protoimpl.SizeCache 116 unknownFields protoimpl.UnknownFields 117 118 // Whether the autopilot agent should be enabled or not. 119 Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` 120 } 121 122 func (x *ModifyStatusRequest) Reset() { 123 *x = ModifyStatusRequest{} 124 if protoimpl.UnsafeEnabled { 125 mi := &file_autopilotrpc_autopilot_proto_msgTypes[2] 126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 127 ms.StoreMessageInfo(mi) 128 } 129 } 130 131 func (x *ModifyStatusRequest) String() string { 132 return protoimpl.X.MessageStringOf(x) 133 } 134 135 func (*ModifyStatusRequest) ProtoMessage() {} 136 137 func (x *ModifyStatusRequest) ProtoReflect() protoreflect.Message { 138 mi := &file_autopilotrpc_autopilot_proto_msgTypes[2] 139 if protoimpl.UnsafeEnabled && x != nil { 140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 141 if ms.LoadMessageInfo() == nil { 142 ms.StoreMessageInfo(mi) 143 } 144 return ms 145 } 146 return mi.MessageOf(x) 147 } 148 149 // Deprecated: Use ModifyStatusRequest.ProtoReflect.Descriptor instead. 150 func (*ModifyStatusRequest) Descriptor() ([]byte, []int) { 151 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{2} 152 } 153 154 func (x *ModifyStatusRequest) GetEnable() bool { 155 if x != nil { 156 return x.Enable 157 } 158 return false 159 } 160 161 type ModifyStatusResponse struct { 162 state protoimpl.MessageState 163 sizeCache protoimpl.SizeCache 164 unknownFields protoimpl.UnknownFields 165 } 166 167 func (x *ModifyStatusResponse) Reset() { 168 *x = ModifyStatusResponse{} 169 if protoimpl.UnsafeEnabled { 170 mi := &file_autopilotrpc_autopilot_proto_msgTypes[3] 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 ms.StoreMessageInfo(mi) 173 } 174 } 175 176 func (x *ModifyStatusResponse) String() string { 177 return protoimpl.X.MessageStringOf(x) 178 } 179 180 func (*ModifyStatusResponse) ProtoMessage() {} 181 182 func (x *ModifyStatusResponse) ProtoReflect() protoreflect.Message { 183 mi := &file_autopilotrpc_autopilot_proto_msgTypes[3] 184 if protoimpl.UnsafeEnabled && x != nil { 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 if ms.LoadMessageInfo() == nil { 187 ms.StoreMessageInfo(mi) 188 } 189 return ms 190 } 191 return mi.MessageOf(x) 192 } 193 194 // Deprecated: Use ModifyStatusResponse.ProtoReflect.Descriptor instead. 195 func (*ModifyStatusResponse) Descriptor() ([]byte, []int) { 196 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{3} 197 } 198 199 type QueryScoresRequest struct { 200 state protoimpl.MessageState 201 sizeCache protoimpl.SizeCache 202 unknownFields protoimpl.UnknownFields 203 204 Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` 205 // If set, we will ignore the local channel state when calculating scores. 206 IgnoreLocalState bool `protobuf:"varint,2,opt,name=ignore_local_state,json=ignoreLocalState,proto3" json:"ignore_local_state,omitempty"` 207 } 208 209 func (x *QueryScoresRequest) Reset() { 210 *x = QueryScoresRequest{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_autopilotrpc_autopilot_proto_msgTypes[4] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216 } 217 218 func (x *QueryScoresRequest) String() string { 219 return protoimpl.X.MessageStringOf(x) 220 } 221 222 func (*QueryScoresRequest) ProtoMessage() {} 223 224 func (x *QueryScoresRequest) ProtoReflect() protoreflect.Message { 225 mi := &file_autopilotrpc_autopilot_proto_msgTypes[4] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234 } 235 236 // Deprecated: Use QueryScoresRequest.ProtoReflect.Descriptor instead. 237 func (*QueryScoresRequest) Descriptor() ([]byte, []int) { 238 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{4} 239 } 240 241 func (x *QueryScoresRequest) GetPubkeys() []string { 242 if x != nil { 243 return x.Pubkeys 244 } 245 return nil 246 } 247 248 func (x *QueryScoresRequest) GetIgnoreLocalState() bool { 249 if x != nil { 250 return x.IgnoreLocalState 251 } 252 return false 253 } 254 255 type QueryScoresResponse struct { 256 state protoimpl.MessageState 257 sizeCache protoimpl.SizeCache 258 unknownFields protoimpl.UnknownFields 259 260 Results []*QueryScoresResponse_HeuristicResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 261 } 262 263 func (x *QueryScoresResponse) Reset() { 264 *x = QueryScoresResponse{} 265 if protoimpl.UnsafeEnabled { 266 mi := &file_autopilotrpc_autopilot_proto_msgTypes[5] 267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 268 ms.StoreMessageInfo(mi) 269 } 270 } 271 272 func (x *QueryScoresResponse) String() string { 273 return protoimpl.X.MessageStringOf(x) 274 } 275 276 func (*QueryScoresResponse) ProtoMessage() {} 277 278 func (x *QueryScoresResponse) ProtoReflect() protoreflect.Message { 279 mi := &file_autopilotrpc_autopilot_proto_msgTypes[5] 280 if protoimpl.UnsafeEnabled && x != nil { 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 if ms.LoadMessageInfo() == nil { 283 ms.StoreMessageInfo(mi) 284 } 285 return ms 286 } 287 return mi.MessageOf(x) 288 } 289 290 // Deprecated: Use QueryScoresResponse.ProtoReflect.Descriptor instead. 291 func (*QueryScoresResponse) Descriptor() ([]byte, []int) { 292 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{5} 293 } 294 295 func (x *QueryScoresResponse) GetResults() []*QueryScoresResponse_HeuristicResult { 296 if x != nil { 297 return x.Results 298 } 299 return nil 300 } 301 302 type SetScoresRequest struct { 303 state protoimpl.MessageState 304 sizeCache protoimpl.SizeCache 305 unknownFields protoimpl.UnknownFields 306 307 // The name of the heuristic to provide scores to. 308 Heuristic string `protobuf:"bytes,1,opt,name=heuristic,proto3" json:"heuristic,omitempty"` 309 // A map from hex-encoded public keys to scores. Scores must be in the range 310 // [0.0, 1.0]. 311 Scores map[string]float64 `protobuf:"bytes,2,rep,name=scores,proto3" json:"scores,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` 312 } 313 314 func (x *SetScoresRequest) Reset() { 315 *x = SetScoresRequest{} 316 if protoimpl.UnsafeEnabled { 317 mi := &file_autopilotrpc_autopilot_proto_msgTypes[6] 318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 319 ms.StoreMessageInfo(mi) 320 } 321 } 322 323 func (x *SetScoresRequest) String() string { 324 return protoimpl.X.MessageStringOf(x) 325 } 326 327 func (*SetScoresRequest) ProtoMessage() {} 328 329 func (x *SetScoresRequest) ProtoReflect() protoreflect.Message { 330 mi := &file_autopilotrpc_autopilot_proto_msgTypes[6] 331 if protoimpl.UnsafeEnabled && x != nil { 332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 333 if ms.LoadMessageInfo() == nil { 334 ms.StoreMessageInfo(mi) 335 } 336 return ms 337 } 338 return mi.MessageOf(x) 339 } 340 341 // Deprecated: Use SetScoresRequest.ProtoReflect.Descriptor instead. 342 func (*SetScoresRequest) Descriptor() ([]byte, []int) { 343 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{6} 344 } 345 346 func (x *SetScoresRequest) GetHeuristic() string { 347 if x != nil { 348 return x.Heuristic 349 } 350 return "" 351 } 352 353 func (x *SetScoresRequest) GetScores() map[string]float64 { 354 if x != nil { 355 return x.Scores 356 } 357 return nil 358 } 359 360 type SetScoresResponse struct { 361 state protoimpl.MessageState 362 sizeCache protoimpl.SizeCache 363 unknownFields protoimpl.UnknownFields 364 } 365 366 func (x *SetScoresResponse) Reset() { 367 *x = SetScoresResponse{} 368 if protoimpl.UnsafeEnabled { 369 mi := &file_autopilotrpc_autopilot_proto_msgTypes[7] 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 ms.StoreMessageInfo(mi) 372 } 373 } 374 375 func (x *SetScoresResponse) String() string { 376 return protoimpl.X.MessageStringOf(x) 377 } 378 379 func (*SetScoresResponse) ProtoMessage() {} 380 381 func (x *SetScoresResponse) ProtoReflect() protoreflect.Message { 382 mi := &file_autopilotrpc_autopilot_proto_msgTypes[7] 383 if protoimpl.UnsafeEnabled && x != nil { 384 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 385 if ms.LoadMessageInfo() == nil { 386 ms.StoreMessageInfo(mi) 387 } 388 return ms 389 } 390 return mi.MessageOf(x) 391 } 392 393 // Deprecated: Use SetScoresResponse.ProtoReflect.Descriptor instead. 394 func (*SetScoresResponse) Descriptor() ([]byte, []int) { 395 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{7} 396 } 397 398 type QueryScoresResponse_HeuristicResult struct { 399 state protoimpl.MessageState 400 sizeCache protoimpl.SizeCache 401 unknownFields protoimpl.UnknownFields 402 403 Heuristic string `protobuf:"bytes,1,opt,name=heuristic,proto3" json:"heuristic,omitempty"` 404 Scores map[string]float64 `protobuf:"bytes,2,rep,name=scores,proto3" json:"scores,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` 405 } 406 407 func (x *QueryScoresResponse_HeuristicResult) Reset() { 408 *x = QueryScoresResponse_HeuristicResult{} 409 if protoimpl.UnsafeEnabled { 410 mi := &file_autopilotrpc_autopilot_proto_msgTypes[8] 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 ms.StoreMessageInfo(mi) 413 } 414 } 415 416 func (x *QueryScoresResponse_HeuristicResult) String() string { 417 return protoimpl.X.MessageStringOf(x) 418 } 419 420 func (*QueryScoresResponse_HeuristicResult) ProtoMessage() {} 421 422 func (x *QueryScoresResponse_HeuristicResult) ProtoReflect() protoreflect.Message { 423 mi := &file_autopilotrpc_autopilot_proto_msgTypes[8] 424 if protoimpl.UnsafeEnabled && x != nil { 425 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 426 if ms.LoadMessageInfo() == nil { 427 ms.StoreMessageInfo(mi) 428 } 429 return ms 430 } 431 return mi.MessageOf(x) 432 } 433 434 // Deprecated: Use QueryScoresResponse_HeuristicResult.ProtoReflect.Descriptor instead. 435 func (*QueryScoresResponse_HeuristicResult) Descriptor() ([]byte, []int) { 436 return file_autopilotrpc_autopilot_proto_rawDescGZIP(), []int{5, 0} 437 } 438 439 func (x *QueryScoresResponse_HeuristicResult) GetHeuristic() string { 440 if x != nil { 441 return x.Heuristic 442 } 443 return "" 444 } 445 446 func (x *QueryScoresResponse_HeuristicResult) GetScores() map[string]float64 { 447 if x != nil { 448 return x.Scores 449 } 450 return nil 451 } 452 453 var File_autopilotrpc_autopilot_proto protoreflect.FileDescriptor 454 455 var file_autopilotrpc_autopilot_proto_rawDesc = []byte{ 456 0x0a, 0x1c, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x61, 457 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 458 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x22, 0x0f, 0x0a, 0x0d, 459 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 460 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 461 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 462 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x2d, 0x0a, 0x13, 0x4d, 0x6f, 0x64, 0x69, 0x66, 463 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 464 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 465 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 466 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 467 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 468 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x73, 0x18, 469 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x2c, 470 0x0a, 0x12, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 471 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x67, 0x6e, 0x6f, 472 0x72, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xa6, 0x02, 0x0a, 473 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 474 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 475 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 476 0x74, 0x72, 0x70, 0x63, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 477 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 478 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 479 0x73, 0x1a, 0xc1, 0x01, 0x0a, 0x0f, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 480 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 481 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x75, 0x72, 0x69, 0x73, 482 0x74, 0x69, 0x63, 0x12, 0x55, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 483 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 484 0x70, 0x63, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x65, 485 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 486 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 487 0x72, 0x79, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x53, 0x63, 488 0x6f, 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 489 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 490 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 491 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xaf, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x53, 0x63, 0x6f, 492 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 493 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 494 0x65, 0x75, 0x72, 0x69, 0x73, 0x74, 0x69, 0x63, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 495 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 496 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 497 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x45, 498 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 499 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 500 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 501 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 502 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x53, 0x63, 503 0x6f, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc9, 0x02, 0x0a, 504 0x09, 0x41, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x53, 0x74, 505 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 506 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 507 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 508 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 509 0x55, 0x0a, 0x0c, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 510 0x21, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x4d, 511 0x6f, 0x64, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 512 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 513 0x63, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 514 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 515 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 0x6c, 0x6f, 516 0x74, 0x72, 0x70, 0x63, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 517 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 518 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x72, 519 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x09, 0x53, 0x65, 520 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 521 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 522 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x75, 0x74, 0x6f, 0x70, 0x69, 523 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 524 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 525 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x65, 0x64, 0x2f, 0x64, 0x63, 526 0x72, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x70, 527 0x69, 0x6c, 0x6f, 0x74, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 528 } 529 530 var ( 531 file_autopilotrpc_autopilot_proto_rawDescOnce sync.Once 532 file_autopilotrpc_autopilot_proto_rawDescData = file_autopilotrpc_autopilot_proto_rawDesc 533 ) 534 535 func file_autopilotrpc_autopilot_proto_rawDescGZIP() []byte { 536 file_autopilotrpc_autopilot_proto_rawDescOnce.Do(func() { 537 file_autopilotrpc_autopilot_proto_rawDescData = protoimpl.X.CompressGZIP(file_autopilotrpc_autopilot_proto_rawDescData) 538 }) 539 return file_autopilotrpc_autopilot_proto_rawDescData 540 } 541 542 var file_autopilotrpc_autopilot_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 543 var file_autopilotrpc_autopilot_proto_goTypes = []interface{}{ 544 (*StatusRequest)(nil), // 0: autopilotrpc.StatusRequest 545 (*StatusResponse)(nil), // 1: autopilotrpc.StatusResponse 546 (*ModifyStatusRequest)(nil), // 2: autopilotrpc.ModifyStatusRequest 547 (*ModifyStatusResponse)(nil), // 3: autopilotrpc.ModifyStatusResponse 548 (*QueryScoresRequest)(nil), // 4: autopilotrpc.QueryScoresRequest 549 (*QueryScoresResponse)(nil), // 5: autopilotrpc.QueryScoresResponse 550 (*SetScoresRequest)(nil), // 6: autopilotrpc.SetScoresRequest 551 (*SetScoresResponse)(nil), // 7: autopilotrpc.SetScoresResponse 552 (*QueryScoresResponse_HeuristicResult)(nil), // 8: autopilotrpc.QueryScoresResponse.HeuristicResult 553 nil, // 9: autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntry 554 nil, // 10: autopilotrpc.SetScoresRequest.ScoresEntry 555 } 556 var file_autopilotrpc_autopilot_proto_depIdxs = []int32{ 557 8, // 0: autopilotrpc.QueryScoresResponse.results:type_name -> autopilotrpc.QueryScoresResponse.HeuristicResult 558 10, // 1: autopilotrpc.SetScoresRequest.scores:type_name -> autopilotrpc.SetScoresRequest.ScoresEntry 559 9, // 2: autopilotrpc.QueryScoresResponse.HeuristicResult.scores:type_name -> autopilotrpc.QueryScoresResponse.HeuristicResult.ScoresEntry 560 0, // 3: autopilotrpc.Autopilot.Status:input_type -> autopilotrpc.StatusRequest 561 2, // 4: autopilotrpc.Autopilot.ModifyStatus:input_type -> autopilotrpc.ModifyStatusRequest 562 4, // 5: autopilotrpc.Autopilot.QueryScores:input_type -> autopilotrpc.QueryScoresRequest 563 6, // 6: autopilotrpc.Autopilot.SetScores:input_type -> autopilotrpc.SetScoresRequest 564 1, // 7: autopilotrpc.Autopilot.Status:output_type -> autopilotrpc.StatusResponse 565 3, // 8: autopilotrpc.Autopilot.ModifyStatus:output_type -> autopilotrpc.ModifyStatusResponse 566 5, // 9: autopilotrpc.Autopilot.QueryScores:output_type -> autopilotrpc.QueryScoresResponse 567 7, // 10: autopilotrpc.Autopilot.SetScores:output_type -> autopilotrpc.SetScoresResponse 568 7, // [7:11] is the sub-list for method output_type 569 3, // [3:7] is the sub-list for method input_type 570 3, // [3:3] is the sub-list for extension type_name 571 3, // [3:3] is the sub-list for extension extendee 572 0, // [0:3] is the sub-list for field type_name 573 } 574 575 func init() { file_autopilotrpc_autopilot_proto_init() } 576 func file_autopilotrpc_autopilot_proto_init() { 577 if File_autopilotrpc_autopilot_proto != nil { 578 return 579 } 580 if !protoimpl.UnsafeEnabled { 581 file_autopilotrpc_autopilot_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 582 switch v := v.(*StatusRequest); i { 583 case 0: 584 return &v.state 585 case 1: 586 return &v.sizeCache 587 case 2: 588 return &v.unknownFields 589 default: 590 return nil 591 } 592 } 593 file_autopilotrpc_autopilot_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 594 switch v := v.(*StatusResponse); i { 595 case 0: 596 return &v.state 597 case 1: 598 return &v.sizeCache 599 case 2: 600 return &v.unknownFields 601 default: 602 return nil 603 } 604 } 605 file_autopilotrpc_autopilot_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 606 switch v := v.(*ModifyStatusRequest); i { 607 case 0: 608 return &v.state 609 case 1: 610 return &v.sizeCache 611 case 2: 612 return &v.unknownFields 613 default: 614 return nil 615 } 616 } 617 file_autopilotrpc_autopilot_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 618 switch v := v.(*ModifyStatusResponse); i { 619 case 0: 620 return &v.state 621 case 1: 622 return &v.sizeCache 623 case 2: 624 return &v.unknownFields 625 default: 626 return nil 627 } 628 } 629 file_autopilotrpc_autopilot_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 630 switch v := v.(*QueryScoresRequest); i { 631 case 0: 632 return &v.state 633 case 1: 634 return &v.sizeCache 635 case 2: 636 return &v.unknownFields 637 default: 638 return nil 639 } 640 } 641 file_autopilotrpc_autopilot_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 642 switch v := v.(*QueryScoresResponse); i { 643 case 0: 644 return &v.state 645 case 1: 646 return &v.sizeCache 647 case 2: 648 return &v.unknownFields 649 default: 650 return nil 651 } 652 } 653 file_autopilotrpc_autopilot_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 654 switch v := v.(*SetScoresRequest); i { 655 case 0: 656 return &v.state 657 case 1: 658 return &v.sizeCache 659 case 2: 660 return &v.unknownFields 661 default: 662 return nil 663 } 664 } 665 file_autopilotrpc_autopilot_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 666 switch v := v.(*SetScoresResponse); i { 667 case 0: 668 return &v.state 669 case 1: 670 return &v.sizeCache 671 case 2: 672 return &v.unknownFields 673 default: 674 return nil 675 } 676 } 677 file_autopilotrpc_autopilot_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 678 switch v := v.(*QueryScoresResponse_HeuristicResult); i { 679 case 0: 680 return &v.state 681 case 1: 682 return &v.sizeCache 683 case 2: 684 return &v.unknownFields 685 default: 686 return nil 687 } 688 } 689 } 690 type x struct{} 691 out := protoimpl.TypeBuilder{ 692 File: protoimpl.DescBuilder{ 693 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 694 RawDescriptor: file_autopilotrpc_autopilot_proto_rawDesc, 695 NumEnums: 0, 696 NumMessages: 11, 697 NumExtensions: 0, 698 NumServices: 1, 699 }, 700 GoTypes: file_autopilotrpc_autopilot_proto_goTypes, 701 DependencyIndexes: file_autopilotrpc_autopilot_proto_depIdxs, 702 MessageInfos: file_autopilotrpc_autopilot_proto_msgTypes, 703 }.Build() 704 File_autopilotrpc_autopilot_proto = out.File 705 file_autopilotrpc_autopilot_proto_rawDesc = nil 706 file_autopilotrpc_autopilot_proto_goTypes = nil 707 file_autopilotrpc_autopilot_proto_depIdxs = nil 708 } 709 710 // Reference imports to suppress errors if they are not otherwise used. 711 var _ context.Context 712 var _ grpc.ClientConnInterface 713 714 // This is a compile-time assertion to ensure that this generated file 715 // is compatible with the grpc package it is being compiled against. 716 const _ = grpc.SupportPackageIsVersion6 717 718 // AutopilotClient is the client API for Autopilot service. 719 // 720 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 721 type AutopilotClient interface { 722 // Status returns whether the daemon's autopilot agent is active. 723 Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) 724 // ModifyStatus is used to modify the status of the autopilot agent, like 725 // enabling or disabling it. 726 ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error) 727 // QueryScores queries all available autopilot heuristics, in addition to any 728 // active combination of these heruristics, for the scores they would give to 729 // the given nodes. 730 QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error) 731 // SetScores attempts to set the scores used by the running autopilot agent, 732 // if the external scoring heuristic is enabled. 733 SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error) 734 } 735 736 type autopilotClient struct { 737 cc grpc.ClientConnInterface 738 } 739 740 func NewAutopilotClient(cc grpc.ClientConnInterface) AutopilotClient { 741 return &autopilotClient{cc} 742 } 743 744 func (c *autopilotClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { 745 out := new(StatusResponse) 746 err := c.cc.Invoke(ctx, "/autopilotrpc.Autopilot/Status", in, out, opts...) 747 if err != nil { 748 return nil, err 749 } 750 return out, nil 751 } 752 753 func (c *autopilotClient) ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error) { 754 out := new(ModifyStatusResponse) 755 err := c.cc.Invoke(ctx, "/autopilotrpc.Autopilot/ModifyStatus", in, out, opts...) 756 if err != nil { 757 return nil, err 758 } 759 return out, nil 760 } 761 762 func (c *autopilotClient) QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error) { 763 out := new(QueryScoresResponse) 764 err := c.cc.Invoke(ctx, "/autopilotrpc.Autopilot/QueryScores", in, out, opts...) 765 if err != nil { 766 return nil, err 767 } 768 return out, nil 769 } 770 771 func (c *autopilotClient) SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error) { 772 out := new(SetScoresResponse) 773 err := c.cc.Invoke(ctx, "/autopilotrpc.Autopilot/SetScores", in, out, opts...) 774 if err != nil { 775 return nil, err 776 } 777 return out, nil 778 } 779 780 // AutopilotServer is the server API for Autopilot service. 781 type AutopilotServer interface { 782 // Status returns whether the daemon's autopilot agent is active. 783 Status(context.Context, *StatusRequest) (*StatusResponse, error) 784 // ModifyStatus is used to modify the status of the autopilot agent, like 785 // enabling or disabling it. 786 ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error) 787 // QueryScores queries all available autopilot heuristics, in addition to any 788 // active combination of these heruristics, for the scores they would give to 789 // the given nodes. 790 QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error) 791 // SetScores attempts to set the scores used by the running autopilot agent, 792 // if the external scoring heuristic is enabled. 793 SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error) 794 } 795 796 // UnimplementedAutopilotServer can be embedded to have forward compatible implementations. 797 type UnimplementedAutopilotServer struct { 798 } 799 800 func (*UnimplementedAutopilotServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { 801 return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") 802 } 803 func (*UnimplementedAutopilotServer) ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error) { 804 return nil, status.Errorf(codes.Unimplemented, "method ModifyStatus not implemented") 805 } 806 func (*UnimplementedAutopilotServer) QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error) { 807 return nil, status.Errorf(codes.Unimplemented, "method QueryScores not implemented") 808 } 809 func (*UnimplementedAutopilotServer) SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error) { 810 return nil, status.Errorf(codes.Unimplemented, "method SetScores not implemented") 811 } 812 813 func RegisterAutopilotServer(s *grpc.Server, srv AutopilotServer) { 814 s.RegisterService(&_Autopilot_serviceDesc, srv) 815 } 816 817 func _Autopilot_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 818 in := new(StatusRequest) 819 if err := dec(in); err != nil { 820 return nil, err 821 } 822 if interceptor == nil { 823 return srv.(AutopilotServer).Status(ctx, in) 824 } 825 info := &grpc.UnaryServerInfo{ 826 Server: srv, 827 FullMethod: "/autopilotrpc.Autopilot/Status", 828 } 829 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 830 return srv.(AutopilotServer).Status(ctx, req.(*StatusRequest)) 831 } 832 return interceptor(ctx, in, info, handler) 833 } 834 835 func _Autopilot_ModifyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 836 in := new(ModifyStatusRequest) 837 if err := dec(in); err != nil { 838 return nil, err 839 } 840 if interceptor == nil { 841 return srv.(AutopilotServer).ModifyStatus(ctx, in) 842 } 843 info := &grpc.UnaryServerInfo{ 844 Server: srv, 845 FullMethod: "/autopilotrpc.Autopilot/ModifyStatus", 846 } 847 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 848 return srv.(AutopilotServer).ModifyStatus(ctx, req.(*ModifyStatusRequest)) 849 } 850 return interceptor(ctx, in, info, handler) 851 } 852 853 func _Autopilot_QueryScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 854 in := new(QueryScoresRequest) 855 if err := dec(in); err != nil { 856 return nil, err 857 } 858 if interceptor == nil { 859 return srv.(AutopilotServer).QueryScores(ctx, in) 860 } 861 info := &grpc.UnaryServerInfo{ 862 Server: srv, 863 FullMethod: "/autopilotrpc.Autopilot/QueryScores", 864 } 865 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 866 return srv.(AutopilotServer).QueryScores(ctx, req.(*QueryScoresRequest)) 867 } 868 return interceptor(ctx, in, info, handler) 869 } 870 871 func _Autopilot_SetScores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 872 in := new(SetScoresRequest) 873 if err := dec(in); err != nil { 874 return nil, err 875 } 876 if interceptor == nil { 877 return srv.(AutopilotServer).SetScores(ctx, in) 878 } 879 info := &grpc.UnaryServerInfo{ 880 Server: srv, 881 FullMethod: "/autopilotrpc.Autopilot/SetScores", 882 } 883 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 884 return srv.(AutopilotServer).SetScores(ctx, req.(*SetScoresRequest)) 885 } 886 return interceptor(ctx, in, info, handler) 887 } 888 889 var _Autopilot_serviceDesc = grpc.ServiceDesc{ 890 ServiceName: "autopilotrpc.Autopilot", 891 HandlerType: (*AutopilotServer)(nil), 892 Methods: []grpc.MethodDesc{ 893 { 894 MethodName: "Status", 895 Handler: _Autopilot_Status_Handler, 896 }, 897 { 898 MethodName: "ModifyStatus", 899 Handler: _Autopilot_ModifyStatus_Handler, 900 }, 901 { 902 MethodName: "QueryScores", 903 Handler: _Autopilot_QueryScores_Handler, 904 }, 905 { 906 MethodName: "SetScores", 907 Handler: _Autopilot_SetScores_Handler, 908 }, 909 }, 910 Streams: []grpc.StreamDesc{}, 911 Metadata: "autopilotrpc/autopilot.proto", 912 }