go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/logdog/api/endpoints/coordinator/services/v1/service.pb.go (about) 1 // Copyright 2016 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/logdog/api/endpoints/coordinator/services/v1/service.proto 10 11 package logdog 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 durationpb "google.golang.org/protobuf/types/known/durationpb" 23 emptypb "google.golang.org/protobuf/types/known/emptypb" 24 reflect "reflect" 25 sync "sync" 26 ) 27 28 const ( 29 // Verify that this generated code is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 31 // Verify that runtime/protoimpl is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 33 ) 34 35 // Error is a projection of a gRPC error. 36 // 37 // NOTE: This and its helper functions may be useful more generally. Maybe 38 // transplant this to a more general place such as "//grpc" if it ends up being 39 // useful. 40 type Error struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // The gRPC code for this error. 46 GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"` 47 // Transient is true if this is a transient error. 48 Transient bool `protobuf:"varint,2,opt,name=transient,proto3" json:"transient,omitempty"` 49 // An optional associated message. 50 Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` 51 } 52 53 func (x *Error) Reset() { 54 *x = Error{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *Error) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*Error) ProtoMessage() {} 67 68 func (x *Error) ProtoReflect() protoreflect.Message { 69 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use Error.ProtoReflect.Descriptor instead. 81 func (*Error) Descriptor() ([]byte, []int) { 82 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *Error) GetGrpcCode() int32 { 86 if x != nil { 87 return x.GrpcCode 88 } 89 return 0 90 } 91 92 func (x *Error) GetTransient() bool { 93 if x != nil { 94 return x.Transient 95 } 96 return false 97 } 98 99 func (x *Error) GetMsg() string { 100 if x != nil { 101 return x.Msg 102 } 103 return "" 104 } 105 106 // RegisterStreamRequest is the set of caller-supplied data for the 107 // RegisterStream Coordinator service endpoint. 108 type RegisterStreamRequest struct { 109 state protoimpl.MessageState 110 sizeCache protoimpl.SizeCache 111 unknownFields protoimpl.UnknownFields 112 113 // The log stream's project. 114 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 115 // The log stream's secret. 116 Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` 117 // The protobuf version string for this stream. 118 ProtoVersion string `protobuf:"bytes,3,opt,name=proto_version,json=protoVersion,proto3" json:"proto_version,omitempty"` 119 // The serialized LogStreamDescriptor protobuf for this stream. 120 Desc []byte `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` 121 // The stream's terminal index. If >= 0, the terminal index will be set 122 // in the registration request, avoiding the need for an additional 123 // termination RPC. 124 TerminalIndex int64 `protobuf:"varint,5,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"` 125 } 126 127 func (x *RegisterStreamRequest) Reset() { 128 *x = RegisterStreamRequest{} 129 if protoimpl.UnsafeEnabled { 130 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1] 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 ms.StoreMessageInfo(mi) 133 } 134 } 135 136 func (x *RegisterStreamRequest) String() string { 137 return protoimpl.X.MessageStringOf(x) 138 } 139 140 func (*RegisterStreamRequest) ProtoMessage() {} 141 142 func (x *RegisterStreamRequest) ProtoReflect() protoreflect.Message { 143 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1] 144 if protoimpl.UnsafeEnabled && x != nil { 145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 146 if ms.LoadMessageInfo() == nil { 147 ms.StoreMessageInfo(mi) 148 } 149 return ms 150 } 151 return mi.MessageOf(x) 152 } 153 154 // Deprecated: Use RegisterStreamRequest.ProtoReflect.Descriptor instead. 155 func (*RegisterStreamRequest) Descriptor() ([]byte, []int) { 156 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{1} 157 } 158 159 func (x *RegisterStreamRequest) GetProject() string { 160 if x != nil { 161 return x.Project 162 } 163 return "" 164 } 165 166 func (x *RegisterStreamRequest) GetSecret() []byte { 167 if x != nil { 168 return x.Secret 169 } 170 return nil 171 } 172 173 func (x *RegisterStreamRequest) GetProtoVersion() string { 174 if x != nil { 175 return x.ProtoVersion 176 } 177 return "" 178 } 179 180 func (x *RegisterStreamRequest) GetDesc() []byte { 181 if x != nil { 182 return x.Desc 183 } 184 return nil 185 } 186 187 func (x *RegisterStreamRequest) GetTerminalIndex() int64 { 188 if x != nil { 189 return x.TerminalIndex 190 } 191 return 0 192 } 193 194 // The response message for the RegisterStream RPC. 195 type RegisterStreamResponse struct { 196 state protoimpl.MessageState 197 sizeCache protoimpl.SizeCache 198 unknownFields protoimpl.UnknownFields 199 200 // The Coordinator ID of the log stream. 201 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 202 // The state of the requested log stream. 203 State *InternalLogStreamState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` 204 // Error is the error response. 205 Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` 206 } 207 208 func (x *RegisterStreamResponse) Reset() { 209 *x = RegisterStreamResponse{} 210 if protoimpl.UnsafeEnabled { 211 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2] 212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 213 ms.StoreMessageInfo(mi) 214 } 215 } 216 217 func (x *RegisterStreamResponse) String() string { 218 return protoimpl.X.MessageStringOf(x) 219 } 220 221 func (*RegisterStreamResponse) ProtoMessage() {} 222 223 func (x *RegisterStreamResponse) ProtoReflect() protoreflect.Message { 224 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2] 225 if protoimpl.UnsafeEnabled && x != nil { 226 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 227 if ms.LoadMessageInfo() == nil { 228 ms.StoreMessageInfo(mi) 229 } 230 return ms 231 } 232 return mi.MessageOf(x) 233 } 234 235 // Deprecated: Use RegisterStreamResponse.ProtoReflect.Descriptor instead. 236 func (*RegisterStreamResponse) Descriptor() ([]byte, []int) { 237 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{2} 238 } 239 240 func (x *RegisterStreamResponse) GetId() string { 241 if x != nil { 242 return x.Id 243 } 244 return "" 245 } 246 247 func (x *RegisterStreamResponse) GetState() *InternalLogStreamState { 248 if x != nil { 249 return x.State 250 } 251 return nil 252 } 253 254 func (x *RegisterStreamResponse) GetError() *Error { 255 if x != nil { 256 return x.Error 257 } 258 return nil 259 } 260 261 // LoadStreamRequest loads the current state of a log stream. 262 type LoadStreamRequest struct { 263 state protoimpl.MessageState 264 sizeCache protoimpl.SizeCache 265 unknownFields protoimpl.UnknownFields 266 267 // The log stream's project. 268 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 269 // The log stream's path Coordinator ID. 270 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 271 // If true, include the log stream descriptor. 272 Desc bool `protobuf:"varint,3,opt,name=desc,proto3" json:"desc,omitempty"` 273 } 274 275 func (x *LoadStreamRequest) Reset() { 276 *x = LoadStreamRequest{} 277 if protoimpl.UnsafeEnabled { 278 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3] 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 ms.StoreMessageInfo(mi) 281 } 282 } 283 284 func (x *LoadStreamRequest) String() string { 285 return protoimpl.X.MessageStringOf(x) 286 } 287 288 func (*LoadStreamRequest) ProtoMessage() {} 289 290 func (x *LoadStreamRequest) ProtoReflect() protoreflect.Message { 291 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3] 292 if protoimpl.UnsafeEnabled && x != nil { 293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 294 if ms.LoadMessageInfo() == nil { 295 ms.StoreMessageInfo(mi) 296 } 297 return ms 298 } 299 return mi.MessageOf(x) 300 } 301 302 // Deprecated: Use LoadStreamRequest.ProtoReflect.Descriptor instead. 303 func (*LoadStreamRequest) Descriptor() ([]byte, []int) { 304 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{3} 305 } 306 307 func (x *LoadStreamRequest) GetProject() string { 308 if x != nil { 309 return x.Project 310 } 311 return "" 312 } 313 314 func (x *LoadStreamRequest) GetId() string { 315 if x != nil { 316 return x.Id 317 } 318 return "" 319 } 320 321 func (x *LoadStreamRequest) GetDesc() bool { 322 if x != nil { 323 return x.Desc 324 } 325 return false 326 } 327 328 // The response message for the LoadStream RPC. 329 type LoadStreamResponse struct { 330 state protoimpl.MessageState 331 sizeCache protoimpl.SizeCache 332 unknownFields protoimpl.UnknownFields 333 334 // The state of the requested log stream. 335 State *InternalLogStreamState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 336 // If requested, the serialized log stream descriptor. The protobuf version 337 // of this descriptor will match the "proto_version" field in "state". 338 Desc []byte `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` 339 // The age of the log stream. 340 Age *durationpb.Duration `protobuf:"bytes,3,opt,name=age,proto3" json:"age,omitempty"` 341 // The archival key of the log stream. If this key doesn't match the key in 342 // the archival request, the request is superfluous and should be deleted. 343 ArchivalKey []byte `protobuf:"bytes,4,opt,name=archival_key,json=archivalKey,proto3" json:"archival_key,omitempty"` 344 } 345 346 func (x *LoadStreamResponse) Reset() { 347 *x = LoadStreamResponse{} 348 if protoimpl.UnsafeEnabled { 349 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4] 350 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 351 ms.StoreMessageInfo(mi) 352 } 353 } 354 355 func (x *LoadStreamResponse) String() string { 356 return protoimpl.X.MessageStringOf(x) 357 } 358 359 func (*LoadStreamResponse) ProtoMessage() {} 360 361 func (x *LoadStreamResponse) ProtoReflect() protoreflect.Message { 362 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4] 363 if protoimpl.UnsafeEnabled && x != nil { 364 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 365 if ms.LoadMessageInfo() == nil { 366 ms.StoreMessageInfo(mi) 367 } 368 return ms 369 } 370 return mi.MessageOf(x) 371 } 372 373 // Deprecated: Use LoadStreamResponse.ProtoReflect.Descriptor instead. 374 func (*LoadStreamResponse) Descriptor() ([]byte, []int) { 375 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{4} 376 } 377 378 func (x *LoadStreamResponse) GetState() *InternalLogStreamState { 379 if x != nil { 380 return x.State 381 } 382 return nil 383 } 384 385 func (x *LoadStreamResponse) GetDesc() []byte { 386 if x != nil { 387 return x.Desc 388 } 389 return nil 390 } 391 392 func (x *LoadStreamResponse) GetAge() *durationpb.Duration { 393 if x != nil { 394 return x.Age 395 } 396 return nil 397 } 398 399 func (x *LoadStreamResponse) GetArchivalKey() []byte { 400 if x != nil { 401 return x.ArchivalKey 402 } 403 return nil 404 } 405 406 // TerminateStreamRequest is the set of caller-supplied data for the 407 // TerminateStream service endpoint. 408 type TerminateStreamRequest struct { 409 state protoimpl.MessageState 410 sizeCache protoimpl.SizeCache 411 unknownFields protoimpl.UnknownFields 412 413 // The log stream's project. 414 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 415 // The log stream's path Coordinator ID. 416 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 417 // The log stream's secret. 418 Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` 419 // The terminal index of the stream. 420 TerminalIndex int64 `protobuf:"varint,4,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"` 421 } 422 423 func (x *TerminateStreamRequest) Reset() { 424 *x = TerminateStreamRequest{} 425 if protoimpl.UnsafeEnabled { 426 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5] 427 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 428 ms.StoreMessageInfo(mi) 429 } 430 } 431 432 func (x *TerminateStreamRequest) String() string { 433 return protoimpl.X.MessageStringOf(x) 434 } 435 436 func (*TerminateStreamRequest) ProtoMessage() {} 437 438 func (x *TerminateStreamRequest) ProtoReflect() protoreflect.Message { 439 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5] 440 if protoimpl.UnsafeEnabled && x != nil { 441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 442 if ms.LoadMessageInfo() == nil { 443 ms.StoreMessageInfo(mi) 444 } 445 return ms 446 } 447 return mi.MessageOf(x) 448 } 449 450 // Deprecated: Use TerminateStreamRequest.ProtoReflect.Descriptor instead. 451 func (*TerminateStreamRequest) Descriptor() ([]byte, []int) { 452 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{5} 453 } 454 455 func (x *TerminateStreamRequest) GetProject() string { 456 if x != nil { 457 return x.Project 458 } 459 return "" 460 } 461 462 func (x *TerminateStreamRequest) GetId() string { 463 if x != nil { 464 return x.Id 465 } 466 return "" 467 } 468 469 func (x *TerminateStreamRequest) GetSecret() []byte { 470 if x != nil { 471 return x.Secret 472 } 473 return nil 474 } 475 476 func (x *TerminateStreamRequest) GetTerminalIndex() int64 { 477 if x != nil { 478 return x.TerminalIndex 479 } 480 return 0 481 } 482 483 // ArchiveStreamRequest is the set of caller-supplied data for the ArchiveStream 484 // service endpoint. 485 type ArchiveStreamRequest struct { 486 state protoimpl.MessageState 487 sizeCache protoimpl.SizeCache 488 unknownFields protoimpl.UnknownFields 489 490 // The log stream's project. 491 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 492 // The Coordinator ID of the log stream that was archived. 493 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 494 // The number of log entries that were archived. 495 LogEntryCount int64 `protobuf:"varint,3,opt,name=log_entry_count,json=logEntryCount,proto3" json:"log_entry_count,omitempty"` 496 // The highest log stream index that was archived. 497 TerminalIndex int64 `protobuf:"varint,4,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"` 498 // If not empty, there was an archival error. 499 // 500 // This field serves to indicate that an error occurred (being non-empty) and 501 // to supply an value that will show up in the Coordinator ArchiveStream 502 // endpoint logs. 503 Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` 504 // The archive URL of the log stream's stream data. 505 StreamUrl string `protobuf:"bytes,10,opt,name=stream_url,json=streamUrl,proto3" json:"stream_url,omitempty"` 506 // The size of the log stream's stream data. 507 StreamSize int64 `protobuf:"varint,11,opt,name=stream_size,json=streamSize,proto3" json:"stream_size,omitempty"` 508 // The archive URL of the log stream's index data. 509 IndexUrl string `protobuf:"bytes,20,opt,name=index_url,json=indexUrl,proto3" json:"index_url,omitempty"` 510 // The size of the log stream's index data. 511 IndexSize int64 `protobuf:"varint,21,opt,name=index_size,json=indexSize,proto3" json:"index_size,omitempty"` 512 } 513 514 func (x *ArchiveStreamRequest) Reset() { 515 *x = ArchiveStreamRequest{} 516 if protoimpl.UnsafeEnabled { 517 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6] 518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 519 ms.StoreMessageInfo(mi) 520 } 521 } 522 523 func (x *ArchiveStreamRequest) String() string { 524 return protoimpl.X.MessageStringOf(x) 525 } 526 527 func (*ArchiveStreamRequest) ProtoMessage() {} 528 529 func (x *ArchiveStreamRequest) ProtoReflect() protoreflect.Message { 530 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6] 531 if protoimpl.UnsafeEnabled && x != nil { 532 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 533 if ms.LoadMessageInfo() == nil { 534 ms.StoreMessageInfo(mi) 535 } 536 return ms 537 } 538 return mi.MessageOf(x) 539 } 540 541 // Deprecated: Use ArchiveStreamRequest.ProtoReflect.Descriptor instead. 542 func (*ArchiveStreamRequest) Descriptor() ([]byte, []int) { 543 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{6} 544 } 545 546 func (x *ArchiveStreamRequest) GetProject() string { 547 if x != nil { 548 return x.Project 549 } 550 return "" 551 } 552 553 func (x *ArchiveStreamRequest) GetId() string { 554 if x != nil { 555 return x.Id 556 } 557 return "" 558 } 559 560 func (x *ArchiveStreamRequest) GetLogEntryCount() int64 { 561 if x != nil { 562 return x.LogEntryCount 563 } 564 return 0 565 } 566 567 func (x *ArchiveStreamRequest) GetTerminalIndex() int64 { 568 if x != nil { 569 return x.TerminalIndex 570 } 571 return 0 572 } 573 574 func (x *ArchiveStreamRequest) GetError() string { 575 if x != nil { 576 return x.Error 577 } 578 return "" 579 } 580 581 func (x *ArchiveStreamRequest) GetStreamUrl() string { 582 if x != nil { 583 return x.StreamUrl 584 } 585 return "" 586 } 587 588 func (x *ArchiveStreamRequest) GetStreamSize() int64 { 589 if x != nil { 590 return x.StreamSize 591 } 592 return 0 593 } 594 595 func (x *ArchiveStreamRequest) GetIndexUrl() string { 596 if x != nil { 597 return x.IndexUrl 598 } 599 return "" 600 } 601 602 func (x *ArchiveStreamRequest) GetIndexSize() int64 { 603 if x != nil { 604 return x.IndexSize 605 } 606 return 0 607 } 608 609 // BatchRequest is a batch of individual requests to make to the Coordinator. 610 type BatchRequest struct { 611 state protoimpl.MessageState 612 sizeCache protoimpl.SizeCache 613 unknownFields protoimpl.UnknownFields 614 615 Req []*BatchRequest_Entry `protobuf:"bytes,1,rep,name=req,proto3" json:"req,omitempty"` 616 } 617 618 func (x *BatchRequest) Reset() { 619 *x = BatchRequest{} 620 if protoimpl.UnsafeEnabled { 621 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7] 622 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 623 ms.StoreMessageInfo(mi) 624 } 625 } 626 627 func (x *BatchRequest) String() string { 628 return protoimpl.X.MessageStringOf(x) 629 } 630 631 func (*BatchRequest) ProtoMessage() {} 632 633 func (x *BatchRequest) ProtoReflect() protoreflect.Message { 634 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7] 635 if protoimpl.UnsafeEnabled && x != nil { 636 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 637 if ms.LoadMessageInfo() == nil { 638 ms.StoreMessageInfo(mi) 639 } 640 return ms 641 } 642 return mi.MessageOf(x) 643 } 644 645 // Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead. 646 func (*BatchRequest) Descriptor() ([]byte, []int) { 647 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{7} 648 } 649 650 func (x *BatchRequest) GetReq() []*BatchRequest_Entry { 651 if x != nil { 652 return x.Req 653 } 654 return nil 655 } 656 657 // BatchResponse is a response to a BatchRequest. 658 type BatchResponse struct { 659 state protoimpl.MessageState 660 sizeCache protoimpl.SizeCache 661 unknownFields protoimpl.UnknownFields 662 663 Resp []*BatchResponse_Entry `protobuf:"bytes,1,rep,name=resp,proto3" json:"resp,omitempty"` 664 } 665 666 func (x *BatchResponse) Reset() { 667 *x = BatchResponse{} 668 if protoimpl.UnsafeEnabled { 669 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8] 670 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 671 ms.StoreMessageInfo(mi) 672 } 673 } 674 675 func (x *BatchResponse) String() string { 676 return protoimpl.X.MessageStringOf(x) 677 } 678 679 func (*BatchResponse) ProtoMessage() {} 680 681 func (x *BatchResponse) ProtoReflect() protoreflect.Message { 682 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8] 683 if protoimpl.UnsafeEnabled && x != nil { 684 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 685 if ms.LoadMessageInfo() == nil { 686 ms.StoreMessageInfo(mi) 687 } 688 return ms 689 } 690 return mi.MessageOf(x) 691 } 692 693 // Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead. 694 func (*BatchResponse) Descriptor() ([]byte, []int) { 695 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{8} 696 } 697 698 func (x *BatchResponse) GetResp() []*BatchResponse_Entry { 699 if x != nil { 700 return x.Resp 701 } 702 return nil 703 } 704 705 type LeaseRequest struct { 706 state protoimpl.MessageState 707 sizeCache protoimpl.SizeCache 708 unknownFields protoimpl.UnknownFields 709 710 MaxTasks int64 `protobuf:"varint,1,opt,name=max_tasks,json=maxTasks,proto3" json:"max_tasks,omitempty"` 711 LeaseTime *durationpb.Duration `protobuf:"bytes,2,opt,name=lease_time,json=leaseTime,proto3" json:"lease_time,omitempty"` 712 } 713 714 func (x *LeaseRequest) Reset() { 715 *x = LeaseRequest{} 716 if protoimpl.UnsafeEnabled { 717 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9] 718 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 719 ms.StoreMessageInfo(mi) 720 } 721 } 722 723 func (x *LeaseRequest) String() string { 724 return protoimpl.X.MessageStringOf(x) 725 } 726 727 func (*LeaseRequest) ProtoMessage() {} 728 729 func (x *LeaseRequest) ProtoReflect() protoreflect.Message { 730 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9] 731 if protoimpl.UnsafeEnabled && x != nil { 732 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 733 if ms.LoadMessageInfo() == nil { 734 ms.StoreMessageInfo(mi) 735 } 736 return ms 737 } 738 return mi.MessageOf(x) 739 } 740 741 // Deprecated: Use LeaseRequest.ProtoReflect.Descriptor instead. 742 func (*LeaseRequest) Descriptor() ([]byte, []int) { 743 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{9} 744 } 745 746 func (x *LeaseRequest) GetMaxTasks() int64 { 747 if x != nil { 748 return x.MaxTasks 749 } 750 return 0 751 } 752 753 func (x *LeaseRequest) GetLeaseTime() *durationpb.Duration { 754 if x != nil { 755 return x.LeaseTime 756 } 757 return nil 758 } 759 760 type LeaseResponse struct { 761 state protoimpl.MessageState 762 sizeCache protoimpl.SizeCache 763 unknownFields protoimpl.UnknownFields 764 765 // Tasks are tasks leased to the caller. Only Project and Id are filled. 766 Tasks []*ArchiveTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` 767 } 768 769 func (x *LeaseResponse) Reset() { 770 *x = LeaseResponse{} 771 if protoimpl.UnsafeEnabled { 772 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10] 773 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 774 ms.StoreMessageInfo(mi) 775 } 776 } 777 778 func (x *LeaseResponse) String() string { 779 return protoimpl.X.MessageStringOf(x) 780 } 781 782 func (*LeaseResponse) ProtoMessage() {} 783 784 func (x *LeaseResponse) ProtoReflect() protoreflect.Message { 785 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10] 786 if protoimpl.UnsafeEnabled && x != nil { 787 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 788 if ms.LoadMessageInfo() == nil { 789 ms.StoreMessageInfo(mi) 790 } 791 return ms 792 } 793 return mi.MessageOf(x) 794 } 795 796 // Deprecated: Use LeaseResponse.ProtoReflect.Descriptor instead. 797 func (*LeaseResponse) Descriptor() ([]byte, []int) { 798 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{10} 799 } 800 801 func (x *LeaseResponse) GetTasks() []*ArchiveTask { 802 if x != nil { 803 return x.Tasks 804 } 805 return nil 806 } 807 808 type DeleteRequest struct { 809 state protoimpl.MessageState 810 sizeCache protoimpl.SizeCache 811 unknownFields protoimpl.UnknownFields 812 813 // Tasks are tasks the caller wants to delete. Only Project and Id are required. 814 Tasks []*ArchiveTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` 815 } 816 817 func (x *DeleteRequest) Reset() { 818 *x = DeleteRequest{} 819 if protoimpl.UnsafeEnabled { 820 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11] 821 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 822 ms.StoreMessageInfo(mi) 823 } 824 } 825 826 func (x *DeleteRequest) String() string { 827 return protoimpl.X.MessageStringOf(x) 828 } 829 830 func (*DeleteRequest) ProtoMessage() {} 831 832 func (x *DeleteRequest) ProtoReflect() protoreflect.Message { 833 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11] 834 if protoimpl.UnsafeEnabled && x != nil { 835 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 836 if ms.LoadMessageInfo() == nil { 837 ms.StoreMessageInfo(mi) 838 } 839 return ms 840 } 841 return mi.MessageOf(x) 842 } 843 844 // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. 845 func (*DeleteRequest) Descriptor() ([]byte, []int) { 846 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{11} 847 } 848 849 func (x *DeleteRequest) GetTasks() []*ArchiveTask { 850 if x != nil { 851 return x.Tasks 852 } 853 return nil 854 } 855 856 // The collection of batched requests. 857 type BatchRequest_Entry struct { 858 state protoimpl.MessageState 859 sizeCache protoimpl.SizeCache 860 unknownFields protoimpl.UnknownFields 861 862 // Types that are assignable to Value: 863 // 864 // *BatchRequest_Entry_RegisterStream 865 // *BatchRequest_Entry_LoadStream 866 // *BatchRequest_Entry_TerminateStream 867 // *BatchRequest_Entry_ArchiveStream 868 Value isBatchRequest_Entry_Value `protobuf_oneof:"value"` 869 } 870 871 func (x *BatchRequest_Entry) Reset() { 872 *x = BatchRequest_Entry{} 873 if protoimpl.UnsafeEnabled { 874 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12] 875 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 876 ms.StoreMessageInfo(mi) 877 } 878 } 879 880 func (x *BatchRequest_Entry) String() string { 881 return protoimpl.X.MessageStringOf(x) 882 } 883 884 func (*BatchRequest_Entry) ProtoMessage() {} 885 886 func (x *BatchRequest_Entry) ProtoReflect() protoreflect.Message { 887 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12] 888 if protoimpl.UnsafeEnabled && x != nil { 889 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 890 if ms.LoadMessageInfo() == nil { 891 ms.StoreMessageInfo(mi) 892 } 893 return ms 894 } 895 return mi.MessageOf(x) 896 } 897 898 // Deprecated: Use BatchRequest_Entry.ProtoReflect.Descriptor instead. 899 func (*BatchRequest_Entry) Descriptor() ([]byte, []int) { 900 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{7, 0} 901 } 902 903 func (m *BatchRequest_Entry) GetValue() isBatchRequest_Entry_Value { 904 if m != nil { 905 return m.Value 906 } 907 return nil 908 } 909 910 func (x *BatchRequest_Entry) GetRegisterStream() *RegisterStreamRequest { 911 if x, ok := x.GetValue().(*BatchRequest_Entry_RegisterStream); ok { 912 return x.RegisterStream 913 } 914 return nil 915 } 916 917 func (x *BatchRequest_Entry) GetLoadStream() *LoadStreamRequest { 918 if x, ok := x.GetValue().(*BatchRequest_Entry_LoadStream); ok { 919 return x.LoadStream 920 } 921 return nil 922 } 923 924 func (x *BatchRequest_Entry) GetTerminateStream() *TerminateStreamRequest { 925 if x, ok := x.GetValue().(*BatchRequest_Entry_TerminateStream); ok { 926 return x.TerminateStream 927 } 928 return nil 929 } 930 931 func (x *BatchRequest_Entry) GetArchiveStream() *ArchiveStreamRequest { 932 if x, ok := x.GetValue().(*BatchRequest_Entry_ArchiveStream); ok { 933 return x.ArchiveStream 934 } 935 return nil 936 } 937 938 type isBatchRequest_Entry_Value interface { 939 isBatchRequest_Entry_Value() 940 } 941 942 type BatchRequest_Entry_RegisterStream struct { 943 RegisterStream *RegisterStreamRequest `protobuf:"bytes,1,opt,name=register_stream,json=registerStream,proto3,oneof"` 944 } 945 946 type BatchRequest_Entry_LoadStream struct { 947 LoadStream *LoadStreamRequest `protobuf:"bytes,2,opt,name=load_stream,json=loadStream,proto3,oneof"` 948 } 949 950 type BatchRequest_Entry_TerminateStream struct { 951 TerminateStream *TerminateStreamRequest `protobuf:"bytes,3,opt,name=terminate_stream,json=terminateStream,proto3,oneof"` 952 } 953 954 type BatchRequest_Entry_ArchiveStream struct { 955 ArchiveStream *ArchiveStreamRequest `protobuf:"bytes,4,opt,name=archive_stream,json=archiveStream,proto3,oneof"` 956 } 957 958 func (*BatchRequest_Entry_RegisterStream) isBatchRequest_Entry_Value() {} 959 960 func (*BatchRequest_Entry_LoadStream) isBatchRequest_Entry_Value() {} 961 962 func (*BatchRequest_Entry_TerminateStream) isBatchRequest_Entry_Value() {} 963 964 func (*BatchRequest_Entry_ArchiveStream) isBatchRequest_Entry_Value() {} 965 966 // The collection of batched requests. 967 // 968 // Each entry corresponds to the BatchRequest entry with the specified index. 969 // 970 // Entry objects may appear out of order with their request indexes. Some 971 // responses may also be missing, if the remote end could not provide them 972 // due to constraints (e.g., size, time). 973 type BatchResponse_Entry struct { 974 state protoimpl.MessageState 975 sizeCache protoimpl.SizeCache 976 unknownFields protoimpl.UnknownFields 977 978 // The index in the BatchRequest for this entry. 979 Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` 980 // Types that are assignable to Value: 981 // 982 // *BatchResponse_Entry_Err 983 // *BatchResponse_Entry_RegisterStream 984 // *BatchResponse_Entry_LoadStream 985 Value isBatchResponse_Entry_Value `protobuf_oneof:"value"` 986 } 987 988 func (x *BatchResponse_Entry) Reset() { 989 *x = BatchResponse_Entry{} 990 if protoimpl.UnsafeEnabled { 991 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13] 992 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 993 ms.StoreMessageInfo(mi) 994 } 995 } 996 997 func (x *BatchResponse_Entry) String() string { 998 return protoimpl.X.MessageStringOf(x) 999 } 1000 1001 func (*BatchResponse_Entry) ProtoMessage() {} 1002 1003 func (x *BatchResponse_Entry) ProtoReflect() protoreflect.Message { 1004 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13] 1005 if protoimpl.UnsafeEnabled && x != nil { 1006 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1007 if ms.LoadMessageInfo() == nil { 1008 ms.StoreMessageInfo(mi) 1009 } 1010 return ms 1011 } 1012 return mi.MessageOf(x) 1013 } 1014 1015 // Deprecated: Use BatchResponse_Entry.ProtoReflect.Descriptor instead. 1016 func (*BatchResponse_Entry) Descriptor() ([]byte, []int) { 1017 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{8, 0} 1018 } 1019 1020 func (x *BatchResponse_Entry) GetIndex() int32 { 1021 if x != nil { 1022 return x.Index 1023 } 1024 return 0 1025 } 1026 1027 func (m *BatchResponse_Entry) GetValue() isBatchResponse_Entry_Value { 1028 if m != nil { 1029 return m.Value 1030 } 1031 return nil 1032 } 1033 1034 func (x *BatchResponse_Entry) GetErr() *Error { 1035 if x, ok := x.GetValue().(*BatchResponse_Entry_Err); ok { 1036 return x.Err 1037 } 1038 return nil 1039 } 1040 1041 func (x *BatchResponse_Entry) GetRegisterStream() *RegisterStreamResponse { 1042 if x, ok := x.GetValue().(*BatchResponse_Entry_RegisterStream); ok { 1043 return x.RegisterStream 1044 } 1045 return nil 1046 } 1047 1048 func (x *BatchResponse_Entry) GetLoadStream() *LoadStreamResponse { 1049 if x, ok := x.GetValue().(*BatchResponse_Entry_LoadStream); ok { 1050 return x.LoadStream 1051 } 1052 return nil 1053 } 1054 1055 type isBatchResponse_Entry_Value interface { 1056 isBatchResponse_Entry_Value() 1057 } 1058 1059 type BatchResponse_Entry_Err struct { 1060 Err *Error `protobuf:"bytes,2,opt,name=err,proto3,oneof"` 1061 } 1062 1063 type BatchResponse_Entry_RegisterStream struct { 1064 RegisterStream *RegisterStreamResponse `protobuf:"bytes,3,opt,name=register_stream,json=registerStream,proto3,oneof"` 1065 } 1066 1067 type BatchResponse_Entry_LoadStream struct { 1068 LoadStream *LoadStreamResponse `protobuf:"bytes,4,opt,name=load_stream,json=loadStream,proto3,oneof"` 1069 } 1070 1071 func (*BatchResponse_Entry_Err) isBatchResponse_Entry_Value() {} 1072 1073 func (*BatchResponse_Entry_RegisterStream) isBatchResponse_Entry_Value() {} 1074 1075 func (*BatchResponse_Entry_LoadStream) isBatchResponse_Entry_Value() {} 1076 1077 var File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto protoreflect.FileDescriptor 1078 1079 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc = []byte{ 1080 0x0a, 0x4f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 1081 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 1082 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 1083 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 1084 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 1085 0x6f, 0x12, 0x06, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x1a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 1086 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 1087 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 1088 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 1089 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 1090 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 1091 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 1092 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 1093 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 1094 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 1095 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 1096 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 1097 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 1098 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 1099 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 1100 0x09, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 1101 0x52, 0x08, 0x67, 0x72, 0x70, 0x63, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 1102 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 1103 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 1104 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xa9, 0x01, 0x0a, 0x15, 0x52, 1105 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 1106 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 1107 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 1108 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 1109 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 1110 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 1111 0x72, 0x6f, 0x74, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x64, 1112 0x65, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 1113 0x25, 0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 1114 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 1115 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x83, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 1116 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 1117 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 1118 0x64, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 1119 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 1120 0x61, 0x6c, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 1121 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 1122 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 1123 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x11, 1124 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 1125 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 1126 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 1127 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 1128 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x22, 1129 0xae, 0x01, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 1130 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 1131 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x49, 1132 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 1133 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 1134 0x64, 0x65, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 1135 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 1136 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 1137 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 1138 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 1139 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x4b, 0x65, 0x79, 1140 0x22, 0x81, 0x01, 0x0a, 0x16, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 1141 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 1142 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 1143 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 1144 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 1145 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 1146 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 1147 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x49, 1148 0x6e, 0x64, 0x65, 0x78, 0x22, 0xc2, 0x02, 0x0a, 0x14, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 1149 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 1150 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 1151 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 1152 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 1153 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 1154 0x52, 0x0d, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 1155 0x25, 0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 1156 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 1157 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 1158 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 1159 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 1160 0x52, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x55, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 1161 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 1162 0x52, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 1163 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 1164 0x08, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x64, 1165 0x65, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x69, 1166 0x6e, 0x64, 0x65, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x4a, 0x04, 0x08, 0x1e, 0x10, 0x1f, 0x4a, 0x04, 1167 0x08, 0x1f, 0x10, 0x20, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x52, 0x09, 1168 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x22, 0xeb, 0x02, 0x0a, 0x0c, 0x42, 0x61, 1169 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x72, 0x65, 1170 0x71, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 1171 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 1172 0x74, 0x72, 0x79, 0x52, 0x03, 0x72, 0x65, 0x71, 0x1a, 0xac, 0x02, 0x0a, 0x05, 0x45, 0x6e, 0x74, 1173 0x72, 0x79, 0x12, 0x48, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 1174 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x6f, 1175 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 1176 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 1177 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3c, 0x0a, 0x0b, 1178 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 1179 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 1180 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 1181 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x4b, 0x0a, 0x10, 0x74, 0x65, 1182 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x03, 1183 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x54, 0x65, 1184 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 1185 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 1186 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x45, 0x0a, 0x0e, 0x61, 0x72, 0x63, 0x68, 0x69, 1187 0x76, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 1188 0x1c, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 1189 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 1190 0x0d, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x07, 1191 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x96, 0x02, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 1192 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x72, 0x65, 0x73, 1193 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 1194 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 1195 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x72, 0x65, 0x73, 0x70, 0x1a, 0xd3, 0x01, 0x0a, 0x05, 0x45, 1196 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 1197 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x03, 0x65, 0x72, 1198 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 1199 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x03, 0x65, 0x72, 0x72, 0x12, 0x49, 0x0a, 1200 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 1201 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 1202 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 1203 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 1204 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3d, 0x0a, 0x0b, 0x6c, 0x6f, 0x61, 0x64, 1205 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 1206 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 1207 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x6f, 0x61, 1208 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 1209 0x22, 0x65, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 1210 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 1211 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x38, 0x0a, 1212 0x0a, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 1213 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 1214 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6c, 0x65, 1215 0x61, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x0d, 0x4c, 0x65, 0x61, 0x73, 0x65, 1216 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 1217 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 1218 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 1219 0x73, 0x6b, 0x73, 0x22, 0x3a, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 1220 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 1221 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 1222 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x32, 1223 0xef, 0x03, 0x0a, 0x08, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 1224 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 1225 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 1226 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 1227 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 1228 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 1229 0x0a, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x19, 0x2e, 0x6c, 0x6f, 1230 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 1231 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 1232 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1233 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0f, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 1234 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x54, 1235 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 1236 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 1237 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x45, 0x0a, 1238 0x0d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1c, 1239 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 1240 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 1241 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 1242 0x6d, 0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x2e, 1243 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 1244 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x42, 0x61, 0x74, 1245 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x11, 0x4c, 0x65, 1246 0x61, 0x73, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 1247 0x14, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 1248 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 1249 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 1250 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 1251 0x6b, 0x73, 0x12, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x44, 0x65, 0x6c, 0x65, 1252 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 1253 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 1254 0x79, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 1255 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 1256 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 1257 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 1258 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x62, 0x06, 0x70, 1259 0x72, 0x6f, 0x74, 0x6f, 0x33, 1260 } 1261 1262 var ( 1263 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescOnce sync.Once 1264 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescData = file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc 1265 ) 1266 1267 func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP() []byte { 1268 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescOnce.Do(func() { 1269 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescData) 1270 }) 1271 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescData 1272 } 1273 1274 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 1275 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes = []interface{}{ 1276 (*Error)(nil), // 0: logdog.Error 1277 (*RegisterStreamRequest)(nil), // 1: logdog.RegisterStreamRequest 1278 (*RegisterStreamResponse)(nil), // 2: logdog.RegisterStreamResponse 1279 (*LoadStreamRequest)(nil), // 3: logdog.LoadStreamRequest 1280 (*LoadStreamResponse)(nil), // 4: logdog.LoadStreamResponse 1281 (*TerminateStreamRequest)(nil), // 5: logdog.TerminateStreamRequest 1282 (*ArchiveStreamRequest)(nil), // 6: logdog.ArchiveStreamRequest 1283 (*BatchRequest)(nil), // 7: logdog.BatchRequest 1284 (*BatchResponse)(nil), // 8: logdog.BatchResponse 1285 (*LeaseRequest)(nil), // 9: logdog.LeaseRequest 1286 (*LeaseResponse)(nil), // 10: logdog.LeaseResponse 1287 (*DeleteRequest)(nil), // 11: logdog.DeleteRequest 1288 (*BatchRequest_Entry)(nil), // 12: logdog.BatchRequest.Entry 1289 (*BatchResponse_Entry)(nil), // 13: logdog.BatchResponse.Entry 1290 (*InternalLogStreamState)(nil), // 14: logdog.InternalLogStreamState 1291 (*durationpb.Duration)(nil), // 15: google.protobuf.Duration 1292 (*ArchiveTask)(nil), // 16: logdog.ArchiveTask 1293 (*emptypb.Empty)(nil), // 17: google.protobuf.Empty 1294 } 1295 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs = []int32{ 1296 14, // 0: logdog.RegisterStreamResponse.state:type_name -> logdog.InternalLogStreamState 1297 0, // 1: logdog.RegisterStreamResponse.error:type_name -> logdog.Error 1298 14, // 2: logdog.LoadStreamResponse.state:type_name -> logdog.InternalLogStreamState 1299 15, // 3: logdog.LoadStreamResponse.age:type_name -> google.protobuf.Duration 1300 12, // 4: logdog.BatchRequest.req:type_name -> logdog.BatchRequest.Entry 1301 13, // 5: logdog.BatchResponse.resp:type_name -> logdog.BatchResponse.Entry 1302 15, // 6: logdog.LeaseRequest.lease_time:type_name -> google.protobuf.Duration 1303 16, // 7: logdog.LeaseResponse.tasks:type_name -> logdog.ArchiveTask 1304 16, // 8: logdog.DeleteRequest.tasks:type_name -> logdog.ArchiveTask 1305 1, // 9: logdog.BatchRequest.Entry.register_stream:type_name -> logdog.RegisterStreamRequest 1306 3, // 10: logdog.BatchRequest.Entry.load_stream:type_name -> logdog.LoadStreamRequest 1307 5, // 11: logdog.BatchRequest.Entry.terminate_stream:type_name -> logdog.TerminateStreamRequest 1308 6, // 12: logdog.BatchRequest.Entry.archive_stream:type_name -> logdog.ArchiveStreamRequest 1309 0, // 13: logdog.BatchResponse.Entry.err:type_name -> logdog.Error 1310 2, // 14: logdog.BatchResponse.Entry.register_stream:type_name -> logdog.RegisterStreamResponse 1311 4, // 15: logdog.BatchResponse.Entry.load_stream:type_name -> logdog.LoadStreamResponse 1312 1, // 16: logdog.Services.RegisterStream:input_type -> logdog.RegisterStreamRequest 1313 3, // 17: logdog.Services.LoadStream:input_type -> logdog.LoadStreamRequest 1314 5, // 18: logdog.Services.TerminateStream:input_type -> logdog.TerminateStreamRequest 1315 6, // 19: logdog.Services.ArchiveStream:input_type -> logdog.ArchiveStreamRequest 1316 7, // 20: logdog.Services.Batch:input_type -> logdog.BatchRequest 1317 9, // 21: logdog.Services.LeaseArchiveTasks:input_type -> logdog.LeaseRequest 1318 11, // 22: logdog.Services.DeleteArchiveTasks:input_type -> logdog.DeleteRequest 1319 2, // 23: logdog.Services.RegisterStream:output_type -> logdog.RegisterStreamResponse 1320 4, // 24: logdog.Services.LoadStream:output_type -> logdog.LoadStreamResponse 1321 17, // 25: logdog.Services.TerminateStream:output_type -> google.protobuf.Empty 1322 17, // 26: logdog.Services.ArchiveStream:output_type -> google.protobuf.Empty 1323 8, // 27: logdog.Services.Batch:output_type -> logdog.BatchResponse 1324 10, // 28: logdog.Services.LeaseArchiveTasks:output_type -> logdog.LeaseResponse 1325 17, // 29: logdog.Services.DeleteArchiveTasks:output_type -> google.protobuf.Empty 1326 23, // [23:30] is the sub-list for method output_type 1327 16, // [16:23] is the sub-list for method input_type 1328 16, // [16:16] is the sub-list for extension type_name 1329 16, // [16:16] is the sub-list for extension extendee 1330 0, // [0:16] is the sub-list for field type_name 1331 } 1332 1333 func init() { 1334 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_init() 1335 } 1336 func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_init() { 1337 if File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto != nil { 1338 return 1339 } 1340 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_init() 1341 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_tasks_proto_init() 1342 if !protoimpl.UnsafeEnabled { 1343 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1344 switch v := v.(*Error); i { 1345 case 0: 1346 return &v.state 1347 case 1: 1348 return &v.sizeCache 1349 case 2: 1350 return &v.unknownFields 1351 default: 1352 return nil 1353 } 1354 } 1355 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1356 switch v := v.(*RegisterStreamRequest); i { 1357 case 0: 1358 return &v.state 1359 case 1: 1360 return &v.sizeCache 1361 case 2: 1362 return &v.unknownFields 1363 default: 1364 return nil 1365 } 1366 } 1367 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1368 switch v := v.(*RegisterStreamResponse); i { 1369 case 0: 1370 return &v.state 1371 case 1: 1372 return &v.sizeCache 1373 case 2: 1374 return &v.unknownFields 1375 default: 1376 return nil 1377 } 1378 } 1379 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1380 switch v := v.(*LoadStreamRequest); i { 1381 case 0: 1382 return &v.state 1383 case 1: 1384 return &v.sizeCache 1385 case 2: 1386 return &v.unknownFields 1387 default: 1388 return nil 1389 } 1390 } 1391 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1392 switch v := v.(*LoadStreamResponse); i { 1393 case 0: 1394 return &v.state 1395 case 1: 1396 return &v.sizeCache 1397 case 2: 1398 return &v.unknownFields 1399 default: 1400 return nil 1401 } 1402 } 1403 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1404 switch v := v.(*TerminateStreamRequest); i { 1405 case 0: 1406 return &v.state 1407 case 1: 1408 return &v.sizeCache 1409 case 2: 1410 return &v.unknownFields 1411 default: 1412 return nil 1413 } 1414 } 1415 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1416 switch v := v.(*ArchiveStreamRequest); i { 1417 case 0: 1418 return &v.state 1419 case 1: 1420 return &v.sizeCache 1421 case 2: 1422 return &v.unknownFields 1423 default: 1424 return nil 1425 } 1426 } 1427 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1428 switch v := v.(*BatchRequest); i { 1429 case 0: 1430 return &v.state 1431 case 1: 1432 return &v.sizeCache 1433 case 2: 1434 return &v.unknownFields 1435 default: 1436 return nil 1437 } 1438 } 1439 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1440 switch v := v.(*BatchResponse); i { 1441 case 0: 1442 return &v.state 1443 case 1: 1444 return &v.sizeCache 1445 case 2: 1446 return &v.unknownFields 1447 default: 1448 return nil 1449 } 1450 } 1451 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1452 switch v := v.(*LeaseRequest); i { 1453 case 0: 1454 return &v.state 1455 case 1: 1456 return &v.sizeCache 1457 case 2: 1458 return &v.unknownFields 1459 default: 1460 return nil 1461 } 1462 } 1463 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1464 switch v := v.(*LeaseResponse); i { 1465 case 0: 1466 return &v.state 1467 case 1: 1468 return &v.sizeCache 1469 case 2: 1470 return &v.unknownFields 1471 default: 1472 return nil 1473 } 1474 } 1475 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1476 switch v := v.(*DeleteRequest); i { 1477 case 0: 1478 return &v.state 1479 case 1: 1480 return &v.sizeCache 1481 case 2: 1482 return &v.unknownFields 1483 default: 1484 return nil 1485 } 1486 } 1487 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1488 switch v := v.(*BatchRequest_Entry); i { 1489 case 0: 1490 return &v.state 1491 case 1: 1492 return &v.sizeCache 1493 case 2: 1494 return &v.unknownFields 1495 default: 1496 return nil 1497 } 1498 } 1499 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1500 switch v := v.(*BatchResponse_Entry); i { 1501 case 0: 1502 return &v.state 1503 case 1: 1504 return &v.sizeCache 1505 case 2: 1506 return &v.unknownFields 1507 default: 1508 return nil 1509 } 1510 } 1511 } 1512 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12].OneofWrappers = []interface{}{ 1513 (*BatchRequest_Entry_RegisterStream)(nil), 1514 (*BatchRequest_Entry_LoadStream)(nil), 1515 (*BatchRequest_Entry_TerminateStream)(nil), 1516 (*BatchRequest_Entry_ArchiveStream)(nil), 1517 } 1518 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13].OneofWrappers = []interface{}{ 1519 (*BatchResponse_Entry_Err)(nil), 1520 (*BatchResponse_Entry_RegisterStream)(nil), 1521 (*BatchResponse_Entry_LoadStream)(nil), 1522 } 1523 type x struct{} 1524 out := protoimpl.TypeBuilder{ 1525 File: protoimpl.DescBuilder{ 1526 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1527 RawDescriptor: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc, 1528 NumEnums: 0, 1529 NumMessages: 14, 1530 NumExtensions: 0, 1531 NumServices: 1, 1532 }, 1533 GoTypes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes, 1534 DependencyIndexes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs, 1535 MessageInfos: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes, 1536 }.Build() 1537 File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto = out.File 1538 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc = nil 1539 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes = nil 1540 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs = nil 1541 } 1542 1543 // Reference imports to suppress errors if they are not otherwise used. 1544 var _ context.Context 1545 var _ grpc.ClientConnInterface 1546 1547 // This is a compile-time assertion to ensure that this generated file 1548 // is compatible with the grpc package it is being compiled against. 1549 const _ = grpc.SupportPackageIsVersion6 1550 1551 // ServicesClient is the client API for Services service. 1552 // 1553 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1554 type ServicesClient interface { 1555 // RegisterStream is an idempotent stream state register operation. 1556 RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error) 1557 // LoadStream loads the current state of a log stream. 1558 LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error) 1559 // TerminateStream is an idempotent operation to update the stream's terminal 1560 // index. 1561 TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 1562 // ArchiveStream is an idempotent operation to record a log stream's archival 1563 // parameters. It is used by the Archivist service upon successful stream 1564 // archival. 1565 ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 1566 // Batch is a series of requests submitted in batch. It returns a 1567 // BatchResponse containing the same number of entries, with each entry index 1568 // corresponding to its request index. 1569 Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) 1570 // TaskQueueLease is a passthrough to appengine's taskqueue.Lease. 1571 // TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta. 1572 LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) 1573 // TaskQueueDeleteMulti is a passthrough to appengine's taskqueue.DeleteMulti 1574 // TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta. 1575 DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 1576 } 1577 type servicesPRPCClient struct { 1578 client *prpc.Client 1579 } 1580 1581 func NewServicesPRPCClient(client *prpc.Client) ServicesClient { 1582 return &servicesPRPCClient{client} 1583 } 1584 1585 func (c *servicesPRPCClient) RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error) { 1586 out := new(RegisterStreamResponse) 1587 err := c.client.Call(ctx, "logdog.Services", "RegisterStream", in, out, opts...) 1588 if err != nil { 1589 return nil, err 1590 } 1591 return out, nil 1592 } 1593 1594 func (c *servicesPRPCClient) LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error) { 1595 out := new(LoadStreamResponse) 1596 err := c.client.Call(ctx, "logdog.Services", "LoadStream", in, out, opts...) 1597 if err != nil { 1598 return nil, err 1599 } 1600 return out, nil 1601 } 1602 1603 func (c *servicesPRPCClient) TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1604 out := new(emptypb.Empty) 1605 err := c.client.Call(ctx, "logdog.Services", "TerminateStream", in, out, opts...) 1606 if err != nil { 1607 return nil, err 1608 } 1609 return out, nil 1610 } 1611 1612 func (c *servicesPRPCClient) ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1613 out := new(emptypb.Empty) 1614 err := c.client.Call(ctx, "logdog.Services", "ArchiveStream", in, out, opts...) 1615 if err != nil { 1616 return nil, err 1617 } 1618 return out, nil 1619 } 1620 1621 func (c *servicesPRPCClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) { 1622 out := new(BatchResponse) 1623 err := c.client.Call(ctx, "logdog.Services", "Batch", in, out, opts...) 1624 if err != nil { 1625 return nil, err 1626 } 1627 return out, nil 1628 } 1629 1630 func (c *servicesPRPCClient) LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) { 1631 out := new(LeaseResponse) 1632 err := c.client.Call(ctx, "logdog.Services", "LeaseArchiveTasks", in, out, opts...) 1633 if err != nil { 1634 return nil, err 1635 } 1636 return out, nil 1637 } 1638 1639 func (c *servicesPRPCClient) DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1640 out := new(emptypb.Empty) 1641 err := c.client.Call(ctx, "logdog.Services", "DeleteArchiveTasks", in, out, opts...) 1642 if err != nil { 1643 return nil, err 1644 } 1645 return out, nil 1646 } 1647 1648 type servicesClient struct { 1649 cc grpc.ClientConnInterface 1650 } 1651 1652 func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient { 1653 return &servicesClient{cc} 1654 } 1655 1656 func (c *servicesClient) RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error) { 1657 out := new(RegisterStreamResponse) 1658 err := c.cc.Invoke(ctx, "/logdog.Services/RegisterStream", in, out, opts...) 1659 if err != nil { 1660 return nil, err 1661 } 1662 return out, nil 1663 } 1664 1665 func (c *servicesClient) LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error) { 1666 out := new(LoadStreamResponse) 1667 err := c.cc.Invoke(ctx, "/logdog.Services/LoadStream", in, out, opts...) 1668 if err != nil { 1669 return nil, err 1670 } 1671 return out, nil 1672 } 1673 1674 func (c *servicesClient) TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1675 out := new(emptypb.Empty) 1676 err := c.cc.Invoke(ctx, "/logdog.Services/TerminateStream", in, out, opts...) 1677 if err != nil { 1678 return nil, err 1679 } 1680 return out, nil 1681 } 1682 1683 func (c *servicesClient) ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1684 out := new(emptypb.Empty) 1685 err := c.cc.Invoke(ctx, "/logdog.Services/ArchiveStream", in, out, opts...) 1686 if err != nil { 1687 return nil, err 1688 } 1689 return out, nil 1690 } 1691 1692 func (c *servicesClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) { 1693 out := new(BatchResponse) 1694 err := c.cc.Invoke(ctx, "/logdog.Services/Batch", in, out, opts...) 1695 if err != nil { 1696 return nil, err 1697 } 1698 return out, nil 1699 } 1700 1701 func (c *servicesClient) LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) { 1702 out := new(LeaseResponse) 1703 err := c.cc.Invoke(ctx, "/logdog.Services/LeaseArchiveTasks", in, out, opts...) 1704 if err != nil { 1705 return nil, err 1706 } 1707 return out, nil 1708 } 1709 1710 func (c *servicesClient) DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1711 out := new(emptypb.Empty) 1712 err := c.cc.Invoke(ctx, "/logdog.Services/DeleteArchiveTasks", in, out, opts...) 1713 if err != nil { 1714 return nil, err 1715 } 1716 return out, nil 1717 } 1718 1719 // ServicesServer is the server API for Services service. 1720 type ServicesServer interface { 1721 // RegisterStream is an idempotent stream state register operation. 1722 RegisterStream(context.Context, *RegisterStreamRequest) (*RegisterStreamResponse, error) 1723 // LoadStream loads the current state of a log stream. 1724 LoadStream(context.Context, *LoadStreamRequest) (*LoadStreamResponse, error) 1725 // TerminateStream is an idempotent operation to update the stream's terminal 1726 // index. 1727 TerminateStream(context.Context, *TerminateStreamRequest) (*emptypb.Empty, error) 1728 // ArchiveStream is an idempotent operation to record a log stream's archival 1729 // parameters. It is used by the Archivist service upon successful stream 1730 // archival. 1731 ArchiveStream(context.Context, *ArchiveStreamRequest) (*emptypb.Empty, error) 1732 // Batch is a series of requests submitted in batch. It returns a 1733 // BatchResponse containing the same number of entries, with each entry index 1734 // corresponding to its request index. 1735 Batch(context.Context, *BatchRequest) (*BatchResponse, error) 1736 // TaskQueueLease is a passthrough to appengine's taskqueue.Lease. 1737 // TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta. 1738 LeaseArchiveTasks(context.Context, *LeaseRequest) (*LeaseResponse, error) 1739 // TaskQueueDeleteMulti is a passthrough to appengine's taskqueue.DeleteMulti 1740 // TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta. 1741 DeleteArchiveTasks(context.Context, *DeleteRequest) (*emptypb.Empty, error) 1742 } 1743 1744 // UnimplementedServicesServer can be embedded to have forward compatible implementations. 1745 type UnimplementedServicesServer struct { 1746 } 1747 1748 func (*UnimplementedServicesServer) RegisterStream(context.Context, *RegisterStreamRequest) (*RegisterStreamResponse, error) { 1749 return nil, status.Errorf(codes.Unimplemented, "method RegisterStream not implemented") 1750 } 1751 func (*UnimplementedServicesServer) LoadStream(context.Context, *LoadStreamRequest) (*LoadStreamResponse, error) { 1752 return nil, status.Errorf(codes.Unimplemented, "method LoadStream not implemented") 1753 } 1754 func (*UnimplementedServicesServer) TerminateStream(context.Context, *TerminateStreamRequest) (*emptypb.Empty, error) { 1755 return nil, status.Errorf(codes.Unimplemented, "method TerminateStream not implemented") 1756 } 1757 func (*UnimplementedServicesServer) ArchiveStream(context.Context, *ArchiveStreamRequest) (*emptypb.Empty, error) { 1758 return nil, status.Errorf(codes.Unimplemented, "method ArchiveStream not implemented") 1759 } 1760 func (*UnimplementedServicesServer) Batch(context.Context, *BatchRequest) (*BatchResponse, error) { 1761 return nil, status.Errorf(codes.Unimplemented, "method Batch not implemented") 1762 } 1763 func (*UnimplementedServicesServer) LeaseArchiveTasks(context.Context, *LeaseRequest) (*LeaseResponse, error) { 1764 return nil, status.Errorf(codes.Unimplemented, "method LeaseArchiveTasks not implemented") 1765 } 1766 func (*UnimplementedServicesServer) DeleteArchiveTasks(context.Context, *DeleteRequest) (*emptypb.Empty, error) { 1767 return nil, status.Errorf(codes.Unimplemented, "method DeleteArchiveTasks not implemented") 1768 } 1769 1770 func RegisterServicesServer(s prpc.Registrar, srv ServicesServer) { 1771 s.RegisterService(&_Services_serviceDesc, srv) 1772 } 1773 1774 func _Services_RegisterStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1775 in := new(RegisterStreamRequest) 1776 if err := dec(in); err != nil { 1777 return nil, err 1778 } 1779 if interceptor == nil { 1780 return srv.(ServicesServer).RegisterStream(ctx, in) 1781 } 1782 info := &grpc.UnaryServerInfo{ 1783 Server: srv, 1784 FullMethod: "/logdog.Services/RegisterStream", 1785 } 1786 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1787 return srv.(ServicesServer).RegisterStream(ctx, req.(*RegisterStreamRequest)) 1788 } 1789 return interceptor(ctx, in, info, handler) 1790 } 1791 1792 func _Services_LoadStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1793 in := new(LoadStreamRequest) 1794 if err := dec(in); err != nil { 1795 return nil, err 1796 } 1797 if interceptor == nil { 1798 return srv.(ServicesServer).LoadStream(ctx, in) 1799 } 1800 info := &grpc.UnaryServerInfo{ 1801 Server: srv, 1802 FullMethod: "/logdog.Services/LoadStream", 1803 } 1804 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1805 return srv.(ServicesServer).LoadStream(ctx, req.(*LoadStreamRequest)) 1806 } 1807 return interceptor(ctx, in, info, handler) 1808 } 1809 1810 func _Services_TerminateStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1811 in := new(TerminateStreamRequest) 1812 if err := dec(in); err != nil { 1813 return nil, err 1814 } 1815 if interceptor == nil { 1816 return srv.(ServicesServer).TerminateStream(ctx, in) 1817 } 1818 info := &grpc.UnaryServerInfo{ 1819 Server: srv, 1820 FullMethod: "/logdog.Services/TerminateStream", 1821 } 1822 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1823 return srv.(ServicesServer).TerminateStream(ctx, req.(*TerminateStreamRequest)) 1824 } 1825 return interceptor(ctx, in, info, handler) 1826 } 1827 1828 func _Services_ArchiveStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1829 in := new(ArchiveStreamRequest) 1830 if err := dec(in); err != nil { 1831 return nil, err 1832 } 1833 if interceptor == nil { 1834 return srv.(ServicesServer).ArchiveStream(ctx, in) 1835 } 1836 info := &grpc.UnaryServerInfo{ 1837 Server: srv, 1838 FullMethod: "/logdog.Services/ArchiveStream", 1839 } 1840 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1841 return srv.(ServicesServer).ArchiveStream(ctx, req.(*ArchiveStreamRequest)) 1842 } 1843 return interceptor(ctx, in, info, handler) 1844 } 1845 1846 func _Services_Batch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1847 in := new(BatchRequest) 1848 if err := dec(in); err != nil { 1849 return nil, err 1850 } 1851 if interceptor == nil { 1852 return srv.(ServicesServer).Batch(ctx, in) 1853 } 1854 info := &grpc.UnaryServerInfo{ 1855 Server: srv, 1856 FullMethod: "/logdog.Services/Batch", 1857 } 1858 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1859 return srv.(ServicesServer).Batch(ctx, req.(*BatchRequest)) 1860 } 1861 return interceptor(ctx, in, info, handler) 1862 } 1863 1864 func _Services_LeaseArchiveTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1865 in := new(LeaseRequest) 1866 if err := dec(in); err != nil { 1867 return nil, err 1868 } 1869 if interceptor == nil { 1870 return srv.(ServicesServer).LeaseArchiveTasks(ctx, in) 1871 } 1872 info := &grpc.UnaryServerInfo{ 1873 Server: srv, 1874 FullMethod: "/logdog.Services/LeaseArchiveTasks", 1875 } 1876 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1877 return srv.(ServicesServer).LeaseArchiveTasks(ctx, req.(*LeaseRequest)) 1878 } 1879 return interceptor(ctx, in, info, handler) 1880 } 1881 1882 func _Services_DeleteArchiveTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1883 in := new(DeleteRequest) 1884 if err := dec(in); err != nil { 1885 return nil, err 1886 } 1887 if interceptor == nil { 1888 return srv.(ServicesServer).DeleteArchiveTasks(ctx, in) 1889 } 1890 info := &grpc.UnaryServerInfo{ 1891 Server: srv, 1892 FullMethod: "/logdog.Services/DeleteArchiveTasks", 1893 } 1894 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1895 return srv.(ServicesServer).DeleteArchiveTasks(ctx, req.(*DeleteRequest)) 1896 } 1897 return interceptor(ctx, in, info, handler) 1898 } 1899 1900 var _Services_serviceDesc = grpc.ServiceDesc{ 1901 ServiceName: "logdog.Services", 1902 HandlerType: (*ServicesServer)(nil), 1903 Methods: []grpc.MethodDesc{ 1904 { 1905 MethodName: "RegisterStream", 1906 Handler: _Services_RegisterStream_Handler, 1907 }, 1908 { 1909 MethodName: "LoadStream", 1910 Handler: _Services_LoadStream_Handler, 1911 }, 1912 { 1913 MethodName: "TerminateStream", 1914 Handler: _Services_TerminateStream_Handler, 1915 }, 1916 { 1917 MethodName: "ArchiveStream", 1918 Handler: _Services_ArchiveStream_Handler, 1919 }, 1920 { 1921 MethodName: "Batch", 1922 Handler: _Services_Batch_Handler, 1923 }, 1924 { 1925 MethodName: "LeaseArchiveTasks", 1926 Handler: _Services_LeaseArchiveTasks_Handler, 1927 }, 1928 { 1929 MethodName: "DeleteArchiveTasks", 1930 Handler: _Services_DeleteArchiveTasks_Handler, 1931 }, 1932 }, 1933 Streams: []grpc.StreamDesc{}, 1934 Metadata: "go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/service.proto", 1935 }