Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/compactor/jobqueue/queue.pb.go

1610 lines
38 KiB

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pkg/compactor/jobqueue/queue.proto
package jobqueue
import (
bytes "bytes"
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strconv "strconv"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// JobType represents the type of job
type JobType int32
const (
JOB_TYPE_DELETION JobType = 0
)
var JobType_name = map[int32]string{
0: "JOB_TYPE_DELETION",
}
var JobType_value = map[string]int32{
"JOB_TYPE_DELETION": 0,
}
func (JobType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{0}
}
// Job represents a single job in the queue
type Job struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type JobType `protobuf:"varint,2,opt,name=type,proto3,enum=jobqueue.JobType" json:"type,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
}
func (m *Job) Reset() { *m = Job{} }
func (*Job) ProtoMessage() {}
func (*Job) Descriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{0}
}
func (m *Job) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Job.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Job) XXX_Merge(src proto.Message) {
xxx_messageInfo_Job.Merge(m, src)
}
func (m *Job) XXX_Size() int {
return m.Size()
}
func (m *Job) XXX_DiscardUnknown() {
xxx_messageInfo_Job.DiscardUnknown(m)
}
var xxx_messageInfo_Job proto.InternalMessageInfo
func (m *Job) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Job) GetType() JobType {
if m != nil {
return m.Type
}
return JOB_TYPE_DELETION
}
func (m *Job) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
// DequeueRequest is used to request a job from the queue
type DequeueRequest struct {
}
func (m *DequeueRequest) Reset() { *m = DequeueRequest{} }
func (*DequeueRequest) ProtoMessage() {}
func (*DequeueRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{1}
}
func (m *DequeueRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DequeueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DequeueRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DequeueRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DequeueRequest.Merge(m, src)
}
func (m *DequeueRequest) XXX_Size() int {
return m.Size()
}
func (m *DequeueRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DequeueRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DequeueRequest proto.InternalMessageInfo
// DequeueResponse contains the dequeued job
type DequeueResponse struct {
Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
}
func (m *DequeueResponse) Reset() { *m = DequeueResponse{} }
func (*DequeueResponse) ProtoMessage() {}
func (*DequeueResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{2}
}
func (m *DequeueResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DequeueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DequeueResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DequeueResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DequeueResponse.Merge(m, src)
}
func (m *DequeueResponse) XXX_Size() int {
return m.Size()
}
func (m *DequeueResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DequeueResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DequeueResponse proto.InternalMessageInfo
func (m *DequeueResponse) GetJob() *Job {
if m != nil {
return m.Job
}
return nil
}
// ReportJobResultRequest is used to report the result of executing a job
type ReportJobResultRequest struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
JobType JobType `protobuf:"varint,2,opt,name=job_type,json=jobType,proto3,enum=jobqueue.JobType" json:"job_type,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Result *types.Any `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
}
func (m *ReportJobResultRequest) Reset() { *m = ReportJobResultRequest{} }
func (*ReportJobResultRequest) ProtoMessage() {}
func (*ReportJobResultRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{3}
}
func (m *ReportJobResultRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReportJobResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReportJobResultRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReportJobResultRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportJobResultRequest.Merge(m, src)
}
func (m *ReportJobResultRequest) XXX_Size() int {
return m.Size()
}
func (m *ReportJobResultRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReportJobResultRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReportJobResultRequest proto.InternalMessageInfo
func (m *ReportJobResultRequest) GetJobId() string {
if m != nil {
return m.JobId
}
return ""
}
func (m *ReportJobResultRequest) GetJobType() JobType {
if m != nil {
return m.JobType
}
return JOB_TYPE_DELETION
}
func (m *ReportJobResultRequest) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *ReportJobResultRequest) GetResult() *types.Any {
if m != nil {
return m.Result
}
return nil
}
// ReportJobResultResponse is the response to reporting a job result
type ReportJobResultResponse struct {
}
func (m *ReportJobResultResponse) Reset() { *m = ReportJobResultResponse{} }
func (*ReportJobResultResponse) ProtoMessage() {}
func (*ReportJobResultResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_220f68f506b923fa, []int{4}
}
func (m *ReportJobResultResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReportJobResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReportJobResultResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ReportJobResultResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReportJobResultResponse.Merge(m, src)
}
func (m *ReportJobResultResponse) XXX_Size() int {
return m.Size()
}
func (m *ReportJobResultResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReportJobResultResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReportJobResultResponse proto.InternalMessageInfo
func init() {
proto.RegisterEnum("jobqueue.JobType", JobType_name, JobType_value)
proto.RegisterType((*Job)(nil), "jobqueue.Job")
proto.RegisterType((*DequeueRequest)(nil), "jobqueue.DequeueRequest")
proto.RegisterType((*DequeueResponse)(nil), "jobqueue.DequeueResponse")
proto.RegisterType((*ReportJobResultRequest)(nil), "jobqueue.ReportJobResultRequest")
proto.RegisterType((*ReportJobResultResponse)(nil), "jobqueue.ReportJobResultResponse")
}
func init() {
proto.RegisterFile("pkg/compactor/jobqueue/queue.proto", fileDescriptor_220f68f506b923fa)
}
var fileDescriptor_220f68f506b923fa = []byte{
// 466 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x41, 0x6e, 0xd3, 0x40,
0x14, 0x86, 0x3d, 0x49, 0x9b, 0xb4, 0x0f, 0x48, 0xdb, 0x51, 0x0b, 0x4e, 0x16, 0x53, 0x63, 0x09,
0x29, 0x42, 0x95, 0x2d, 0x85, 0x0b, 0x40, 0xd5, 0x2c, 0x1a, 0x21, 0x0a, 0x56, 0x84, 0x80, 0x4d,
0xe4, 0x89, 0xa7, 0xc6, 0x6e, 0x92, 0x67, 0xec, 0xf1, 0xc2, 0x3b, 0x8e, 0xc0, 0x15, 0xd8, 0x20,
0x8e, 0xc2, 0x32, 0xcb, 0x2e, 0x89, 0xb3, 0x61, 0xd9, 0x23, 0x20, 0x8f, 0xe3, 0x56, 0x6d, 0xa3,
0x6e, 0x6c, 0xcf, 0xfb, 0x7f, 0xbf, 0xff, 0xf3, 0x2f, 0x83, 0x19, 0x5d, 0xf8, 0xf6, 0x18, 0xa7,
0x91, 0x3b, 0x96, 0x18, 0xdb, 0x21, 0xf2, 0x6f, 0xa9, 0x48, 0x85, 0xad, 0xae, 0x56, 0x14, 0xa3,
0x44, 0xba, 0x55, 0x4d, 0x3b, 0x6d, 0x1f, 0xd1, 0x9f, 0x08, 0x5b, 0xcd, 0x79, 0x7a, 0x6e, 0xbb,
0xb3, 0xac, 0x34, 0x75, 0x0e, 0xef, 0x4a, 0x32, 0x98, 0x8a, 0x44, 0xba, 0xd3, 0xa8, 0x34, 0x98,
0x1f, 0xa1, 0x3e, 0x40, 0x4e, 0x5b, 0x50, 0x0b, 0x3c, 0x9d, 0x18, 0xa4, 0xbb, 0xed, 0xd4, 0x02,
0x8f, 0xbe, 0x80, 0x0d, 0x99, 0x45, 0x42, 0xaf, 0x19, 0xa4, 0xdb, 0xea, 0xed, 0x59, 0x55, 0x96,
0x35, 0x40, 0x3e, 0xcc, 0x22, 0xe1, 0x28, 0x99, 0xea, 0xd0, 0x8c, 0xdc, 0x6c, 0x82, 0xae, 0xa7,
0xd7, 0x0d, 0xd2, 0x7d, 0xec, 0x54, 0x47, 0x73, 0x17, 0x5a, 0x27, 0x42, 0xbd, 0xe2, 0x14, 0xb7,
0x44, 0x9a, 0x3d, 0xd8, 0xb9, 0x9e, 0x24, 0x11, 0xce, 0x12, 0x41, 0x0f, 0xa1, 0x1e, 0x22, 0x57,
0xb1, 0x8f, 0x7a, 0x4f, 0x6e, 0x85, 0x38, 0x85, 0x62, 0xfe, 0x24, 0xf0, 0xd4, 0x11, 0x11, 0xc6,
0xb2, 0x18, 0x89, 0x24, 0x9d, 0xc8, 0xd5, 0x3a, 0x7a, 0x00, 0x8d, 0x10, 0xf9, 0xe8, 0x9a, 0x7a,
0x33, 0x44, 0x7e, 0xea, 0xd1, 0x23, 0x28, 0x7a, 0x19, 0x3d, 0x0c, 0xdf, 0x0c, 0xcb, 0x07, 0xba,
0x0f, 0x9b, 0x22, 0x8e, 0x31, 0x56, 0xf4, 0xdb, 0x4e, 0x79, 0xa0, 0x47, 0xd0, 0x88, 0x55, 0x96,
0xbe, 0xa1, 0xc8, 0xf6, 0xad, 0xb2, 0x45, 0xab, 0x6a, 0xd1, 0x7a, 0x33, 0xcb, 0x9c, 0x95, 0xc7,
0x6c, 0xc3, 0xb3, 0x7b, 0x88, 0xe5, 0xf7, 0xbd, 0x34, 0xa0, 0xb9, 0x8a, 0xa4, 0x07, 0xb0, 0x37,
0x38, 0x3b, 0x1e, 0x0d, 0x3f, 0xbf, 0xef, 0x8f, 0x4e, 0xfa, 0x6f, 0xfb, 0xc3, 0xd3, 0xb3, 0x77,
0xbb, 0x5a, 0xef, 0x17, 0x81, 0xad, 0x01, 0xf2, 0x0f, 0x05, 0x1e, 0x7d, 0x0d, 0xcd, 0x55, 0x43,
0x54, 0xbf, 0x81, 0xbe, 0x5d, 0x63, 0xa7, 0xbd, 0x46, 0x29, 0xe3, 0x4c, 0x8d, 0x7e, 0x82, 0x9d,
0x3b, 0x2c, 0xd4, 0xb8, 0xf1, 0xaf, 0x6f, 0xb2, 0xf3, 0xfc, 0x01, 0x47, 0xb5, 0xf9, 0xd8, 0x9b,
0x2f, 0x98, 0x76, 0xb9, 0x60, 0xda, 0xd5, 0x82, 0x91, 0xef, 0x39, 0x23, 0xbf, 0x73, 0x46, 0xfe,
0xe4, 0x8c, 0xcc, 0x73, 0x46, 0xfe, 0xe6, 0x8c, 0xfc, 0xcb, 0x99, 0x76, 0x95, 0x33, 0xf2, 0x63,
0xc9, 0xb4, 0xf9, 0x92, 0x69, 0x97, 0x4b, 0xa6, 0x7d, 0xb1, 0xfc, 0x40, 0x7e, 0x4d, 0xb9, 0x35,
0xc6, 0xa9, 0xed, 0xc7, 0xee, 0xb9, 0x3b, 0x73, 0xed, 0x09, 0x5e, 0x04, 0xf6, 0xfa, 0xff, 0x9b,
0x37, 0x54, 0xc3, 0xaf, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xed, 0x1e, 0x45, 0xb4, 0x00, 0x03,
0x00, 0x00,
}
func (x JobType) String() string {
s, ok := JobType_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}
func (this *Job) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Job)
if !ok {
that2, ok := that.(Job)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Id != that1.Id {
return false
}
if this.Type != that1.Type {
return false
}
if !bytes.Equal(this.Payload, that1.Payload) {
return false
}
return true
}
func (this *DequeueRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DequeueRequest)
if !ok {
that2, ok := that.(DequeueRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
return true
}
func (this *DequeueResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*DequeueResponse)
if !ok {
that2, ok := that.(DequeueResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Job.Equal(that1.Job) {
return false
}
return true
}
func (this *ReportJobResultRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*ReportJobResultRequest)
if !ok {
that2, ok := that.(ReportJobResultRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.JobId != that1.JobId {
return false
}
if this.JobType != that1.JobType {
return false
}
if this.Error != that1.Error {
return false
}
if !this.Result.Equal(that1.Result) {
return false
}
return true
}
func (this *ReportJobResultResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*ReportJobResultResponse)
if !ok {
that2, ok := that.(ReportJobResultResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
return true
}
func (this *Job) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&jobqueue.Job{")
s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n")
s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
s = append(s, "Payload: "+fmt.Sprintf("%#v", this.Payload)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *DequeueRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 4)
s = append(s, "&jobqueue.DequeueRequest{")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *DequeueResponse) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&jobqueue.DequeueResponse{")
if this.Job != nil {
s = append(s, "Job: "+fmt.Sprintf("%#v", this.Job)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *ReportJobResultRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&jobqueue.ReportJobResultRequest{")
s = append(s, "JobId: "+fmt.Sprintf("%#v", this.JobId)+",\n")
s = append(s, "JobType: "+fmt.Sprintf("%#v", this.JobType)+",\n")
s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
if this.Result != nil {
s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *ReportJobResultResponse) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 4)
s = append(s, "&jobqueue.ReportJobResultResponse{")
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringQueue(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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.SupportPackageIsVersion4
// JobQueueClient is the client API for JobQueue service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type JobQueueClient interface {
// Dequeue retrieves the next job from the queue
Dequeue(ctx context.Context, in *DequeueRequest, opts ...grpc.CallOption) (*DequeueResponse, error)
// ReportJobResult reports the result of executing a job
ReportJobResult(ctx context.Context, in *ReportJobResultRequest, opts ...grpc.CallOption) (*ReportJobResultResponse, error)
}
type jobQueueClient struct {
cc *grpc.ClientConn
}
func NewJobQueueClient(cc *grpc.ClientConn) JobQueueClient {
return &jobQueueClient{cc}
}
func (c *jobQueueClient) Dequeue(ctx context.Context, in *DequeueRequest, opts ...grpc.CallOption) (*DequeueResponse, error) {
out := new(DequeueResponse)
err := c.cc.Invoke(ctx, "/jobqueue.JobQueue/Dequeue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *jobQueueClient) ReportJobResult(ctx context.Context, in *ReportJobResultRequest, opts ...grpc.CallOption) (*ReportJobResultResponse, error) {
out := new(ReportJobResultResponse)
err := c.cc.Invoke(ctx, "/jobqueue.JobQueue/ReportJobResult", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// JobQueueServer is the server API for JobQueue service.
type JobQueueServer interface {
// Dequeue retrieves the next job from the queue
Dequeue(context.Context, *DequeueRequest) (*DequeueResponse, error)
// ReportJobResult reports the result of executing a job
ReportJobResult(context.Context, *ReportJobResultRequest) (*ReportJobResultResponse, error)
}
// UnimplementedJobQueueServer can be embedded to have forward compatible implementations.
type UnimplementedJobQueueServer struct {
}
func (*UnimplementedJobQueueServer) Dequeue(ctx context.Context, req *DequeueRequest) (*DequeueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Dequeue not implemented")
}
func (*UnimplementedJobQueueServer) ReportJobResult(ctx context.Context, req *ReportJobResultRequest) (*ReportJobResultResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReportJobResult not implemented")
}
func RegisterJobQueueServer(s *grpc.Server, srv JobQueueServer) {
s.RegisterService(&_JobQueue_serviceDesc, srv)
}
func _JobQueue_Dequeue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DequeueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(JobQueueServer).Dequeue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jobqueue.JobQueue/Dequeue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobQueueServer).Dequeue(ctx, req.(*DequeueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _JobQueue_ReportJobResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReportJobResultRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(JobQueueServer).ReportJobResult(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jobqueue.JobQueue/ReportJobResult",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JobQueueServer).ReportJobResult(ctx, req.(*ReportJobResultRequest))
}
return interceptor(ctx, in, info, handler)
}
var _JobQueue_serviceDesc = grpc.ServiceDesc{
ServiceName: "jobqueue.JobQueue",
HandlerType: (*JobQueueServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Dequeue",
Handler: _JobQueue_Dequeue_Handler,
},
{
MethodName: "ReportJobResult",
Handler: _JobQueue_ReportJobResult_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pkg/compactor/jobqueue/queue.proto",
}
func (m *Job) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Job) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Job) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Payload) > 0 {
i -= len(m.Payload)
copy(dAtA[i:], m.Payload)
i = encodeVarintQueue(dAtA, i, uint64(len(m.Payload)))
i--
dAtA[i] = 0x1a
}
if m.Type != 0 {
i = encodeVarintQueue(dAtA, i, uint64(m.Type))
i--
dAtA[i] = 0x10
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintQueue(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *DequeueRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DequeueRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DequeueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *DequeueResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DequeueResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DequeueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Job != nil {
{
size, err := m.Job.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQueue(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *ReportJobResultRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ReportJobResultRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ReportJobResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Result != nil {
{
size, err := m.Result.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQueue(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
if len(m.Error) > 0 {
i -= len(m.Error)
copy(dAtA[i:], m.Error)
i = encodeVarintQueue(dAtA, i, uint64(len(m.Error)))
i--
dAtA[i] = 0x1a
}
if m.JobType != 0 {
i = encodeVarintQueue(dAtA, i, uint64(m.JobType))
i--
dAtA[i] = 0x10
}
if len(m.JobId) > 0 {
i -= len(m.JobId)
copy(dAtA[i:], m.JobId)
i = encodeVarintQueue(dAtA, i, uint64(len(m.JobId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *ReportJobResultResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ReportJobResultResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ReportJobResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func encodeVarintQueue(dAtA []byte, offset int, v uint64) int {
offset -= sovQueue(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Job) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Id)
if l > 0 {
n += 1 + l + sovQueue(uint64(l))
}
if m.Type != 0 {
n += 1 + sovQueue(uint64(m.Type))
}
l = len(m.Payload)
if l > 0 {
n += 1 + l + sovQueue(uint64(l))
}
return n
}
func (m *DequeueRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *DequeueResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Job != nil {
l = m.Job.Size()
n += 1 + l + sovQueue(uint64(l))
}
return n
}
func (m *ReportJobResultRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.JobId)
if l > 0 {
n += 1 + l + sovQueue(uint64(l))
}
if m.JobType != 0 {
n += 1 + sovQueue(uint64(m.JobType))
}
l = len(m.Error)
if l > 0 {
n += 1 + l + sovQueue(uint64(l))
}
if m.Result != nil {
l = m.Result.Size()
n += 1 + l + sovQueue(uint64(l))
}
return n
}
func (m *ReportJobResultResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovQueue(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQueue(x uint64) (n int) {
return sovQueue(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Job) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Job{`,
`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
`Payload:` + fmt.Sprintf("%v", this.Payload) + `,`,
`}`,
}, "")
return s
}
func (this *DequeueRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&DequeueRequest{`,
`}`,
}, "")
return s
}
func (this *DequeueResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&DequeueResponse{`,
`Job:` + strings.Replace(this.Job.String(), "Job", "Job", 1) + `,`,
`}`,
}, "")
return s
}
func (this *ReportJobResultRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ReportJobResultRequest{`,
`JobId:` + fmt.Sprintf("%v", this.JobId) + `,`,
`JobType:` + fmt.Sprintf("%v", this.JobType) + `,`,
`Error:` + fmt.Sprintf("%v", this.Error) + `,`,
`Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Any", "types.Any", 1) + `,`,
`}`,
}, "")
return s
}
func (this *ReportJobResultResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ReportJobResultResponse{`,
`}`,
}, "")
return s
}
func valueToStringQueue(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *Job) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Job: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
m.Type = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Type |= JobType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...)
if m.Payload == nil {
m.Payload = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQueue(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DequeueRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: DequeueRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DequeueRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQueue(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *DequeueResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: DequeueResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DequeueResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Job", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Job == nil {
m.Job = &Job{}
}
if err := m.Job.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQueue(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReportJobResultRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ReportJobResultRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReportJobResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field JobId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.JobId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field JobType", wireType)
}
m.JobType = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.JobType |= JobType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Error = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQueue
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQueue
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Result == nil {
m.Result = &types.Any{}
}
if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQueue(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReportJobResultResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQueue
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ReportJobResultResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReportJobResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQueue(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthQueue
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQueue(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQueue
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQueue
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQueue
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQueue
}
iNdEx += length
if iNdEx < 0 {
return 0, ErrInvalidLengthQueue
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQueue
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipQueue(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
if iNdEx < 0 {
return 0, ErrInvalidLengthQueue
}
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthQueue = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQueue = fmt.Errorf("proto: integer overflow")
)