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/client/grpc/grpc.pb.go

2144 lines
53 KiB

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pkg/compactor/client/grpc/grpc.proto
package grpc
import (
bytes "bytes"
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
deletionproto "github.com/grafana/loki/v3/pkg/compactor/deletion/deletionproto"
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_24a5f361c0f660df, []int{0}
}
type GetDeleteRequestsRequest struct {
ForQuerytimeFiltering bool `protobuf:"varint,1,opt,name=forQuerytimeFiltering,proto3" json:"forQuerytimeFiltering,omitempty"`
}
func (m *GetDeleteRequestsRequest) Reset() { *m = GetDeleteRequestsRequest{} }
func (*GetDeleteRequestsRequest) ProtoMessage() {}
func (*GetDeleteRequestsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_24a5f361c0f660df, []int{0}
}
func (m *GetDeleteRequestsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetDeleteRequestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetDeleteRequestsRequest.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 *GetDeleteRequestsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDeleteRequestsRequest.Merge(m, src)
}
func (m *GetDeleteRequestsRequest) XXX_Size() int {
return m.Size()
}
func (m *GetDeleteRequestsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDeleteRequestsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDeleteRequestsRequest proto.InternalMessageInfo
func (m *GetDeleteRequestsRequest) GetForQuerytimeFiltering() bool {
if m != nil {
return m.ForQuerytimeFiltering
}
return false
}
type GetDeleteRequestsResponse struct {
DeleteRequests []*deletionproto.DeleteRequest `protobuf:"bytes,1,rep,name=deleteRequests,proto3" json:"deleteRequests,omitempty"`
}
func (m *GetDeleteRequestsResponse) Reset() { *m = GetDeleteRequestsResponse{} }
func (*GetDeleteRequestsResponse) ProtoMessage() {}
func (*GetDeleteRequestsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_24a5f361c0f660df, []int{1}
}
func (m *GetDeleteRequestsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetDeleteRequestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetDeleteRequestsResponse.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 *GetDeleteRequestsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDeleteRequestsResponse.Merge(m, src)
}
func (m *GetDeleteRequestsResponse) XXX_Size() int {
return m.Size()
}
func (m *GetDeleteRequestsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetDeleteRequestsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetDeleteRequestsResponse proto.InternalMessageInfo
func (m *GetDeleteRequestsResponse) GetDeleteRequests() []*deletionproto.DeleteRequest {
if m != nil {
return m.DeleteRequests
}
return nil
}
type GetCacheGenNumbersRequest struct {
}
func (m *GetCacheGenNumbersRequest) Reset() { *m = GetCacheGenNumbersRequest{} }
func (*GetCacheGenNumbersRequest) ProtoMessage() {}
func (*GetCacheGenNumbersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_24a5f361c0f660df, []int{2}
}
func (m *GetCacheGenNumbersRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetCacheGenNumbersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetCacheGenNumbersRequest.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 *GetCacheGenNumbersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCacheGenNumbersRequest.Merge(m, src)
}
func (m *GetCacheGenNumbersRequest) XXX_Size() int {
return m.Size()
}
func (m *GetCacheGenNumbersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetCacheGenNumbersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetCacheGenNumbersRequest proto.InternalMessageInfo
type GetCacheGenNumbersResponse struct {
ResultsCacheGen string `protobuf:"bytes,1,opt,name=resultsCacheGen,proto3" json:"resultsCacheGen,omitempty"`
}
func (m *GetCacheGenNumbersResponse) Reset() { *m = GetCacheGenNumbersResponse{} }
func (*GetCacheGenNumbersResponse) ProtoMessage() {}
func (*GetCacheGenNumbersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_24a5f361c0f660df, []int{3}
}
func (m *GetCacheGenNumbersResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetCacheGenNumbersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetCacheGenNumbersResponse.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 *GetCacheGenNumbersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetCacheGenNumbersResponse.Merge(m, src)
}
func (m *GetCacheGenNumbersResponse) XXX_Size() int {
return m.Size()
}
func (m *GetCacheGenNumbersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetCacheGenNumbersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetCacheGenNumbersResponse proto.InternalMessageInfo
func (m *GetCacheGenNumbersResponse) GetResultsCacheGen() string {
if m != nil {
return m.ResultsCacheGen
}
return ""
}
// 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=grpc.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_24a5f361c0f660df, []int{4}
}
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
}
// JobResult is used to report the result of executing a job
type JobResult 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=grpc.JobType" json:"job_type,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
Result []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
}
func (m *JobResult) Reset() { *m = JobResult{} }
func (*JobResult) ProtoMessage() {}
func (*JobResult) Descriptor() ([]byte, []int) {
return fileDescriptor_24a5f361c0f660df, []int{5}
}
func (m *JobResult) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *JobResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_JobResult.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 *JobResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_JobResult.Merge(m, src)
}
func (m *JobResult) XXX_Size() int {
return m.Size()
}
func (m *JobResult) XXX_DiscardUnknown() {
xxx_messageInfo_JobResult.DiscardUnknown(m)
}
var xxx_messageInfo_JobResult proto.InternalMessageInfo
func (m *JobResult) GetJobId() string {
if m != nil {
return m.JobId
}
return ""
}
func (m *JobResult) GetJobType() JobType {
if m != nil {
return m.JobType
}
return JOB_TYPE_DELETION
}
func (m *JobResult) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *JobResult) GetResult() []byte {
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_24a5f361c0f660df, []int{6}
}
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("grpc.JobType", JobType_name, JobType_value)
proto.RegisterType((*GetDeleteRequestsRequest)(nil), "grpc.GetDeleteRequestsRequest")
proto.RegisterType((*GetDeleteRequestsResponse)(nil), "grpc.GetDeleteRequestsResponse")
proto.RegisterType((*GetCacheGenNumbersRequest)(nil), "grpc.GetCacheGenNumbersRequest")
proto.RegisterType((*GetCacheGenNumbersResponse)(nil), "grpc.GetCacheGenNumbersResponse")
proto.RegisterType((*Job)(nil), "grpc.Job")
proto.RegisterType((*JobResult)(nil), "grpc.JobResult")
proto.RegisterType((*ReportJobResultResponse)(nil), "grpc.ReportJobResultResponse")
}
func init() {
proto.RegisterFile("pkg/compactor/client/grpc/grpc.proto", fileDescriptor_24a5f361c0f660df)
}
var fileDescriptor_24a5f361c0f660df = []byte{
// 516 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcd, 0x6e, 0xda, 0x40,
0x10, 0xf6, 0x02, 0xe1, 0x67, 0xda, 0x92, 0x66, 0x55, 0x5a, 0x87, 0x56, 0x5b, 0xd7, 0xea, 0xc1,
0xea, 0x01, 0x22, 0xca, 0x13, 0x24, 0x90, 0x28, 0x28, 0xca, 0x8f, 0x85, 0x54, 0xf5, 0x84, 0x30,
0x9e, 0x52, 0x53, 0x60, 0xdd, 0xf5, 0xfa, 0x40, 0x4f, 0x7d, 0x84, 0x3e, 0x46, 0x9f, 0xa1, 0x4f,
0xd0, 0x23, 0xc7, 0x1c, 0x8b, 0xb9, 0xf4, 0x98, 0x47, 0xa8, 0x58, 0x1b, 0x57, 0x24, 0x70, 0xb1,
0x67, 0xe6, 0x9b, 0x9f, 0x6f, 0xe7, 0x1b, 0x78, 0xeb, 0x7f, 0x19, 0xd6, 0x07, 0x7c, 0xe2, 0xf7,
0x07, 0x92, 0x8b, 0xfa, 0x60, 0xec, 0xe1, 0x54, 0xd6, 0x87, 0xc2, 0x1f, 0xa8, 0x4f, 0xcd, 0x17,
0x5c, 0x72, 0x9a, 0x5b, 0xd9, 0xd5, 0xa3, 0xcd, 0x5c, 0x17, 0xc7, 0x28, 0x3d, 0x3e, 0x4d, 0x0d,
0x95, 0x5b, 0x97, 0x33, 0x1f, 0x83, 0xb8, 0xce, 0xbc, 0x06, 0xfd, 0x0c, 0x65, 0x6b, 0x85, 0xa3,
0x8d, 0x5f, 0x43, 0x0c, 0x64, 0x90, 0xfc, 0x69, 0x13, 0x2a, 0x9f, 0xb8, 0xb8, 0x09, 0x51, 0xcc,
0xa4, 0x37, 0xc1, 0x53, 0x6f, 0x2c, 0x51, 0x78, 0xd3, 0xa1, 0x4e, 0x0c, 0x62, 0x15, 0xed, 0xed,
0xa0, 0xd9, 0x87, 0xc3, 0x2d, 0x1d, 0x03, 0x9f, 0x4f, 0x03, 0xa4, 0x2d, 0x28, 0xbb, 0x1b, 0x88,
0x4e, 0x8c, 0xac, 0xf5, 0xa8, 0xf1, 0xaa, 0xb6, 0x41, 0xb1, 0xb6, 0x51, 0x6e, 0xdf, 0xab, 0x31,
0x5f, 0xaa, 0x11, 0x27, 0xfd, 0xc1, 0x67, 0x3c, 0xc3, 0xe9, 0x65, 0x38, 0x71, 0x50, 0xac, 0x59,
0x9b, 0xa7, 0x50, 0xdd, 0x06, 0x26, 0x04, 0x2c, 0xd8, 0x17, 0x18, 0x84, 0x63, 0x19, 0xac, 0x33,
0xd4, 0x6b, 0x4a, 0xf6, 0xfd, 0xb0, 0x69, 0x43, 0xb6, 0xc3, 0x1d, 0x5a, 0x86, 0x8c, 0xe7, 0x26,
0x39, 0x19, 0xcf, 0xa5, 0x6f, 0x20, 0xb7, 0xda, 0x9f, 0x9e, 0x31, 0x88, 0x55, 0x6e, 0x3c, 0xa9,
0x29, 0x0d, 0x3a, 0xdc, 0xe9, 0xce, 0x7c, 0xb4, 0x15, 0x44, 0x75, 0x28, 0xf8, 0xfd, 0xd9, 0x98,
0xf7, 0x5d, 0x3d, 0x6b, 0x10, 0xeb, 0xb1, 0xbd, 0x76, 0xcd, 0x6f, 0x50, 0xea, 0x70, 0xc7, 0x56,
0x93, 0x68, 0x05, 0xf2, 0x23, 0xee, 0xf4, 0xd2, 0xee, 0x7b, 0x23, 0xee, 0x9c, 0xbb, 0xd4, 0x82,
0xe2, 0x2a, 0xbc, 0x7b, 0x48, 0x61, 0x14, 0x1b, 0xf4, 0x19, 0xec, 0xa1, 0x10, 0x5c, 0xa8, 0x29,
0x25, 0x3b, 0x76, 0xe8, 0x73, 0xc8, 0xc7, 0x4f, 0xd1, 0x73, 0x6a, 0x78, 0xe2, 0x99, 0x87, 0xf0,
0xc2, 0x46, 0x9f, 0x0b, 0x99, 0x32, 0x58, 0x2f, 0xe5, 0x9d, 0x01, 0x85, 0xa4, 0x39, 0xad, 0xc0,
0x41, 0xe7, 0xea, 0xb8, 0xd7, 0xfd, 0x78, 0xdd, 0xee, 0xb5, 0xda, 0x17, 0xed, 0xee, 0xf9, 0xd5,
0xe5, 0x53, 0xad, 0xf1, 0x8b, 0x40, 0xe9, 0x64, 0x7d, 0x57, 0xb4, 0x0b, 0x07, 0x0f, 0x24, 0xa6,
0x2c, 0x66, 0xb9, 0xeb, 0x9a, 0xaa, 0xaf, 0x77, 0xe2, 0x89, 0x34, 0x1f, 0x80, 0x3e, 0x14, 0x8e,
0xfe, 0x2f, 0xdb, 0xae, 0x77, 0xd5, 0xd8, 0x9d, 0x10, 0x37, 0x6e, 0x34, 0xa1, 0xd8, 0xe1, 0xce,
0x4d, 0x88, 0xe1, 0x4a, 0xff, 0xdc, 0x05, 0xe7, 0x3e, 0xdd, 0x4f, 0x77, 0x1a, 0xef, 0xa2, 0x5a,
0x4a, 0x03, 0xa6, 0x66, 0x91, 0x23, 0x72, 0xdc, 0x9c, 0x2f, 0x98, 0x76, 0xbb, 0x60, 0xda, 0xdd,
0x82, 0x91, 0xef, 0x11, 0x23, 0x3f, 0x23, 0x46, 0x7e, 0x47, 0x8c, 0xcc, 0x23, 0x46, 0xfe, 0x44,
0x8c, 0xfc, 0x8d, 0x98, 0x76, 0x17, 0x31, 0xf2, 0x63, 0xc9, 0xb4, 0xf9, 0x92, 0x69, 0xb7, 0x4b,
0xa6, 0x39, 0x79, 0x75, 0xbf, 0xef, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xff, 0x24, 0x38, 0x62,
0xb6, 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 *GetDeleteRequestsRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*GetDeleteRequestsRequest)
if !ok {
that2, ok := that.(GetDeleteRequestsRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.ForQuerytimeFiltering != that1.ForQuerytimeFiltering {
return false
}
return true
}
func (this *GetDeleteRequestsResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*GetDeleteRequestsResponse)
if !ok {
that2, ok := that.(GetDeleteRequestsResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if len(this.DeleteRequests) != len(that1.DeleteRequests) {
return false
}
for i := range this.DeleteRequests {
if !this.DeleteRequests[i].Equal(that1.DeleteRequests[i]) {
return false
}
}
return true
}
func (this *GetCacheGenNumbersRequest) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*GetCacheGenNumbersRequest)
if !ok {
that2, ok := that.(GetCacheGenNumbersRequest)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
return true
}
func (this *GetCacheGenNumbersResponse) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*GetCacheGenNumbersResponse)
if !ok {
that2, ok := that.(GetCacheGenNumbersResponse)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.ResultsCacheGen != that1.ResultsCacheGen {
return false
}
return true
}
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 *JobResult) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*JobResult)
if !ok {
that2, ok := that.(JobResult)
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 !bytes.Equal(this.Result, 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 *GetDeleteRequestsRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&grpc.GetDeleteRequestsRequest{")
s = append(s, "ForQuerytimeFiltering: "+fmt.Sprintf("%#v", this.ForQuerytimeFiltering)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *GetDeleteRequestsResponse) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&grpc.GetDeleteRequestsResponse{")
if this.DeleteRequests != nil {
s = append(s, "DeleteRequests: "+fmt.Sprintf("%#v", this.DeleteRequests)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *GetCacheGenNumbersRequest) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 4)
s = append(s, "&grpc.GetCacheGenNumbersRequest{")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *GetCacheGenNumbersResponse) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&grpc.GetCacheGenNumbersResponse{")
s = append(s, "ResultsCacheGen: "+fmt.Sprintf("%#v", this.ResultsCacheGen)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Job) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&grpc.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 *JobResult) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&grpc.JobResult{")
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")
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, "&grpc.ReportJobResultResponse{")
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringGrpc(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
// CompactorClient is the client API for Compactor service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CompactorClient interface {
GetDeleteRequests(ctx context.Context, in *GetDeleteRequestsRequest, opts ...grpc.CallOption) (*GetDeleteRequestsResponse, error)
GetCacheGenNumbers(ctx context.Context, in *GetCacheGenNumbersRequest, opts ...grpc.CallOption) (*GetCacheGenNumbersResponse, error)
}
type compactorClient struct {
cc *grpc.ClientConn
}
func NewCompactorClient(cc *grpc.ClientConn) CompactorClient {
return &compactorClient{cc}
}
func (c *compactorClient) GetDeleteRequests(ctx context.Context, in *GetDeleteRequestsRequest, opts ...grpc.CallOption) (*GetDeleteRequestsResponse, error) {
out := new(GetDeleteRequestsResponse)
err := c.cc.Invoke(ctx, "/grpc.Compactor/GetDeleteRequests", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *compactorClient) GetCacheGenNumbers(ctx context.Context, in *GetCacheGenNumbersRequest, opts ...grpc.CallOption) (*GetCacheGenNumbersResponse, error) {
out := new(GetCacheGenNumbersResponse)
err := c.cc.Invoke(ctx, "/grpc.Compactor/GetCacheGenNumbers", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CompactorServer is the server API for Compactor service.
type CompactorServer interface {
GetDeleteRequests(context.Context, *GetDeleteRequestsRequest) (*GetDeleteRequestsResponse, error)
GetCacheGenNumbers(context.Context, *GetCacheGenNumbersRequest) (*GetCacheGenNumbersResponse, error)
}
// UnimplementedCompactorServer can be embedded to have forward compatible implementations.
type UnimplementedCompactorServer struct {
}
func (*UnimplementedCompactorServer) GetDeleteRequests(ctx context.Context, req *GetDeleteRequestsRequest) (*GetDeleteRequestsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDeleteRequests not implemented")
}
func (*UnimplementedCompactorServer) GetCacheGenNumbers(ctx context.Context, req *GetCacheGenNumbersRequest) (*GetCacheGenNumbersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCacheGenNumbers not implemented")
}
func RegisterCompactorServer(s *grpc.Server, srv CompactorServer) {
s.RegisterService(&_Compactor_serviceDesc, srv)
}
func _Compactor_GetDeleteRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDeleteRequestsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CompactorServer).GetDeleteRequests(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.Compactor/GetDeleteRequests",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CompactorServer).GetDeleteRequests(ctx, req.(*GetDeleteRequestsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Compactor_GetCacheGenNumbers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCacheGenNumbersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CompactorServer).GetCacheGenNumbers(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.Compactor/GetCacheGenNumbers",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CompactorServer).GetCacheGenNumbers(ctx, req.(*GetCacheGenNumbersRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Compactor_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.Compactor",
HandlerType: (*CompactorServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetDeleteRequests",
Handler: _Compactor_GetDeleteRequests_Handler,
},
{
MethodName: "GetCacheGenNumbers",
Handler: _Compactor_GetCacheGenNumbers_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pkg/compactor/client/grpc/grpc.proto",
}
// 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 {
// After calling this method, both Worker and JobQueue enter a loop, in which worker waits for
// "Job" messages containing job details and processes them. After processing the job,
// worker signals that it is ready to accept another one by sending JobResult message which contains execution result of previous job it finished.
// Since the Worker and JobQueue enter the loop when Worker makes the first call so the JobResult with the first call is expected to be empty.
Loop(ctx context.Context, opts ...grpc.CallOption) (JobQueue_LoopClient, error)
}
type jobQueueClient struct {
cc *grpc.ClientConn
}
func NewJobQueueClient(cc *grpc.ClientConn) JobQueueClient {
return &jobQueueClient{cc}
}
func (c *jobQueueClient) Loop(ctx context.Context, opts ...grpc.CallOption) (JobQueue_LoopClient, error) {
stream, err := c.cc.NewStream(ctx, &_JobQueue_serviceDesc.Streams[0], "/grpc.JobQueue/Loop", opts...)
if err != nil {
return nil, err
}
x := &jobQueueLoopClient{stream}
return x, nil
}
type JobQueue_LoopClient interface {
Send(*JobResult) error
Recv() (*Job, error)
grpc.ClientStream
}
type jobQueueLoopClient struct {
grpc.ClientStream
}
func (x *jobQueueLoopClient) Send(m *JobResult) error {
return x.ClientStream.SendMsg(m)
}
func (x *jobQueueLoopClient) Recv() (*Job, error) {
m := new(Job)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// JobQueueServer is the server API for JobQueue service.
type JobQueueServer interface {
// After calling this method, both Worker and JobQueue enter a loop, in which worker waits for
// "Job" messages containing job details and processes them. After processing the job,
// worker signals that it is ready to accept another one by sending JobResult message which contains execution result of previous job it finished.
// Since the Worker and JobQueue enter the loop when Worker makes the first call so the JobResult with the first call is expected to be empty.
Loop(JobQueue_LoopServer) error
}
// UnimplementedJobQueueServer can be embedded to have forward compatible implementations.
type UnimplementedJobQueueServer struct {
}
func (*UnimplementedJobQueueServer) Loop(srv JobQueue_LoopServer) error {
return status.Errorf(codes.Unimplemented, "method Loop not implemented")
}
func RegisterJobQueueServer(s *grpc.Server, srv JobQueueServer) {
s.RegisterService(&_JobQueue_serviceDesc, srv)
}
func _JobQueue_Loop_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(JobQueueServer).Loop(&jobQueueLoopServer{stream})
}
type JobQueue_LoopServer interface {
Send(*Job) error
Recv() (*JobResult, error)
grpc.ServerStream
}
type jobQueueLoopServer struct {
grpc.ServerStream
}
func (x *jobQueueLoopServer) Send(m *Job) error {
return x.ServerStream.SendMsg(m)
}
func (x *jobQueueLoopServer) Recv() (*JobResult, error) {
m := new(JobResult)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _JobQueue_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.JobQueue",
HandlerType: (*JobQueueServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "Loop",
Handler: _JobQueue_Loop_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "pkg/compactor/client/grpc/grpc.proto",
}
func (m *GetDeleteRequestsRequest) 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 *GetDeleteRequestsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetDeleteRequestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ForQuerytimeFiltering {
i--
if m.ForQuerytimeFiltering {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *GetDeleteRequestsResponse) 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 *GetDeleteRequestsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetDeleteRequestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.DeleteRequests) > 0 {
for iNdEx := len(m.DeleteRequests) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.DeleteRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGrpc(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *GetCacheGenNumbersRequest) 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 *GetCacheGenNumbersRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetCacheGenNumbersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *GetCacheGenNumbersResponse) 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 *GetCacheGenNumbersResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GetCacheGenNumbersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.ResultsCacheGen) > 0 {
i -= len(m.ResultsCacheGen)
copy(dAtA[i:], m.ResultsCacheGen)
i = encodeVarintGrpc(dAtA, i, uint64(len(m.ResultsCacheGen)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
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 = encodeVarintGrpc(dAtA, i, uint64(len(m.Payload)))
i--
dAtA[i] = 0x1a
}
if m.Type != 0 {
i = encodeVarintGrpc(dAtA, i, uint64(m.Type))
i--
dAtA[i] = 0x10
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintGrpc(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *JobResult) 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 *JobResult) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *JobResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Result) > 0 {
i -= len(m.Result)
copy(dAtA[i:], m.Result)
i = encodeVarintGrpc(dAtA, i, uint64(len(m.Result)))
i--
dAtA[i] = 0x22
}
if len(m.Error) > 0 {
i -= len(m.Error)
copy(dAtA[i:], m.Error)
i = encodeVarintGrpc(dAtA, i, uint64(len(m.Error)))
i--
dAtA[i] = 0x1a
}
if m.JobType != 0 {
i = encodeVarintGrpc(dAtA, i, uint64(m.JobType))
i--
dAtA[i] = 0x10
}
if len(m.JobId) > 0 {
i -= len(m.JobId)
copy(dAtA[i:], m.JobId)
i = encodeVarintGrpc(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 encodeVarintGrpc(dAtA []byte, offset int, v uint64) int {
offset -= sovGrpc(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GetDeleteRequestsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ForQuerytimeFiltering {
n += 2
}
return n
}
func (m *GetDeleteRequestsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.DeleteRequests) > 0 {
for _, e := range m.DeleteRequests {
l = e.Size()
n += 1 + l + sovGrpc(uint64(l))
}
}
return n
}
func (m *GetCacheGenNumbersRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *GetCacheGenNumbersResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.ResultsCacheGen)
if l > 0 {
n += 1 + l + sovGrpc(uint64(l))
}
return n
}
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 + sovGrpc(uint64(l))
}
if m.Type != 0 {
n += 1 + sovGrpc(uint64(m.Type))
}
l = len(m.Payload)
if l > 0 {
n += 1 + l + sovGrpc(uint64(l))
}
return n
}
func (m *JobResult) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.JobId)
if l > 0 {
n += 1 + l + sovGrpc(uint64(l))
}
if m.JobType != 0 {
n += 1 + sovGrpc(uint64(m.JobType))
}
l = len(m.Error)
if l > 0 {
n += 1 + l + sovGrpc(uint64(l))
}
l = len(m.Result)
if l > 0 {
n += 1 + l + sovGrpc(uint64(l))
}
return n
}
func (m *ReportJobResultResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovGrpc(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGrpc(x uint64) (n int) {
return sovGrpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *GetDeleteRequestsRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&GetDeleteRequestsRequest{`,
`ForQuerytimeFiltering:` + fmt.Sprintf("%v", this.ForQuerytimeFiltering) + `,`,
`}`,
}, "")
return s
}
func (this *GetDeleteRequestsResponse) String() string {
if this == nil {
return "nil"
}
repeatedStringForDeleteRequests := "[]*DeleteRequest{"
for _, f := range this.DeleteRequests {
repeatedStringForDeleteRequests += strings.Replace(fmt.Sprintf("%v", f), "DeleteRequest", "deletionproto.DeleteRequest", 1) + ","
}
repeatedStringForDeleteRequests += "}"
s := strings.Join([]string{`&GetDeleteRequestsResponse{`,
`DeleteRequests:` + repeatedStringForDeleteRequests + `,`,
`}`,
}, "")
return s
}
func (this *GetCacheGenNumbersRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&GetCacheGenNumbersRequest{`,
`}`,
}, "")
return s
}
func (this *GetCacheGenNumbersResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&GetCacheGenNumbersResponse{`,
`ResultsCacheGen:` + fmt.Sprintf("%v", this.ResultsCacheGen) + `,`,
`}`,
}, "")
return s
}
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 *JobResult) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&JobResult{`,
`JobId:` + fmt.Sprintf("%v", this.JobId) + `,`,
`JobType:` + fmt.Sprintf("%v", this.JobType) + `,`,
`Error:` + fmt.Sprintf("%v", this.Error) + `,`,
`Result:` + fmt.Sprintf("%v", this.Result) + `,`,
`}`,
}, "")
return s
}
func (this *ReportJobResultResponse) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ReportJobResultResponse{`,
`}`,
}, "")
return s
}
func valueToStringGrpc(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *GetDeleteRequestsRequest) 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 ErrIntOverflowGrpc
}
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: GetDeleteRequestsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetDeleteRequestsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ForQuerytimeFiltering", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGrpc
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.ForQuerytimeFiltering = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetDeleteRequestsResponse) 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 ErrIntOverflowGrpc
}
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: GetDeleteRequestsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetDeleteRequestsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DeleteRequests", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGrpc
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGrpc
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DeleteRequests = append(m.DeleteRequests, &deletionproto.DeleteRequest{})
if err := m.DeleteRequests[len(m.DeleteRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetCacheGenNumbersRequest) 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 ErrIntOverflowGrpc
}
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: GetCacheGenNumbersRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetCacheGenNumbersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetCacheGenNumbersResponse) 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 ErrIntOverflowGrpc
}
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: GetCacheGenNumbersResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GetCacheGenNumbersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ResultsCacheGen", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGrpc
}
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 ErrInvalidLengthGrpc
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ResultsCacheGen = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
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 ErrIntOverflowGrpc
}
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 ErrIntOverflowGrpc
}
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 ErrInvalidLengthGrpc
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
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 ErrIntOverflowGrpc
}
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 ErrIntOverflowGrpc
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGrpc
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
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 := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *JobResult) 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 ErrIntOverflowGrpc
}
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: JobResult: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: JobResult: 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 ErrIntOverflowGrpc
}
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 ErrInvalidLengthGrpc
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
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 ErrIntOverflowGrpc
}
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 ErrIntOverflowGrpc
}
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 ErrInvalidLengthGrpc
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
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 byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGrpc
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGrpc
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthGrpc
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Result = append(m.Result[:0], dAtA[iNdEx:postIndex]...)
if m.Result == nil {
m.Result = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
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 ErrIntOverflowGrpc
}
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 := skipGrpc(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthGrpc
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGrpc(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, ErrIntOverflowGrpc
}
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, ErrIntOverflowGrpc
}
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, ErrIntOverflowGrpc
}
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, ErrInvalidLengthGrpc
}
iNdEx += length
if iNdEx < 0 {
return 0, ErrInvalidLengthGrpc
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGrpc
}
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 := skipGrpc(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
if iNdEx < 0 {
return 0, ErrInvalidLengthGrpc
}
}
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 (
ErrInvalidLengthGrpc = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGrpc = fmt.Errorf("proto: integer overflow")
)