// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: store/storepb/rpc.proto package storepb import ( context "context" fmt "fmt" io "io" math "math" math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" prompb "github.com/thanos-io/thanos/pkg/store/storepb/prompb" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Aggr int32 const ( Aggr_RAW Aggr = 0 Aggr_COUNT Aggr = 1 Aggr_SUM Aggr = 2 Aggr_MIN Aggr = 3 Aggr_MAX Aggr = 4 Aggr_COUNTER Aggr = 5 ) var Aggr_name = map[int32]string{ 0: "RAW", 1: "COUNT", 2: "SUM", 3: "MIN", 4: "MAX", 5: "COUNTER", } var Aggr_value = map[string]int32{ "RAW": 0, "COUNT": 1, "SUM": 2, "MIN": 3, "MAX": 4, "COUNTER": 5, } func (x Aggr) String() string { return proto.EnumName(Aggr_name, int32(x)) } func (Aggr) EnumDescriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{0} } type WriteResponse struct { } func (m *WriteResponse) Reset() { *m = WriteResponse{} } func (m *WriteResponse) String() string { return proto.CompactTextString(m) } func (*WriteResponse) ProtoMessage() {} func (*WriteResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{0} } func (m *WriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_WriteResponse.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 *WriteResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_WriteResponse.Merge(m, src) } func (m *WriteResponse) XXX_Size() int { return m.Size() } func (m *WriteResponse) XXX_DiscardUnknown() { xxx_messageInfo_WriteResponse.DiscardUnknown(m) } var xxx_messageInfo_WriteResponse proto.InternalMessageInfo type WriteRequest struct { // This only allows to put one tenant and a set of series in one write request. // In the case of split tenant label functionality, we want to send multiple tenants worth of // data to improve throughput. Will mark as deprecated once the other field's functionality // is implemented. Timeseries []prompb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"` Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` Replica int64 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"` TimeseriesTenantData []TimeSeriesTenantTuple `protobuf:"bytes,4,rep,name=timeseriesTenantData,proto3" json:"timeseriesTenantData"` } func (m *WriteRequest) Reset() { *m = WriteRequest{} } func (m *WriteRequest) String() string { return proto.CompactTextString(m) } func (*WriteRequest) ProtoMessage() {} func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{1} } func (m *WriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_WriteRequest.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 *WriteRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_WriteRequest.Merge(m, src) } func (m *WriteRequest) XXX_Size() int { return m.Size() } func (m *WriteRequest) XXX_DiscardUnknown() { xxx_messageInfo_WriteRequest.DiscardUnknown(m) } var xxx_messageInfo_WriteRequest proto.InternalMessageInfo type SeriesRequest struct { MinTime int64 `protobuf:"varint,1,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` MaxTime int64 `protobuf:"varint,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` Matchers []LabelMatcher `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers"` MaxResolutionWindow int64 `protobuf:"varint,4,opt,name=max_resolution_window,json=maxResolutionWindow,proto3" json:"max_resolution_window,omitempty"` Aggregates []Aggr `protobuf:"varint,5,rep,packed,name=aggregates,proto3,enum=thanos.Aggr" json:"aggregates,omitempty"` // Deprecated. Use partial_response_strategy instead. PartialResponseDisabled bool `protobuf:"varint,6,opt,name=partial_response_disabled,json=partialResponseDisabled,proto3" json:"partial_response_disabled,omitempty"` // TODO(bwplotka): Move Thanos components to use strategy instead. Including QueryAPI. PartialResponseStrategy PartialResponseStrategy `protobuf:"varint,7,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` // skip_chunks controls whether sending chunks or not in series responses. SkipChunks bool `protobuf:"varint,8,opt,name=skip_chunks,json=skipChunks,proto3" json:"skip_chunks,omitempty"` // hints is an opaque data structure that can be used to carry additional information. // The content of this field and whether it's supported depends on the // implementation of a specific store. Hints *types.Any `protobuf:"bytes,9,opt,name=hints,proto3" json:"hints,omitempty"` // Query step size in milliseconds. // Deprecated: Use query_hints instead. Step int64 `protobuf:"varint,10,opt,name=step,proto3" json:"step,omitempty"` // Range vector selector range in milliseconds. // Deprecated: Use query_hints instead. Range int64 `protobuf:"varint,11,opt,name=range,proto3" json:"range,omitempty"` // query_hints are the hints coming from the PromQL engine when // requesting a storage.SeriesSet for a given expression. // As hints name suggest using those is best effort. QueryHints *QueryHints `protobuf:"bytes,12,opt,name=query_hints,json=queryHints,proto3" json:"query_hints,omitempty"` // shard_info is used by the querier to request a specific // shard of blocks instead of entire blocks. ShardInfo *ShardInfo `protobuf:"bytes,13,opt,name=shard_info,json=shardInfo,proto3" json:"shard_info,omitempty"` // without_replica_labels are replica labels which have to be excluded from series set results. // The sorting requirement has to be preserved, so series should be sorted without those labels. // If the requested label is NOT a replica label (labels that identify replication group) it should be not affected by // this setting (label should be included in sorting and response). // It is the server responsibility to detect and track what is replica label and what is not. // This allows faster deduplication by clients. // NOTE(bwplotka): thanos.info.store.supports_without_replica_labels field has to return true to let client knows // server supports it. WithoutReplicaLabels []string `protobuf:"bytes,14,rep,name=without_replica_labels,json=withoutReplicaLabels,proto3" json:"without_replica_labels,omitempty"` // limit is used to limit the number of results returned Limit int64 `protobuf:"varint,15,opt,name=limit,proto3" json:"limit,omitempty"` // response_batch_size is used to batch Series messages into one SeriesResponse // If set to 0 or 1, each Series is sent as a separate response ResponseBatchSize int64 `protobuf:"varint,16,opt,name=response_batch_size,json=responseBatchSize,proto3" json:"response_batch_size,omitempty"` } func (m *SeriesRequest) Reset() { *m = SeriesRequest{} } func (m *SeriesRequest) String() string { return proto.CompactTextString(m) } func (*SeriesRequest) ProtoMessage() {} func (*SeriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{2} } func (m *SeriesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SeriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SeriesRequest.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 *SeriesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_SeriesRequest.Merge(m, src) } func (m *SeriesRequest) XXX_Size() int { return m.Size() } func (m *SeriesRequest) XXX_DiscardUnknown() { xxx_messageInfo_SeriesRequest.DiscardUnknown(m) } var xxx_messageInfo_SeriesRequest proto.InternalMessageInfo // QueryHints represents hints from PromQL that might help to // pre-aggregate or prepare series for faster use by clients. // Analogous to storage.SelectHints plus additional info. // As "hints" name suggests all of the items here are best effort. type QueryHints struct { // Query step size in milliseconds. StepMillis int64 `protobuf:"varint,1,opt,name=step_millis,json=stepMillis,proto3" json:"step_millis,omitempty"` // The surrounding function or aggregation. Func *Func `protobuf:"bytes,2,opt,name=func,proto3" json:"func,omitempty"` // The grouping expression Grouping *Grouping `protobuf:"bytes,4,opt,name=grouping,proto3" json:"grouping,omitempty"` // Range vector selector. Range *Range `protobuf:"bytes,5,opt,name=range,proto3" json:"range,omitempty"` // projection_labels are the minimum amount of labels required to be fetched for this Series call. // When honored it is required to add a label with name `series_hash_label` (as in the parameter in this message) containing the hash of all labels // of a particular series so that the engine can still perform horizontal joins. ProjectionLabels []string `protobuf:"bytes,6,rep,name=projection_labels,json=projectionLabels,proto3" json:"projection_labels,omitempty"` // projection_include defines if we have to include or exclude the labels from the projection_labels field. ProjectionInclude bool `protobuf:"varint,7,opt,name=projection_include,json=projectionInclude,proto3" json:"projection_include,omitempty"` // series_hash_label_name defines the name of the label which should contain the hash of all values. SeriesHashLabelName string `protobuf:"bytes,8,opt,name=series_hash_label_name,json=seriesHashLabelName,proto3" json:"series_hash_label_name,omitempty"` } func (m *QueryHints) Reset() { *m = QueryHints{} } func (m *QueryHints) String() string { return proto.CompactTextString(m) } func (*QueryHints) ProtoMessage() {} func (*QueryHints) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{3} } func (m *QueryHints) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryHints.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 *QueryHints) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryHints.Merge(m, src) } func (m *QueryHints) XXX_Size() int { return m.Size() } func (m *QueryHints) XXX_DiscardUnknown() { xxx_messageInfo_QueryHints.DiscardUnknown(m) } var xxx_messageInfo_QueryHints proto.InternalMessageInfo // ShardInfo are the parameters used to shard series in Stores. type ShardInfo struct { // The index of the current shard. ShardIndex int64 `protobuf:"varint,1,opt,name=shard_index,json=shardIndex,proto3" json:"shard_index,omitempty"` // The total number of shards. TotalShards int64 `protobuf:"varint,2,opt,name=total_shards,json=totalShards,proto3" json:"total_shards,omitempty"` // Group by or without labels. By bool `protobuf:"varint,3,opt,name=by,proto3" json:"by,omitempty"` // Labels on which to partition series. Labels []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` } func (m *ShardInfo) Reset() { *m = ShardInfo{} } func (m *ShardInfo) String() string { return proto.CompactTextString(m) } func (*ShardInfo) ProtoMessage() {} func (*ShardInfo) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{4} } func (m *ShardInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ShardInfo.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 *ShardInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_ShardInfo.Merge(m, src) } func (m *ShardInfo) XXX_Size() int { return m.Size() } func (m *ShardInfo) XXX_DiscardUnknown() { xxx_messageInfo_ShardInfo.DiscardUnknown(m) } var xxx_messageInfo_ShardInfo proto.InternalMessageInfo type Func struct { // The function or aggregation name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (m *Func) Reset() { *m = Func{} } func (m *Func) String() string { return proto.CompactTextString(m) } func (*Func) ProtoMessage() {} func (*Func) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{5} } func (m *Func) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Func) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Func.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 *Func) XXX_Merge(src proto.Message) { xxx_messageInfo_Func.Merge(m, src) } func (m *Func) XXX_Size() int { return m.Size() } func (m *Func) XXX_DiscardUnknown() { xxx_messageInfo_Func.DiscardUnknown(m) } var xxx_messageInfo_Func proto.InternalMessageInfo type Grouping struct { // Indicate whether it is without or by. By bool `protobuf:"varint,1,opt,name=by,proto3" json:"by,omitempty"` // List of label names used in the grouping. Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` } func (m *Grouping) Reset() { *m = Grouping{} } func (m *Grouping) String() string { return proto.CompactTextString(m) } func (*Grouping) ProtoMessage() {} func (*Grouping) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{6} } func (m *Grouping) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Grouping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Grouping.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 *Grouping) XXX_Merge(src proto.Message) { xxx_messageInfo_Grouping.Merge(m, src) } func (m *Grouping) XXX_Size() int { return m.Size() } func (m *Grouping) XXX_DiscardUnknown() { xxx_messageInfo_Grouping.DiscardUnknown(m) } var xxx_messageInfo_Grouping proto.InternalMessageInfo type Range struct { Millis int64 `protobuf:"varint,1,opt,name=millis,proto3" json:"millis,omitempty"` } func (m *Range) Reset() { *m = Range{} } func (m *Range) String() string { return proto.CompactTextString(m) } func (*Range) ProtoMessage() {} func (*Range) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{7} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Range.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 *Range) XXX_Merge(src proto.Message) { xxx_messageInfo_Range.Merge(m, src) } func (m *Range) XXX_Size() int { return m.Size() } func (m *Range) XXX_DiscardUnknown() { xxx_messageInfo_Range.DiscardUnknown(m) } var xxx_messageInfo_Range proto.InternalMessageInfo type TimeSeriesTenantTuple struct { Timeseries []prompb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"` Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` } func (m *TimeSeriesTenantTuple) Reset() { *m = TimeSeriesTenantTuple{} } func (m *TimeSeriesTenantTuple) String() string { return proto.CompactTextString(m) } func (*TimeSeriesTenantTuple) ProtoMessage() {} func (*TimeSeriesTenantTuple) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{8} } func (m *TimeSeriesTenantTuple) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TimeSeriesTenantTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TimeSeriesTenantTuple.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 *TimeSeriesTenantTuple) XXX_Merge(src proto.Message) { xxx_messageInfo_TimeSeriesTenantTuple.Merge(m, src) } func (m *TimeSeriesTenantTuple) XXX_Size() int { return m.Size() } func (m *TimeSeriesTenantTuple) XXX_DiscardUnknown() { xxx_messageInfo_TimeSeriesTenantTuple.DiscardUnknown(m) } var xxx_messageInfo_TimeSeriesTenantTuple proto.InternalMessageInfo type SeriesResponse struct { // Types that are valid to be assigned to Result: // *SeriesResponse_Series // *SeriesResponse_Warning // *SeriesResponse_Hints // *SeriesResponse_Batch Result isSeriesResponse_Result `protobuf_oneof:"result"` } func (m *SeriesResponse) Reset() { *m = SeriesResponse{} } func (m *SeriesResponse) String() string { return proto.CompactTextString(m) } func (*SeriesResponse) ProtoMessage() {} func (*SeriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{9} } func (m *SeriesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_SeriesResponse.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 *SeriesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_SeriesResponse.Merge(m, src) } func (m *SeriesResponse) XXX_Size() int { return m.Size() } func (m *SeriesResponse) XXX_DiscardUnknown() { xxx_messageInfo_SeriesResponse.DiscardUnknown(m) } var xxx_messageInfo_SeriesResponse proto.InternalMessageInfo type isSeriesResponse_Result interface { isSeriesResponse_Result() MarshalTo([]byte) (int, error) Size() int } type SeriesResponse_Series struct { Series *Series `protobuf:"bytes,1,opt,name=series,proto3,oneof" json:"series,omitempty"` } type SeriesResponse_Warning struct { Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof" json:"warning,omitempty"` } type SeriesResponse_Hints struct { Hints *types.Any `protobuf:"bytes,3,opt,name=hints,proto3,oneof" json:"hints,omitempty"` } type SeriesResponse_Batch struct { Batch *SeriesBatch `protobuf:"bytes,4,opt,name=batch,proto3,oneof" json:"batch,omitempty"` } func (*SeriesResponse_Series) isSeriesResponse_Result() {} func (*SeriesResponse_Warning) isSeriesResponse_Result() {} func (*SeriesResponse_Hints) isSeriesResponse_Result() {} func (*SeriesResponse_Batch) isSeriesResponse_Result() {} func (m *SeriesResponse) GetResult() isSeriesResponse_Result { if m != nil { return m.Result } return nil } func (m *SeriesResponse) GetSeries() *Series { if x, ok := m.GetResult().(*SeriesResponse_Series); ok { return x.Series } return nil } func (m *SeriesResponse) GetWarning() string { if x, ok := m.GetResult().(*SeriesResponse_Warning); ok { return x.Warning } return "" } func (m *SeriesResponse) GetHints() *types.Any { if x, ok := m.GetResult().(*SeriesResponse_Hints); ok { return x.Hints } return nil } func (m *SeriesResponse) GetBatch() *SeriesBatch { if x, ok := m.GetResult().(*SeriesResponse_Batch); ok { return x.Batch } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*SeriesResponse) XXX_OneofWrappers() []interface{} { return []interface{}{ (*SeriesResponse_Series)(nil), (*SeriesResponse_Warning)(nil), (*SeriesResponse_Hints)(nil), (*SeriesResponse_Batch)(nil), } } type LabelNamesRequest struct { PartialResponseDisabled bool `protobuf:"varint,1,opt,name=partial_response_disabled,json=partialResponseDisabled,proto3" json:"partial_response_disabled,omitempty"` // TODO(bwplotka): Move Thanos components to use strategy instead. Including QueryAPI. PartialResponseStrategy PartialResponseStrategy `protobuf:"varint,2,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"` // hints is an opaque data structure that can be used to carry additional information. // The content of this field and whether it's supported depends on the // implementation of a specific store. Hints *types.Any `protobuf:"bytes,5,opt,name=hints,proto3" json:"hints,omitempty"` Matchers []LabelMatcher `protobuf:"bytes,6,rep,name=matchers,proto3" json:"matchers"` // same as in series request. WithoutReplicaLabels []string `protobuf:"bytes,7,rep,name=without_replica_labels,json=withoutReplicaLabels,proto3" json:"without_replica_labels,omitempty"` // limit is used to limit the number of results returned Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"` } func (m *LabelNamesRequest) Reset() { *m = LabelNamesRequest{} } func (m *LabelNamesRequest) String() string { return proto.CompactTextString(m) } func (*LabelNamesRequest) ProtoMessage() {} func (*LabelNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{10} } func (m *LabelNamesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LabelNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LabelNamesRequest.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 *LabelNamesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LabelNamesRequest.Merge(m, src) } func (m *LabelNamesRequest) XXX_Size() int { return m.Size() } func (m *LabelNamesRequest) XXX_DiscardUnknown() { xxx_messageInfo_LabelNamesRequest.DiscardUnknown(m) } var xxx_messageInfo_LabelNamesRequest proto.InternalMessageInfo type LabelNamesResponse struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` Warnings []string `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` /// hints is an opaque data structure that can be used to carry additional information from /// the store. The content of this field and whether it's supported depends on the /// implementation of a specific store. Hints *types.Any `protobuf:"bytes,3,opt,name=hints,proto3" json:"hints,omitempty"` } func (m *LabelNamesResponse) Reset() { *m = LabelNamesResponse{} } func (m *LabelNamesResponse) String() string { return proto.CompactTextString(m) } func (*LabelNamesResponse) ProtoMessage() {} func (*LabelNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{11} } func (m *LabelNamesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LabelNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LabelNamesResponse.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 *LabelNamesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LabelNamesResponse.Merge(m, src) } func (m *LabelNamesResponse) XXX_Size() int { return m.Size() } func (m *LabelNamesResponse) XXX_DiscardUnknown() { xxx_messageInfo_LabelNamesResponse.DiscardUnknown(m) } var xxx_messageInfo_LabelNamesResponse proto.InternalMessageInfo type LabelValuesRequest struct { Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` PartialResponseDisabled bool `protobuf:"varint,2,opt,name=partial_response_disabled,json=partialResponseDisabled,proto3" json:"partial_response_disabled,omitempty"` // TODO(bwplotka): Move Thanos components to use strategy instead. Including QueryAPI. PartialResponseStrategy PartialResponseStrategy `protobuf:"varint,3,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` Start int64 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"` // hints is an opaque data structure that can be used to carry additional information. // The content of this field and whether it's supported depends on the // implementation of a specific store. Hints *types.Any `protobuf:"bytes,6,opt,name=hints,proto3" json:"hints,omitempty"` Matchers []LabelMatcher `protobuf:"bytes,7,rep,name=matchers,proto3" json:"matchers"` // same as in series request. WithoutReplicaLabels []string `protobuf:"bytes,8,rep,name=without_replica_labels,json=withoutReplicaLabels,proto3" json:"without_replica_labels,omitempty"` // limit is used to limit the number of results returned Limit int64 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"` } func (m *LabelValuesRequest) Reset() { *m = LabelValuesRequest{} } func (m *LabelValuesRequest) String() string { return proto.CompactTextString(m) } func (*LabelValuesRequest) ProtoMessage() {} func (*LabelValuesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{12} } func (m *LabelValuesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LabelValuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LabelValuesRequest.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 *LabelValuesRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LabelValuesRequest.Merge(m, src) } func (m *LabelValuesRequest) XXX_Size() int { return m.Size() } func (m *LabelValuesRequest) XXX_DiscardUnknown() { xxx_messageInfo_LabelValuesRequest.DiscardUnknown(m) } var xxx_messageInfo_LabelValuesRequest proto.InternalMessageInfo type LabelValuesResponse struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` Warnings []string `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` /// hints is an opaque data structure that can be used to carry additional information from /// the store. The content of this field and whether it's supported depends on the /// implementation of a specific store. Hints *types.Any `protobuf:"bytes,3,opt,name=hints,proto3" json:"hints,omitempty"` } func (m *LabelValuesResponse) Reset() { *m = LabelValuesResponse{} } func (m *LabelValuesResponse) String() string { return proto.CompactTextString(m) } func (*LabelValuesResponse) ProtoMessage() {} func (*LabelValuesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_a938d55a388af629, []int{13} } func (m *LabelValuesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *LabelValuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_LabelValuesResponse.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 *LabelValuesResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LabelValuesResponse.Merge(m, src) } func (m *LabelValuesResponse) XXX_Size() int { return m.Size() } func (m *LabelValuesResponse) XXX_DiscardUnknown() { xxx_messageInfo_LabelValuesResponse.DiscardUnknown(m) } var xxx_messageInfo_LabelValuesResponse proto.InternalMessageInfo func init() { proto.RegisterEnum("thanos.Aggr", Aggr_name, Aggr_value) proto.RegisterType((*WriteResponse)(nil), "thanos.WriteResponse") proto.RegisterType((*WriteRequest)(nil), "thanos.WriteRequest") proto.RegisterType((*SeriesRequest)(nil), "thanos.SeriesRequest") proto.RegisterType((*QueryHints)(nil), "thanos.QueryHints") proto.RegisterType((*ShardInfo)(nil), "thanos.ShardInfo") proto.RegisterType((*Func)(nil), "thanos.Func") proto.RegisterType((*Grouping)(nil), "thanos.Grouping") proto.RegisterType((*Range)(nil), "thanos.Range") proto.RegisterType((*TimeSeriesTenantTuple)(nil), "thanos.TimeSeriesTenantTuple") proto.RegisterType((*SeriesResponse)(nil), "thanos.SeriesResponse") proto.RegisterType((*LabelNamesRequest)(nil), "thanos.LabelNamesRequest") proto.RegisterType((*LabelNamesResponse)(nil), "thanos.LabelNamesResponse") proto.RegisterType((*LabelValuesRequest)(nil), "thanos.LabelValuesRequest") proto.RegisterType((*LabelValuesResponse)(nil), "thanos.LabelValuesResponse") } func init() { proto.RegisterFile("store/storepb/rpc.proto", fileDescriptor_a938d55a388af629) } var fileDescriptor_a938d55a388af629 = []byte{ // 1301 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdf, 0x6e, 0x1b, 0xc5, 0x17, 0xf6, 0x7a, 0xbd, 0xfe, 0x73, 0x9c, 0xb8, 0xce, 0xc4, 0x49, 0x37, 0xae, 0x7e, 0x8e, 0x7f, 0x46, 0x48, 0x56, 0x5b, 0x92, 0xca, 0x45, 0x48, 0x20, 0x6e, 0x92, 0x96, 0x92, 0x4a, 0x24, 0xc0, 0x26, 0x25, 0x08, 0x2e, 0x56, 0x63, 0x7b, 0x62, 0x2f, 0x5d, 0xef, 0x6e, 0x77, 0x66, 0x49, 0xdc, 0x6b, 0x1e, 0x80, 0x7b, 0x1e, 0x83, 0x4b, 0x5e, 0xa0, 0x77, 0x54, 0x5c, 0x71, 0x81, 0x10, 0xb4, 0x2f, 0x82, 0xe6, 0xcc, 0xec, 0xda, 0x2e, 0xee, 0x3f, 0xb5, 0xdc, 0x58, 0x73, 0xce, 0xf7, 0xcd, 0x99, 0x99, 0x73, 0xbe, 0x39, 0xe3, 0x85, 0xcb, 0x5c, 0x84, 0x31, 0xdb, 0xc5, 0xdf, 0xa8, 0xbf, 0x1b, 0x47, 0x83, 0x9d, 0x28, 0x0e, 0x45, 0x48, 0x8a, 0x62, 0x4c, 0x83, 0x90, 0x37, 0xb7, 0x16, 0x09, 0x62, 0x1a, 0x31, 0xae, 0x28, 0xcd, 0xc6, 0x28, 0x1c, 0x85, 0x38, 0xdc, 0x95, 0x23, 0xed, 0x6d, 0x2f, 0x4e, 0x88, 0xe2, 0x70, 0xf2, 0xcc, 0xbc, 0xad, 0x51, 0x18, 0x8e, 0x7c, 0xb6, 0x8b, 0x56, 0x3f, 0x39, 0xdb, 0xa5, 0xc1, 0x54, 0x41, 0x9d, 0x4b, 0xb0, 0x7a, 0x1a, 0x7b, 0x82, 0x39, 0x8c, 0x47, 0x61, 0xc0, 0x59, 0xe7, 0x0f, 0x03, 0x56, 0xb4, 0xe7, 0x41, 0xc2, 0xb8, 0x20, 0x7b, 0x00, 0xc2, 0x9b, 0x30, 0xce, 0x62, 0x8f, 0x71, 0xdb, 0x68, 0x9b, 0xdd, 0x6a, 0xef, 0x8a, 0x9c, 0x3d, 0x61, 0x62, 0xcc, 0x12, 0xee, 0x0e, 0xc2, 0x68, 0xba, 0x73, 0xe2, 0x4d, 0xd8, 0x31, 0x52, 0xf6, 0x0b, 0x8f, 0xfe, 0xdc, 0xce, 0x39, 0x73, 0x93, 0xc8, 0x26, 0x14, 0x05, 0x0b, 0x68, 0x20, 0xec, 0x7c, 0xdb, 0xe8, 0x56, 0x1c, 0x6d, 0x11, 0x1b, 0x4a, 0x31, 0x8b, 0x7c, 0x6f, 0x40, 0x6d, 0xb3, 0x6d, 0x74, 0x4d, 0x27, 0x35, 0xc9, 0x29, 0x34, 0x66, 0xf3, 0x4f, 0x90, 0x7d, 0x9b, 0x0a, 0x6a, 0x17, 0x70, 0xf9, 0xff, 0xed, 0xa8, 0x5c, 0xcd, 0xad, 0xaa, 0x38, 0x27, 0x49, 0xe4, 0x33, 0xbd, 0x81, 0xa5, 0x01, 0x3a, 0xbf, 0x59, 0xb0, 0xaa, 0x66, 0xa4, 0xe7, 0xdb, 0x82, 0xf2, 0xc4, 0x0b, 0x5c, 0xc9, 0xb6, 0x0d, 0xb5, 0x8b, 0x89, 0x17, 0xc8, 0xc8, 0x08, 0xd1, 0x0b, 0x05, 0xe5, 0x35, 0x44, 0x2f, 0x10, 0xfa, 0x40, 0x42, 0x62, 0x30, 0x66, 0x31, 0xb7, 0x4d, 0xdc, 0x54, 0x23, 0xdd, 0xd4, 0x67, 0xb4, 0xcf, 0xfc, 0x43, 0x05, 0xea, 0xbd, 0x64, 0x5c, 0xd2, 0x83, 0x0d, 0x19, 0x32, 0x66, 0x3c, 0xf4, 0x13, 0xe1, 0x85, 0x81, 0x7b, 0xee, 0x05, 0xc3, 0xf0, 0xdc, 0x2e, 0x60, 0xfc, 0xf5, 0x09, 0xbd, 0x70, 0x32, 0xec, 0x14, 0x21, 0x72, 0x1d, 0x80, 0x8e, 0x46, 0x31, 0x1b, 0x51, 0xc1, 0xb8, 0x6d, 0xb5, 0xcd, 0x6e, 0xad, 0xb7, 0x92, 0xae, 0xb6, 0x37, 0x1a, 0xc5, 0xce, 0x1c, 0x4e, 0x3e, 0x82, 0xad, 0x88, 0xc6, 0xc2, 0xa3, 0xbe, 0x5c, 0x05, 0x8b, 0xea, 0x0e, 0x3d, 0x4e, 0xfb, 0x3e, 0x1b, 0xda, 0xc5, 0xb6, 0xd1, 0x2d, 0x3b, 0x97, 0x35, 0x21, 0x2d, 0xfa, 0x6d, 0x0d, 0x93, 0x6f, 0x97, 0xcc, 0xe5, 0x22, 0xa6, 0x82, 0x8d, 0xa6, 0x76, 0xa9, 0x6d, 0x74, 0x6b, 0xbd, 0xed, 0x74, 0xe1, 0x2f, 0x16, 0x63, 0x1c, 0x6b, 0xda, 0xbf, 0x82, 0xa7, 0x00, 0xd9, 0x86, 0x2a, 0xbf, 0xef, 0x45, 0xee, 0x60, 0x9c, 0x04, 0xf7, 0xb9, 0x5d, 0xc6, 0xad, 0x80, 0x74, 0xdd, 0x42, 0x0f, 0xb9, 0x0a, 0xd6, 0xd8, 0x0b, 0x04, 0xb7, 0x2b, 0x6d, 0x03, 0x13, 0xaa, 0x64, 0xbb, 0x93, 0xca, 0x76, 0x67, 0x2f, 0x98, 0x3a, 0x8a, 0x42, 0x08, 0x14, 0xb8, 0x60, 0x91, 0x0d, 0x98, 0x36, 0x1c, 0x93, 0x06, 0x58, 0x31, 0x0d, 0x46, 0xcc, 0xae, 0xa2, 0x53, 0x19, 0xe4, 0x26, 0x54, 0x1f, 0x24, 0x2c, 0x9e, 0xba, 0x2a, 0xf6, 0x0a, 0xc6, 0x26, 0xe9, 0x29, 0xbe, 0x94, 0xd0, 0x81, 0x44, 0x1c, 0x78, 0x90, 0x8d, 0xc9, 0x0d, 0x00, 0x3e, 0xa6, 0xf1, 0xd0, 0xf5, 0x82, 0xb3, 0xd0, 0x5e, 0xc5, 0x39, 0x6b, 0xe9, 0x9c, 0x63, 0x89, 0xdc, 0x0d, 0xce, 0x42, 0xa7, 0xc2, 0xd3, 0x21, 0x79, 0x1f, 0x36, 0xcf, 0x3d, 0x31, 0x0e, 0x13, 0xe1, 0x6a, 0x11, 0xbb, 0xbe, 0x14, 0x02, 0xb7, 0x6b, 0x6d, 0xb3, 0x5b, 0x71, 0x1a, 0x1a, 0x75, 0x14, 0x88, 0x22, 0xe1, 0x72, 0xcb, 0xbe, 0x37, 0xf1, 0x84, 0x7d, 0x49, 0x6d, 0x19, 0x0d, 0xb2, 0x03, 0xeb, 0x59, 0xfa, 0xfb, 0x52, 0x39, 0x2e, 0xf7, 0x1e, 0x32, 0xbb, 0x8e, 0x9c, 0xb5, 0x14, 0xda, 0x97, 0xc8, 0xb1, 0xf7, 0x90, 0x75, 0x7e, 0xce, 0x03, 0xcc, 0x0e, 0x82, 0x89, 0x16, 0x2c, 0x72, 0x27, 0x9e, 0xef, 0x7b, 0x5c, 0x8b, 0x1a, 0xa4, 0xeb, 0x10, 0x3d, 0xa4, 0x0d, 0x85, 0xb3, 0x24, 0x18, 0xa0, 0xa6, 0xab, 0x33, 0x29, 0xdd, 0x49, 0x82, 0x81, 0x83, 0x08, 0xb9, 0x0e, 0xe5, 0x51, 0x1c, 0x26, 0x91, 0x17, 0x8c, 0x50, 0x99, 0xd5, 0x5e, 0x3d, 0x65, 0x7d, 0xaa, 0xfd, 0x4e, 0xc6, 0x20, 0xef, 0xa4, 0x89, 0xb7, 0x90, 0xba, 0x9a, 0x52, 0x1d, 0xe9, 0x4c, 0xeb, 0x70, 0x0d, 0xd6, 0xa2, 0x38, 0xfc, 0x8e, 0x0d, 0x50, 0xf5, 0x3a, 0x37, 0x45, 0xcc, 0x4d, 0x7d, 0x06, 0xe8, 0xbc, 0xbc, 0x07, 0x64, 0x8e, 0xec, 0x05, 0x03, 0x3f, 0x19, 0x32, 0x54, 0x60, 0xd9, 0x99, 0x0b, 0x73, 0x57, 0x01, 0xe4, 0x26, 0x6c, 0xaa, 0x9b, 0xee, 0x8e, 0x29, 0x1f, 0xab, 0xe0, 0x6e, 0x40, 0x27, 0x0c, 0x55, 0x56, 0x71, 0xd6, 0x15, 0x7a, 0x40, 0xf9, 0x18, 0x17, 0x38, 0xa2, 0x13, 0xd6, 0x39, 0x87, 0x4a, 0x56, 0x49, 0xcc, 0x99, 0x2e, 0xf8, 0x90, 0x5d, 0x64, 0x39, 0x53, 0xf8, 0x90, 0x5d, 0x90, 0xff, 0xc3, 0x8a, 0x08, 0x05, 0xf5, 0x5d, 0xf4, 0x71, 0xdd, 0x0f, 0xaa, 0xe8, 0xc3, 0x30, 0x9c, 0xd4, 0x20, 0xdf, 0x9f, 0x62, 0x27, 0x2b, 0x3b, 0xf9, 0xfe, 0x54, 0xb6, 0x3d, 0x7d, 0xcc, 0x02, 0x1e, 0x53, 0x5b, 0x9d, 0x26, 0x14, 0x64, 0xaa, 0xa5, 0x86, 0x71, 0x8f, 0x06, 0xee, 0x11, 0xc7, 0x9d, 0x1e, 0x94, 0xd3, 0x04, 0xeb, 0x78, 0xc6, 0x92, 0x78, 0xe6, 0x42, 0xbc, 0x6d, 0xb0, 0x30, 0xd3, 0x92, 0xb0, 0x50, 0x73, 0x6d, 0x75, 0x62, 0xd8, 0x58, 0xda, 0x29, 0xff, 0xc3, 0xde, 0xde, 0xf9, 0xc5, 0x80, 0x5a, 0xda, 0x68, 0x95, 0x5e, 0x49, 0x17, 0x8a, 0xd9, 0x4a, 0x52, 0x27, 0xb5, 0xec, 0x42, 0xa9, 0xea, 0xe4, 0x1c, 0x8d, 0x93, 0x26, 0x94, 0xce, 0x69, 0x1c, 0x48, 0xf5, 0x61, 0xd4, 0x83, 0x9c, 0x93, 0x3a, 0xc8, 0xf5, 0xb4, 0x4b, 0x98, 0xcf, 0xef, 0x12, 0x07, 0xb9, 0xb4, 0x4f, 0x5c, 0x03, 0x0b, 0x6f, 0x90, 0x56, 0xf1, 0xfa, 0xe2, 0x92, 0x78, 0x85, 0x24, 0x19, 0x39, 0xfb, 0x65, 0x28, 0xc6, 0x8c, 0x27, 0xbe, 0xe8, 0xfc, 0x60, 0xc2, 0x5a, 0xa6, 0x94, 0xec, 0xa9, 0x78, 0x61, 0x6b, 0x35, 0xde, 0xa0, 0xb5, 0xe6, 0xdf, 0xb0, 0xb5, 0x36, 0xc0, 0xe2, 0x82, 0xc6, 0x42, 0x3f, 0xa3, 0xca, 0x20, 0x75, 0x30, 0x59, 0x30, 0xd4, 0x2f, 0x8b, 0x1c, 0xce, 0x3a, 0xac, 0xf5, 0xf2, 0x0e, 0x3b, 0xff, 0xc2, 0x15, 0x5f, 0xe3, 0x85, 0x7b, 0x7e, 0x23, 0x2c, 0xbd, 0x4a, 0x23, 0x2c, 0xcf, 0x35, 0xc2, 0x4e, 0x0c, 0x64, 0xbe, 0x0a, 0x5a, 0x47, 0x0d, 0xb0, 0xe4, 0x5d, 0x51, 0x82, 0xad, 0x38, 0xca, 0x20, 0x4d, 0x28, 0x6b, 0x89, 0xc8, 0xcb, 0x29, 0x81, 0xcc, 0x9e, 0x9d, 0xdb, 0x7c, 0xe9, 0xb9, 0x3b, 0x3f, 0x99, 0x7a, 0xd1, 0xaf, 0xa8, 0x9f, 0xcc, 0x6a, 0x2f, 0x37, 0x28, 0xbd, 0xfa, 0xb6, 0x2a, 0xe3, 0xc5, 0x8a, 0xc8, 0xbf, 0x81, 0x22, 0xcc, 0xb7, 0xa5, 0x88, 0xc2, 0x12, 0x45, 0x58, 0x4b, 0x14, 0x51, 0x7c, 0x3d, 0x45, 0x94, 0xde, 0x8a, 0x22, 0xca, 0xaf, 0xa2, 0x88, 0xca, 0xbc, 0x22, 0x12, 0x58, 0x5f, 0x28, 0x8e, 0x96, 0xc4, 0x26, 0x14, 0xbf, 0x47, 0x8f, 0xd6, 0x84, 0xb6, 0xde, 0x96, 0x28, 0xae, 0xee, 0x43, 0x41, 0xfe, 0xd1, 0x22, 0x25, 0x30, 0x9d, 0xbd, 0xd3, 0x7a, 0x8e, 0x54, 0xc0, 0xba, 0xf5, 0xf9, 0xbd, 0xa3, 0x93, 0xba, 0x21, 0x7d, 0xc7, 0xf7, 0x0e, 0xeb, 0x79, 0x39, 0x38, 0xbc, 0x7b, 0x54, 0x37, 0x71, 0xb0, 0xf7, 0x75, 0xbd, 0x40, 0xaa, 0x50, 0x42, 0xd6, 0x27, 0x4e, 0xdd, 0xea, 0xfd, 0x6a, 0x80, 0x75, 0x2c, 0xff, 0xa4, 0x93, 0x0f, 0xa1, 0xa8, 0xfa, 0x0f, 0xd9, 0x58, 0xec, 0x47, 0x5a, 0x6c, 0xcd, 0xcd, 0x67, 0xdd, 0xea, 0x98, 0x37, 0x0c, 0x72, 0x0b, 0x60, 0x76, 0x23, 0xc8, 0xd6, 0x42, 0xfe, 0xe7, 0x7b, 0x55, 0xb3, 0xb9, 0x0c, 0xd2, 0xd9, 0xba, 0x03, 0xd5, 0xb9, 0x24, 0x92, 0x45, 0xea, 0x82, 0xec, 0x9b, 0x57, 0x96, 0x62, 0x2a, 0x4e, 0xef, 0x08, 0x6a, 0xf8, 0xa9, 0x20, 0xf5, 0xac, 0x4e, 0xf6, 0x31, 0x54, 0x1d, 0x36, 0x09, 0x05, 0x43, 0x3f, 0xc9, 0xf4, 0x31, 0xff, 0x45, 0xd1, 0xdc, 0x78, 0xc6, 0xab, 0xbf, 0x3c, 0x72, 0xfb, 0xef, 0x3e, 0xfa, 0xbb, 0x95, 0x7b, 0xf4, 0xa4, 0x65, 0x3c, 0x7e, 0xd2, 0x32, 0xfe, 0x7a, 0xd2, 0x32, 0x7e, 0x7c, 0xda, 0xca, 0x3d, 0x7e, 0xda, 0xca, 0xfd, 0xfe, 0xb4, 0x95, 0xfb, 0xa6, 0xa4, 0xbf, 0x70, 0xfa, 0x45, 0xac, 0xd0, 0xcd, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x56, 0x75, 0xa5, 0x4b, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // StoreClient is the client API for Store service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type StoreClient interface { /// Series streams each Series (Labels and chunk/downsampling chunk) for given label matchers and time range. /// /// Series should strictly stream full series after series, optionally split by time. This means that a single frame can contain /// partition of the single series, but once a new series is started to be streamed it means that no more data will /// be sent for previous one. /// Series has to be sorted. /// /// There is no requirements on chunk sorting, however it is recommended to have chunk sorted by chunk min time. /// This heavily optimizes the resource usage on Querier / Federated Queries. /// /// Chunks can span a range larger than the requested min and max time and it is up to the query engine to discard samples /// which fall outside of the query range. Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (Store_SeriesClient, error) /// LabelNames returns all label names constrained by the given matchers. LabelNames(ctx context.Context, in *LabelNamesRequest, opts ...grpc.CallOption) (*LabelNamesResponse, error) /// LabelValues returns all label values for given label name. LabelValues(ctx context.Context, in *LabelValuesRequest, opts ...grpc.CallOption) (*LabelValuesResponse, error) } type storeClient struct { cc *grpc.ClientConn } func NewStoreClient(cc *grpc.ClientConn) StoreClient { return &storeClient{cc} } func (c *storeClient) Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (Store_SeriesClient, error) { stream, err := c.cc.NewStream(ctx, &_Store_serviceDesc.Streams[0], "/thanos.Store/Series", opts...) if err != nil { return nil, err } x := &storeSeriesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } if err := x.ClientStream.CloseSend(); err != nil { return nil, err } return x, nil } type Store_SeriesClient interface { Recv() (*SeriesResponse, error) grpc.ClientStream } type storeSeriesClient struct { grpc.ClientStream } func (x *storeSeriesClient) Recv() (*SeriesResponse, error) { m := new(SeriesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *storeClient) LabelNames(ctx context.Context, in *LabelNamesRequest, opts ...grpc.CallOption) (*LabelNamesResponse, error) { out := new(LabelNamesResponse) err := c.cc.Invoke(ctx, "/thanos.Store/LabelNames", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *storeClient) LabelValues(ctx context.Context, in *LabelValuesRequest, opts ...grpc.CallOption) (*LabelValuesResponse, error) { out := new(LabelValuesResponse) err := c.cc.Invoke(ctx, "/thanos.Store/LabelValues", in, out, opts...) if err != nil { return nil, err } return out, nil } // StoreServer is the server API for Store service. type StoreServer interface { /// Series streams each Series (Labels and chunk/downsampling chunk) for given label matchers and time range. /// /// Series should strictly stream full series after series, optionally split by time. This means that a single frame can contain /// partition of the single series, but once a new series is started to be streamed it means that no more data will /// be sent for previous one. /// Series has to be sorted. /// /// There is no requirements on chunk sorting, however it is recommended to have chunk sorted by chunk min time. /// This heavily optimizes the resource usage on Querier / Federated Queries. /// /// Chunks can span a range larger than the requested min and max time and it is up to the query engine to discard samples /// which fall outside of the query range. Series(*SeriesRequest, Store_SeriesServer) error /// LabelNames returns all label names constrained by the given matchers. LabelNames(context.Context, *LabelNamesRequest) (*LabelNamesResponse, error) /// LabelValues returns all label values for given label name. LabelValues(context.Context, *LabelValuesRequest) (*LabelValuesResponse, error) } // UnimplementedStoreServer can be embedded to have forward compatible implementations. type UnimplementedStoreServer struct { } func (*UnimplementedStoreServer) Series(req *SeriesRequest, srv Store_SeriesServer) error { return status.Errorf(codes.Unimplemented, "method Series not implemented") } func (*UnimplementedStoreServer) LabelNames(ctx context.Context, req *LabelNamesRequest) (*LabelNamesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LabelNames not implemented") } func (*UnimplementedStoreServer) LabelValues(ctx context.Context, req *LabelValuesRequest) (*LabelValuesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LabelValues not implemented") } func RegisterStoreServer(s *grpc.Server, srv StoreServer) { s.RegisterService(&_Store_serviceDesc, srv) } func _Store_Series_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(SeriesRequest) if err := stream.RecvMsg(m); err != nil { return err } return srv.(StoreServer).Series(m, &storeSeriesServer{stream}) } type Store_SeriesServer interface { Send(*SeriesResponse) error grpc.ServerStream } type storeSeriesServer struct { grpc.ServerStream } func (x *storeSeriesServer) Send(m *SeriesResponse) error { return x.ServerStream.SendMsg(m) } func _Store_LabelNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LabelNamesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StoreServer).LabelNames(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/thanos.Store/LabelNames", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StoreServer).LabelNames(ctx, req.(*LabelNamesRequest)) } return interceptor(ctx, in, info, handler) } func _Store_LabelValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LabelValuesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StoreServer).LabelValues(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/thanos.Store/LabelValues", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StoreServer).LabelValues(ctx, req.(*LabelValuesRequest)) } return interceptor(ctx, in, info, handler) } var _Store_serviceDesc = grpc.ServiceDesc{ ServiceName: "thanos.Store", HandlerType: (*StoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LabelNames", Handler: _Store_LabelNames_Handler, }, { MethodName: "LabelValues", Handler: _Store_LabelValues_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Series", Handler: _Store_Series_Handler, ServerStreams: true, }, }, Metadata: "store/storepb/rpc.proto", } // WriteableStoreClient is the client API for WriteableStore service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WriteableStoreClient interface { // WriteRequest allows you to write metrics to this store via remote write RemoteWrite(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) } type writeableStoreClient struct { cc *grpc.ClientConn } func NewWriteableStoreClient(cc *grpc.ClientConn) WriteableStoreClient { return &writeableStoreClient{cc} } func (c *writeableStoreClient) RemoteWrite(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) { out := new(WriteResponse) err := c.cc.Invoke(ctx, "/thanos.WriteableStore/RemoteWrite", in, out, opts...) if err != nil { return nil, err } return out, nil } // WriteableStoreServer is the server API for WriteableStore service. type WriteableStoreServer interface { // WriteRequest allows you to write metrics to this store via remote write RemoteWrite(context.Context, *WriteRequest) (*WriteResponse, error) } // UnimplementedWriteableStoreServer can be embedded to have forward compatible implementations. type UnimplementedWriteableStoreServer struct { } func (*UnimplementedWriteableStoreServer) RemoteWrite(ctx context.Context, req *WriteRequest) (*WriteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoteWrite not implemented") } func RegisterWriteableStoreServer(s *grpc.Server, srv WriteableStoreServer) { s.RegisterService(&_WriteableStore_serviceDesc, srv) } func _WriteableStore_RemoteWrite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WriteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(WriteableStoreServer).RemoteWrite(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/thanos.WriteableStore/RemoteWrite", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WriteableStoreServer).RemoteWrite(ctx, req.(*WriteRequest)) } return interceptor(ctx, in, info, handler) } var _WriteableStore_serviceDesc = grpc.ServiceDesc{ ServiceName: "thanos.WriteableStore", HandlerType: (*WriteableStoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RemoteWrite", Handler: _WriteableStore_RemoteWrite_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "store/storepb/rpc.proto", } func (m *WriteResponse) 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 *WriteResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *WriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *WriteRequest) 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 *WriteRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.TimeseriesTenantData) > 0 { for iNdEx := len(m.TimeseriesTenantData) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.TimeseriesTenantData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } } if m.Replica != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Replica)) i-- dAtA[i] = 0x18 } if len(m.Tenant) > 0 { i -= len(m.Tenant) copy(dAtA[i:], m.Tenant) i = encodeVarintRpc(dAtA, i, uint64(len(m.Tenant))) i-- dAtA[i] = 0x12 } if len(m.Timeseries) > 0 { for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *SeriesRequest) 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 *SeriesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ResponseBatchSize != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.ResponseBatchSize)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x80 } if m.Limit != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x78 } if len(m.WithoutReplicaLabels) > 0 { for iNdEx := len(m.WithoutReplicaLabels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.WithoutReplicaLabels[iNdEx]) copy(dAtA[i:], m.WithoutReplicaLabels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.WithoutReplicaLabels[iNdEx]))) i-- dAtA[i] = 0x72 } } if m.ShardInfo != nil { { size, err := m.ShardInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x6a } if m.QueryHints != nil { { size, err := m.QueryHints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x62 } if m.Range != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Range)) i-- dAtA[i] = 0x58 } if m.Step != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Step)) i-- dAtA[i] = 0x50 } if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x4a } if m.SkipChunks { i-- if m.SkipChunks { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x40 } if m.PartialResponseStrategy != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy)) i-- dAtA[i] = 0x38 } if m.PartialResponseDisabled { i-- if m.PartialResponseDisabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x30 } if len(m.Aggregates) > 0 { dAtA5 := make([]byte, len(m.Aggregates)*10) var j4 int for _, num := range m.Aggregates { for num >= 1<<7 { dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j4++ } dAtA5[j4] = uint8(num) j4++ } i -= j4 copy(dAtA[i:], dAtA5[:j4]) i = encodeVarintRpc(dAtA, i, uint64(j4)) i-- dAtA[i] = 0x2a } if m.MaxResolutionWindow != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.MaxResolutionWindow)) i-- dAtA[i] = 0x20 } if len(m.Matchers) > 0 { for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if m.MaxTime != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.MaxTime)) i-- dAtA[i] = 0x10 } if m.MinTime != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.MinTime)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *QueryHints) 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 *QueryHints) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.SeriesHashLabelName) > 0 { i -= len(m.SeriesHashLabelName) copy(dAtA[i:], m.SeriesHashLabelName) i = encodeVarintRpc(dAtA, i, uint64(len(m.SeriesHashLabelName))) i-- dAtA[i] = 0x42 } if m.ProjectionInclude { i-- if m.ProjectionInclude { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x38 } if len(m.ProjectionLabels) > 0 { for iNdEx := len(m.ProjectionLabels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ProjectionLabels[iNdEx]) copy(dAtA[i:], m.ProjectionLabels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.ProjectionLabels[iNdEx]))) i-- dAtA[i] = 0x32 } } if m.Range != nil { { size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if m.Grouping != nil { { size, err := m.Grouping.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } if m.Func != nil { { size, err := m.Func.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.StepMillis != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.StepMillis)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *ShardInfo) 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 *ShardInfo) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *ShardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Labels[iNdEx]) copy(dAtA[i:], m.Labels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.Labels[iNdEx]))) i-- dAtA[i] = 0x22 } } if m.By { i-- if m.By { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x18 } if m.TotalShards != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.TotalShards)) i-- dAtA[i] = 0x10 } if m.ShardIndex != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.ShardIndex)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *Func) 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 *Func) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Func) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Grouping) 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 *Grouping) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Grouping) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Labels) > 0 { for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Labels[iNdEx]) copy(dAtA[i:], m.Labels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.Labels[iNdEx]))) i-- dAtA[i] = 0x1a } } if m.By { i-- if m.By { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *Range) 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 *Range) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Range) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Millis != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Millis)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *TimeSeriesTenantTuple) 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 *TimeSeriesTenantTuple) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *TimeSeriesTenantTuple) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Tenant) > 0 { i -= len(m.Tenant) copy(dAtA[i:], m.Tenant) i = encodeVarintRpc(dAtA, i, uint64(len(m.Tenant))) i-- dAtA[i] = 0x12 } if len(m.Timeseries) > 0 { for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *SeriesResponse) 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 *SeriesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Result != nil { { size := m.Result.Size() i -= size if _, err := m.Result.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *SeriesResponse_Series) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesResponse_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 = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SeriesResponse_Warning) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesResponse_Warning) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Warning) copy(dAtA[i:], m.Warning) i = encodeVarintRpc(dAtA, i, uint64(len(m.Warning))) i-- dAtA[i] = 0x12 return len(dAtA) - i, nil } func (m *SeriesResponse_Hints) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesResponse_Hints) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } return len(dAtA) - i, nil } func (m *SeriesResponse_Batch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *SeriesResponse_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Batch != nil { { size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 } return len(dAtA) - i, nil } func (m *LabelNamesRequest) 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 *LabelNamesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LabelNamesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Limit != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x40 } if len(m.WithoutReplicaLabels) > 0 { for iNdEx := len(m.WithoutReplicaLabels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.WithoutReplicaLabels[iNdEx]) copy(dAtA[i:], m.WithoutReplicaLabels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.WithoutReplicaLabels[iNdEx]))) i-- dAtA[i] = 0x3a } } if len(m.Matchers) > 0 { for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } } if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } if m.End != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.End)) i-- dAtA[i] = 0x20 } if m.Start != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x18 } if m.PartialResponseStrategy != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy)) i-- dAtA[i] = 0x10 } if m.PartialResponseDisabled { i-- if m.PartialResponseDisabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *LabelNamesResponse) 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 *LabelNamesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LabelNamesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } 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 = encodeVarintRpc(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Names) > 0 { for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Names[iNdEx]) copy(dAtA[i:], m.Names[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.Names[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *LabelValuesRequest) 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 *LabelValuesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LabelValuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Limit != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) i-- dAtA[i] = 0x48 } if len(m.WithoutReplicaLabels) > 0 { for iNdEx := len(m.WithoutReplicaLabels) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.WithoutReplicaLabels[iNdEx]) copy(dAtA[i:], m.WithoutReplicaLabels[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.WithoutReplicaLabels[iNdEx]))) i-- dAtA[i] = 0x42 } } if len(m.Matchers) > 0 { for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } } if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } if m.End != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.End)) i-- dAtA[i] = 0x28 } if m.Start != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x20 } if m.PartialResponseStrategy != 0 { i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy)) i-- dAtA[i] = 0x18 } if m.PartialResponseDisabled { i-- if m.PartialResponseDisabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if len(m.Label) > 0 { i -= len(m.Label) copy(dAtA[i:], m.Label) i = encodeVarintRpc(dAtA, i, uint64(len(m.Label))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *LabelValuesResponse) 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 *LabelValuesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *LabelValuesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Hints != nil { { size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintRpc(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } 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 = encodeVarintRpc(dAtA, i, uint64(len(m.Warnings[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Values) > 0 { for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Values[iNdEx]) copy(dAtA[i:], m.Values[iNdEx]) i = encodeVarintRpc(dAtA, i, uint64(len(m.Values[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { offset -= sovRpc(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *WriteResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *WriteRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Timeseries) > 0 { for _, e := range m.Timeseries { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } l = len(m.Tenant) if l > 0 { n += 1 + l + sovRpc(uint64(l)) } if m.Replica != 0 { n += 1 + sovRpc(uint64(m.Replica)) } if len(m.TimeseriesTenantData) > 0 { for _, e := range m.TimeseriesTenantData { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } return n } func (m *SeriesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.MinTime != 0 { n += 1 + sovRpc(uint64(m.MinTime)) } if m.MaxTime != 0 { n += 1 + sovRpc(uint64(m.MaxTime)) } if len(m.Matchers) > 0 { for _, e := range m.Matchers { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } if m.MaxResolutionWindow != 0 { n += 1 + sovRpc(uint64(m.MaxResolutionWindow)) } if len(m.Aggregates) > 0 { l = 0 for _, e := range m.Aggregates { l += sovRpc(uint64(e)) } n += 1 + sovRpc(uint64(l)) + l } if m.PartialResponseDisabled { n += 2 } if m.PartialResponseStrategy != 0 { n += 1 + sovRpc(uint64(m.PartialResponseStrategy)) } if m.SkipChunks { n += 2 } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } if m.Step != 0 { n += 1 + sovRpc(uint64(m.Step)) } if m.Range != 0 { n += 1 + sovRpc(uint64(m.Range)) } if m.QueryHints != nil { l = m.QueryHints.Size() n += 1 + l + sovRpc(uint64(l)) } if m.ShardInfo != nil { l = m.ShardInfo.Size() n += 1 + l + sovRpc(uint64(l)) } if len(m.WithoutReplicaLabels) > 0 { for _, s := range m.WithoutReplicaLabels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.Limit != 0 { n += 1 + sovRpc(uint64(m.Limit)) } if m.ResponseBatchSize != 0 { n += 2 + sovRpc(uint64(m.ResponseBatchSize)) } return n } func (m *QueryHints) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.StepMillis != 0 { n += 1 + sovRpc(uint64(m.StepMillis)) } if m.Func != nil { l = m.Func.Size() n += 1 + l + sovRpc(uint64(l)) } if m.Grouping != nil { l = m.Grouping.Size() n += 1 + l + sovRpc(uint64(l)) } if m.Range != nil { l = m.Range.Size() n += 1 + l + sovRpc(uint64(l)) } if len(m.ProjectionLabels) > 0 { for _, s := range m.ProjectionLabels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.ProjectionInclude { n += 2 } l = len(m.SeriesHashLabelName) if l > 0 { n += 1 + l + sovRpc(uint64(l)) } return n } func (m *ShardInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ShardIndex != 0 { n += 1 + sovRpc(uint64(m.ShardIndex)) } if m.TotalShards != 0 { n += 1 + sovRpc(uint64(m.TotalShards)) } if m.By { n += 2 } if len(m.Labels) > 0 { for _, s := range m.Labels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } return n } func (m *Func) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovRpc(uint64(l)) } return n } func (m *Grouping) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.By { n += 2 } if len(m.Labels) > 0 { for _, s := range m.Labels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } return n } func (m *Range) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Millis != 0 { n += 1 + sovRpc(uint64(m.Millis)) } return n } func (m *TimeSeriesTenantTuple) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Timeseries) > 0 { for _, e := range m.Timeseries { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } l = len(m.Tenant) if l > 0 { n += 1 + l + sovRpc(uint64(l)) } return n } func (m *SeriesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Result != nil { n += m.Result.Size() } return n } func (m *SeriesResponse_Series) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Series != nil { l = m.Series.Size() n += 1 + l + sovRpc(uint64(l)) } return n } func (m *SeriesResponse_Warning) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Warning) n += 1 + l + sovRpc(uint64(l)) return n } func (m *SeriesResponse_Hints) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } return n } func (m *SeriesResponse_Batch) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Batch != nil { l = m.Batch.Size() n += 1 + l + sovRpc(uint64(l)) } return n } func (m *LabelNamesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.PartialResponseDisabled { n += 2 } if m.PartialResponseStrategy != 0 { n += 1 + sovRpc(uint64(m.PartialResponseStrategy)) } if m.Start != 0 { n += 1 + sovRpc(uint64(m.Start)) } if m.End != 0 { n += 1 + sovRpc(uint64(m.End)) } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } if len(m.Matchers) > 0 { for _, e := range m.Matchers { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } if len(m.WithoutReplicaLabels) > 0 { for _, s := range m.WithoutReplicaLabels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.Limit != 0 { n += 1 + sovRpc(uint64(m.Limit)) } return n } func (m *LabelNamesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Names) > 0 { for _, s := range m.Names { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } return n } func (m *LabelValuesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Label) if l > 0 { n += 1 + l + sovRpc(uint64(l)) } if m.PartialResponseDisabled { n += 2 } if m.PartialResponseStrategy != 0 { n += 1 + sovRpc(uint64(m.PartialResponseStrategy)) } if m.Start != 0 { n += 1 + sovRpc(uint64(m.Start)) } if m.End != 0 { n += 1 + sovRpc(uint64(m.End)) } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } if len(m.Matchers) > 0 { for _, e := range m.Matchers { l = e.Size() n += 1 + l + sovRpc(uint64(l)) } } if len(m.WithoutReplicaLabels) > 0 { for _, s := range m.WithoutReplicaLabels { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.Limit != 0 { n += 1 + sovRpc(uint64(m.Limit)) } return n } func (m *LabelValuesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Values) > 0 { for _, s := range m.Values { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if len(m.Warnings) > 0 { for _, s := range m.Warnings { l = len(s) n += 1 + l + sovRpc(uint64(l)) } } if m.Hints != nil { l = m.Hints.Size() n += 1 + l + sovRpc(uint64(l)) } return n } func sovRpc(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozRpc(x uint64) (n int) { return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *WriteResponse) 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 ErrIntOverflowRpc } 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: WriteResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: WriteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *WriteRequest) 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 ErrIntOverflowRpc } 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: WriteRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: WriteRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Timeseries = append(m.Timeseries, prompb.TimeSeries{}) if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Tenant", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Tenant = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Replica", wireType) } m.Replica = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Replica |= int64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TimeseriesTenantData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.TimeseriesTenantData = append(m.TimeseriesTenantData, TimeSeriesTenantTuple{}) if err := m.TimeseriesTenantData[len(m.TimeseriesTenantData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SeriesRequest) 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 ErrIntOverflowRpc } 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: SeriesRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SeriesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MinTime", wireType) } m.MinTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MinTime |= int64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MaxTime", wireType) } m.MaxTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MaxTime |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Matchers = append(m.Matchers, LabelMatcher{}) if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field MaxResolutionWindow", wireType) } m.MaxResolutionWindow = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.MaxResolutionWindow |= int64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType == 0 { var v Aggr for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= Aggr(b&0x7F) << shift if b < 0x80 { break } } m.Aggregates = append(m.Aggregates, v) } else if wireType == 2 { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ packedLen |= int(b&0x7F) << shift if b < 0x80 { break } } if packedLen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + packedLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int if elementCount != 0 && len(m.Aggregates) == 0 { m.Aggregates = make([]Aggr, 0, elementCount) } for iNdEx < postIndex { var v Aggr for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= Aggr(b&0x7F) << shift if b < 0x80 { break } } m.Aggregates = append(m.Aggregates, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field Aggregates", wireType) } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseDisabled", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.PartialResponseDisabled = bool(v != 0) case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseStrategy", wireType) } m.PartialResponseStrategy = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.PartialResponseStrategy |= PartialResponseStrategy(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SkipChunks", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.SkipChunks = bool(v != 0) case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &types.Any{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 10: 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 ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Step |= int64(b&0x7F) << shift if b < 0x80 { break } } case 11: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) } m.Range = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Range |= int64(b&0x7F) << shift if b < 0x80 { break } } case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field QueryHints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.QueryHints == nil { m.QueryHints = &QueryHints{} } if err := m.QueryHints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ShardInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.ShardInfo == nil { m.ShardInfo = &ShardInfo{} } if err := m.ShardInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WithoutReplicaLabels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.WithoutReplicaLabels = append(m.WithoutReplicaLabels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 15: 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 ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } } case 16: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ResponseBatchSize", wireType) } m.ResponseBatchSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ResponseBatchSize |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryHints) 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 ErrIntOverflowRpc } 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: QueryHints: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryHints: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StepMillis", wireType) } m.StepMillis = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.StepMillis |= int64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Func", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Func == nil { m.Func = &Func{} } if err := m.Func.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Grouping", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Grouping == nil { m.Grouping = &Grouping{} } if err := m.Grouping.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Range == nil { m.Range = &Range{} } if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProjectionLabels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.ProjectionLabels = append(m.ProjectionLabels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProjectionInclude", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.ProjectionInclude = bool(v != 0) case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SeriesHashLabelName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.SeriesHashLabelName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *ShardInfo) 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 ErrIntOverflowRpc } 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: ShardInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ShardInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ShardIndex", wireType) } m.ShardIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ShardIndex |= int64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TotalShards", wireType) } m.TotalShards = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.TotalShards |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field By", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.By = bool(v != 0) case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Labels = append(m.Labels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Func) 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 ErrIntOverflowRpc } 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: Func: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Func: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Grouping) 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 ErrIntOverflowRpc } 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: Grouping: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Grouping: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field By", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.By = bool(v != 0) case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Labels = append(m.Labels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Range) 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 ErrIntOverflowRpc } 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: Range: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Millis", wireType) } m.Millis = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Millis |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *TimeSeriesTenantTuple) 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 ErrIntOverflowRpc } 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: TimeSeriesTenantTuple: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TimeSeriesTenantTuple: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Timeseries = append(m.Timeseries, prompb.TimeSeries{}) if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Tenant", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Tenant = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SeriesResponse) 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 ErrIntOverflowRpc } 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: SeriesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SeriesResponse: 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 ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } v := &Series{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Result = &SeriesResponse_Series{v} iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Result = &SeriesResponse_Warning{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } v := &types.Any{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Result = &SeriesResponse_Hints{v} iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Batch", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } v := &SeriesBatch{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Result = &SeriesResponse_Batch{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LabelNamesRequest) 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 ErrIntOverflowRpc } 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: LabelNamesRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LabelNamesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseDisabled", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.PartialResponseDisabled = bool(v != 0) case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseStrategy", wireType) } m.PartialResponseStrategy = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.PartialResponseStrategy |= PartialResponseStrategy(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Start |= int64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) } m.End = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.End |= int64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &types.Any{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Matchers = append(m.Matchers, LabelMatcher{}) if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WithoutReplicaLabels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.WithoutReplicaLabels = append(m.WithoutReplicaLabels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 8: 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 ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LabelNamesResponse) 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 ErrIntOverflowRpc } 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: LabelNamesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LabelNamesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: 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 ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &types.Any{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LabelValuesRequest) 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 ErrIntOverflowRpc } 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: LabelValuesRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LabelValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Label = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseDisabled", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.PartialResponseDisabled = bool(v != 0) case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseStrategy", wireType) } m.PartialResponseStrategy = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.PartialResponseStrategy |= PartialResponseStrategy(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Start |= int64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) } m.End = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.End |= int64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &types.Any{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Matchers = append(m.Matchers, LabelMatcher{}) if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WithoutReplicaLabels", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.WithoutReplicaLabels = append(m.WithoutReplicaLabels, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 9: 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 ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Limit |= int64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *LabelValuesResponse) 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 ErrIntOverflowRpc } 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: LabelValuesResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: LabelValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: 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 ErrIntOverflowRpc } 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 ErrInvalidLengthRpc } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRpc } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthRpc } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRpc } if postIndex > l { return io.ErrUnexpectedEOF } if m.Hints == nil { m.Hints = &types.Any{} } if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRpc(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthRpc } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipRpc(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRpc } 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, ErrIntOverflowRpc } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowRpc } 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, ErrInvalidLengthRpc } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupRpc } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthRpc } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") )