blob: 7fbbb50006b4625f4cddee119649651b4d29ca24 [file] [log] [blame]
// Copyright 2016 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.12.1
// source: go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/service.proto
package logdog
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Error is a projection of a gRPC error.
//
// NOTE: This and its helper functions may be useful more generally. Maybe
// transplant this to a more general place such as "//grpc" if it ends up being
// useful.
type Error struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The gRPC code for this error.
GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"`
// Transient is true if this is a transient error.
Transient bool `protobuf:"varint,2,opt,name=transient,proto3" json:"transient,omitempty"`
// An optional associated message.
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (x *Error) Reset() {
*x = Error{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Error) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Error) ProtoMessage() {}
func (x *Error) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Error.ProtoReflect.Descriptor instead.
func (*Error) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{0}
}
func (x *Error) GetGrpcCode() int32 {
if x != nil {
return x.GrpcCode
}
return 0
}
func (x *Error) GetTransient() bool {
if x != nil {
return x.Transient
}
return false
}
func (x *Error) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
// RegisterStreamRequest is the set of caller-supplied data for the
// RegisterStream Coordinator service endpoint.
type RegisterStreamRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The log stream's project.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The log stream's secret.
Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
// The protobuf version string for this stream.
ProtoVersion string `protobuf:"bytes,3,opt,name=proto_version,json=protoVersion,proto3" json:"proto_version,omitempty"`
// The serialized LogStreamDescriptor protobuf for this stream.
Desc []byte `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"`
// The stream's terminal index. If >= 0, the terminal index will be set
// in the registration request, avoiding the need for an additional
// termination RPC.
TerminalIndex int64 `protobuf:"varint,5,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"`
}
func (x *RegisterStreamRequest) Reset() {
*x = RegisterStreamRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegisterStreamRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegisterStreamRequest) ProtoMessage() {}
func (x *RegisterStreamRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegisterStreamRequest.ProtoReflect.Descriptor instead.
func (*RegisterStreamRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{1}
}
func (x *RegisterStreamRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *RegisterStreamRequest) GetSecret() []byte {
if x != nil {
return x.Secret
}
return nil
}
func (x *RegisterStreamRequest) GetProtoVersion() string {
if x != nil {
return x.ProtoVersion
}
return ""
}
func (x *RegisterStreamRequest) GetDesc() []byte {
if x != nil {
return x.Desc
}
return nil
}
func (x *RegisterStreamRequest) GetTerminalIndex() int64 {
if x != nil {
return x.TerminalIndex
}
return 0
}
// The response message for the RegisterStream RPC.
type RegisterStreamResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Coordinator ID of the log stream.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The state of the requested log stream.
State *LogStreamState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
// Error is the error response.
Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
}
func (x *RegisterStreamResponse) Reset() {
*x = RegisterStreamResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegisterStreamResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegisterStreamResponse) ProtoMessage() {}
func (x *RegisterStreamResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegisterStreamResponse.ProtoReflect.Descriptor instead.
func (*RegisterStreamResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{2}
}
func (x *RegisterStreamResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *RegisterStreamResponse) GetState() *LogStreamState {
if x != nil {
return x.State
}
return nil
}
func (x *RegisterStreamResponse) GetError() *Error {
if x != nil {
return x.Error
}
return nil
}
// LoadStreamRequest loads the current state of a log stream.
type LoadStreamRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The log stream's project.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The log stream's path Coordinator ID.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// If true, include the log stream descriptor.
Desc bool `protobuf:"varint,3,opt,name=desc,proto3" json:"desc,omitempty"`
}
func (x *LoadStreamRequest) Reset() {
*x = LoadStreamRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoadStreamRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadStreamRequest) ProtoMessage() {}
func (x *LoadStreamRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoadStreamRequest.ProtoReflect.Descriptor instead.
func (*LoadStreamRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{3}
}
func (x *LoadStreamRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *LoadStreamRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *LoadStreamRequest) GetDesc() bool {
if x != nil {
return x.Desc
}
return false
}
// The response message for the LoadStream RPC.
type LoadStreamResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The state of the requested log stream.
State *LogStreamState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// If requested, the serialized log stream descriptor. The protobuf version
// of this descriptor will match the "proto_version" field in "state".
Desc []byte `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
// The age of the log stream.
Age *durationpb.Duration `protobuf:"bytes,3,opt,name=age,proto3" json:"age,omitempty"`
// The archival key of the log stream. If this key doesn't match the key in
// the archival request, the request is superfluous and should be deleted.
ArchivalKey []byte `protobuf:"bytes,4,opt,name=archival_key,json=archivalKey,proto3" json:"archival_key,omitempty"`
}
func (x *LoadStreamResponse) Reset() {
*x = LoadStreamResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoadStreamResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadStreamResponse) ProtoMessage() {}
func (x *LoadStreamResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoadStreamResponse.ProtoReflect.Descriptor instead.
func (*LoadStreamResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{4}
}
func (x *LoadStreamResponse) GetState() *LogStreamState {
if x != nil {
return x.State
}
return nil
}
func (x *LoadStreamResponse) GetDesc() []byte {
if x != nil {
return x.Desc
}
return nil
}
func (x *LoadStreamResponse) GetAge() *durationpb.Duration {
if x != nil {
return x.Age
}
return nil
}
func (x *LoadStreamResponse) GetArchivalKey() []byte {
if x != nil {
return x.ArchivalKey
}
return nil
}
// TerminateStreamRequest is the set of caller-supplied data for the
// TerminateStream service endpoint.
type TerminateStreamRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The log stream's project.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The log stream's path Coordinator ID.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The log stream's secret.
Secret []byte `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
// The terminal index of the stream.
TerminalIndex int64 `protobuf:"varint,4,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"`
}
func (x *TerminateStreamRequest) Reset() {
*x = TerminateStreamRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TerminateStreamRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TerminateStreamRequest) ProtoMessage() {}
func (x *TerminateStreamRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TerminateStreamRequest.ProtoReflect.Descriptor instead.
func (*TerminateStreamRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{5}
}
func (x *TerminateStreamRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *TerminateStreamRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TerminateStreamRequest) GetSecret() []byte {
if x != nil {
return x.Secret
}
return nil
}
func (x *TerminateStreamRequest) GetTerminalIndex() int64 {
if x != nil {
return x.TerminalIndex
}
return 0
}
// ArchiveStreamRequest is the set of caller-supplied data for the ArchiveStream
// service endpoint.
type ArchiveStreamRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The log stream's project.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The Coordinator ID of the log stream that was archived.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The number of log entries that were archived.
LogEntryCount int64 `protobuf:"varint,3,opt,name=log_entry_count,json=logEntryCount,proto3" json:"log_entry_count,omitempty"`
// The highest log stream index that was archived.
TerminalIndex int64 `protobuf:"varint,4,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"`
// If not empty, there was an archival error.
//
// This field serves to indicate that an error occurred (being non-empty) and
// to supply an value that will show up in the Coordinator ArchiveStream
// endpoint logs.
Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// The archive URL of the log stream's stream data.
StreamUrl string `protobuf:"bytes,10,opt,name=stream_url,json=streamUrl,proto3" json:"stream_url,omitempty"`
// The size of the log stream's stream data.
StreamSize int64 `protobuf:"varint,11,opt,name=stream_size,json=streamSize,proto3" json:"stream_size,omitempty"`
// The archive URL of the log stream's index data.
IndexUrl string `protobuf:"bytes,20,opt,name=index_url,json=indexUrl,proto3" json:"index_url,omitempty"`
// The size of the log stream's index data.
IndexSize int64 `protobuf:"varint,21,opt,name=index_size,json=indexSize,proto3" json:"index_size,omitempty"`
}
func (x *ArchiveStreamRequest) Reset() {
*x = ArchiveStreamRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ArchiveStreamRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArchiveStreamRequest) ProtoMessage() {}
func (x *ArchiveStreamRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ArchiveStreamRequest.ProtoReflect.Descriptor instead.
func (*ArchiveStreamRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{6}
}
func (x *ArchiveStreamRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *ArchiveStreamRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ArchiveStreamRequest) GetLogEntryCount() int64 {
if x != nil {
return x.LogEntryCount
}
return 0
}
func (x *ArchiveStreamRequest) GetTerminalIndex() int64 {
if x != nil {
return x.TerminalIndex
}
return 0
}
func (x *ArchiveStreamRequest) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *ArchiveStreamRequest) GetStreamUrl() string {
if x != nil {
return x.StreamUrl
}
return ""
}
func (x *ArchiveStreamRequest) GetStreamSize() int64 {
if x != nil {
return x.StreamSize
}
return 0
}
func (x *ArchiveStreamRequest) GetIndexUrl() string {
if x != nil {
return x.IndexUrl
}
return ""
}
func (x *ArchiveStreamRequest) GetIndexSize() int64 {
if x != nil {
return x.IndexSize
}
return 0
}
// BatchRequest is a batch of individual requests to make to the Coordinator.
type BatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Req []*BatchRequest_Entry `protobuf:"bytes,1,rep,name=req,proto3" json:"req,omitempty"`
}
func (x *BatchRequest) Reset() {
*x = BatchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRequest) ProtoMessage() {}
func (x *BatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead.
func (*BatchRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{7}
}
func (x *BatchRequest) GetReq() []*BatchRequest_Entry {
if x != nil {
return x.Req
}
return nil
}
// BatchResponse is a response to a BatchRequest.
type BatchResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Resp []*BatchResponse_Entry `protobuf:"bytes,1,rep,name=resp,proto3" json:"resp,omitempty"`
}
func (x *BatchResponse) Reset() {
*x = BatchResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchResponse) ProtoMessage() {}
func (x *BatchResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead.
func (*BatchResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{8}
}
func (x *BatchResponse) GetResp() []*BatchResponse_Entry {
if x != nil {
return x.Resp
}
return nil
}
type LeaseRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MaxTasks int64 `protobuf:"varint,1,opt,name=max_tasks,json=maxTasks,proto3" json:"max_tasks,omitempty"`
LeaseTime *durationpb.Duration `protobuf:"bytes,2,opt,name=lease_time,json=leaseTime,proto3" json:"lease_time,omitempty"`
}
func (x *LeaseRequest) Reset() {
*x = LeaseRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeaseRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeaseRequest) ProtoMessage() {}
func (x *LeaseRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LeaseRequest.ProtoReflect.Descriptor instead.
func (*LeaseRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{9}
}
func (x *LeaseRequest) GetMaxTasks() int64 {
if x != nil {
return x.MaxTasks
}
return 0
}
func (x *LeaseRequest) GetLeaseTime() *durationpb.Duration {
if x != nil {
return x.LeaseTime
}
return nil
}
type LeaseResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Tasks are tasks leased to the caller. Only Project and Id are filled.
Tasks []*ArchiveTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
}
func (x *LeaseResponse) Reset() {
*x = LeaseResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LeaseResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LeaseResponse) ProtoMessage() {}
func (x *LeaseResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LeaseResponse.ProtoReflect.Descriptor instead.
func (*LeaseResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{10}
}
func (x *LeaseResponse) GetTasks() []*ArchiveTask {
if x != nil {
return x.Tasks
}
return nil
}
type DeleteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Tasks are tasks the caller wants to delete. Only Project and Id are required.
Tasks []*ArchiveTask `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
}
func (x *DeleteRequest) Reset() {
*x = DeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{11}
}
func (x *DeleteRequest) GetTasks() []*ArchiveTask {
if x != nil {
return x.Tasks
}
return nil
}
// The collection of batched requests.
type BatchRequest_Entry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Value:
// *BatchRequest_Entry_RegisterStream
// *BatchRequest_Entry_LoadStream
// *BatchRequest_Entry_TerminateStream
// *BatchRequest_Entry_ArchiveStream
Value isBatchRequest_Entry_Value `protobuf_oneof:"value"`
}
func (x *BatchRequest_Entry) Reset() {
*x = BatchRequest_Entry{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchRequest_Entry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchRequest_Entry) ProtoMessage() {}
func (x *BatchRequest_Entry) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchRequest_Entry.ProtoReflect.Descriptor instead.
func (*BatchRequest_Entry) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{7, 0}
}
func (m *BatchRequest_Entry) GetValue() isBatchRequest_Entry_Value {
if m != nil {
return m.Value
}
return nil
}
func (x *BatchRequest_Entry) GetRegisterStream() *RegisterStreamRequest {
if x, ok := x.GetValue().(*BatchRequest_Entry_RegisterStream); ok {
return x.RegisterStream
}
return nil
}
func (x *BatchRequest_Entry) GetLoadStream() *LoadStreamRequest {
if x, ok := x.GetValue().(*BatchRequest_Entry_LoadStream); ok {
return x.LoadStream
}
return nil
}
func (x *BatchRequest_Entry) GetTerminateStream() *TerminateStreamRequest {
if x, ok := x.GetValue().(*BatchRequest_Entry_TerminateStream); ok {
return x.TerminateStream
}
return nil
}
func (x *BatchRequest_Entry) GetArchiveStream() *ArchiveStreamRequest {
if x, ok := x.GetValue().(*BatchRequest_Entry_ArchiveStream); ok {
return x.ArchiveStream
}
return nil
}
type isBatchRequest_Entry_Value interface {
isBatchRequest_Entry_Value()
}
type BatchRequest_Entry_RegisterStream struct {
RegisterStream *RegisterStreamRequest `protobuf:"bytes,1,opt,name=register_stream,json=registerStream,proto3,oneof"`
}
type BatchRequest_Entry_LoadStream struct {
LoadStream *LoadStreamRequest `protobuf:"bytes,2,opt,name=load_stream,json=loadStream,proto3,oneof"`
}
type BatchRequest_Entry_TerminateStream struct {
TerminateStream *TerminateStreamRequest `protobuf:"bytes,3,opt,name=terminate_stream,json=terminateStream,proto3,oneof"`
}
type BatchRequest_Entry_ArchiveStream struct {
ArchiveStream *ArchiveStreamRequest `protobuf:"bytes,4,opt,name=archive_stream,json=archiveStream,proto3,oneof"`
}
func (*BatchRequest_Entry_RegisterStream) isBatchRequest_Entry_Value() {}
func (*BatchRequest_Entry_LoadStream) isBatchRequest_Entry_Value() {}
func (*BatchRequest_Entry_TerminateStream) isBatchRequest_Entry_Value() {}
func (*BatchRequest_Entry_ArchiveStream) isBatchRequest_Entry_Value() {}
// The collection of batched requests.
//
// Each entry corresponds to the BatchRequest entry with the specified index.
//
// Entry objects may appear out of order with their request indexes. Some
// responses may also be missing, if the remote end could not provide them
// due to constraints (e.g., size, time).
type BatchResponse_Entry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The index in the BatchRequest for this entry.
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// Types that are assignable to Value:
// *BatchResponse_Entry_Err
// *BatchResponse_Entry_RegisterStream
// *BatchResponse_Entry_LoadStream
Value isBatchResponse_Entry_Value `protobuf_oneof:"value"`
}
func (x *BatchResponse_Entry) Reset() {
*x = BatchResponse_Entry{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BatchResponse_Entry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchResponse_Entry) ProtoMessage() {}
func (x *BatchResponse_Entry) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BatchResponse_Entry.ProtoReflect.Descriptor instead.
func (*BatchResponse_Entry) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP(), []int{8, 0}
}
func (x *BatchResponse_Entry) GetIndex() int32 {
if x != nil {
return x.Index
}
return 0
}
func (m *BatchResponse_Entry) GetValue() isBatchResponse_Entry_Value {
if m != nil {
return m.Value
}
return nil
}
func (x *BatchResponse_Entry) GetErr() *Error {
if x, ok := x.GetValue().(*BatchResponse_Entry_Err); ok {
return x.Err
}
return nil
}
func (x *BatchResponse_Entry) GetRegisterStream() *RegisterStreamResponse {
if x, ok := x.GetValue().(*BatchResponse_Entry_RegisterStream); ok {
return x.RegisterStream
}
return nil
}
func (x *BatchResponse_Entry) GetLoadStream() *LoadStreamResponse {
if x, ok := x.GetValue().(*BatchResponse_Entry_LoadStream); ok {
return x.LoadStream
}
return nil
}
type isBatchResponse_Entry_Value interface {
isBatchResponse_Entry_Value()
}
type BatchResponse_Entry_Err struct {
Err *Error `protobuf:"bytes,2,opt,name=err,proto3,oneof"`
}
type BatchResponse_Entry_RegisterStream struct {
RegisterStream *RegisterStreamResponse `protobuf:"bytes,3,opt,name=register_stream,json=registerStream,proto3,oneof"`
}
type BatchResponse_Entry_LoadStream struct {
LoadStream *LoadStreamResponse `protobuf:"bytes,4,opt,name=load_stream,json=loadStream,proto3,oneof"`
}
func (*BatchResponse_Entry_Err) isBatchResponse_Entry_Value() {}
func (*BatchResponse_Entry_RegisterStream) isBatchResponse_Entry_Value() {}
func (*BatchResponse_Entry_LoadStream) isBatchResponse_Entry_Value() {}
var File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto protoreflect.FileDescriptor
var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc = []byte{
0x0a, 0x4f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72,
0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x06, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x1a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f,
0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f,
0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72,
0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61,
0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c,
0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1b, 0x0a,
0x09, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x08, 0x67, 0x72, 0x70, 0x63, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72,
0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x74,
0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xa9, 0x01, 0x0a, 0x15, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16,
0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x64,
0x65, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12,
0x25, 0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65,
0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61,
0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x7b, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x16, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65,
0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23,
0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x22, 0x51, 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61,
0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x22, 0xa6, 0x01, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x53,
0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c,
0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53,
0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64,
0x65, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12,
0x2b, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44,
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c,
0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x0b, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x22,
0x81, 0x01, 0x0a, 0x16, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72,
0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e,
0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x22, 0xc2, 0x02, 0x0a, 0x14, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53,
0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07,
0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e,
0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0d, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25,
0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c,
0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x55, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69,
0x6e, 0x64, 0x65, 0x78, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x69, 0x6e, 0x64, 0x65, 0x78, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x64, 0x65,
0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x69, 0x6e,
0x64, 0x65, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x4a, 0x04, 0x08, 0x1e, 0x10, 0x1f, 0x4a, 0x04, 0x08,
0x1f, 0x10, 0x20, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x52, 0x09, 0x64,
0x61, 0x74, 0x61, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x22, 0xeb, 0x02, 0x0a, 0x0c, 0x42, 0x61, 0x74,
0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x72, 0x65, 0x71,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e,
0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x03, 0x72, 0x65, 0x71, 0x1a, 0xac, 0x02, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x48, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x6f, 0x67,
0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65,
0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3c, 0x0a, 0x0b, 0x6c,
0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x19, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x6c,
0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x4b, 0x0a, 0x10, 0x74, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x54, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65,
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x45, 0x0a, 0x0e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76,
0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53,
0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d,
0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x07, 0x0a,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x96, 0x02, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x72, 0x65, 0x73, 0x70,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e,
0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x04, 0x72, 0x65, 0x73, 0x70, 0x1a, 0xd3, 0x01, 0x0a, 0x05, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x03, 0x65, 0x72, 0x72,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e,
0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x03, 0x65, 0x72, 0x72, 0x12, 0x49, 0x0a, 0x0f,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3d, 0x0a, 0x0b, 0x6c, 0x6f, 0x61, 0x64, 0x5f,
0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6c,
0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x6f, 0x61, 0x64,
0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
0x65, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x0a,
0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6c, 0x65, 0x61,
0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x0d, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e,
0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73,
0x6b, 0x73, 0x22, 0x3a, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 0x68,
0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x32, 0xef,
0x03, 0x0a, 0x08, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1d, 0x2e,
0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53,
0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6c,
0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a,
0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x19, 0x2e, 0x6c, 0x6f, 0x67,
0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c,
0x6f, 0x61, 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x49, 0x0a, 0x0f, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x12, 0x1e, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x54, 0x65,
0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x45, 0x0a, 0x0d,
0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x1c, 0x2e,
0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x53, 0x74,
0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x2e, 0x6c,
0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x42, 0x61, 0x74, 0x63,
0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x11, 0x4c, 0x65, 0x61,
0x73, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x14,
0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x4c, 0x65,
0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x61, 0x73, 0x6b,
0x73, 0x12, 0x15, 0x2e, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x42, 0x4a, 0x5a, 0x48, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f,
0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescOnce sync.Once
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
)
func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescGZIP() []byte {
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescOnce.Do(func() {
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)
})
return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDescData
}
var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes = []interface{}{
(*Error)(nil), // 0: logdog.Error
(*RegisterStreamRequest)(nil), // 1: logdog.RegisterStreamRequest
(*RegisterStreamResponse)(nil), // 2: logdog.RegisterStreamResponse
(*LoadStreamRequest)(nil), // 3: logdog.LoadStreamRequest
(*LoadStreamResponse)(nil), // 4: logdog.LoadStreamResponse
(*TerminateStreamRequest)(nil), // 5: logdog.TerminateStreamRequest
(*ArchiveStreamRequest)(nil), // 6: logdog.ArchiveStreamRequest
(*BatchRequest)(nil), // 7: logdog.BatchRequest
(*BatchResponse)(nil), // 8: logdog.BatchResponse
(*LeaseRequest)(nil), // 9: logdog.LeaseRequest
(*LeaseResponse)(nil), // 10: logdog.LeaseResponse
(*DeleteRequest)(nil), // 11: logdog.DeleteRequest
(*BatchRequest_Entry)(nil), // 12: logdog.BatchRequest.Entry
(*BatchResponse_Entry)(nil), // 13: logdog.BatchResponse.Entry
(*LogStreamState)(nil), // 14: logdog.LogStreamState
(*durationpb.Duration)(nil), // 15: google.protobuf.Duration
(*ArchiveTask)(nil), // 16: logdog.ArchiveTask
(*emptypb.Empty)(nil), // 17: google.protobuf.Empty
}
var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs = []int32{
14, // 0: logdog.RegisterStreamResponse.state:type_name -> logdog.LogStreamState
0, // 1: logdog.RegisterStreamResponse.error:type_name -> logdog.Error
14, // 2: logdog.LoadStreamResponse.state:type_name -> logdog.LogStreamState
15, // 3: logdog.LoadStreamResponse.age:type_name -> google.protobuf.Duration
12, // 4: logdog.BatchRequest.req:type_name -> logdog.BatchRequest.Entry
13, // 5: logdog.BatchResponse.resp:type_name -> logdog.BatchResponse.Entry
15, // 6: logdog.LeaseRequest.lease_time:type_name -> google.protobuf.Duration
16, // 7: logdog.LeaseResponse.tasks:type_name -> logdog.ArchiveTask
16, // 8: logdog.DeleteRequest.tasks:type_name -> logdog.ArchiveTask
1, // 9: logdog.BatchRequest.Entry.register_stream:type_name -> logdog.RegisterStreamRequest
3, // 10: logdog.BatchRequest.Entry.load_stream:type_name -> logdog.LoadStreamRequest
5, // 11: logdog.BatchRequest.Entry.terminate_stream:type_name -> logdog.TerminateStreamRequest
6, // 12: logdog.BatchRequest.Entry.archive_stream:type_name -> logdog.ArchiveStreamRequest
0, // 13: logdog.BatchResponse.Entry.err:type_name -> logdog.Error
2, // 14: logdog.BatchResponse.Entry.register_stream:type_name -> logdog.RegisterStreamResponse
4, // 15: logdog.BatchResponse.Entry.load_stream:type_name -> logdog.LoadStreamResponse
1, // 16: logdog.Services.RegisterStream:input_type -> logdog.RegisterStreamRequest
3, // 17: logdog.Services.LoadStream:input_type -> logdog.LoadStreamRequest
5, // 18: logdog.Services.TerminateStream:input_type -> logdog.TerminateStreamRequest
6, // 19: logdog.Services.ArchiveStream:input_type -> logdog.ArchiveStreamRequest
7, // 20: logdog.Services.Batch:input_type -> logdog.BatchRequest
9, // 21: logdog.Services.LeaseArchiveTasks:input_type -> logdog.LeaseRequest
11, // 22: logdog.Services.DeleteArchiveTasks:input_type -> logdog.DeleteRequest
2, // 23: logdog.Services.RegisterStream:output_type -> logdog.RegisterStreamResponse
4, // 24: logdog.Services.LoadStream:output_type -> logdog.LoadStreamResponse
17, // 25: logdog.Services.TerminateStream:output_type -> google.protobuf.Empty
17, // 26: logdog.Services.ArchiveStream:output_type -> google.protobuf.Empty
8, // 27: logdog.Services.Batch:output_type -> logdog.BatchResponse
10, // 28: logdog.Services.LeaseArchiveTasks:output_type -> logdog.LeaseResponse
17, // 29: logdog.Services.DeleteArchiveTasks:output_type -> google.protobuf.Empty
23, // [23:30] is the sub-list for method output_type
16, // [16:23] is the sub-list for method input_type
16, // [16:16] is the sub-list for extension type_name
16, // [16:16] is the sub-list for extension extendee
0, // [0:16] is the sub-list for field type_name
}
func init() {
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_init()
}
func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_init() {
if File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto != nil {
return
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_init()
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_tasks_proto_init()
if !protoimpl.UnsafeEnabled {
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Error); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegisterStreamRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegisterStreamResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LoadStreamRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LoadStreamResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TerminateStreamRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ArchiveStreamRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LeaseRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LeaseResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchRequest_Entry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchResponse_Entry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[12].OneofWrappers = []interface{}{
(*BatchRequest_Entry_RegisterStream)(nil),
(*BatchRequest_Entry_LoadStream)(nil),
(*BatchRequest_Entry_TerminateStream)(nil),
(*BatchRequest_Entry_ArchiveStream)(nil),
}
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes[13].OneofWrappers = []interface{}{
(*BatchResponse_Entry_Err)(nil),
(*BatchResponse_Entry_RegisterStream)(nil),
(*BatchResponse_Entry_LoadStream)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes,
DependencyIndexes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs,
MessageInfos: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_msgTypes,
}.Build()
File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto = out.File
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_rawDesc = nil
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_goTypes = nil
file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ServicesClient is the client API for Services service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServicesClient interface {
// RegisterStream is an idempotent stream state register operation.
RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error)
// LoadStream loads the current state of a log stream.
LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error)
// TerminateStream is an idempotent operation to update the stream's terminal
// index.
TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ArchiveStream is an idempotent operation to record a log stream's archival
// parameters. It is used by the Archivist service upon successful stream
// archival.
ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Batch is a series of requests submitted in batch. It returns a
// BatchResponse containing the same number of entries, with each entry index
// corresponding to its request index.
Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error)
// TaskQueueLease is a passthrough to appengine's taskqueue.Lease.
// TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta.
LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error)
// TaskQueueDeleteMulti is a passthrough to appengine's taskqueue.DeleteMulti
// TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta.
DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type servicesPRPCClient struct {
client *prpc.Client
}
func NewServicesPRPCClient(client *prpc.Client) ServicesClient {
return &servicesPRPCClient{client}
}
func (c *servicesPRPCClient) RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error) {
out := new(RegisterStreamResponse)
err := c.client.Call(ctx, "logdog.Services", "RegisterStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error) {
out := new(LoadStreamResponse)
err := c.client.Call(ctx, "logdog.Services", "LoadStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "logdog.Services", "TerminateStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "logdog.Services", "ArchiveStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) {
out := new(BatchResponse)
err := c.client.Call(ctx, "logdog.Services", "Batch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) {
out := new(LeaseResponse)
err := c.client.Call(ctx, "logdog.Services", "LeaseArchiveTasks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesPRPCClient) DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "logdog.Services", "DeleteArchiveTasks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type servicesClient struct {
cc grpc.ClientConnInterface
}
func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient {
return &servicesClient{cc}
}
func (c *servicesClient) RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*RegisterStreamResponse, error) {
out := new(RegisterStreamResponse)
err := c.cc.Invoke(ctx, "/logdog.Services/RegisterStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) LoadStream(ctx context.Context, in *LoadStreamRequest, opts ...grpc.CallOption) (*LoadStreamResponse, error) {
out := new(LoadStreamResponse)
err := c.cc.Invoke(ctx, "/logdog.Services/LoadStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) TerminateStream(ctx context.Context, in *TerminateStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/logdog.Services/TerminateStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) ArchiveStream(ctx context.Context, in *ArchiveStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/logdog.Services/ArchiveStream", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) {
out := new(BatchResponse)
err := c.cc.Invoke(ctx, "/logdog.Services/Batch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) LeaseArchiveTasks(ctx context.Context, in *LeaseRequest, opts ...grpc.CallOption) (*LeaseResponse, error) {
out := new(LeaseResponse)
err := c.cc.Invoke(ctx, "/logdog.Services/LeaseArchiveTasks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) DeleteArchiveTasks(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/logdog.Services/DeleteArchiveTasks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServicesServer is the server API for Services service.
type ServicesServer interface {
// RegisterStream is an idempotent stream state register operation.
RegisterStream(context.Context, *RegisterStreamRequest) (*RegisterStreamResponse, error)
// LoadStream loads the current state of a log stream.
LoadStream(context.Context, *LoadStreamRequest) (*LoadStreamResponse, error)
// TerminateStream is an idempotent operation to update the stream's terminal
// index.
TerminateStream(context.Context, *TerminateStreamRequest) (*emptypb.Empty, error)
// ArchiveStream is an idempotent operation to record a log stream's archival
// parameters. It is used by the Archivist service upon successful stream
// archival.
ArchiveStream(context.Context, *ArchiveStreamRequest) (*emptypb.Empty, error)
// Batch is a series of requests submitted in batch. It returns a
// BatchResponse containing the same number of entries, with each entry index
// corresponding to its request index.
Batch(context.Context, *BatchRequest) (*BatchResponse, error)
// TaskQueueLease is a passthrough to appengine's taskqueue.Lease.
// TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta.
LeaseArchiveTasks(context.Context, *LeaseRequest) (*LeaseResponse, error)
// TaskQueueDeleteMulti is a passthrough to appengine's taskqueue.DeleteMulti
// TODO(hinoka): Remove this when https://cloud.google.com/tasks/ is out of Beta.
DeleteArchiveTasks(context.Context, *DeleteRequest) (*emptypb.Empty, error)
}
// UnimplementedServicesServer can be embedded to have forward compatible implementations.
type UnimplementedServicesServer struct {
}
func (*UnimplementedServicesServer) RegisterStream(context.Context, *RegisterStreamRequest) (*RegisterStreamResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterStream not implemented")
}
func (*UnimplementedServicesServer) LoadStream(context.Context, *LoadStreamRequest) (*LoadStreamResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LoadStream not implemented")
}
func (*UnimplementedServicesServer) TerminateStream(context.Context, *TerminateStreamRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method TerminateStream not implemented")
}
func (*UnimplementedServicesServer) ArchiveStream(context.Context, *ArchiveStreamRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveStream not implemented")
}
func (*UnimplementedServicesServer) Batch(context.Context, *BatchRequest) (*BatchResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Batch not implemented")
}
func (*UnimplementedServicesServer) LeaseArchiveTasks(context.Context, *LeaseRequest) (*LeaseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LeaseArchiveTasks not implemented")
}
func (*UnimplementedServicesServer) DeleteArchiveTasks(context.Context, *DeleteRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteArchiveTasks not implemented")
}
func RegisterServicesServer(s prpc.Registrar, srv ServicesServer) {
s.RegisterService(&_Services_serviceDesc, srv)
}
func _Services_RegisterStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterStreamRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).RegisterStream(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/RegisterStream",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).RegisterStream(ctx, req.(*RegisterStreamRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_LoadStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LoadStreamRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).LoadStream(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/LoadStream",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).LoadStream(ctx, req.(*LoadStreamRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_TerminateStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TerminateStreamRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).TerminateStream(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/TerminateStream",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).TerminateStream(ctx, req.(*TerminateStreamRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_ArchiveStream_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ArchiveStreamRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).ArchiveStream(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/ArchiveStream",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).ArchiveStream(ctx, req.(*ArchiveStreamRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_Batch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).Batch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/Batch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).Batch(ctx, req.(*BatchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_LeaseArchiveTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LeaseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).LeaseArchiveTasks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/LeaseArchiveTasks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).LeaseArchiveTasks(ctx, req.(*LeaseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_DeleteArchiveTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).DeleteArchiveTasks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/logdog.Services/DeleteArchiveTasks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).DeleteArchiveTasks(ctx, req.(*DeleteRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Services_serviceDesc = grpc.ServiceDesc{
ServiceName: "logdog.Services",
HandlerType: (*ServicesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "RegisterStream",
Handler: _Services_RegisterStream_Handler,
},
{
MethodName: "LoadStream",
Handler: _Services_LoadStream_Handler,
},
{
MethodName: "TerminateStream",
Handler: _Services_TerminateStream_Handler,
},
{
MethodName: "ArchiveStream",
Handler: _Services_ArchiveStream_Handler,
},
{
MethodName: "Batch",
Handler: _Services_Batch_Handler,
},
{
MethodName: "LeaseArchiveTasks",
Handler: _Services_LeaseArchiveTasks_Handler,
},
{
MethodName: "DeleteArchiveTasks",
Handler: _Services_DeleteArchiveTasks_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/service.proto",
}