// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pkg/querier/queryrange/queryrange.proto package queryrange import ( fmt "fmt" queryrange "github.com/cortexproject/cortex/pkg/querier/queryrange" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" github_com_grafana_loki_pkg_logproto "github.com/grafana/loki/pkg/logproto" logproto "github.com/grafana/loki/pkg/logproto" stats "github.com/grafana/loki/pkg/logql/stats" io "io" math "math" reflect "reflect" strings "strings" time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf var _ = time.Kitchen // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package type LokiRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Step int64 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"` StartTs time.Time `protobuf:"bytes,4,opt,name=startTs,proto3,stdtime" json:"startTs"` EndTs time.Time `protobuf:"bytes,5,opt,name=endTs,proto3,stdtime" json:"endTs"` Direction logproto.Direction `protobuf:"varint,6,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"` Path string `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` Shards []string `protobuf:"bytes,8,rep,name=shards,proto3" json:"shards"` } func (m *LokiRequest) Reset() { *m = LokiRequest{} } func (*LokiRequest) ProtoMessage() {} func (*LokiRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{0} } func (m *LokiRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiRequest.Merge(m, src) } func (m *LokiRequest) XXX_Size() int { return m.Size() } func (m *LokiRequest) XXX_DiscardUnknown() { xxx_messageInfo_LokiRequest.DiscardUnknown(m) } var xxx_messageInfo_LokiRequest proto.InternalMessageInfo func (m *LokiRequest) GetQuery() string { if m != nil { return m.Query } return "" } func (m *LokiRequest) GetLimit() uint32 { if m != nil { return m.Limit } return 0 } func (m *LokiRequest) GetStep() int64 { if m != nil { return m.Step } return 0 } func (m *LokiRequest) GetStartTs() time.Time { if m != nil { return m.StartTs } return time.Time{} } func (m *LokiRequest) GetEndTs() time.Time { if m != nil { return m.EndTs } return time.Time{} } func (m *LokiRequest) GetDirection() logproto.Direction { if m != nil { return m.Direction } return logproto.FORWARD } func (m *LokiRequest) GetPath() string { if m != nil { return m.Path } return "" } func (m *LokiRequest) GetShards() []string { if m != nil { return m.Shards } return nil } type LokiResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,json=status,proto3" json:"status"` Data LokiData `protobuf:"bytes,2,opt,name=Data,json=data,proto3" json:"data,omitempty"` ErrorType string `protobuf:"bytes,3,opt,name=ErrorType,json=errorType,proto3" json:"errorType,omitempty"` Error string `protobuf:"bytes,4,opt,name=Error,json=error,proto3" json:"error,omitempty"` Direction logproto.Direction `protobuf:"varint,5,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"` Limit uint32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` Statistics stats.Result `protobuf:"bytes,8,opt,name=statistics,proto3" json:"statistics"` } func (m *LokiResponse) Reset() { *m = LokiResponse{} } func (*LokiResponse) ProtoMessage() {} func (*LokiResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{1} } func (m *LokiResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiResponse.Merge(m, src) } func (m *LokiResponse) XXX_Size() int { return m.Size() } func (m *LokiResponse) XXX_DiscardUnknown() { xxx_messageInfo_LokiResponse.DiscardUnknown(m) } var xxx_messageInfo_LokiResponse proto.InternalMessageInfo func (m *LokiResponse) GetStatus() string { if m != nil { return m.Status } return "" } func (m *LokiResponse) GetData() LokiData { if m != nil { return m.Data } return LokiData{} } func (m *LokiResponse) GetErrorType() string { if m != nil { return m.ErrorType } return "" } func (m *LokiResponse) GetError() string { if m != nil { return m.Error } return "" } func (m *LokiResponse) GetDirection() logproto.Direction { if m != nil { return m.Direction } return logproto.FORWARD } func (m *LokiResponse) GetLimit() uint32 { if m != nil { return m.Limit } return 0 } func (m *LokiResponse) GetVersion() uint32 { if m != nil { return m.Version } return 0 } func (m *LokiResponse) GetStatistics() stats.Result { if m != nil { return m.Statistics } return stats.Result{} } type LokiSeriesRequest struct { Match []string `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"` StartTs time.Time `protobuf:"bytes,2,opt,name=startTs,proto3,stdtime" json:"startTs"` EndTs time.Time `protobuf:"bytes,3,opt,name=endTs,proto3,stdtime" json:"endTs"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` } func (m *LokiSeriesRequest) Reset() { *m = LokiSeriesRequest{} } func (*LokiSeriesRequest) ProtoMessage() {} func (*LokiSeriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{2} } func (m *LokiSeriesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiSeriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiSeriesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiSeriesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiSeriesRequest.Merge(m, src) } func (m *LokiSeriesRequest) XXX_Size() int { return m.Size() } func (m *LokiSeriesRequest) XXX_DiscardUnknown() { xxx_messageInfo_LokiSeriesRequest.DiscardUnknown(m) } var xxx_messageInfo_LokiSeriesRequest proto.InternalMessageInfo func (m *LokiSeriesRequest) GetMatch() []string { if m != nil { return m.Match } return nil } func (m *LokiSeriesRequest) GetStartTs() time.Time { if m != nil { return m.StartTs } return time.Time{} } func (m *LokiSeriesRequest) GetEndTs() time.Time { if m != nil { return m.EndTs } return time.Time{} } func (m *LokiSeriesRequest) GetPath() string { if m != nil { return m.Path } return "" } type LokiSeriesResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,json=status,proto3" json:"status"` Data []logproto.SeriesIdentifier `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"data,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` } func (m *LokiSeriesResponse) Reset() { *m = LokiSeriesResponse{} } func (*LokiSeriesResponse) ProtoMessage() {} func (*LokiSeriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{3} } func (m *LokiSeriesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiSeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiSeriesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiSeriesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiSeriesResponse.Merge(m, src) } func (m *LokiSeriesResponse) XXX_Size() int { return m.Size() } func (m *LokiSeriesResponse) XXX_DiscardUnknown() { xxx_messageInfo_LokiSeriesResponse.DiscardUnknown(m) } var xxx_messageInfo_LokiSeriesResponse proto.InternalMessageInfo func (m *LokiSeriesResponse) GetStatus() string { if m != nil { return m.Status } return "" } func (m *LokiSeriesResponse) GetData() []logproto.SeriesIdentifier { if m != nil { return m.Data } return nil } func (m *LokiSeriesResponse) GetVersion() uint32 { if m != nil { return m.Version } return 0 } type LokiLabelNamesRequest struct { StartTs time.Time `protobuf:"bytes,1,opt,name=startTs,proto3,stdtime" json:"startTs"` EndTs time.Time `protobuf:"bytes,2,opt,name=endTs,proto3,stdtime" json:"endTs"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` } func (m *LokiLabelNamesRequest) Reset() { *m = LokiLabelNamesRequest{} } func (*LokiLabelNamesRequest) ProtoMessage() {} func (*LokiLabelNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{4} } func (m *LokiLabelNamesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiLabelNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiLabelNamesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiLabelNamesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiLabelNamesRequest.Merge(m, src) } func (m *LokiLabelNamesRequest) XXX_Size() int { return m.Size() } func (m *LokiLabelNamesRequest) XXX_DiscardUnknown() { xxx_messageInfo_LokiLabelNamesRequest.DiscardUnknown(m) } var xxx_messageInfo_LokiLabelNamesRequest proto.InternalMessageInfo func (m *LokiLabelNamesRequest) GetStartTs() time.Time { if m != nil { return m.StartTs } return time.Time{} } func (m *LokiLabelNamesRequest) GetEndTs() time.Time { if m != nil { return m.EndTs } return time.Time{} } func (m *LokiLabelNamesRequest) GetPath() string { if m != nil { return m.Path } return "" } type LokiLabelNamesResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,json=status,proto3" json:"status"` Data []string `protobuf:"bytes,2,rep,name=Data,json=data,proto3" json:"data,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` } func (m *LokiLabelNamesResponse) Reset() { *m = LokiLabelNamesResponse{} } func (*LokiLabelNamesResponse) ProtoMessage() {} func (*LokiLabelNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{5} } func (m *LokiLabelNamesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiLabelNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiLabelNamesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiLabelNamesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiLabelNamesResponse.Merge(m, src) } func (m *LokiLabelNamesResponse) XXX_Size() int { return m.Size() } func (m *LokiLabelNamesResponse) XXX_DiscardUnknown() { xxx_messageInfo_LokiLabelNamesResponse.DiscardUnknown(m) } var xxx_messageInfo_LokiLabelNamesResponse proto.InternalMessageInfo func (m *LokiLabelNamesResponse) GetStatus() string { if m != nil { return m.Status } return "" } func (m *LokiLabelNamesResponse) GetData() []string { if m != nil { return m.Data } return nil } func (m *LokiLabelNamesResponse) GetVersion() uint32 { if m != nil { return m.Version } return 0 } type LokiData struct { ResultType string `protobuf:"bytes,1,opt,name=ResultType,json=resultType,proto3" json:"resultType"` Result []github_com_grafana_loki_pkg_logproto.Stream `protobuf:"bytes,2,rep,name=Result,json=result,proto3,customtype=github.com/grafana/loki/pkg/logproto.Stream" json:"result"` } func (m *LokiData) Reset() { *m = LokiData{} } func (*LokiData) ProtoMessage() {} func (*LokiData) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{6} } func (m *LokiData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiData) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiData.Merge(m, src) } func (m *LokiData) XXX_Size() int { return m.Size() } func (m *LokiData) XXX_DiscardUnknown() { xxx_messageInfo_LokiData.DiscardUnknown(m) } var xxx_messageInfo_LokiData proto.InternalMessageInfo func (m *LokiData) GetResultType() string { if m != nil { return m.ResultType } return "" } // LokiPromResponse wraps a Prometheus response with statistics. type LokiPromResponse struct { Response *queryrange.PrometheusResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` Statistics stats.Result `protobuf:"bytes,2,opt,name=statistics,proto3" json:"statistics"` } func (m *LokiPromResponse) Reset() { *m = LokiPromResponse{} } func (*LokiPromResponse) ProtoMessage() {} func (*LokiPromResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{7} } func (m *LokiPromResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiPromResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiPromResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (m *LokiPromResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiPromResponse.Merge(m, src) } func (m *LokiPromResponse) XXX_Size() int { return m.Size() } func (m *LokiPromResponse) XXX_DiscardUnknown() { xxx_messageInfo_LokiPromResponse.DiscardUnknown(m) } var xxx_messageInfo_LokiPromResponse proto.InternalMessageInfo func (m *LokiPromResponse) GetResponse() *queryrange.PrometheusResponse { if m != nil { return m.Response } return nil } func (m *LokiPromResponse) GetStatistics() stats.Result { if m != nil { return m.Statistics } return stats.Result{} } func init() { proto.RegisterType((*LokiRequest)(nil), "queryrange.LokiRequest") proto.RegisterType((*LokiResponse)(nil), "queryrange.LokiResponse") proto.RegisterType((*LokiSeriesRequest)(nil), "queryrange.LokiSeriesRequest") proto.RegisterType((*LokiSeriesResponse)(nil), "queryrange.LokiSeriesResponse") proto.RegisterType((*LokiLabelNamesRequest)(nil), "queryrange.LokiLabelNamesRequest") proto.RegisterType((*LokiLabelNamesResponse)(nil), "queryrange.LokiLabelNamesResponse") proto.RegisterType((*LokiData)(nil), "queryrange.LokiData") proto.RegisterType((*LokiPromResponse)(nil), "queryrange.LokiPromResponse") } func init() { proto.RegisterFile("pkg/querier/queryrange/queryrange.proto", fileDescriptor_51b9d53b40d11902) } var fileDescriptor_51b9d53b40d11902 = []byte{ // 809 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x6e, 0x2b, 0x35, 0x14, 0x1e, 0xe7, 0x7f, 0x5c, 0x5a, 0xc0, 0x2d, 0xed, 0x28, 0x48, 0x33, 0x51, 0x16, 0x10, 0x04, 0x4c, 0x44, 0x0b, 0x1b, 0x24, 0x50, 0x3b, 0x2a, 0x20, 0xa4, 0x0a, 0xa1, 0x69, 0x5e, 0xc0, 0x49, 0xdc, 0xc9, 0xd0, 0x4c, 0x3c, 0xb5, 0x1d, 0x44, 0x37, 0x88, 0x2d, 0xbb, 0xae, 0x79, 0x01, 0x10, 0x6b, 0x36, 0xbc, 0x41, 0x97, 0x5d, 0x56, 0x2c, 0x02, 0x4d, 0x37, 0x28, 0xab, 0x3e, 0xc0, 0x5d, 0x5c, 0xd9, 0x9e, 0x99, 0xb8, 0xd5, 0x95, 0x6e, 0xd3, 0x6e, 0xe2, 0x73, 0x8e, 0xcf, 0x67, 0x1f, 0x7f, 0xe7, 0x3b, 0x19, 0xf8, 0x7e, 0x7a, 0x1a, 0x75, 0xcf, 0xa6, 0x84, 0xc5, 0x84, 0xa9, 0xf5, 0x9c, 0xe1, 0x49, 0x44, 0x0c, 0xd3, 0x4f, 0x19, 0x15, 0x14, 0xc1, 0x65, 0xa4, 0xf9, 0x71, 0x14, 0x8b, 0xd1, 0xb4, 0xef, 0x0f, 0x68, 0xd2, 0x8d, 0x68, 0x44, 0xbb, 0x2a, 0xa5, 0x3f, 0x3d, 0x51, 0x9e, 0x72, 0x94, 0xa5, 0xa1, 0xcd, 0x77, 0xe5, 0x1d, 0x63, 0x1a, 0xe9, 0x8d, 0xdc, 0x78, 0xb0, 0x79, 0x36, 0xee, 0x72, 0x81, 0x05, 0xd7, 0xbf, 0xd9, 0xe6, 0x37, 0xc6, 0x45, 0x03, 0xca, 0x04, 0xf9, 0x29, 0x65, 0xf4, 0x07, 0x32, 0x10, 0x99, 0xd7, 0x7d, 0x64, 0xf5, 0x4d, 0x2f, 0xa2, 0x34, 0x1a, 0x93, 0x65, 0xa1, 0x22, 0x4e, 0x08, 0x17, 0x38, 0x49, 0x75, 0x42, 0xfb, 0xaf, 0x12, 0x5c, 0x3b, 0xa2, 0xa7, 0x71, 0x48, 0xce, 0xa6, 0x84, 0x0b, 0xb4, 0x05, 0xab, 0xea, 0x10, 0x07, 0xb4, 0x40, 0xc7, 0x0e, 0xb5, 0x23, 0xa3, 0xe3, 0x38, 0x89, 0x85, 0x53, 0x6a, 0x81, 0xce, 0x7a, 0xa8, 0x1d, 0x84, 0x60, 0x85, 0x0b, 0x92, 0x3a, 0xe5, 0x16, 0xe8, 0x94, 0x43, 0x65, 0xa3, 0x2f, 0x61, 0x9d, 0x0b, 0xcc, 0x44, 0x8f, 0x3b, 0x95, 0x16, 0xe8, 0xac, 0xed, 0x36, 0x7d, 0x5d, 0x82, 0x9f, 0x97, 0xe0, 0xf7, 0xf2, 0x12, 0x82, 0xc6, 0xe5, 0xcc, 0xb3, 0x2e, 0xfe, 0xf5, 0x40, 0x98, 0x83, 0xd0, 0xe7, 0xb0, 0x4a, 0x26, 0xc3, 0x1e, 0x77, 0xaa, 0x2b, 0xa0, 0x35, 0x04, 0x7d, 0x02, 0xed, 0x61, 0xcc, 0xc8, 0x40, 0xc4, 0x74, 0xe2, 0xd4, 0x5a, 0xa0, 0xb3, 0xb1, 0xbb, 0xe9, 0x17, 0xb4, 0x1f, 0xe6, 0x5b, 0xe1, 0x32, 0x4b, 0x3e, 0x21, 0xc5, 0x62, 0xe4, 0xd4, 0xd5, 0x6b, 0x95, 0x8d, 0xda, 0xb0, 0xc6, 0x47, 0x98, 0x0d, 0xb9, 0xd3, 0x68, 0x95, 0x3b, 0x76, 0x00, 0x17, 0x33, 0x2f, 0x8b, 0x84, 0xd9, 0xda, 0x7e, 0x51, 0x82, 0x6f, 0x68, 0xda, 0x78, 0x4a, 0x27, 0x9c, 0x48, 0xd0, 0xb1, 0xc0, 0x62, 0xca, 0x35, 0x71, 0x19, 0x48, 0x45, 0xc2, 0x6c, 0x45, 0xfb, 0xb0, 0x72, 0x88, 0x05, 0x56, 0x24, 0xae, 0xed, 0x6e, 0xf9, 0x46, 0xb7, 0xe4, 0x59, 0x72, 0x2f, 0xd8, 0x96, 0x8f, 0x5a, 0xcc, 0xbc, 0x8d, 0x21, 0x16, 0xf8, 0x23, 0x9a, 0xc4, 0x82, 0x24, 0xa9, 0x38, 0x0f, 0x2b, 0xd2, 0x47, 0x9f, 0x41, 0xfb, 0x2b, 0xc6, 0x28, 0xeb, 0x9d, 0xa7, 0x44, 0xd1, 0x6e, 0x07, 0x3b, 0x8b, 0x99, 0xb7, 0x49, 0xf2, 0xa0, 0x81, 0xb0, 0x8b, 0x20, 0xfa, 0x00, 0x56, 0x15, 0x4c, 0xb5, 0xc4, 0x0e, 0x36, 0x17, 0x33, 0xef, 0x4d, 0xb5, 0x6b, 0xa4, 0x57, 0x55, 0xe0, 0x3e, 0x87, 0xd5, 0x47, 0x71, 0x58, 0x88, 0xa3, 0x66, 0x8a, 0xc3, 0x81, 0xf5, 0x1f, 0x09, 0xe3, 0xf2, 0x98, 0xba, 0x8a, 0xe7, 0x2e, 0x3a, 0x80, 0x50, 0x12, 0x12, 0x73, 0x11, 0x0f, 0x24, 0xc7, 0x92, 0x8c, 0x75, 0x5f, 0xcb, 0x3f, 0x24, 0x7c, 0x3a, 0x16, 0x01, 0xca, 0x58, 0x30, 0x12, 0x43, 0xc3, 0x6e, 0xff, 0x0d, 0xe0, 0xdb, 0x92, 0xb2, 0x63, 0x39, 0x01, 0xdc, 0xd0, 0x6e, 0x82, 0xc5, 0x60, 0xe4, 0x00, 0xd9, 0xb7, 0x50, 0x3b, 0xa6, 0x22, 0x4b, 0xcf, 0x52, 0x64, 0x79, 0x75, 0x45, 0xe6, 0xf2, 0xaa, 0x2c, 0xe5, 0xd5, 0xfe, 0x0d, 0x40, 0x64, 0xd6, 0xbe, 0x82, 0x80, 0xbe, 0x2e, 0x04, 0x54, 0x56, 0x95, 0x14, 0x7d, 0xd1, 0x67, 0x7d, 0x3b, 0x24, 0x13, 0x11, 0x9f, 0xc4, 0x84, 0xbd, 0x46, 0x46, 0x46, 0x6f, 0xca, 0xf7, 0x7a, 0xd3, 0xfe, 0x1d, 0xc0, 0x77, 0x64, 0x71, 0x47, 0xb8, 0x4f, 0xc6, 0xdf, 0xe1, 0x64, 0x49, 0xae, 0x41, 0x23, 0x78, 0x16, 0x8d, 0xa5, 0xa7, 0xd3, 0x58, 0x36, 0x68, 0xfc, 0x19, 0x6e, 0x3f, 0x2c, 0x74, 0x05, 0x26, 0xdf, 0x33, 0x98, 0xb4, 0x03, 0xf4, 0x04, 0xa6, 0xfe, 0x04, 0xb0, 0x91, 0x4f, 0x2d, 0xf2, 0x21, 0xd4, 0xca, 0x55, 0x83, 0xa9, 0xaf, 0xdd, 0x90, 0xfa, 0x65, 0x45, 0x34, 0x34, 0x6c, 0x34, 0x81, 0x35, 0x9d, 0x9f, 0xb5, 0x72, 0xc7, 0x68, 0xa5, 0x60, 0x04, 0x27, 0x07, 0x43, 0x9c, 0x0a, 0xc2, 0x82, 0x2f, 0x24, 0x15, 0xff, 0xcc, 0xbc, 0x0f, 0xcd, 0x2f, 0x0f, 0xc3, 0x27, 0x78, 0x82, 0xbb, 0x63, 0x7a, 0x1a, 0x77, 0xcd, 0x4f, 0x4c, 0x86, 0x95, 0xcf, 0xd5, 0x77, 0x85, 0xd9, 0xda, 0xfe, 0x15, 0xc0, 0xb7, 0x64, 0xb1, 0xdf, 0x33, 0x9a, 0x14, 0x3c, 0xed, 0xc3, 0x06, 0xcb, 0xec, 0xac, 0xa5, 0xae, 0xf9, 0x97, 0x24, 0x73, 0x89, 0x18, 0x91, 0x69, 0xc1, 0x6c, 0x50, 0xb9, 0x9c, 0x79, 0x20, 0x2c, 0x50, 0x68, 0xef, 0xde, 0x24, 0x97, 0x5e, 0x35, 0xc9, 0x12, 0x62, 0x99, 0xb3, 0x1b, 0x7c, 0x7a, 0x75, 0xe3, 0x5a, 0xd7, 0x37, 0xae, 0x75, 0x77, 0xe3, 0x82, 0x5f, 0xe6, 0x2e, 0xf8, 0x63, 0xee, 0x82, 0xcb, 0xb9, 0x0b, 0xae, 0xe6, 0x2e, 0xf8, 0x6f, 0xee, 0x82, 0xff, 0xe7, 0xae, 0x75, 0x37, 0x77, 0xc1, 0xc5, 0xad, 0x6b, 0x5d, 0xdd, 0xba, 0xd6, 0xf5, 0xad, 0x6b, 0xf5, 0x6b, 0xea, 0x85, 0x7b, 0x2f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x48, 0xfc, 0x00, 0x53, 0xb8, 0x07, 0x00, 0x00, } func (this *LokiRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiRequest) if !ok { that2, ok := that.(LokiRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Query != that1.Query { return false } if this.Limit != that1.Limit { return false } if this.Step != that1.Step { return false } if !this.StartTs.Equal(that1.StartTs) { return false } if !this.EndTs.Equal(that1.EndTs) { return false } if this.Direction != that1.Direction { return false } if this.Path != that1.Path { return false } if len(this.Shards) != len(that1.Shards) { return false } for i := range this.Shards { if this.Shards[i] != that1.Shards[i] { return false } } return true } func (this *LokiResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiResponse) if !ok { that2, ok := that.(LokiResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Status != that1.Status { return false } if !this.Data.Equal(&that1.Data) { return false } if this.ErrorType != that1.ErrorType { return false } if this.Error != that1.Error { return false } if this.Direction != that1.Direction { return false } if this.Limit != that1.Limit { return false } if this.Version != that1.Version { return false } if !this.Statistics.Equal(&that1.Statistics) { return false } return true } func (this *LokiSeriesRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiSeriesRequest) if !ok { that2, ok := that.(LokiSeriesRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if len(this.Match) != len(that1.Match) { return false } for i := range this.Match { if this.Match[i] != that1.Match[i] { return false } } if !this.StartTs.Equal(that1.StartTs) { return false } if !this.EndTs.Equal(that1.EndTs) { return false } if this.Path != that1.Path { return false } return true } func (this *LokiSeriesResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiSeriesResponse) if !ok { that2, ok := that.(LokiSeriesResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Status != that1.Status { return false } if len(this.Data) != len(that1.Data) { return false } for i := range this.Data { if !this.Data[i].Equal(&that1.Data[i]) { return false } } if this.Version != that1.Version { return false } return true } func (this *LokiLabelNamesRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiLabelNamesRequest) if !ok { that2, ok := that.(LokiLabelNamesRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.StartTs.Equal(that1.StartTs) { return false } if !this.EndTs.Equal(that1.EndTs) { return false } if this.Path != that1.Path { return false } return true } func (this *LokiLabelNamesResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiLabelNamesResponse) if !ok { that2, ok := that.(LokiLabelNamesResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Status != that1.Status { return false } if len(this.Data) != len(that1.Data) { return false } for i := range this.Data { if this.Data[i] != that1.Data[i] { return false } } if this.Version != that1.Version { return false } return true } func (this *LokiData) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiData) if !ok { that2, ok := that.(LokiData) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.ResultType != that1.ResultType { return false } if len(this.Result) != len(that1.Result) { return false } for i := range this.Result { if !this.Result[i].Equal(that1.Result[i]) { return false } } return true } func (this *LokiPromResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiPromResponse) if !ok { that2, ok := that.(LokiPromResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Response.Equal(that1.Response) { return false } if !this.Statistics.Equal(&that1.Statistics) { return false } return true } func (this *LokiRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 12) s = append(s, "&queryrange.LokiRequest{") s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n") s = append(s, "Step: "+fmt.Sprintf("%#v", this.Step)+",\n") s = append(s, "StartTs: "+fmt.Sprintf("%#v", this.StartTs)+",\n") s = append(s, "EndTs: "+fmt.Sprintf("%#v", this.EndTs)+",\n") s = append(s, "Direction: "+fmt.Sprintf("%#v", this.Direction)+",\n") s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 12) s = append(s, "&queryrange.LokiResponse{") s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") s = append(s, "Data: "+strings.Replace(this.Data.GoString(), `&`, ``, 1)+",\n") s = append(s, "ErrorType: "+fmt.Sprintf("%#v", this.ErrorType)+",\n") s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n") s = append(s, "Direction: "+fmt.Sprintf("%#v", this.Direction)+",\n") s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n") s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") s = append(s, "Statistics: "+strings.Replace(this.Statistics.GoString(), `&`, ``, 1)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiSeriesRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 8) s = append(s, "&queryrange.LokiSeriesRequest{") s = append(s, "Match: "+fmt.Sprintf("%#v", this.Match)+",\n") s = append(s, "StartTs: "+fmt.Sprintf("%#v", this.StartTs)+",\n") s = append(s, "EndTs: "+fmt.Sprintf("%#v", this.EndTs)+",\n") s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiSeriesResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) s = append(s, "&queryrange.LokiSeriesResponse{") s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") if this.Data != nil { vs := make([]*logproto.SeriesIdentifier, len(this.Data)) for i := range vs { vs[i] = &this.Data[i] } s = append(s, "Data: "+fmt.Sprintf("%#v", vs)+",\n") } s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiLabelNamesRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) s = append(s, "&queryrange.LokiLabelNamesRequest{") s = append(s, "StartTs: "+fmt.Sprintf("%#v", this.StartTs)+",\n") s = append(s, "EndTs: "+fmt.Sprintf("%#v", this.EndTs)+",\n") s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiLabelNamesResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) s = append(s, "&queryrange.LokiLabelNamesResponse{") s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n") s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiData) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.LokiData{") s = append(s, "ResultType: "+fmt.Sprintf("%#v", this.ResultType)+",\n") s = append(s, "Result: "+fmt.Sprintf("%#v", this.Result)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiPromResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.LokiPromResponse{") if this.Response != nil { s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") } s = append(s, "Statistics: "+strings.Replace(this.Statistics.GoString(), `&`, ``, 1)+",\n") s = append(s, "}") return strings.Join(s, "") } func valueToGoStringQueryrange(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) } func (m *LokiRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Query) > 0 { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Query))) i += copy(dAtA[i:], m.Query) } if m.Limit != 0 { dAtA[i] = 0x10 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) } if m.Step != 0 { dAtA[i] = 0x18 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Step)) } dAtA[i] = 0x22 i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs))) n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) if err != nil { return 0, err } i += n1 dAtA[i] = 0x2a i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs))) n2, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) if err != nil { return 0, err } i += n2 if m.Direction != 0 { dAtA[i] = 0x30 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) } if len(m.Path) > 0 { dAtA[i] = 0x3a i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i += copy(dAtA[i:], m.Path) } if len(m.Shards) > 0 { for _, s := range m.Shards { dAtA[i] = 0x42 i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } return i, nil } func (m *LokiResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Status) > 0 { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i += copy(dAtA[i:], m.Status) } dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Data.Size())) n3, err := m.Data.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n3 if len(m.ErrorType) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.ErrorType))) i += copy(dAtA[i:], m.ErrorType) } if len(m.Error) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Error))) i += copy(dAtA[i:], m.Error) } if m.Direction != 0 { dAtA[i] = 0x28 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) } if m.Limit != 0 { dAtA[i] = 0x30 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) } if m.Version != 0 { dAtA[i] = 0x38 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) } dAtA[i] = 0x42 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Statistics.Size())) n4, err := m.Statistics.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n4 return i, nil } func (m *LokiSeriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiSeriesRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Match) > 0 { for _, s := range m.Match { dAtA[i] = 0xa i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs))) n5, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) if err != nil { return 0, err } i += n5 dAtA[i] = 0x1a i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs))) n6, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) if err != nil { return 0, err } i += n6 if len(m.Path) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i += copy(dAtA[i:], m.Path) } return i, nil } func (m *LokiSeriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiSeriesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Status) > 0 { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i += copy(dAtA[i:], m.Status) } if len(m.Data) > 0 { for _, msg := range m.Data { dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } if m.Version != 0 { dAtA[i] = 0x18 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) } return i, nil } func (m *LokiLabelNamesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiLabelNamesRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs))) n7, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) if err != nil { return 0, err } i += n7 dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs))) n8, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) if err != nil { return 0, err } i += n8 if len(m.Path) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i += copy(dAtA[i:], m.Path) } return i, nil } func (m *LokiLabelNamesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiLabelNamesResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Status) > 0 { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i += copy(dAtA[i:], m.Status) } if len(m.Data) > 0 { for _, s := range m.Data { dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { dAtA[i] = uint8(uint64(l)&0x7f | 0x80) l >>= 7 i++ } dAtA[i] = uint8(l) i++ i += copy(dAtA[i:], s) } } if m.Version != 0 { dAtA[i] = 0x18 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) } return i, nil } func (m *LokiData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.ResultType) > 0 { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(len(m.ResultType))) i += copy(dAtA[i:], m.ResultType) } if len(m.Result) > 0 { for _, msg := range m.Result { dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n } } return i, nil } func (m *LokiPromResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiPromResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Response != nil { dAtA[i] = 0xa i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Response.Size())) n9, err := m.Response.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n9 } dAtA[i] = 0x12 i++ i = encodeVarintQueryrange(dAtA, i, uint64(m.Statistics.Size())) n10, err := m.Statistics.MarshalTo(dAtA[i:]) if err != nil { return 0, err } i += n10 return i, nil } func encodeVarintQueryrange(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func (m *LokiRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Query) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if m.Limit != 0 { n += 1 + sovQueryrange(uint64(m.Limit)) } if m.Step != 0 { n += 1 + sovQueryrange(uint64(m.Step)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs) n += 1 + l + sovQueryrange(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs) n += 1 + l + sovQueryrange(uint64(l)) if m.Direction != 0 { n += 1 + sovQueryrange(uint64(m.Direction)) } l = len(m.Path) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if len(m.Shards) > 0 { for _, s := range m.Shards { l = len(s) n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *LokiResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Status) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } l = m.Data.Size() n += 1 + l + sovQueryrange(uint64(l)) l = len(m.ErrorType) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } l = len(m.Error) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if m.Direction != 0 { n += 1 + sovQueryrange(uint64(m.Direction)) } if m.Limit != 0 { n += 1 + sovQueryrange(uint64(m.Limit)) } if m.Version != 0 { n += 1 + sovQueryrange(uint64(m.Version)) } l = m.Statistics.Size() n += 1 + l + sovQueryrange(uint64(l)) return n } func (m *LokiSeriesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Match) > 0 { for _, s := range m.Match { l = len(s) n += 1 + l + sovQueryrange(uint64(l)) } } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs) n += 1 + l + sovQueryrange(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs) n += 1 + l + sovQueryrange(uint64(l)) l = len(m.Path) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *LokiSeriesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Status) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if len(m.Data) > 0 { for _, e := range m.Data { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } if m.Version != 0 { n += 1 + sovQueryrange(uint64(m.Version)) } return n } func (m *LokiLabelNamesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs) n += 1 + l + sovQueryrange(uint64(l)) l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs) n += 1 + l + sovQueryrange(uint64(l)) l = len(m.Path) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *LokiLabelNamesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Status) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if len(m.Data) > 0 { for _, s := range m.Data { l = len(s) n += 1 + l + sovQueryrange(uint64(l)) } } if m.Version != 0 { n += 1 + sovQueryrange(uint64(m.Version)) } return n } func (m *LokiData) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ResultType) if l > 0 { n += 1 + l + sovQueryrange(uint64(l)) } if len(m.Result) > 0 { for _, e := range m.Result { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *LokiPromResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Response != nil { l = m.Response.Size() n += 1 + l + sovQueryrange(uint64(l)) } l = m.Statistics.Size() n += 1 + l + sovQueryrange(uint64(l)) return n } func sovQueryrange(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozQueryrange(x uint64) (n int) { return sovQueryrange(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *LokiRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiRequest{`, `Query:` + fmt.Sprintf("%v", this.Query) + `,`, `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, `Step:` + fmt.Sprintf("%v", this.Step) + `,`, `StartTs:` + strings.Replace(strings.Replace(this.StartTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `EndTs:` + strings.Replace(strings.Replace(this.EndTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Direction:` + fmt.Sprintf("%v", this.Direction) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `Shards:` + fmt.Sprintf("%v", this.Shards) + `,`, `}`, }, "") return s } func (this *LokiResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiResponse{`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `Data:` + strings.Replace(strings.Replace(this.Data.String(), "LokiData", "LokiData", 1), `&`, ``, 1) + `,`, `ErrorType:` + fmt.Sprintf("%v", this.ErrorType) + `,`, `Error:` + fmt.Sprintf("%v", this.Error) + `,`, `Direction:` + fmt.Sprintf("%v", this.Direction) + `,`, `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `Statistics:` + strings.Replace(strings.Replace(this.Statistics.String(), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *LokiSeriesRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiSeriesRequest{`, `Match:` + fmt.Sprintf("%v", this.Match) + `,`, `StartTs:` + strings.Replace(strings.Replace(this.StartTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `EndTs:` + strings.Replace(strings.Replace(this.EndTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `}`, }, "") return s } func (this *LokiSeriesResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiSeriesResponse{`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "SeriesIdentifier", "logproto.SeriesIdentifier", 1), `&`, ``, 1) + `,`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `}`, }, "") return s } func (this *LokiLabelNamesRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiLabelNamesRequest{`, `StartTs:` + strings.Replace(strings.Replace(this.StartTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `EndTs:` + strings.Replace(strings.Replace(this.EndTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `}`, }, "") return s } func (this *LokiLabelNamesResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiLabelNamesResponse{`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `Data:` + fmt.Sprintf("%v", this.Data) + `,`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `}`, }, "") return s } func (this *LokiData) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiData{`, `ResultType:` + fmt.Sprintf("%v", this.ResultType) + `,`, `Result:` + fmt.Sprintf("%v", this.Result) + `,`, `}`, }, "") return s } func (this *LokiPromResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiPromResponse{`, `Response:` + strings.Replace(fmt.Sprintf("%v", this.Response), "PrometheusResponse", "queryrange.PrometheusResponse", 1) + `,`, `Statistics:` + strings.Replace(strings.Replace(this.Statistics.String(), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func valueToStringQueryrange(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *LokiRequest) 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 ErrIntOverflowQueryrange } 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: LokiRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Query = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) } m.Step = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Step |= int64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.EndTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) } m.Direction = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Direction |= logproto.Direction(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiResponse) 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 ErrIntOverflowQueryrange } 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: LokiResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ErrorType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.ErrorType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: 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 ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Error = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) } m.Direction = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Direction |= logproto.Direction(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Version |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiSeriesRequest) 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 ErrIntOverflowQueryrange } 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: LokiSeriesRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiSeriesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Match", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Match = append(m.Match, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.EndTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiSeriesResponse) 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 ErrIntOverflowQueryrange } 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: LokiSeriesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiSeriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Data = append(m.Data, logproto.SeriesIdentifier{}) if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Version |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiLabelNamesRequest) 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 ErrIntOverflowQueryrange } 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: LokiLabelNamesRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiLabelNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EndTs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.EndTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiLabelNamesResponse) 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 ErrIntOverflowQueryrange } 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: LokiLabelNamesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiLabelNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Data = append(m.Data, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Version |= uint32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiData) 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 ErrIntOverflowQueryrange } 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: LokiData: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResultType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } 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 ErrInvalidLengthQueryrange } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.ResultType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Result = append(m.Result, github_com_grafana_loki_pkg_logproto.Stream{}) if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LokiPromResponse) 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 ErrIntOverflowQueryrange } 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: LokiPromResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiPromResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if m.Response == nil { m.Response = &queryrange.PrometheusResponse{} } if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipQueryrange(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, ErrIntOverflowQueryrange } 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, ErrIntOverflowQueryrange } 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, ErrIntOverflowQueryrange } 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, ErrInvalidLengthQueryrange } iNdEx += length if iNdEx < 0 { return 0, ErrInvalidLengthQueryrange } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQueryrange } 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 := skipQueryrange(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next if iNdEx < 0 { return 0, ErrInvalidLengthQueryrange } } 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 ( ErrInvalidLengthQueryrange = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQueryrange = fmt.Errorf("proto: integer overflow") )