// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pkg/querier/queryrange/queryrange.proto package queryrange import ( bytes "bytes" fmt "fmt" rpc "github.com/gogo/googleapis/google/rpc" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" _ "github.com/grafana/loki/pkg/push" github_com_grafana_loki_pkg_push "github.com/grafana/loki/pkg/push" github_com_grafana_loki_v3_pkg_logproto "github.com/grafana/loki/v3/pkg/logproto" logproto "github.com/grafana/loki/v3/pkg/logproto" stats "github.com/grafana/loki/v3/pkg/logqlmodel/stats" github_com_grafana_loki_v3_pkg_querier_plan "github.com/grafana/loki/v3/pkg/querier/plan" queryrangebase "github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase" _ "github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions" github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions "github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions" io "io" math "math" math_bits "math/bits" 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.GoGoProtoPackageIsVersion3 // 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"` Interval int64 `protobuf:"varint,9,opt,name=interval,proto3" json:"interval,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"` Plan *github_com_grafana_loki_v3_pkg_querier_plan.QueryPlan `protobuf:"bytes,10,opt,name=plan,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/plan.QueryPlan" json:"plan,omitempty"` } 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.MarshalToSizedBuffer(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) GetInterval() int64 { if m != nil { return m.Interval } 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 LokiInstantRequest 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"` TimeTs time.Time `protobuf:"bytes,3,opt,name=timeTs,proto3,stdtime" json:"timeTs"` Direction logproto.Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Shards []string `protobuf:"bytes,6,rep,name=shards,proto3" json:"shards"` Plan *github_com_grafana_loki_v3_pkg_querier_plan.QueryPlan `protobuf:"bytes,7,opt,name=plan,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/plan.QueryPlan" json:"plan,omitempty"` } func (m *LokiInstantRequest) Reset() { *m = LokiInstantRequest{} } func (*LokiInstantRequest) ProtoMessage() {} func (*LokiInstantRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{1} } func (m *LokiInstantRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LokiInstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LokiInstantRequest.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 *LokiInstantRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LokiInstantRequest.Merge(m, src) } func (m *LokiInstantRequest) XXX_Size() int { return m.Size() } func (m *LokiInstantRequest) XXX_DiscardUnknown() { xxx_messageInfo_LokiInstantRequest.DiscardUnknown(m) } var xxx_messageInfo_LokiInstantRequest proto.InternalMessageInfo func (m *LokiInstantRequest) GetQuery() string { if m != nil { return m.Query } return "" } func (m *LokiInstantRequest) GetLimit() uint32 { if m != nil { return m.Limit } return 0 } func (m *LokiInstantRequest) GetTimeTs() time.Time { if m != nil { return m.TimeTs } return time.Time{} } func (m *LokiInstantRequest) GetDirection() logproto.Direction { if m != nil { return m.Direction } return logproto.FORWARD } func (m *LokiInstantRequest) GetPath() string { if m != nil { return m.Path } return "" } func (m *LokiInstantRequest) GetShards() []string { if m != nil { return m.Shards } return nil } type Plan struct { Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` } func (m *Plan) Reset() { *m = Plan{} } func (*Plan) ProtoMessage() {} func (*Plan) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{2} } func (m *Plan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Plan.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 *Plan) XXX_Merge(src proto.Message) { xxx_messageInfo_Plan.Merge(m, src) } func (m *Plan) XXX_Size() int { return m.Size() } func (m *Plan) XXX_DiscardUnknown() { xxx_messageInfo_Plan.DiscardUnknown(m) } var xxx_messageInfo_Plan proto.InternalMessageInfo func (m *Plan) GetRaw() []byte { if m != nil { return m.Raw } return nil } type LokiResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` Data LokiData `protobuf:"bytes,2,opt,name=Data,proto3" json:"data,omitempty"` ErrorType string `protobuf:"bytes,3,opt,name=ErrorType,proto3" json:"errorType,omitempty"` Error string `protobuf:"bytes,4,opt,name=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"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,9,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` Warnings []string `protobuf:"bytes,10,rep,name=warnings,proto3" json:"warnings,omitempty"` } func (m *LokiResponse) Reset() { *m = LokiResponse{} } func (*LokiResponse) ProtoMessage() {} func (*LokiResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{3} } 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.MarshalToSizedBuffer(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{} } func (m *LokiResponse) GetWarnings() []string { if m != nil { return m.Warnings } return nil } 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"` Shards []string `protobuf:"bytes,5,rep,name=shards,proto3" json:"shards"` } func (m *LokiSeriesRequest) Reset() { *m = LokiSeriesRequest{} } func (*LokiSeriesRequest) ProtoMessage() {} func (*LokiSeriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{4} } 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.MarshalToSizedBuffer(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 "" } func (m *LokiSeriesRequest) GetShards() []string { if m != nil { return m.Shards } return nil } type LokiSeriesResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` Data []logproto.SeriesIdentifier `protobuf:"bytes,2,rep,name=Data,proto3" json:"data,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,4,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` Statistics stats.Result `protobuf:"bytes,5,opt,name=statistics,proto3" json:"statistics"` } func (m *LokiSeriesResponse) Reset() { *m = LokiSeriesResponse{} } func (*LokiSeriesResponse) ProtoMessage() {} func (*LokiSeriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{5} } 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.MarshalToSizedBuffer(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 } func (m *LokiSeriesResponse) GetStatistics() stats.Result { if m != nil { return m.Statistics } return stats.Result{} } type LokiLabelNamesResponse struct { Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` Data []string `protobuf:"bytes,2,rep,name=Data,proto3" json:"data,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,4,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` Statistics stats.Result `protobuf:"bytes,5,opt,name=statistics,proto3" json:"statistics"` } func (m *LokiLabelNamesResponse) Reset() { *m = LokiLabelNamesResponse{} } func (*LokiLabelNamesResponse) ProtoMessage() {} func (*LokiLabelNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{6} } 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.MarshalToSizedBuffer(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 } func (m *LokiLabelNamesResponse) GetStatistics() stats.Result { if m != nil { return m.Statistics } return stats.Result{} } type LokiData struct { ResultType string `protobuf:"bytes,1,opt,name=ResultType,proto3" json:"resultType"` Result []github_com_grafana_loki_pkg_push.Stream `protobuf:"bytes,2,rep,name=Result,proto3,customtype=github.com/grafana/loki/pkg/push.Stream" json:"result"` } func (m *LokiData) Reset() { *m = LokiData{} } func (*LokiData) ProtoMessage() {} func (*LokiData) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{7} } 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.MarshalToSizedBuffer(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 *queryrangebase.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{8} } 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.MarshalToSizedBuffer(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() *queryrangebase.PrometheusResponse { if m != nil { return m.Response } return nil } func (m *LokiPromResponse) GetStatistics() stats.Result { if m != nil { return m.Statistics } return stats.Result{} } type IndexStatsResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.IndexStatsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.IndexStatsResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *IndexStatsResponse) Reset() { *m = IndexStatsResponse{} } func (*IndexStatsResponse) ProtoMessage() {} func (*IndexStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{9} } func (m *IndexStatsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IndexStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_IndexStatsResponse.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 *IndexStatsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_IndexStatsResponse.Merge(m, src) } func (m *IndexStatsResponse) XXX_Size() int { return m.Size() } func (m *IndexStatsResponse) XXX_DiscardUnknown() { xxx_messageInfo_IndexStatsResponse.DiscardUnknown(m) } var xxx_messageInfo_IndexStatsResponse proto.InternalMessageInfo type VolumeResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.VolumeResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.VolumeResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *VolumeResponse) Reset() { *m = VolumeResponse{} } func (*VolumeResponse) ProtoMessage() {} func (*VolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{10} } func (m *VolumeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_VolumeResponse.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 *VolumeResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_VolumeResponse.Merge(m, src) } func (m *VolumeResponse) XXX_Size() int { return m.Size() } func (m *VolumeResponse) XXX_DiscardUnknown() { xxx_messageInfo_VolumeResponse.DiscardUnknown(m) } var xxx_messageInfo_VolumeResponse proto.InternalMessageInfo type TopKSketchesResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.TopKMatrix `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.TopKMatrix" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` Warnings []string `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"` } func (m *TopKSketchesResponse) Reset() { *m = TopKSketchesResponse{} } func (*TopKSketchesResponse) ProtoMessage() {} func (*TopKSketchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{11} } func (m *TopKSketchesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopKSketchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopKSketchesResponse.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 *TopKSketchesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_TopKSketchesResponse.Merge(m, src) } func (m *TopKSketchesResponse) XXX_Size() int { return m.Size() } func (m *TopKSketchesResponse) XXX_DiscardUnknown() { xxx_messageInfo_TopKSketchesResponse.DiscardUnknown(m) } var xxx_messageInfo_TopKSketchesResponse proto.InternalMessageInfo func (m *TopKSketchesResponse) GetWarnings() []string { if m != nil { return m.Warnings } return nil } type QuantileSketchResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.QuantileSketchMatrix `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.QuantileSketchMatrix" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` Warnings []string `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"` } func (m *QuantileSketchResponse) Reset() { *m = QuantileSketchResponse{} } func (*QuantileSketchResponse) ProtoMessage() {} func (*QuantileSketchResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{12} } func (m *QuantileSketchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QuantileSketchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QuantileSketchResponse.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 *QuantileSketchResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QuantileSketchResponse.Merge(m, src) } func (m *QuantileSketchResponse) XXX_Size() int { return m.Size() } func (m *QuantileSketchResponse) XXX_DiscardUnknown() { xxx_messageInfo_QuantileSketchResponse.DiscardUnknown(m) } var xxx_messageInfo_QuantileSketchResponse proto.InternalMessageInfo func (m *QuantileSketchResponse) GetWarnings() []string { if m != nil { return m.Warnings } return nil } type ShardsResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.ShardsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.ShardsResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *ShardsResponse) Reset() { *m = ShardsResponse{} } func (*ShardsResponse) ProtoMessage() {} func (*ShardsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{13} } func (m *ShardsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ShardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ShardsResponse.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 *ShardsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ShardsResponse.Merge(m, src) } func (m *ShardsResponse) XXX_Size() int { return m.Size() } func (m *ShardsResponse) XXX_DiscardUnknown() { xxx_messageInfo_ShardsResponse.DiscardUnknown(m) } var xxx_messageInfo_ShardsResponse proto.InternalMessageInfo type DetectedFieldsResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.DetectedFieldsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.DetectedFieldsResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *DetectedFieldsResponse) Reset() { *m = DetectedFieldsResponse{} } func (*DetectedFieldsResponse) ProtoMessage() {} func (*DetectedFieldsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{14} } func (m *DetectedFieldsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DetectedFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DetectedFieldsResponse.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 *DetectedFieldsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DetectedFieldsResponse.Merge(m, src) } func (m *DetectedFieldsResponse) XXX_Size() int { return m.Size() } func (m *DetectedFieldsResponse) XXX_DiscardUnknown() { xxx_messageInfo_DetectedFieldsResponse.DiscardUnknown(m) } var xxx_messageInfo_DetectedFieldsResponse proto.InternalMessageInfo type QueryPatternsResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.QueryPatternsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.QueryPatternsResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *QueryPatternsResponse) Reset() { *m = QueryPatternsResponse{} } func (*QueryPatternsResponse) ProtoMessage() {} func (*QueryPatternsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{15} } func (m *QueryPatternsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryPatternsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryPatternsResponse.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 *QueryPatternsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryPatternsResponse.Merge(m, src) } func (m *QueryPatternsResponse) XXX_Size() int { return m.Size() } func (m *QueryPatternsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryPatternsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryPatternsResponse proto.InternalMessageInfo type DetectedLabelsResponse struct { Response *github_com_grafana_loki_v3_pkg_logproto.DetectedLabelsResponse `protobuf:"bytes,1,opt,name=response,proto3,customtype=github.com/grafana/loki/v3/pkg/logproto.DetectedLabelsResponse" json:"response,omitempty"` Headers []github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader `protobuf:"bytes,2,rep,name=Headers,proto3,customtype=github.com/grafana/loki/v3/pkg/querier/queryrange/queryrangebase/definitions.PrometheusResponseHeader" json:"-"` } func (m *DetectedLabelsResponse) Reset() { *m = DetectedLabelsResponse{} } func (*DetectedLabelsResponse) ProtoMessage() {} func (*DetectedLabelsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{16} } func (m *DetectedLabelsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *DetectedLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_DetectedLabelsResponse.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 *DetectedLabelsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_DetectedLabelsResponse.Merge(m, src) } func (m *DetectedLabelsResponse) XXX_Size() int { return m.Size() } func (m *DetectedLabelsResponse) XXX_DiscardUnknown() { xxx_messageInfo_DetectedLabelsResponse.DiscardUnknown(m) } var xxx_messageInfo_DetectedLabelsResponse proto.InternalMessageInfo type QueryResponse struct { Status *rpc.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Types that are valid to be assigned to Response: // *QueryResponse_Series // *QueryResponse_Labels // *QueryResponse_Stats // *QueryResponse_Prom // *QueryResponse_Streams // *QueryResponse_Volume // *QueryResponse_TopkSketches // *QueryResponse_QuantileSketches // *QueryResponse_ShardsResponse // *QueryResponse_DetectedFields // *QueryResponse_PatternsResponse // *QueryResponse_DetectedLabels Response isQueryResponse_Response `protobuf_oneof:"response"` } func (m *QueryResponse) Reset() { *m = QueryResponse{} } func (*QueryResponse) ProtoMessage() {} func (*QueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{17} } func (m *QueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryResponse.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 *QueryResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryResponse.Merge(m, src) } func (m *QueryResponse) XXX_Size() int { return m.Size() } func (m *QueryResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryResponse proto.InternalMessageInfo type isQueryResponse_Response interface { isQueryResponse_Response() Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } type QueryResponse_Series struct { Series *LokiSeriesResponse `protobuf:"bytes,2,opt,name=series,proto3,oneof"` } type QueryResponse_Labels struct { Labels *LokiLabelNamesResponse `protobuf:"bytes,3,opt,name=labels,proto3,oneof"` } type QueryResponse_Stats struct { Stats *IndexStatsResponse `protobuf:"bytes,4,opt,name=stats,proto3,oneof"` } type QueryResponse_Prom struct { Prom *LokiPromResponse `protobuf:"bytes,5,opt,name=prom,proto3,oneof"` } type QueryResponse_Streams struct { Streams *LokiResponse `protobuf:"bytes,6,opt,name=streams,proto3,oneof"` } type QueryResponse_Volume struct { Volume *VolumeResponse `protobuf:"bytes,7,opt,name=volume,proto3,oneof"` } type QueryResponse_TopkSketches struct { TopkSketches *TopKSketchesResponse `protobuf:"bytes,8,opt,name=topkSketches,proto3,oneof"` } type QueryResponse_QuantileSketches struct { QuantileSketches *QuantileSketchResponse `protobuf:"bytes,9,opt,name=quantileSketches,proto3,oneof"` } type QueryResponse_ShardsResponse struct { ShardsResponse *ShardsResponse `protobuf:"bytes,10,opt,name=shardsResponse,proto3,oneof"` } type QueryResponse_DetectedFields struct { DetectedFields *DetectedFieldsResponse `protobuf:"bytes,11,opt,name=detectedFields,proto3,oneof"` } type QueryResponse_PatternsResponse struct { PatternsResponse *QueryPatternsResponse `protobuf:"bytes,12,opt,name=patternsResponse,proto3,oneof"` } type QueryResponse_DetectedLabels struct { DetectedLabels *DetectedLabelsResponse `protobuf:"bytes,13,opt,name=detectedLabels,proto3,oneof"` } func (*QueryResponse_Series) isQueryResponse_Response() {} func (*QueryResponse_Labels) isQueryResponse_Response() {} func (*QueryResponse_Stats) isQueryResponse_Response() {} func (*QueryResponse_Prom) isQueryResponse_Response() {} func (*QueryResponse_Streams) isQueryResponse_Response() {} func (*QueryResponse_Volume) isQueryResponse_Response() {} func (*QueryResponse_TopkSketches) isQueryResponse_Response() {} func (*QueryResponse_QuantileSketches) isQueryResponse_Response() {} func (*QueryResponse_ShardsResponse) isQueryResponse_Response() {} func (*QueryResponse_DetectedFields) isQueryResponse_Response() {} func (*QueryResponse_PatternsResponse) isQueryResponse_Response() {} func (*QueryResponse_DetectedLabels) isQueryResponse_Response() {} func (m *QueryResponse) GetResponse() isQueryResponse_Response { if m != nil { return m.Response } return nil } func (m *QueryResponse) GetStatus() *rpc.Status { if m != nil { return m.Status } return nil } func (m *QueryResponse) GetSeries() *LokiSeriesResponse { if x, ok := m.GetResponse().(*QueryResponse_Series); ok { return x.Series } return nil } func (m *QueryResponse) GetLabels() *LokiLabelNamesResponse { if x, ok := m.GetResponse().(*QueryResponse_Labels); ok { return x.Labels } return nil } func (m *QueryResponse) GetStats() *IndexStatsResponse { if x, ok := m.GetResponse().(*QueryResponse_Stats); ok { return x.Stats } return nil } func (m *QueryResponse) GetProm() *LokiPromResponse { if x, ok := m.GetResponse().(*QueryResponse_Prom); ok { return x.Prom } return nil } func (m *QueryResponse) GetStreams() *LokiResponse { if x, ok := m.GetResponse().(*QueryResponse_Streams); ok { return x.Streams } return nil } func (m *QueryResponse) GetVolume() *VolumeResponse { if x, ok := m.GetResponse().(*QueryResponse_Volume); ok { return x.Volume } return nil } func (m *QueryResponse) GetTopkSketches() *TopKSketchesResponse { if x, ok := m.GetResponse().(*QueryResponse_TopkSketches); ok { return x.TopkSketches } return nil } func (m *QueryResponse) GetQuantileSketches() *QuantileSketchResponse { if x, ok := m.GetResponse().(*QueryResponse_QuantileSketches); ok { return x.QuantileSketches } return nil } func (m *QueryResponse) GetShardsResponse() *ShardsResponse { if x, ok := m.GetResponse().(*QueryResponse_ShardsResponse); ok { return x.ShardsResponse } return nil } func (m *QueryResponse) GetDetectedFields() *DetectedFieldsResponse { if x, ok := m.GetResponse().(*QueryResponse_DetectedFields); ok { return x.DetectedFields } return nil } func (m *QueryResponse) GetPatternsResponse() *QueryPatternsResponse { if x, ok := m.GetResponse().(*QueryResponse_PatternsResponse); ok { return x.PatternsResponse } return nil } func (m *QueryResponse) GetDetectedLabels() *DetectedLabelsResponse { if x, ok := m.GetResponse().(*QueryResponse_DetectedLabels); ok { return x.DetectedLabels } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*QueryResponse) XXX_OneofWrappers() []interface{} { return []interface{}{ (*QueryResponse_Series)(nil), (*QueryResponse_Labels)(nil), (*QueryResponse_Stats)(nil), (*QueryResponse_Prom)(nil), (*QueryResponse_Streams)(nil), (*QueryResponse_Volume)(nil), (*QueryResponse_TopkSketches)(nil), (*QueryResponse_QuantileSketches)(nil), (*QueryResponse_ShardsResponse)(nil), (*QueryResponse_DetectedFields)(nil), (*QueryResponse_PatternsResponse)(nil), (*QueryResponse_DetectedLabels)(nil), } } type QueryRequest struct { // Types that are valid to be assigned to Request: // *QueryRequest_Series // *QueryRequest_Labels // *QueryRequest_Stats // *QueryRequest_Instant // *QueryRequest_Streams // *QueryRequest_Volume // *QueryRequest_ShardsRequest // *QueryRequest_DetectedFields // *QueryRequest_PatternsRequest // *QueryRequest_DetectedLabels Request isQueryRequest_Request `protobuf_oneof:"request"` Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *QueryRequest) Reset() { *m = QueryRequest{} } func (*QueryRequest) ProtoMessage() {} func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor_51b9d53b40d11902, []int{18} } func (m *QueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRequest.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 *QueryRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRequest.Merge(m, src) } func (m *QueryRequest) XXX_Size() int { return m.Size() } func (m *QueryRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryRequest proto.InternalMessageInfo type isQueryRequest_Request interface { isQueryRequest_Request() Equal(interface{}) bool MarshalTo([]byte) (int, error) Size() int } type QueryRequest_Series struct { Series *LokiSeriesRequest `protobuf:"bytes,1,opt,name=series,proto3,oneof"` } type QueryRequest_Labels struct { Labels *logproto.LabelRequest `protobuf:"bytes,2,opt,name=labels,proto3,oneof"` } type QueryRequest_Stats struct { Stats *logproto.IndexStatsRequest `protobuf:"bytes,3,opt,name=stats,proto3,oneof"` } type QueryRequest_Instant struct { Instant *LokiInstantRequest `protobuf:"bytes,4,opt,name=instant,proto3,oneof"` } type QueryRequest_Streams struct { Streams *LokiRequest `protobuf:"bytes,5,opt,name=streams,proto3,oneof"` } type QueryRequest_Volume struct { Volume *logproto.VolumeRequest `protobuf:"bytes,6,opt,name=volume,proto3,oneof"` } type QueryRequest_ShardsRequest struct { ShardsRequest *logproto.ShardsRequest `protobuf:"bytes,8,opt,name=shardsRequest,proto3,oneof"` } type QueryRequest_DetectedFields struct { DetectedFields *logproto.DetectedFieldsRequest `protobuf:"bytes,9,opt,name=detectedFields,proto3,oneof"` } type QueryRequest_PatternsRequest struct { PatternsRequest *logproto.QueryPatternsRequest `protobuf:"bytes,10,opt,name=patternsRequest,proto3,oneof"` } type QueryRequest_DetectedLabels struct { DetectedLabels *logproto.DetectedLabelsRequest `protobuf:"bytes,11,opt,name=detectedLabels,proto3,oneof"` } func (*QueryRequest_Series) isQueryRequest_Request() {} func (*QueryRequest_Labels) isQueryRequest_Request() {} func (*QueryRequest_Stats) isQueryRequest_Request() {} func (*QueryRequest_Instant) isQueryRequest_Request() {} func (*QueryRequest_Streams) isQueryRequest_Request() {} func (*QueryRequest_Volume) isQueryRequest_Request() {} func (*QueryRequest_ShardsRequest) isQueryRequest_Request() {} func (*QueryRequest_DetectedFields) isQueryRequest_Request() {} func (*QueryRequest_PatternsRequest) isQueryRequest_Request() {} func (*QueryRequest_DetectedLabels) isQueryRequest_Request() {} func (m *QueryRequest) GetRequest() isQueryRequest_Request { if m != nil { return m.Request } return nil } func (m *QueryRequest) GetSeries() *LokiSeriesRequest { if x, ok := m.GetRequest().(*QueryRequest_Series); ok { return x.Series } return nil } func (m *QueryRequest) GetLabels() *logproto.LabelRequest { if x, ok := m.GetRequest().(*QueryRequest_Labels); ok { return x.Labels } return nil } func (m *QueryRequest) GetStats() *logproto.IndexStatsRequest { if x, ok := m.GetRequest().(*QueryRequest_Stats); ok { return x.Stats } return nil } func (m *QueryRequest) GetInstant() *LokiInstantRequest { if x, ok := m.GetRequest().(*QueryRequest_Instant); ok { return x.Instant } return nil } func (m *QueryRequest) GetStreams() *LokiRequest { if x, ok := m.GetRequest().(*QueryRequest_Streams); ok { return x.Streams } return nil } func (m *QueryRequest) GetVolume() *logproto.VolumeRequest { if x, ok := m.GetRequest().(*QueryRequest_Volume); ok { return x.Volume } return nil } func (m *QueryRequest) GetShardsRequest() *logproto.ShardsRequest { if x, ok := m.GetRequest().(*QueryRequest_ShardsRequest); ok { return x.ShardsRequest } return nil } func (m *QueryRequest) GetDetectedFields() *logproto.DetectedFieldsRequest { if x, ok := m.GetRequest().(*QueryRequest_DetectedFields); ok { return x.DetectedFields } return nil } func (m *QueryRequest) GetPatternsRequest() *logproto.QueryPatternsRequest { if x, ok := m.GetRequest().(*QueryRequest_PatternsRequest); ok { return x.PatternsRequest } return nil } func (m *QueryRequest) GetDetectedLabels() *logproto.DetectedLabelsRequest { if x, ok := m.GetRequest().(*QueryRequest_DetectedLabels); ok { return x.DetectedLabels } return nil } func (m *QueryRequest) GetMetadata() map[string]string { if m != nil { return m.Metadata } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*QueryRequest) XXX_OneofWrappers() []interface{} { return []interface{}{ (*QueryRequest_Series)(nil), (*QueryRequest_Labels)(nil), (*QueryRequest_Stats)(nil), (*QueryRequest_Instant)(nil), (*QueryRequest_Streams)(nil), (*QueryRequest_Volume)(nil), (*QueryRequest_ShardsRequest)(nil), (*QueryRequest_DetectedFields)(nil), (*QueryRequest_PatternsRequest)(nil), (*QueryRequest_DetectedLabels)(nil), } } func init() { proto.RegisterType((*LokiRequest)(nil), "queryrange.LokiRequest") proto.RegisterType((*LokiInstantRequest)(nil), "queryrange.LokiInstantRequest") proto.RegisterType((*Plan)(nil), "queryrange.Plan") proto.RegisterType((*LokiResponse)(nil), "queryrange.LokiResponse") proto.RegisterType((*LokiSeriesRequest)(nil), "queryrange.LokiSeriesRequest") proto.RegisterType((*LokiSeriesResponse)(nil), "queryrange.LokiSeriesResponse") proto.RegisterType((*LokiLabelNamesResponse)(nil), "queryrange.LokiLabelNamesResponse") proto.RegisterType((*LokiData)(nil), "queryrange.LokiData") proto.RegisterType((*LokiPromResponse)(nil), "queryrange.LokiPromResponse") proto.RegisterType((*IndexStatsResponse)(nil), "queryrange.IndexStatsResponse") proto.RegisterType((*VolumeResponse)(nil), "queryrange.VolumeResponse") proto.RegisterType((*TopKSketchesResponse)(nil), "queryrange.TopKSketchesResponse") proto.RegisterType((*QuantileSketchResponse)(nil), "queryrange.QuantileSketchResponse") proto.RegisterType((*ShardsResponse)(nil), "queryrange.ShardsResponse") proto.RegisterType((*DetectedFieldsResponse)(nil), "queryrange.DetectedFieldsResponse") proto.RegisterType((*QueryPatternsResponse)(nil), "queryrange.QueryPatternsResponse") proto.RegisterType((*DetectedLabelsResponse)(nil), "queryrange.DetectedLabelsResponse") proto.RegisterType((*QueryResponse)(nil), "queryrange.QueryResponse") proto.RegisterType((*QueryRequest)(nil), "queryrange.QueryRequest") proto.RegisterMapType((map[string]string)(nil), "queryrange.QueryRequest.MetadataEntry") } func init() { proto.RegisterFile("pkg/querier/queryrange/queryrange.proto", fileDescriptor_51b9d53b40d11902) } var fileDescriptor_51b9d53b40d11902 = []byte{ // 1836 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x6f, 0x1c, 0x49, 0x15, 0x9f, 0x9e, 0x4f, 0xcf, 0xf3, 0xc7, 0x9a, 0x8a, 0x71, 0x1a, 0xef, 0xee, 0xf4, 0x30, 0x12, 0xbb, 0x06, 0xc1, 0x0c, 0x19, 0xef, 0x86, 0x5d, 0x13, 0xa2, 0x4d, 0xe3, 0x44, 0x0e, 0x64, 0x21, 0xdb, 0xb6, 0x38, 0x70, 0x41, 0x65, 0x4f, 0x65, 0xdc, 0x78, 0xa6, 0xbb, 0xd3, 0x5d, 0xe3, 0xc4, 0x12, 0x42, 0xfb, 0x0f, 0xac, 0xd8, 0xbf, 0x02, 0x71, 0x43, 0x48, 0x9c, 0x38, 0x71, 0x0c, 0x48, 0x48, 0x39, 0xae, 0x46, 0xa2, 0x21, 0x0e, 0x42, 0xc8, 0xa7, 0x48, 0x5c, 0x39, 0xa0, 0xfa, 0xe8, 0x9e, 0xaa, 0xe9, 0x36, 0x99, 0x09, 0xe2, 0x60, 0xe0, 0xe2, 0xa9, 0xae, 0x7a, 0xbf, 0xea, 0x57, 0xbf, 0xf7, 0x7e, 0xaf, 0xab, 0xca, 0xf0, 0x76, 0x70, 0xdc, 0xef, 0x3c, 0x1c, 0x91, 0xd0, 0x25, 0x21, 0xff, 0x3d, 0x0d, 0xb1, 0xd7, 0x27, 0x4a, 0xb3, 0x1d, 0x84, 0x3e, 0xf5, 0x11, 0x4c, 0x7a, 0x36, 0xba, 0x7d, 0x97, 0x1e, 0x8d, 0x0e, 0xda, 0x87, 0xfe, 0xb0, 0xd3, 0xf7, 0xfb, 0x7e, 0xa7, 0xef, 0xfb, 0xfd, 0x01, 0xc1, 0x81, 0x1b, 0xc9, 0x66, 0x27, 0x0c, 0x0e, 0x3b, 0x11, 0xc5, 0x74, 0x14, 0x09, 0xfc, 0xc6, 0x1a, 0x33, 0xe4, 0x4d, 0x0e, 0x91, 0xbd, 0x96, 0x34, 0xe7, 0x4f, 0x07, 0xa3, 0x07, 0x1d, 0xea, 0x0e, 0x49, 0x44, 0xf1, 0x30, 0x48, 0x0c, 0x98, 0x7f, 0x03, 0xbf, 0x2f, 0x90, 0xae, 0xd7, 0x23, 0x8f, 0xfb, 0x98, 0x92, 0x47, 0xf8, 0x54, 0x1a, 0xbc, 0xae, 0x19, 0x24, 0x0d, 0x39, 0xb8, 0xa1, 0x0d, 0x06, 0x98, 0x52, 0x12, 0x7a, 0x72, 0xec, 0x0b, 0xda, 0x58, 0x74, 0x4c, 0xe8, 0xe1, 0x91, 0x1c, 0x6a, 0xca, 0xa1, 0x87, 0x83, 0xa1, 0xdf, 0x23, 0x03, 0xbe, 0x90, 0x48, 0xfc, 0x95, 0x16, 0x57, 0x98, 0x45, 0x30, 0x8a, 0x8e, 0xf8, 0x1f, 0xd9, 0xf9, 0xed, 0x97, 0x72, 0x79, 0x80, 0x23, 0xd2, 0xe9, 0x91, 0x07, 0xae, 0xe7, 0x52, 0xd7, 0xf7, 0x22, 0xb5, 0x2d, 0x27, 0xb9, 0x3e, 0xdb, 0x24, 0xd3, 0xf1, 0x69, 0xfd, 0xaa, 0x04, 0x8b, 0xf7, 0xfc, 0x63, 0xd7, 0x21, 0x0f, 0x47, 0x24, 0xa2, 0x68, 0x0d, 0x2a, 0xdc, 0xc6, 0x34, 0x9a, 0xc6, 0x66, 0xdd, 0x11, 0x0f, 0xac, 0x77, 0xe0, 0x0e, 0x5d, 0x6a, 0x16, 0x9b, 0xc6, 0xe6, 0xb2, 0x23, 0x1e, 0x10, 0x82, 0x72, 0x44, 0x49, 0x60, 0x96, 0x9a, 0xc6, 0x66, 0xc9, 0xe1, 0x6d, 0xb4, 0x01, 0x0b, 0xae, 0x47, 0x49, 0x78, 0x82, 0x07, 0x66, 0x9d, 0xf7, 0xa7, 0xcf, 0xe8, 0x26, 0xd4, 0x22, 0x8a, 0x43, 0xba, 0x1f, 0x99, 0xe5, 0xa6, 0xb1, 0xb9, 0xd8, 0xdd, 0x68, 0x8b, 0x38, 0xb6, 0x93, 0x38, 0xb6, 0xf7, 0x93, 0x38, 0xda, 0x0b, 0x4f, 0x62, 0xab, 0xf0, 0xe9, 0x9f, 0x2c, 0xc3, 0x49, 0x40, 0x68, 0x1b, 0x2a, 0xc4, 0xeb, 0xed, 0x47, 0x66, 0x65, 0x0e, 0xb4, 0x80, 0xa0, 0x6b, 0x50, 0xef, 0xb9, 0x21, 0x39, 0x64, 0x9c, 0x99, 0xd5, 0xa6, 0xb1, 0xb9, 0xd2, 0xbd, 0xd2, 0x4e, 0xc3, 0xbe, 0x93, 0x0c, 0x39, 0x13, 0x2b, 0xb6, 0xbc, 0x00, 0xd3, 0x23, 0xb3, 0xc6, 0x99, 0xe0, 0x6d, 0xd4, 0x82, 0x6a, 0x74, 0x84, 0xc3, 0x5e, 0x64, 0x2e, 0x34, 0x4b, 0x9b, 0x75, 0x1b, 0xce, 0x63, 0x4b, 0xf6, 0x38, 0xf2, 0x17, 0xfd, 0x08, 0xca, 0xc1, 0x00, 0x7b, 0x26, 0x70, 0x2f, 0x57, 0xdb, 0x0a, 0xe7, 0xf7, 0x07, 0xd8, 0xb3, 0xdf, 0x1f, 0xc7, 0xd6, 0xbb, 0xaa, 0x14, 0x42, 0xfc, 0x00, 0x7b, 0xb8, 0x33, 0xf0, 0x8f, 0xdd, 0xce, 0xc9, 0x56, 0x47, 0x8d, 0x24, 0x9b, 0xa8, 0xfd, 0x11, 0x9b, 0x80, 0x41, 0x1d, 0x3e, 0x71, 0xeb, 0xf7, 0x45, 0x40, 0x2c, 0x66, 0x77, 0xbd, 0x88, 0x62, 0x8f, 0xbe, 0x4a, 0xe8, 0x6e, 0x40, 0x95, 0x49, 0x66, 0x3f, 0xe2, 0xc1, 0x9b, 0x95, 0x4b, 0x89, 0xd1, 0xc9, 0x2c, 0xcf, 0x45, 0x66, 0x25, 0x97, 0xcc, 0xea, 0x4b, 0xc9, 0xac, 0xfd, 0xa7, 0xc8, 0x34, 0xa1, 0xcc, 0x9e, 0xd0, 0x2a, 0x94, 0x42, 0xfc, 0x88, 0x73, 0xb7, 0xe4, 0xb0, 0x66, 0xeb, 0xac, 0x0c, 0x4b, 0x42, 0x1a, 0x51, 0xe0, 0x7b, 0x11, 0x61, 0xfe, 0xee, 0xf1, 0xda, 0x24, 0x18, 0x96, 0xfe, 0xf2, 0x1e, 0x47, 0x8e, 0xa0, 0x0f, 0xa0, 0xbc, 0x83, 0x29, 0xe6, 0x6c, 0x2f, 0x76, 0xd7, 0x54, 0x7f, 0xd9, 0x5c, 0x6c, 0xcc, 0x5e, 0x67, 0x84, 0x9e, 0xc7, 0xd6, 0x4a, 0x0f, 0x53, 0xfc, 0x55, 0x7f, 0xe8, 0x52, 0x32, 0x0c, 0xe8, 0xa9, 0xc3, 0x91, 0xe8, 0x5d, 0xa8, 0xdf, 0x0e, 0x43, 0x3f, 0xdc, 0x3f, 0x0d, 0x08, 0x8f, 0x4e, 0xdd, 0xbe, 0x7a, 0x1e, 0x5b, 0x57, 0x48, 0xd2, 0xa9, 0x20, 0x26, 0x96, 0xe8, 0xcb, 0x50, 0xe1, 0x0f, 0x3c, 0x1e, 0x75, 0xfb, 0xca, 0x79, 0x6c, 0xbd, 0xc6, 0x21, 0x8a, 0xb9, 0xb0, 0xd0, 0xc3, 0x57, 0x99, 0x29, 0x7c, 0x69, 0x16, 0x55, 0xd5, 0x2c, 0x32, 0xa1, 0x76, 0x42, 0xc2, 0x88, 0x4d, 0x53, 0xe3, 0xfd, 0xc9, 0x23, 0xba, 0x05, 0xc0, 0x88, 0x71, 0x23, 0xea, 0x1e, 0x32, 0xad, 0x30, 0x32, 0x96, 0xdb, 0xa2, 0x14, 0x3a, 0x24, 0x1a, 0x0d, 0xa8, 0x8d, 0x24, 0x0b, 0x8a, 0xa1, 0xa3, 0xb4, 0xd1, 0x2f, 0x0d, 0xa8, 0xed, 0x12, 0xdc, 0x23, 0x61, 0x64, 0xd6, 0x9b, 0xa5, 0xcd, 0xc5, 0xee, 0x97, 0xda, 0x6a, 0xdd, 0xbb, 0x1f, 0xfa, 0x43, 0x42, 0x8f, 0xc8, 0x28, 0x4a, 0x02, 0x24, 0xac, 0x6d, 0x6f, 0x1c, 0x5b, 0x64, 0xc6, 0x94, 0x98, 0xa9, 0xdc, 0x5e, 0xf8, 0xaa, 0xf3, 0xd8, 0x32, 0xbe, 0xe6, 0x24, 0x5e, 0xa2, 0x2e, 0x2c, 0x3c, 0xc2, 0xa1, 0xe7, 0x7a, 0xfd, 0xc8, 0x04, 0x9e, 0xd1, 0xeb, 0xe7, 0xb1, 0x85, 0x92, 0x3e, 0x25, 0x10, 0xa9, 0x5d, 0xeb, 0x8f, 0x06, 0x7c, 0x8e, 0x25, 0xc6, 0x1e, 0xf3, 0x27, 0x52, 0xa4, 0x3c, 0xc4, 0xf4, 0xf0, 0xc8, 0x34, 0xd8, 0x34, 0x8e, 0x78, 0x50, 0xeb, 0x67, 0xf1, 0xdf, 0xaa, 0x9f, 0xa5, 0xf9, 0xeb, 0x67, 0xa2, 0xdf, 0x72, 0xae, 0x7e, 0x2b, 0x17, 0xe9, 0xb7, 0xf5, 0xb3, 0x92, 0xa8, 0x55, 0xc9, 0xfa, 0xe6, 0x90, 0xd2, 0x9d, 0x54, 0x4a, 0x25, 0xee, 0x6d, 0x9a, 0xa1, 0x62, 0xae, 0xbb, 0x3d, 0xe2, 0x51, 0xf7, 0x81, 0x4b, 0xc2, 0x97, 0x08, 0x4a, 0xc9, 0xd2, 0x92, 0x9e, 0xa5, 0x6a, 0x8a, 0x95, 0x2f, 0x45, 0x8a, 0xe9, 0xba, 0xaa, 0xbc, 0x82, 0xae, 0x5a, 0x7f, 0x2f, 0xc2, 0x3a, 0x8b, 0xc8, 0x3d, 0x7c, 0x40, 0x06, 0xdf, 0xc3, 0xc3, 0x39, 0xa3, 0xf2, 0x96, 0x12, 0x95, 0xba, 0x8d, 0xfe, 0xcf, 0xfa, 0x6c, 0xac, 0xff, 0xdc, 0x80, 0x85, 0xe4, 0x03, 0x80, 0xda, 0x00, 0x02, 0xc6, 0x6b, 0xbc, 0xe0, 0x7a, 0x85, 0x81, 0xc3, 0xb4, 0xd7, 0x51, 0x2c, 0xd0, 0x8f, 0xa1, 0x2a, 0x9e, 0xa4, 0x16, 0xae, 0x2a, 0x5a, 0xa0, 0x21, 0xc1, 0xc3, 0x5b, 0x3d, 0x1c, 0x50, 0x12, 0xda, 0xef, 0x33, 0x2f, 0xc6, 0xb1, 0xf5, 0xf6, 0x45, 0x2c, 0x25, 0xfb, 0x4f, 0x89, 0x63, 0xf1, 0x15, 0xef, 0x74, 0xe4, 0x1b, 0x5a, 0x9f, 0x18, 0xb0, 0xca, 0x1c, 0x65, 0xd4, 0xa4, 0x89, 0xb1, 0x03, 0x0b, 0xa1, 0x6c, 0x73, 0x77, 0x17, 0xbb, 0xad, 0xb6, 0x4e, 0x6b, 0x0e, 0x95, 0x76, 0xf9, 0x49, 0x6c, 0x19, 0x4e, 0x8a, 0x44, 0x5b, 0x1a, 0x8d, 0xc5, 0x3c, 0x1a, 0x19, 0xa4, 0xa0, 0x11, 0xf7, 0xdb, 0x22, 0xa0, 0xbb, 0x6c, 0xff, 0xce, 0xf2, 0x6f, 0x92, 0xaa, 0x8f, 0x33, 0x1e, 0xbd, 0x31, 0x21, 0x25, 0x6b, 0x6f, 0xdf, 0x1c, 0xc7, 0xd6, 0xf6, 0x4b, 0x72, 0xe7, 0x5f, 0xe0, 0x95, 0x55, 0xa8, 0xe9, 0x5b, 0xbc, 0x0c, 0xe9, 0xdb, 0xfa, 0x75, 0x11, 0x56, 0x7e, 0xe0, 0x0f, 0x46, 0x43, 0x92, 0xd2, 0x17, 0x64, 0xe8, 0x33, 0x27, 0xf4, 0xe9, 0xb6, 0xf6, 0xf6, 0x38, 0xb6, 0xae, 0xcf, 0x4a, 0x9d, 0x8e, 0xbd, 0xd4, 0xb4, 0xfd, 0xb5, 0x08, 0x6b, 0xfb, 0x7e, 0xf0, 0xdd, 0x3d, 0x7e, 0xc6, 0x53, 0xca, 0xe4, 0x51, 0x86, 0xbc, 0xb5, 0x09, 0x79, 0x0c, 0xf1, 0x21, 0xa6, 0xa1, 0xfb, 0xd8, 0xbe, 0x3e, 0x8e, 0xad, 0xee, 0xac, 0xc4, 0x4d, 0x70, 0x97, 0x99, 0x34, 0x6d, 0x0f, 0x54, 0x9a, 0x71, 0x0f, 0xf4, 0x8f, 0x22, 0xac, 0x7f, 0x34, 0xc2, 0x1e, 0x75, 0x07, 0x44, 0x90, 0x9d, 0x52, 0xfd, 0x93, 0x0c, 0xd5, 0x8d, 0x09, 0xd5, 0x3a, 0x46, 0x92, 0xfe, 0xc1, 0x38, 0xb6, 0x6e, 0xcc, 0x4a, 0x7a, 0xde, 0x0c, 0xff, 0x73, 0xf4, 0xff, 0xa6, 0x08, 0x2b, 0x7b, 0x62, 0xd7, 0x96, 0x2c, 0xfc, 0x24, 0x87, 0x76, 0xf5, 0x12, 0x25, 0x38, 0x68, 0xeb, 0x88, 0xf9, 0x8a, 0x84, 0x8e, 0xbd, 0xd4, 0x45, 0xe2, 0x0f, 0x45, 0x58, 0xdf, 0x21, 0x94, 0x1c, 0x52, 0xd2, 0xbb, 0xe3, 0x92, 0x81, 0x42, 0xe2, 0xc7, 0x46, 0x86, 0xc5, 0xa6, 0x72, 0xcc, 0xca, 0x05, 0xd9, 0xf6, 0x38, 0xb6, 0x6e, 0xce, 0xca, 0x63, 0xfe, 0x1c, 0x97, 0x9a, 0xcf, 0xdf, 0x15, 0xe1, 0xf3, 0xe2, 0x88, 0x2e, 0x6e, 0xdd, 0x26, 0x74, 0xfe, 0x34, 0xc3, 0xa6, 0xa5, 0x96, 0x82, 0x1c, 0x88, 0x7d, 0x6b, 0x1c, 0x5b, 0xdf, 0x9a, 0xbd, 0x16, 0xe4, 0x4c, 0xf1, 0x5f, 0x93, 0x9b, 0x7c, 0xb7, 0x3f, 0x6f, 0x6e, 0xea, 0xa0, 0x57, 0xcb, 0x4d, 0x7d, 0x8e, 0x4b, 0xcd, 0xe7, 0x5f, 0xaa, 0xb0, 0xcc, 0xb3, 0x24, 0xa5, 0xf1, 0x2b, 0x20, 0x8f, 0x47, 0x92, 0x43, 0x94, 0x1c, 0xa9, 0xc3, 0xe0, 0xb0, 0xbd, 0x27, 0x0f, 0x4e, 0xc2, 0x02, 0xbd, 0x07, 0xd5, 0x88, 0x1f, 0x5c, 0xe5, 0xce, 0xb7, 0x31, 0x7d, 0x37, 0xa4, 0x1f, 0x91, 0x77, 0x0b, 0x8e, 0xb4, 0x47, 0x37, 0xa0, 0x3a, 0xe0, 0x2c, 0xca, 0x83, 0x7b, 0x6b, 0x1a, 0x99, 0x3d, 0xca, 0x31, 0xb4, 0xc0, 0xa0, 0xeb, 0x50, 0xe1, 0x5b, 0x6c, 0x79, 0xe7, 0xaa, 0xbd, 0x36, 0xbb, 0xd1, 0xdd, 0x2d, 0x38, 0xc2, 0x1c, 0x75, 0xa1, 0x1c, 0x84, 0xfe, 0x50, 0x1e, 0x77, 0xde, 0x98, 0x7e, 0xa7, 0x7a, 0x3e, 0xd8, 0x2d, 0x38, 0xdc, 0x16, 0xbd, 0x03, 0xb5, 0x88, 0x1f, 0x2c, 0x22, 0x7e, 0x51, 0xc4, 0x76, 0x95, 0x53, 0x30, 0x05, 0x92, 0x98, 0xa2, 0x77, 0xa0, 0x7a, 0xc2, 0xb7, 0x8d, 0xf2, 0x96, 0x6f, 0x43, 0x05, 0xe9, 0x1b, 0x4a, 0xb6, 0x2e, 0x61, 0x8b, 0xee, 0xc0, 0x12, 0xf5, 0x83, 0xe3, 0x64, 0x77, 0x26, 0x2f, 0x99, 0x9a, 0x2a, 0x36, 0x6f, 0xf7, 0xb6, 0x5b, 0x70, 0x34, 0x1c, 0xba, 0x0f, 0xab, 0x0f, 0xb5, 0x6d, 0x00, 0x89, 0xf8, 0xcd, 0xf5, 0x14, 0xcf, 0xf9, 0x1b, 0x94, 0xdd, 0x82, 0x93, 0x41, 0xa3, 0x1d, 0x58, 0x89, 0xb4, 0x2f, 0x9c, 0xbc, 0x0a, 0xd6, 0xd6, 0xa5, 0x7f, 0x03, 0x77, 0x0b, 0xce, 0x14, 0x06, 0xdd, 0x83, 0x95, 0x9e, 0x56, 0xdf, 0xcd, 0xc5, 0xac, 0x57, 0xf9, 0x5f, 0x00, 0x36, 0x9b, 0x8e, 0x45, 0xdf, 0x87, 0xd5, 0x60, 0xaa, 0xb6, 0x99, 0x4b, 0x7c, 0xbe, 0x2f, 0xea, 0xab, 0xcc, 0x29, 0x82, 0x6c, 0x91, 0xd3, 0x60, 0xd5, 0x3d, 0x21, 0x71, 0x73, 0xf9, 0x62, 0xf7, 0xf4, 0x22, 0xa0, 0xba, 0x27, 0x46, 0x6c, 0x98, 0x94, 0xa3, 0xd6, 0x27, 0x55, 0x58, 0x92, 0x32, 0x13, 0xb7, 0x61, 0xdf, 0x48, 0x95, 0x23, 0x54, 0xf6, 0xe6, 0x45, 0xca, 0xe1, 0xe6, 0x8a, 0x70, 0xbe, 0x9e, 0x0a, 0x47, 0x48, 0x6e, 0x7d, 0x52, 0xe2, 0xf8, 0x7b, 0x15, 0x84, 0x14, 0xcb, 0x56, 0x22, 0x16, 0xa1, 0xb4, 0xd7, 0xf3, 0xcf, 0x94, 0x09, 0x4a, 0x2a, 0x65, 0x1b, 0x6a, 0xae, 0xb8, 0x8a, 0xcf, 0xd3, 0x58, 0xf6, 0xa6, 0x9e, 0xe5, 0xbe, 0x04, 0xa0, 0xad, 0x89, 0x62, 0x84, 0xd0, 0xae, 0x66, 0x15, 0x93, 0x82, 0x12, 0xc1, 0x5c, 0x4b, 0x05, 0x53, 0x95, 0x98, 0xcc, 0xf9, 0x2b, 0x5d, 0x98, 0x54, 0xcb, 0x6d, 0x58, 0x4e, 0xf2, 0x8b, 0x0f, 0x49, 0xb9, 0xbc, 0x79, 0xd1, 0xb6, 0x2e, 0xc1, 0xeb, 0x28, 0x74, 0x37, 0x93, 0x94, 0xf5, 0xe9, 0x4f, 0xf1, 0x74, 0x4a, 0x26, 0x33, 0x4d, 0x67, 0xe4, 0x77, 0xe0, 0xb5, 0x49, 0x52, 0x09, 0x9f, 0x20, 0xbb, 0xc3, 0xd7, 0xd2, 0x31, 0x99, 0x6a, 0x1a, 0xa8, 0xba, 0x25, 0x93, 0x71, 0xf1, 0x22, 0xb7, 0x92, 0x54, 0xcc, 0xb8, 0x25, 0x06, 0xd0, 0x2e, 0x2c, 0x0c, 0x09, 0xc5, 0x3d, 0x4c, 0xb1, 0x59, 0xe3, 0x9f, 0xa5, 0xb7, 0x32, 0x02, 0x91, 0xe8, 0xf6, 0x87, 0xd2, 0xf0, 0xb6, 0x47, 0xc3, 0x53, 0x79, 0x77, 0x91, 0xa2, 0x37, 0xbe, 0x09, 0xcb, 0x9a, 0x01, 0x5a, 0x85, 0xd2, 0x31, 0x49, 0xfe, 0x3d, 0xc3, 0x9a, 0x68, 0x0d, 0x2a, 0x27, 0x78, 0x30, 0x22, 0x3c, 0x3f, 0xeb, 0x8e, 0x78, 0xd8, 0x2e, 0xbe, 0x67, 0xd8, 0x75, 0xa8, 0x85, 0xe2, 0x2d, 0x76, 0xff, 0xe9, 0xb3, 0x46, 0xe1, 0xb3, 0x67, 0x8d, 0xc2, 0x8b, 0x67, 0x0d, 0xe3, 0xe3, 0xb3, 0x86, 0xf1, 0x8b, 0xb3, 0x86, 0xf1, 0xe4, 0xac, 0x61, 0x3c, 0x3d, 0x6b, 0x18, 0x7f, 0x3e, 0x6b, 0x18, 0x7f, 0x3b, 0x6b, 0x14, 0x5e, 0x9c, 0x35, 0x8c, 0x4f, 0x9f, 0x37, 0x0a, 0x4f, 0x9f, 0x37, 0x0a, 0x9f, 0x3d, 0x6f, 0x14, 0x7e, 0x78, 0x6d, 0xee, 0x2f, 0xe4, 0x41, 0x95, 0x33, 0xb5, 0xf5, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0xad, 0x71, 0x3d, 0xdd, 0x1d, 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.Interval != that1.Interval { 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 } } if that1.Plan == nil { if this.Plan != nil { return false } } else if !this.Plan.Equal(*that1.Plan) { return false } return true } func (this *LokiInstantRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*LokiInstantRequest) if !ok { that2, ok := that.(LokiInstantRequest) 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.TimeTs.Equal(that1.TimeTs) { 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 } } if that1.Plan == nil { if this.Plan != nil { return false } } else if !this.Plan.Equal(*that1.Plan) { return false } return true } func (this *Plan) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Plan) if !ok { that2, ok := that.(Plan) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !bytes.Equal(this.Raw, that1.Raw) { 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 } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } if len(this.Warnings) != len(that1.Warnings) { return false } for i := range this.Warnings { if this.Warnings[i] != that1.Warnings[i] { 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 } 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 *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 } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } if !this.Statistics.Equal(&that1.Statistics) { 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 } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } if !this.Statistics.Equal(&that1.Statistics) { 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 *IndexStatsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*IndexStatsResponse) if !ok { that2, ok := that.(IndexStatsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *VolumeResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*VolumeResponse) if !ok { that2, ok := that.(VolumeResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *TopKSketchesResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*TopKSketchesResponse) if !ok { that2, ok := that.(TopKSketchesResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } if len(this.Warnings) != len(that1.Warnings) { return false } for i := range this.Warnings { if this.Warnings[i] != that1.Warnings[i] { return false } } return true } func (this *QuantileSketchResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QuantileSketchResponse) if !ok { that2, ok := that.(QuantileSketchResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } if len(this.Warnings) != len(that1.Warnings) { return false } for i := range this.Warnings { if this.Warnings[i] != that1.Warnings[i] { return false } } return true } func (this *ShardsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*ShardsResponse) if !ok { that2, ok := that.(ShardsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *DetectedFieldsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*DetectedFieldsResponse) if !ok { that2, ok := that.(DetectedFieldsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *QueryPatternsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryPatternsResponse) if !ok { that2, ok := that.(QueryPatternsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *DetectedLabelsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*DetectedLabelsResponse) if !ok { that2, ok := that.(DetectedLabelsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Response == nil { if this.Response != nil { return false } } else if !this.Response.Equal(*that1.Response) { return false } if len(this.Headers) != len(that1.Headers) { return false } for i := range this.Headers { if !this.Headers[i].Equal(that1.Headers[i]) { return false } } return true } func (this *QueryResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse) if !ok { that2, ok := that.(QueryResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Status.Equal(that1.Status) { return false } if that1.Response == nil { if this.Response != nil { return false } } else if this.Response == nil { return false } else if !this.Response.Equal(that1.Response) { return false } return true } func (this *QueryResponse_Series) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Series) if !ok { that2, ok := that.(QueryResponse_Series) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Series.Equal(that1.Series) { return false } return true } func (this *QueryResponse_Labels) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Labels) if !ok { that2, ok := that.(QueryResponse_Labels) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Labels.Equal(that1.Labels) { return false } return true } func (this *QueryResponse_Stats) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Stats) if !ok { that2, ok := that.(QueryResponse_Stats) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Stats.Equal(that1.Stats) { return false } return true } func (this *QueryResponse_Prom) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Prom) if !ok { that2, ok := that.(QueryResponse_Prom) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Prom.Equal(that1.Prom) { return false } return true } func (this *QueryResponse_Streams) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Streams) if !ok { that2, ok := that.(QueryResponse_Streams) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Streams.Equal(that1.Streams) { return false } return true } func (this *QueryResponse_Volume) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_Volume) if !ok { that2, ok := that.(QueryResponse_Volume) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Volume.Equal(that1.Volume) { return false } return true } func (this *QueryResponse_TopkSketches) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_TopkSketches) if !ok { that2, ok := that.(QueryResponse_TopkSketches) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.TopkSketches.Equal(that1.TopkSketches) { return false } return true } func (this *QueryResponse_QuantileSketches) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_QuantileSketches) if !ok { that2, ok := that.(QueryResponse_QuantileSketches) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.QuantileSketches.Equal(that1.QuantileSketches) { return false } return true } func (this *QueryResponse_ShardsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_ShardsResponse) if !ok { that2, ok := that.(QueryResponse_ShardsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.ShardsResponse.Equal(that1.ShardsResponse) { return false } return true } func (this *QueryResponse_DetectedFields) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_DetectedFields) if !ok { that2, ok := that.(QueryResponse_DetectedFields) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.DetectedFields.Equal(that1.DetectedFields) { return false } return true } func (this *QueryResponse_PatternsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_PatternsResponse) if !ok { that2, ok := that.(QueryResponse_PatternsResponse) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.PatternsResponse.Equal(that1.PatternsResponse) { return false } return true } func (this *QueryResponse_DetectedLabels) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryResponse_DetectedLabels) if !ok { that2, ok := that.(QueryResponse_DetectedLabels) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.DetectedLabels.Equal(that1.DetectedLabels) { return false } return true } func (this *QueryRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest) if !ok { that2, ok := that.(QueryRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if that1.Request == nil { if this.Request != nil { return false } } else if this.Request == nil { return false } else if !this.Request.Equal(that1.Request) { return false } if len(this.Metadata) != len(that1.Metadata) { return false } for i := range this.Metadata { if this.Metadata[i] != that1.Metadata[i] { return false } } return true } func (this *QueryRequest_Series) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Series) if !ok { that2, ok := that.(QueryRequest_Series) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Series.Equal(that1.Series) { return false } return true } func (this *QueryRequest_Labels) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Labels) if !ok { that2, ok := that.(QueryRequest_Labels) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Labels.Equal(that1.Labels) { return false } return true } func (this *QueryRequest_Stats) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Stats) if !ok { that2, ok := that.(QueryRequest_Stats) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Stats.Equal(that1.Stats) { return false } return true } func (this *QueryRequest_Instant) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Instant) if !ok { that2, ok := that.(QueryRequest_Instant) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Instant.Equal(that1.Instant) { return false } return true } func (this *QueryRequest_Streams) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Streams) if !ok { that2, ok := that.(QueryRequest_Streams) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Streams.Equal(that1.Streams) { return false } return true } func (this *QueryRequest_Volume) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_Volume) if !ok { that2, ok := that.(QueryRequest_Volume) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.Volume.Equal(that1.Volume) { return false } return true } func (this *QueryRequest_ShardsRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_ShardsRequest) if !ok { that2, ok := that.(QueryRequest_ShardsRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.ShardsRequest.Equal(that1.ShardsRequest) { return false } return true } func (this *QueryRequest_DetectedFields) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_DetectedFields) if !ok { that2, ok := that.(QueryRequest_DetectedFields) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.DetectedFields.Equal(that1.DetectedFields) { return false } return true } func (this *QueryRequest_PatternsRequest) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_PatternsRequest) if !ok { that2, ok := that.(QueryRequest_PatternsRequest) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.PatternsRequest.Equal(that1.PatternsRequest) { return false } return true } func (this *QueryRequest_DetectedLabels) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*QueryRequest_DetectedLabels) if !ok { that2, ok := that.(QueryRequest_DetectedLabels) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if !this.DetectedLabels.Equal(that1.DetectedLabels) { return false } return true } func (this *LokiRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 14) 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, "Interval: "+fmt.Sprintf("%#v", this.Interval)+",\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, "Plan: "+fmt.Sprintf("%#v", this.Plan)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiInstantRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 11) s = append(s, "&queryrange.LokiInstantRequest{") s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n") s = append(s, "TimeTs: "+fmt.Sprintf("%#v", this.TimeTs)+",\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, "Plan: "+fmt.Sprintf("%#v", this.Plan)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *Plan) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 5) s = append(s, "&queryrange.Plan{") s = append(s, "Raw: "+fmt.Sprintf("%#v", this.Raw)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 14) 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, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "Warnings: "+fmt.Sprintf("%#v", this.Warnings)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiSeriesRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 9) 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, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiSeriesResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 9) 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, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "Statistics: "+strings.Replace(this.Statistics.GoString(), `&`, ``, 1)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *LokiLabelNamesResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 9) 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, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "Statistics: "+strings.Replace(this.Statistics.GoString(), `&`, ``, 1)+",\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 (this *IndexStatsResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.IndexStatsResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *VolumeResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.VolumeResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *TopKSketchesResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) s = append(s, "&queryrange.TopKSketchesResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "Warnings: "+fmt.Sprintf("%#v", this.Warnings)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *QuantileSketchResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 7) s = append(s, "&queryrange.QuantileSketchResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "Warnings: "+fmt.Sprintf("%#v", this.Warnings)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *ShardsResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.ShardsResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *DetectedFieldsResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.DetectedFieldsResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *QueryPatternsResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.QueryPatternsResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *DetectedLabelsResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&queryrange.DetectedLabelsResponse{") s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") s = append(s, "Headers: "+fmt.Sprintf("%#v", this.Headers)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *QueryResponse) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 17) s = append(s, "&queryrange.QueryResponse{") if this.Status != nil { s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") } if this.Response != nil { s = append(s, "Response: "+fmt.Sprintf("%#v", this.Response)+",\n") } s = append(s, "}") return strings.Join(s, "") } func (this *QueryResponse_Series) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Series{` + `Series:` + fmt.Sprintf("%#v", this.Series) + `}`}, ", ") return s } func (this *QueryResponse_Labels) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Labels{` + `Labels:` + fmt.Sprintf("%#v", this.Labels) + `}`}, ", ") return s } func (this *QueryResponse_Stats) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Stats{` + `Stats:` + fmt.Sprintf("%#v", this.Stats) + `}`}, ", ") return s } func (this *QueryResponse_Prom) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Prom{` + `Prom:` + fmt.Sprintf("%#v", this.Prom) + `}`}, ", ") return s } func (this *QueryResponse_Streams) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Streams{` + `Streams:` + fmt.Sprintf("%#v", this.Streams) + `}`}, ", ") return s } func (this *QueryResponse_Volume) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_Volume{` + `Volume:` + fmt.Sprintf("%#v", this.Volume) + `}`}, ", ") return s } func (this *QueryResponse_TopkSketches) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_TopkSketches{` + `TopkSketches:` + fmt.Sprintf("%#v", this.TopkSketches) + `}`}, ", ") return s } func (this *QueryResponse_QuantileSketches) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_QuantileSketches{` + `QuantileSketches:` + fmt.Sprintf("%#v", this.QuantileSketches) + `}`}, ", ") return s } func (this *QueryResponse_ShardsResponse) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_ShardsResponse{` + `ShardsResponse:` + fmt.Sprintf("%#v", this.ShardsResponse) + `}`}, ", ") return s } func (this *QueryResponse_DetectedFields) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_DetectedFields{` + `DetectedFields:` + fmt.Sprintf("%#v", this.DetectedFields) + `}`}, ", ") return s } func (this *QueryResponse_PatternsResponse) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_PatternsResponse{` + `PatternsResponse:` + fmt.Sprintf("%#v", this.PatternsResponse) + `}`}, ", ") return s } func (this *QueryResponse_DetectedLabels) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryResponse_DetectedLabels{` + `DetectedLabels:` + fmt.Sprintf("%#v", this.DetectedLabels) + `}`}, ", ") return s } func (this *QueryRequest) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 15) s = append(s, "&queryrange.QueryRequest{") if this.Request != nil { s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") } keysForMetadata := make([]string, 0, len(this.Metadata)) for k, _ := range this.Metadata { keysForMetadata = append(keysForMetadata, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForMetadata) mapStringForMetadata := "map[string]string{" for _, k := range keysForMetadata { mapStringForMetadata += fmt.Sprintf("%#v: %#v,", k, this.Metadata[k]) } mapStringForMetadata += "}" if this.Metadata != nil { s = append(s, "Metadata: "+mapStringForMetadata+",\n") } s = append(s, "}") return strings.Join(s, "") } func (this *QueryRequest_Series) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Series{` + `Series:` + fmt.Sprintf("%#v", this.Series) + `}`}, ", ") return s } func (this *QueryRequest_Labels) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Labels{` + `Labels:` + fmt.Sprintf("%#v", this.Labels) + `}`}, ", ") return s } func (this *QueryRequest_Stats) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Stats{` + `Stats:` + fmt.Sprintf("%#v", this.Stats) + `}`}, ", ") return s } func (this *QueryRequest_Instant) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Instant{` + `Instant:` + fmt.Sprintf("%#v", this.Instant) + `}`}, ", ") return s } func (this *QueryRequest_Streams) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Streams{` + `Streams:` + fmt.Sprintf("%#v", this.Streams) + `}`}, ", ") return s } func (this *QueryRequest_Volume) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_Volume{` + `Volume:` + fmt.Sprintf("%#v", this.Volume) + `}`}, ", ") return s } func (this *QueryRequest_ShardsRequest) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_ShardsRequest{` + `ShardsRequest:` + fmt.Sprintf("%#v", this.ShardsRequest) + `}`}, ", ") return s } func (this *QueryRequest_DetectedFields) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_DetectedFields{` + `DetectedFields:` + fmt.Sprintf("%#v", this.DetectedFields) + `}`}, ", ") return s } func (this *QueryRequest_PatternsRequest) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_PatternsRequest{` + `PatternsRequest:` + fmt.Sprintf("%#v", this.PatternsRequest) + `}`}, ", ") return s } func (this *QueryRequest_DetectedLabels) GoString() string { if this == nil { return "nil" } s := strings.Join([]string{`&queryrange.QueryRequest_DetectedLabels{` + `DetectedLabels:` + fmt.Sprintf("%#v", this.DetectedLabels) + `}`}, ", ") return 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.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *LokiRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Plan != nil { { size := m.Plan.Size() i -= size if _, err := m.Plan.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } if m.Interval != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Interval)) i-- dAtA[i] = 0x48 } if len(m.Shards) > 0 { for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Shards[iNdEx]) copy(dAtA[i:], m.Shards[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Shards[iNdEx]))) i-- dAtA[i] = 0x42 } } if len(m.Path) > 0 { i -= len(m.Path) copy(dAtA[i:], m.Path) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x3a } if m.Direction != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) i-- dAtA[i] = 0x30 } n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs):]) if err2 != nil { return 0, err2 } i -= n2 i = encodeVarintQueryrange(dAtA, i, uint64(n2)) i-- dAtA[i] = 0x2a n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs):]) if err3 != nil { return 0, err3 } i -= n3 i = encodeVarintQueryrange(dAtA, i, uint64(n3)) i-- dAtA[i] = 0x22 if m.Step != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Step)) i-- dAtA[i] = 0x18 } if m.Limit != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x10 } if len(m.Query) > 0 { i -= len(m.Query) copy(dAtA[i:], m.Query) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Query))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiInstantRequest) 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 *LokiInstantRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiInstantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Plan != nil { { size := m.Plan.Size() i -= size if _, err := m.Plan.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } if len(m.Shards) > 0 { for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Shards[iNdEx]) copy(dAtA[i:], m.Shards[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Shards[iNdEx]))) i-- dAtA[i] = 0x32 } } if len(m.Path) > 0 { i -= len(m.Path) copy(dAtA[i:], m.Path) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x2a } if m.Direction != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) i-- dAtA[i] = 0x20 } n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.TimeTs, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.TimeTs):]) if err5 != nil { return 0, err5 } i -= n5 i = encodeVarintQueryrange(dAtA, i, uint64(n5)) i-- dAtA[i] = 0x1a if m.Limit != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x10 } if len(m.Query) > 0 { i -= len(m.Query) copy(dAtA[i:], m.Query) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Query))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Plan) 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 *Plan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Raw) > 0 { i -= len(m.Raw) copy(dAtA[i:], m.Raw) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Raw))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiResponse) 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 *LokiResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Warnings[iNdEx]) copy(dAtA[i:], m.Warnings[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x52 } } if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } } { size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 if m.Version != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x38 } if m.Limit != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x30 } if m.Direction != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) i-- dAtA[i] = 0x28 } if len(m.Error) > 0 { i -= len(m.Error) copy(dAtA[i:], m.Error) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Error))) i-- dAtA[i] = 0x22 } if len(m.ErrorType) > 0 { i -= len(m.ErrorType) copy(dAtA[i:], m.ErrorType) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.ErrorType))) i-- dAtA[i] = 0x1a } { size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if len(m.Status) > 0 { i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiSeriesRequest) 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 *LokiSeriesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiSeriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Shards) > 0 { for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Shards[iNdEx]) copy(dAtA[i:], m.Shards[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Shards[iNdEx]))) i-- dAtA[i] = 0x2a } } if len(m.Path) > 0 { i -= len(m.Path) copy(dAtA[i:], m.Path) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x22 } n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs):]) if err8 != nil { return 0, err8 } i -= n8 i = encodeVarintQueryrange(dAtA, i, uint64(n8)) i-- dAtA[i] = 0x1a n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs):]) if err9 != nil { return 0, err9 } i -= n9 i = encodeVarintQueryrange(dAtA, i, uint64(n9)) i-- dAtA[i] = 0x12 if len(m.Match) > 0 { for iNdEx := len(m.Match) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Match[iNdEx]) copy(dAtA[i:], m.Match[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Match[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *LokiSeriesResponse) 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 *LokiSeriesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiSeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } } if m.Version != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x18 } if len(m.Data) > 0 { for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Status) > 0 { i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiLabelNamesResponse) 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 *LokiLabelNamesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiLabelNamesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } } if m.Version != 0 { i = encodeVarintQueryrange(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x18 } if len(m.Data) > 0 { for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Data[iNdEx]) copy(dAtA[i:], m.Data[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Data[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Status) > 0 { i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiData) 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 *LokiData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Result) > 0 { for iNdEx := len(m.Result) - 1; iNdEx >= 0; iNdEx-- { { size := m.Result[iNdEx].Size() i -= size if _, err := m.Result[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.ResultType) > 0 { i -= len(m.ResultType) copy(dAtA[i:], m.ResultType) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.ResultType))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LokiPromResponse) 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 *LokiPromResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LokiPromResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 if m.Response != nil { { size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *IndexStatsResponse) 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 *IndexStatsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IndexStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *VolumeResponse) 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 *VolumeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *TopKSketchesResponse) 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 *TopKSketchesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TopKSketchesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Warnings[iNdEx]) copy(dAtA[i:], m.Warnings[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QuantileSketchResponse) 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 *QuantileSketchResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QuantileSketchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Warnings[iNdEx]) copy(dAtA[i:], m.Warnings[iNdEx]) i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *ShardsResponse) 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 *ShardsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ShardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DetectedFieldsResponse) 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 *DetectedFieldsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DetectedFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryPatternsResponse) 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 *QueryPatternsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryPatternsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DetectedLabelsResponse) 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 *DetectedLabelsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *DetectedLabelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Headers) > 0 { for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { { size := m.Headers[iNdEx].Size() i -= size if _, err := m.Headers[iNdEx].MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryResponse) 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 *QueryResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Response != nil { { size := m.Response.Size() i -= size if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } if m.Status != nil { { size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryResponse_Series) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Series) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Series != nil { { size, err := m.Series.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *QueryResponse_Labels) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Labels) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Labels != nil { { size, err := m.Labels.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *QueryResponse_Stats) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Stats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Stats != nil { { size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *QueryResponse_Prom) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Prom) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Prom != nil { { size, err := m.Prom.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } return len(dAtA) - i, nil } func (m *QueryResponse_Streams) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Streams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Streams != nil { { size, err := m.Streams.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } return len(dAtA) - i, nil } func (m *QueryResponse_Volume) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Volume != nil { { size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } return len(dAtA) - i, nil } func (m *QueryResponse_TopkSketches) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_TopkSketches) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.TopkSketches != nil { { size, err := m.TopkSketches.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } return len(dAtA) - i, nil } func (m *QueryResponse_QuantileSketches) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_QuantileSketches) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.QuantileSketches != nil { { size, err := m.QuantileSketches.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } return len(dAtA) - i, nil } func (m *QueryResponse_ShardsResponse) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_ShardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ShardsResponse != nil { { size, err := m.ShardsResponse.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } return len(dAtA) - i, nil } func (m *QueryResponse_DetectedFields) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_DetectedFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.DetectedFields != nil { { size, err := m.DetectedFields.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } return len(dAtA) - i, nil } func (m *QueryResponse_PatternsResponse) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_PatternsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.PatternsResponse != nil { { size, err := m.PatternsResponse.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 } return len(dAtA) - i, nil } func (m *QueryResponse_DetectedLabels) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryResponse_DetectedLabels) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.DetectedLabels != nil { { size, err := m.DetectedLabels.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x6a } return len(dAtA) - i, nil } func (m *QueryRequest) 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 *QueryRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Request != nil { { size := m.Request.Size() i -= size if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } if len(m.Metadata) > 0 { for k := range m.Metadata { v := m.Metadata[k] baseI := i i -= len(v) copy(dAtA[i:], v) i = encodeVarintQueryrange(dAtA, i, uint64(len(v))) i-- dAtA[i] = 0x12 i -= len(k) copy(dAtA[i:], k) i = encodeVarintQueryrange(dAtA, i, uint64(len(k))) i-- dAtA[i] = 0xa i = encodeVarintQueryrange(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x3a } } return len(dAtA) - i, nil } func (m *QueryRequest_Series) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Series) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Series != nil { { size, err := m.Series.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryRequest_Labels) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Labels) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Labels != nil { { size, err := m.Labels.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } return len(dAtA) - i, nil } func (m *QueryRequest_Stats) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Stats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Stats != nil { { size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *QueryRequest_Instant) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Instant) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Instant != nil { { size, err := m.Instant.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *QueryRequest_Streams) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Streams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Streams != nil { { size, err := m.Streams.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } return len(dAtA) - i, nil } func (m *QueryRequest_Volume) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Volume != nil { { size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } return len(dAtA) - i, nil } func (m *QueryRequest_ShardsRequest) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_ShardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.ShardsRequest != nil { { size, err := m.ShardsRequest.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x42 } return len(dAtA) - i, nil } func (m *QueryRequest_DetectedFields) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_DetectedFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.DetectedFields != nil { { size, err := m.DetectedFields.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } return len(dAtA) - i, nil } func (m *QueryRequest_PatternsRequest) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_PatternsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.PatternsRequest != nil { { size, err := m.PatternsRequest.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x52 } return len(dAtA) - i, nil } func (m *QueryRequest_DetectedLabels) MarshalTo(dAtA []byte) (int, error) { return m.MarshalToSizedBuffer(dAtA[:m.Size()]) } func (m *QueryRequest_DetectedLabels) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.DetectedLabels != nil { { size, err := m.DetectedLabels.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQueryrange(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x5a } return len(dAtA) - i, nil } func encodeVarintQueryrange(dAtA []byte, offset int, v uint64) int { offset -= sovQueryrange(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } 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)) } } if m.Interval != 0 { n += 1 + sovQueryrange(uint64(m.Interval)) } if m.Plan != nil { l = m.Plan.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *LokiInstantRequest) 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)) } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.TimeTs) 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)) } } if m.Plan != nil { l = m.Plan.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *Plan) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Raw) if l > 0 { 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)) if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) 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)) } if len(m.Shards) > 0 { for _, s := range m.Shards { l = len(s) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } l = m.Statistics.Size() 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } l = m.Statistics.Size() n += 1 + l + sovQueryrange(uint64(l)) 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 (m *IndexStatsResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *VolumeResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *TopKSketchesResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *QuantileSketchResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *ShardsResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *DetectedFieldsResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *QueryPatternsResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *DetectedLabelsResponse) 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)) } if len(m.Headers) > 0 { for _, e := range m.Headers { l = e.Size() n += 1 + l + sovQueryrange(uint64(l)) } } return n } func (m *QueryResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Status != nil { l = m.Status.Size() n += 1 + l + sovQueryrange(uint64(l)) } if m.Response != nil { n += m.Response.Size() } return n } func (m *QueryResponse_Series) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Series != nil { l = m.Series.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_Labels) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Labels != nil { l = m.Labels.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_Stats) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Stats != nil { l = m.Stats.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_Prom) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Prom != nil { l = m.Prom.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_Streams) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Streams != nil { l = m.Streams.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_Volume) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Volume != nil { l = m.Volume.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_TopkSketches) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.TopkSketches != nil { l = m.TopkSketches.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_QuantileSketches) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.QuantileSketches != nil { l = m.QuantileSketches.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_ShardsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ShardsResponse != nil { l = m.ShardsResponse.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_DetectedFields) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.DetectedFields != nil { l = m.DetectedFields.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_PatternsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.PatternsResponse != nil { l = m.PatternsResponse.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryResponse_DetectedLabels) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.DetectedLabels != nil { l = m.DetectedLabels.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Request != nil { n += m.Request.Size() } if len(m.Metadata) > 0 { for k, v := range m.Metadata { _ = k _ = v mapEntrySize := 1 + len(k) + sovQueryrange(uint64(len(k))) + 1 + len(v) + sovQueryrange(uint64(len(v))) n += mapEntrySize + 1 + sovQueryrange(uint64(mapEntrySize)) } } return n } func (m *QueryRequest_Series) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Series != nil { l = m.Series.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_Labels) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Labels != nil { l = m.Labels.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_Stats) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Stats != nil { l = m.Stats.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_Instant) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Instant != nil { l = m.Instant.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_Streams) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Streams != nil { l = m.Streams.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_Volume) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Volume != nil { l = m.Volume.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_ShardsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ShardsRequest != nil { l = m.ShardsRequest.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_DetectedFields) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.DetectedFields != nil { l = m.DetectedFields.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_PatternsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.PatternsRequest != nil { l = m.PatternsRequest.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func (m *QueryRequest_DetectedLabels) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.DetectedLabels != nil { l = m.DetectedLabels.Size() n += 1 + l + sovQueryrange(uint64(l)) } return n } func sovQueryrange(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } 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(fmt.Sprintf("%v", this.StartTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `EndTs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EndTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Direction:` + fmt.Sprintf("%v", this.Direction) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `Shards:` + fmt.Sprintf("%v", this.Shards) + `,`, `Interval:` + fmt.Sprintf("%v", this.Interval) + `,`, `Plan:` + fmt.Sprintf("%v", this.Plan) + `,`, `}`, }, "") return s } func (this *LokiInstantRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&LokiInstantRequest{`, `Query:` + fmt.Sprintf("%v", this.Query) + `,`, `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, `TimeTs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TimeTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Direction:` + fmt.Sprintf("%v", this.Direction) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `Shards:` + fmt.Sprintf("%v", this.Shards) + `,`, `Plan:` + fmt.Sprintf("%v", this.Plan) + `,`, `}`, }, "") return s } func (this *Plan) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Plan{`, `Raw:` + fmt.Sprintf("%v", this.Raw) + `,`, `}`, }, "") 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(fmt.Sprintf("%v", this.Statistics), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `Warnings:` + fmt.Sprintf("%v", this.Warnings) + `,`, `}`, }, "") 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(fmt.Sprintf("%v", this.StartTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `EndTs:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EndTs), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `Shards:` + fmt.Sprintf("%v", this.Shards) + `,`, `}`, }, "") return s } func (this *LokiSeriesResponse) String() string { if this == nil { return "nil" } repeatedStringForData := "[]SeriesIdentifier{" for _, f := range this.Data { repeatedStringForData += fmt.Sprintf("%v", f) + "," } repeatedStringForData += "}" s := strings.Join([]string{`&LokiSeriesResponse{`, `Status:` + fmt.Sprintf("%v", this.Status) + `,`, `Data:` + repeatedStringForData + `,`, `Version:` + fmt.Sprintf("%v", this.Version) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `Statistics:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Statistics), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `}`, }, "") 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) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `Statistics:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Statistics), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `}`, }, "") 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", "queryrangebase.PrometheusResponse", 1) + `,`, `Statistics:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Statistics), "Result", "stats.Result", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } func (this *IndexStatsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&IndexStatsResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *VolumeResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&VolumeResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *TopKSketchesResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&TopKSketchesResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `Warnings:` + fmt.Sprintf("%v", this.Warnings) + `,`, `}`, }, "") return s } func (this *QuantileSketchResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QuantileSketchResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `Warnings:` + fmt.Sprintf("%v", this.Warnings) + `,`, `}`, }, "") return s } func (this *ShardsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&ShardsResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *DetectedFieldsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DetectedFieldsResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *QueryPatternsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryPatternsResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *DetectedLabelsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&DetectedLabelsResponse{`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `Headers:` + fmt.Sprintf("%v", this.Headers) + `,`, `}`, }, "") return s } func (this *QueryResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse{`, `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "Status", "rpc.Status", 1) + `,`, `Response:` + fmt.Sprintf("%v", this.Response) + `,`, `}`, }, "") return s } func (this *QueryResponse_Series) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Series{`, `Series:` + strings.Replace(fmt.Sprintf("%v", this.Series), "LokiSeriesResponse", "LokiSeriesResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_Labels) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Labels{`, `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "LokiLabelNamesResponse", "LokiLabelNamesResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_Stats) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Stats{`, `Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "IndexStatsResponse", "IndexStatsResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_Prom) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Prom{`, `Prom:` + strings.Replace(fmt.Sprintf("%v", this.Prom), "LokiPromResponse", "LokiPromResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_Streams) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Streams{`, `Streams:` + strings.Replace(fmt.Sprintf("%v", this.Streams), "LokiResponse", "LokiResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_Volume) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_Volume{`, `Volume:` + strings.Replace(fmt.Sprintf("%v", this.Volume), "VolumeResponse", "VolumeResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_TopkSketches) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_TopkSketches{`, `TopkSketches:` + strings.Replace(fmt.Sprintf("%v", this.TopkSketches), "TopKSketchesResponse", "TopKSketchesResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_QuantileSketches) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_QuantileSketches{`, `QuantileSketches:` + strings.Replace(fmt.Sprintf("%v", this.QuantileSketches), "QuantileSketchResponse", "QuantileSketchResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_ShardsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_ShardsResponse{`, `ShardsResponse:` + strings.Replace(fmt.Sprintf("%v", this.ShardsResponse), "ShardsResponse", "ShardsResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_DetectedFields) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_DetectedFields{`, `DetectedFields:` + strings.Replace(fmt.Sprintf("%v", this.DetectedFields), "DetectedFieldsResponse", "DetectedFieldsResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_PatternsResponse) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_PatternsResponse{`, `PatternsResponse:` + strings.Replace(fmt.Sprintf("%v", this.PatternsResponse), "QueryPatternsResponse", "QueryPatternsResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryResponse_DetectedLabels) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryResponse_DetectedLabels{`, `DetectedLabels:` + strings.Replace(fmt.Sprintf("%v", this.DetectedLabels), "DetectedLabelsResponse", "DetectedLabelsResponse", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest) String() string { if this == nil { return "nil" } keysForMetadata := make([]string, 0, len(this.Metadata)) for k, _ := range this.Metadata { keysForMetadata = append(keysForMetadata, k) } github_com_gogo_protobuf_sortkeys.Strings(keysForMetadata) mapStringForMetadata := "map[string]string{" for _, k := range keysForMetadata { mapStringForMetadata += fmt.Sprintf("%v: %v,", k, this.Metadata[k]) } mapStringForMetadata += "}" s := strings.Join([]string{`&QueryRequest{`, `Request:` + fmt.Sprintf("%v", this.Request) + `,`, `Metadata:` + mapStringForMetadata + `,`, `}`, }, "") return s } func (this *QueryRequest_Series) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Series{`, `Series:` + strings.Replace(fmt.Sprintf("%v", this.Series), "LokiSeriesRequest", "LokiSeriesRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_Labels) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Labels{`, `Labels:` + strings.Replace(fmt.Sprintf("%v", this.Labels), "LabelRequest", "logproto.LabelRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_Stats) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Stats{`, `Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "IndexStatsRequest", "logproto.IndexStatsRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_Instant) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Instant{`, `Instant:` + strings.Replace(fmt.Sprintf("%v", this.Instant), "LokiInstantRequest", "LokiInstantRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_Streams) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Streams{`, `Streams:` + strings.Replace(fmt.Sprintf("%v", this.Streams), "LokiRequest", "LokiRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_Volume) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_Volume{`, `Volume:` + strings.Replace(fmt.Sprintf("%v", this.Volume), "VolumeRequest", "logproto.VolumeRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_ShardsRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_ShardsRequest{`, `ShardsRequest:` + strings.Replace(fmt.Sprintf("%v", this.ShardsRequest), "ShardsRequest", "logproto.ShardsRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_DetectedFields) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_DetectedFields{`, `DetectedFields:` + strings.Replace(fmt.Sprintf("%v", this.DetectedFields), "DetectedFieldsRequest", "logproto.DetectedFieldsRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_PatternsRequest) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_PatternsRequest{`, `PatternsRequest:` + strings.Replace(fmt.Sprintf("%v", this.PatternsRequest), "QueryPatternsRequest", "logproto.QueryPatternsRequest", 1) + `,`, `}`, }, "") return s } func (this *QueryRequest_DetectedLabels) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&QueryRequest_DetectedLabels{`, `DetectedLabels:` + strings.Replace(fmt.Sprintf("%v", this.DetectedLabels), "DetectedLabelsRequest", "logproto.DetectedLabelsRequest", 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 case 9: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) } m.Interval = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Interval |= int64(b&0x7F) << shift if b < 0x80 { break } } case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Plan", 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.Plan == nil { m.Plan = &github_com_grafana_loki_v3_pkg_querier_plan.QueryPlan{} } if err := m.Plan.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 *LokiInstantRequest) 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: LokiInstantRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LokiInstantRequest: 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 != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TimeTs", 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.TimeTs, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: 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 5: 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 6: 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 case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Plan", 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.Plan == nil { m.Plan = &github_com_grafana_loki_v3_pkg_querier_plan.QueryPlan{} } if err := m.Plan.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 *Plan) 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: Plan: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Plan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthQueryrange } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthQueryrange } if postIndex > l { return io.ErrUnexpectedEOF } m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) if m.Raw == nil { m.Raw = []byte{} } 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 case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", 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.Warnings = append(m.Warnings, 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 *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 case 5: 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 *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 } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: 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 *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 } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: 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 *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_push.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 = &queryrangebase.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 (m *IndexStatsResponse) 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: IndexStatsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IndexStatsResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.IndexStatsResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *VolumeResponse) 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: VolumeResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VolumeResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.VolumeResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *TopKSketchesResponse) 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: TopKSketchesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TopKSketchesResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.TopKMatrix{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", 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.Warnings = append(m.Warnings, 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 *QuantileSketchResponse) 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: QuantileSketchResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QuantileSketchResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.QuantileSketchMatrix{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", 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.Warnings = append(m.Warnings, 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 *ShardsResponse) 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: ShardsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ShardsResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.ShardsResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *DetectedFieldsResponse) 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: DetectedFieldsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DetectedFieldsResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.DetectedFieldsResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *QueryPatternsResponse) 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: QueryPatternsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryPatternsResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.QueryPatternsResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *DetectedLabelsResponse) 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: DetectedLabelsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DetectedLabelsResponse: 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 = &github_com_grafana_loki_v3_pkg_logproto.DetectedLabelsResponse{} } 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 Headers", 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.Headers = append(m.Headers, github_com_grafana_loki_v3_pkg_querier_queryrange_queryrangebase_definitions.PrometheusResponseHeader{}) if err := m.Headers[len(m.Headers)-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 *QueryResponse) 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: QueryResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryResponse: 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 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.Status == nil { m.Status = &rpc.Status{} } if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Series", 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 } v := &LokiSeriesResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Series{v} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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 } v := &LokiLabelNamesResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Labels{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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 } v := &IndexStatsResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Stats{v} iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Prom", 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 } v := &LokiPromResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Prom{v} iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Streams", 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 } v := &LokiResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Streams{v} iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Volume", 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 } v := &VolumeResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_Volume{v} iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TopkSketches", 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 } v := &TopKSketchesResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_TopkSketches{v} iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field QuantileSketches", 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 } v := &QuantileSketchResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_QuantileSketches{v} iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ShardsResponse", 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 } v := &ShardsResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_ShardsResponse{v} iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DetectedFields", 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 } v := &DetectedFieldsResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_DetectedFields{v} iNdEx = postIndex case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PatternsResponse", 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 } v := &QueryPatternsResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_PatternsResponse{v} iNdEx = postIndex case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DetectedLabels", 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 } v := &DetectedLabelsResponse{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Response = &QueryResponse_DetectedLabels{v} 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 *QueryRequest) 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: QueryRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Series", 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 } v := &LokiSeriesRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Series{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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 } v := &logproto.LabelRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Labels{v} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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 } v := &logproto.IndexStatsRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Stats{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Instant", 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 } v := &LokiInstantRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Instant{v} iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Streams", 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 } v := &LokiRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Streams{v} iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Volume", 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 } v := &logproto.VolumeRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_Volume{v} iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metadata", 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.Metadata == nil { m.Metadata = make(map[string]string) } var mapkey string var mapvalue string for iNdEx < postIndex { entryPreIndex := 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) if fieldNum == 1 { var stringLenmapkey uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLenmapkey := int(stringLenmapkey) if intStringLenmapkey < 0 { return ErrInvalidLengthQueryrange } postStringIndexmapkey := iNdEx + intStringLenmapkey if postStringIndexmapkey < 0 { return ErrInvalidLengthQueryrange } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { var stringLenmapvalue uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQueryrange } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLenmapvalue := int(stringLenmapvalue) if intStringLenmapvalue < 0 { return ErrInvalidLengthQueryrange } postStringIndexmapvalue := iNdEx + intStringLenmapvalue if postStringIndexmapvalue < 0 { return ErrInvalidLengthQueryrange } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) iNdEx = postStringIndexmapvalue } else { iNdEx = entryPreIndex skippy, err := skipQueryrange(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthQueryrange } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Metadata[mapkey] = mapvalue iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ShardsRequest", 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 } v := &logproto.ShardsRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_ShardsRequest{v} iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DetectedFields", 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 } v := &logproto.DetectedFieldsRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_DetectedFields{v} iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PatternsRequest", 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 } v := &logproto.QueryPatternsRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_PatternsRequest{v} iNdEx = postIndex case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DetectedLabels", 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 } v := &logproto.DetectedLabelsRequest{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Request = &QueryRequest_DetectedLabels{v} 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") )