diff --git a/.bingo/Variables.mk b/.bingo/Variables.mk index 6bf602e330..21f966b055 100644 --- a/.bingo/Variables.mk +++ b/.bingo/Variables.mk @@ -1,4 +1,4 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.3. DO NOT EDIT. +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.1. DO NOT EDIT. # All tools are designed to be build inside $GOBIN. BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) GOPATH ?= $(shell go env GOPATH) @@ -129,6 +129,12 @@ $(PROMU): $(BINGO_DIR)/promu.mod @echo "(re)installing $(GOBIN)/promu-v0.5.0" @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=promu.mod -o=$(GOBIN)/promu-v0.5.0 "github.com/prometheus/promu" +PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go +$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/protoc-gen-go + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.5.2 "github.com/golang/protobuf/protoc-gen-go" + PROTOC_GEN_GOGOFAST := $(GOBIN)/protoc-gen-gogofast-v1.3.2 $(PROTOC_GEN_GOGOFAST): $(BINGO_DIR)/protoc-gen-gogofast.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. diff --git a/.bingo/protoc-gen-go.mod b/.bingo/protoc-gen-go.mod new file mode 100644 index 0000000000..e4cb69ef0e --- /dev/null +++ b/.bingo/protoc-gen-go.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.17 + +require github.com/golang/protobuf v1.5.2 // protoc-gen-go diff --git a/.bingo/variables.env b/.bingo/variables.env index 0055670f5f..cfaf5107f3 100644 --- a/.bingo/variables.env +++ b/.bingo/variables.env @@ -1,4 +1,4 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.3. DO NOT EDIT. +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.1. DO NOT EDIT. # All tools are designed to be build inside $GOBIN. # Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. GOBIN=${GOBIN:=$(go env GOBIN)} @@ -44,6 +44,8 @@ PROMTOOL="${GOBIN}/promtool-v1.8.2-0.20200522113006-f4dd45609a05" PROMU="${GOBIN}/promu-v0.5.0" +PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.5.2" + PROTOC_GEN_GOGOFAST="${GOBIN}/protoc-gen-gogofast-v1.3.2" SHFMT="${GOBIN}/shfmt-v3.1.2" diff --git a/.gitignore b/.gitignore index 4e1783a9b8..448220b1cf 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ pkg/ui/static/react tmp/bin examples/tmp/ +/tmp/proto/ # Ignore the MacOS Trash (DS-Store) .DS_Store diff --git a/.vscode/configurationCache.log b/.vscode/configurationCache.log new file mode 100644 index 0000000000..bab9054b3d --- /dev/null +++ b/.vscode/configurationCache.log @@ -0,0 +1 @@ +{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} \ No newline at end of file diff --git a/.vscode/dryrun.log b/.vscode/dryrun.log new file mode 100644 index 0000000000..533eff3814 --- /dev/null +++ b/.vscode/dryrun.log @@ -0,0 +1,8 @@ +make --dry-run --always-make --keep-going --print-directory +make: Entering directory '/home/infracloud/Desktop/thanos' + +# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. +echo "(re)installing /home/infracloud/go/bin/alertmanager-v0.20.0" +cd .bingo/ && /usr/local/go/bin/go build -mod=mod -modfile=alertmanager.mod -o=/home/infracloud/go/bin/alertmanager-v0.20.0 "github.com/prometheus/alertmanager/cmd/alertmanager" +make: Leaving directory '/home/infracloud/Desktop/thanos' + diff --git a/.vscode/targets.log b/.vscode/targets.log new file mode 100644 index 0000000000..ae00125367 --- /dev/null +++ b/.vscode/targets.log @@ -0,0 +1,2512 @@ +make all --print-data-base --no-builtin-variables --no-builtin-rules --question +# GNU Make 4.3 +# Built for x86_64-pc-linux-gnu +# Copyright (C) 1988-2020 Free Software Foundation, Inc. +# License GPLv3+: GNU GPL version 3 or later +# This is free software: you are free to change and redistribute it. +# There is NO WARRANTY, to the extent permitted by law. + +# Make data base, printed on Wed Dec 1 20:44:04 2021 + +# Variables + +# environment +G_ENABLE_DIAGNOSTIC = 0 +# makefile (from 'Makefile', line 35) +GO111MODULE = on +# makefile (from 'Makefile', line 68) +REACT_APP_NODE_MODULES_PATH = $(REACT_APP_PATH)/node_modules +# makefile (from 'Makefile', line 54) +THANOS_MIXIN = mixin +# environment +GDK_BACKEND = x11 +# makefile (from '.bingo/Variables.mk', line 32) +FAILLINT := /home/infracloud/go/bin/faillint-v1.5.0 +# environment +LC_ALL = C +# environment +GNOME_SHELL_SESSION_MODE = ubuntu +# environment +SSH_AGENT_LAUNCHER = gnome-keyring +# makefile (from 'Makefile', line 47) +PROTOC_VERSION = 3.4.0 +# environment +VSCODE_IPC_HOOK_EXTHOST = /run/user/1000/vscode-ipc-38799a3e-336c-461d-8646-0c1237e333b7.sock +# environment +VSCODE_CWD = /home/infracloud/Desktop/thanos +# makefile (from '.bingo/Variables.mk', line 126) +PROMU := /home/infracloud/go/bin/promu-v0.5.0 +# environment +WINDOWPATH = 3 +# makefile (from '.bingo/Variables.mk', line 26) +BINGO := /home/infracloud/go/bin/bingo-v0.4.3 +# makefile (from 'Makefile', line 2) +FILES_TO_FMT = $(shell find . -path ./vendor -prune -o -name '*.go' -print) +# default +MAKE_COMMAND := make +# environment +QT_ACCESSIBILITY = 1 +# makefile (from 'Makefile', line 59) +MDOX_VALIDATE_CONFIG = .mdox.validate.yaml +# environment +GOPATH = /home/infracloud/go +# automatic +@D = $(patsubst %/,%,$(dir $@)) +# environment +THANOSBIN = /home/infracloud/Repos/thanos/.bin +# environment +CLOUDSDK_METRICS_ENVIRONMENT_VERSION = 1.16.1 +# environment +VSCODE_BROWSER_CODE_LOADING = bypassHeatCheck +# makefile (from '.bingo/Variables.mk', line 92) +MDOX := /home/infracloud/go/bin/mdox-v0.2.2-0.20210818122826-f16709a2bc2b +# makefile (from 'Makefile', line 58) +WEBSITE_BASE_URL = https://thanos.io +# environment +VSCODE_HANDLES_UNCAUGHT_ERRORS = true +# default +.VARIABLES := +# environment +PWD = /home/infracloud/Desktop/thanos +# automatic +%D = $(patsubst %/,%,$(dir $%)) +# makefile (from 'Makefile', line 65) +REACT_APP_PATH = pkg/ui/react-app +# environment +XDG_DATA_DIRS = /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop +# automatic +^D = $(patsubst %/,%,$(dir $^)) +# environment +VSCODE_LOG_STACK = false +# automatic +%F = $(notdir $%) +# environment +VSCODE_CODE_CACHE_PATH = /home/infracloud/.config/Code/CachedData/3866c3553be8b268c8a7f8c0482c0c0177aa8bfa +# environment +LANG = C +# environment +XAUTHORITY = /run/user/1000/gdm/Xauthority +# makefile (from '.bingo/Variables.mk', line 38) +GO_BINDATA := /home/infracloud/go/bin/go-bindata-v3.1.1+incompatible +# default +.LOADED := +# default +.INCLUDE_DIRS = /usr/local/include /usr/include /usr/include +# environment +GNOME_TERMINAL_SERVICE = :1.2797 +# makefile +MAKEFLAGS = pqrR +# makefile +CURDIR := /home/infracloud/Desktop/thanos +# makefile (from '.bingo/Variables.mk', line 80) +JSONNET := /home/infracloud/go/bin/jsonnet-v0.17.0 +# environment +VSCODE_PIPE_LOGGING = true +# environment +APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true +# environment +LESSOPEN = | /usr/bin/lesspipe %s +# makefile (from '.bingo/Variables.mk', line 104) +PROMDOC := /home/infracloud/go/bin/promdoc-v0.7.0 +# automatic +*D = $(patsubst %/,%,$(dir $*)) +# makefile (from '.bingo/Variables.mk', line 3) +BINGO_DIR := .bingo/ +# makefile (from 'Makefile', line 52) +SED = $(shell which gsed 2>/dev/null || which sed) +# makefile (from 'Makefile', line 62) +PUBLIC_DIR = $(WEB_DIR)/public +# environment +MFLAGS = -pqrR +# environment +SSH_AUTH_SOCK = /run/user/1000/keyring/ssh +# default +.SHELLFLAGS := -c +# makefile (from '.bingo/Variables.mk', line 44) +GOIMPORTS := /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# environment +XDG_CONFIG_DIRS = /etc/xdg/xdg-ubuntu:/etc/xdg +# automatic ++D = $(patsubst %/,%,$(dir $+)) +# makefile (from '.bingo/Variables.mk', line 68) +JB := /home/infracloud/go/bin/jb-v0.4.0 +# environment +VSCODE_CRASH_REPORTER_START_OPTIONS = {"companyName":"Microsoft","productName":"VSCode","submitURL":"appcenter://code?aid=fba07a4d-84bd-4fc8-a125-9640fc8ce171&uid=4b32687c-c2eb-4509-a663-f02a373e450d&iid=4b32687c-c2eb-4509-a663-f02a373e450d&sid=4b32687c-c2eb-4509-a663-f02a373e450d","uploadToServer":true} +# environment +XDG_SESSION_DESKTOP = ubuntu +# makefile (from '.bingo/Variables.mk', line 1) +MAKEFILE_LIST := Makefile .bingo/Variables.mk +# automatic +@F = $(notdir $@) +# environment +VSCODE_VERBOSE_LOGGING = true +# makefile (from 'Makefile', line 3) +MD_FILES_TO_FORMAT = $(shell find docs -name "*.md") $(shell find examples -name "*.md") $(filter-out mixin/runbook.md, $(shell find mixin -name "*.md")) $(shell ls *.md) +# environment +VSCODE_PID = 25806 +# environment +XDG_SESSION_TYPE = x11 +# automatic +?D = $(patsubst %/,%,$(dir $?)) +# makefile (from 'Makefile', line 63) +ME = $(shell whoami) +# makefile (from '.bingo/Variables.mk', line 98) +MINIO := /home/infracloud/go/bin/minio-v0.0.0-20200527010300-cccf2de129da +# environment +SESSION_MANAGER = local/infracloud-ThinkPad-E15-Gen-2:@/tmp/.ICE-unix/148480,unix/infracloud-ThinkPad-E15-Gen-2:/tmp/.ICE-unix/148480 +# automatic +*F = $(notdir $*) +# environment +CHROME_DESKTOP = code-url-handler.desktop +# environment +DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus +# makefile (from 'Makefile', line 46) +PROTOC = $(GOBIN)/protoc-$(PROTOC_VERSION) +# automatic +&2 "cannot $1: you have unstaged changes."; git diff-files --name-status -r --ignore-submodules -- >&2; echo >&2 "Please commit or stash them."; exit 1; fi + + @if ! git diff-index --cached --quiet HEAD --ignore-submodules --; then echo >&2 "cannot $1: your index contains uncommitted changes."; git diff-index --cached --name-status -r --ignore-submodules HEAD -- >&2; echo >&2 "Please commit or stash them."; exit 1; fi + +endef +# default +MAKE_VERSION := 4.3 + +# 'override' directive +.SHELLSTATUS := 0 +# environment +MANAGERPID = 2070 +# makefile (from 'Makefile', line 28) +TMP_GOPATH = /tmp/thanos-go +# makefile (from '.bingo/Variables.mk', line 120) +PROMTOOL := /home/infracloud/go/bin/promtool-v1.8.2-0.20200522113006-f4dd45609a05 +# environment +_ = /usr/bin/code +# environment +XDG_RUNTIME_DIR = /run/user/1000 +# environment +GPG_AGENT_INFO = /run/user/1000/gnupg/S.gpg-agent:0:1 +# environment +COLORTERM = truecolor +# makefile (from 'Makefile', line 66) +REACT_APP_SOURCE_FILES = $(shell find $(REACT_APP_PATH)/public/ $(REACT_APP_PATH)/src/ $(REACT_APP_PATH)/tsconfig.json) +# environment +JOURNAL_STREAM = 8:25918939 +# environment +GOMODCACHE = /home/infracloud/go/pkg/mod +# makefile (from '.bingo/Variables.mk', line 50) +GOJSONTOYAML := /home/infracloud/go/bin/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742 +# environment +XDG_SESSION_CLASS = user +# environment +VSCODE_AMD_ENTRYPOINT = vs/workbench/services/extensions/node/extensionHostProcess +# environment +HOME = /home/infracloud +# environment +QT_IM_MODULE = ibus +# makefile (from '.bingo/Variables.mk', line 74) +JSONNET_LINT := /home/infracloud/go/bin/jsonnet-lint-v0.17.1-0.20210113194615-cd59751527e0 +# makefile (from 'Makefile', line 41) +BIN_DIR = $(shell pwd)/tmp/bin +# makefile (from '.bingo/Variables.mk', line 132) +PROTOC_GEN_GO := /home/infracloud/go/bin/protoc-gen-go +# environment +ELECTRON_RUN_AS_NODE = 1 +# environment +VSCODE_IPC_HOOK = /run/user/1000/vscode-40903a57-1.59.1-main.sock +# environment +TERM = xterm-256color +# environment +IM_CONFIG_PHASE = 1 +# environment +GOPROXY = https://proxy.golang.org,direct +# default +.RECIPEPREFIX := +# automatic +> Publishing tarballs" + $(PROMU) crossbuild -v tarballs + $(PROMU) checksum -v .tarballs + $(PROMU) release -v .tarballs + +# Not a target: +.bingo//gojsontoyaml.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//protoc-gen-gogofast.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/overview.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/vendor: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/GraphHelpers.test.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +examples/alerts/alerts.yaml: /home/infracloud/go/bin/jsonnet-v0.17.0 /home/infracloud/go/bin/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742 mixin/mixin.libsonnet mixin/config.libsonnet mixin/alerts/absent.libsonnet mixin/alerts/add_runbook_links.libsonnet mixin/alerts/alerts.libsonnet mixin/alerts/bucket_replicate.libsonnet mixin/alerts/compact.libsonnet mixin/alerts/query.libsonnet mixin/alerts/receive.libsonnet mixin/alerts/rule.libsonnet mixin/alerts/sidecar.libsonnet mixin/alerts/store.libsonnet +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 344): + $(JSONNET) ${THANOS_MIXIN}/alerts.jsonnet | $(GOJSONTOYAML) > $@ + +# Not a target: +mixin/jsonnetfile.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//faillint.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//mdox.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//prometheus.2.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/SourceView.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/jsonnetfmt-v0.17.0: .bingo//jsonnetfmt.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 88): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/jsonnetfmt-v0.17.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=jsonnetfmt.mod -o=$(GOBIN)/jsonnetfmt-v0.17.0 "github.com/google/go-jsonnet/cmd/jsonnetfmt" + +# Not a target: +pkg/ui/react-app/src/thanos/config.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/types/ThanosComponentProps.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/receive.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/bucket_replicate.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/README.md: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/__testdata__/testdata.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/EndpointLink.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/minio-v0.0.0-20200527010300-cccf2de129da: .bingo//minio.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 100): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/minio-v0.0.0-20200527010300-cccf2de129da" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=minio.mod -o=$(GOBIN)/minio-v0.0.0-20200527010300-cccf2de129da "github.com/minio/minio" + +# Not a target: +mixin/dashboards/dashboards.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.module.css: +# Implicit rule search has not been done. +# Modification time never checked. + +# File has not been updated. + +crossbuild: | /home/infracloud/go/bin/promu-v0.5.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 140): + @echo ">> crossbuilding all binaries" + $(PROMU) crossbuild -v + +# Not a target: +pkg/ui/react-app/src/pages/graph/GraphControls.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/package.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +web-serve: web-pre-process /home/infracloud/go/bin/hugo-v0.80.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 286): + @echo ">> serving documentation website" + @cd $(WEB_DIR) && $(HUGO) --config hugo.yaml -v server + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/BlockSpan.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +examples/alerts/alerts.md: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/rules/receive.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/store.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/tsdbStatus: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/index.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/compact.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/Graph.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//golangci-lint.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/Filter.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +lint: go-lint react-app-lint shell-lint +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 292): + @echo ">> detecting white noise" + @find . -type f \( -name "*.md" -o -name "*.go" \) | SED_BIN="$(SED)" xargs scripts/cleanup-white-noise.sh + $(call require_clean_work_tree,'detected white noise, run make lint and commit changes') + +# Not a target: +.bingo/Variables.mk: +# Implicit rule search has been done. +# Last modified 2021-11-28 16:11:14.063851742 +# File has been updated. +# Successfully updated. + +# Not a target: +pkg/ui/react-app/src/pages/status: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/errorBoundary/ErrorBoundary.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/SourceView.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/package-lock.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/BlockDetails.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +react-app-start: pkg/ui/react-app/node_modules +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 128): + @echo ">> running React app" + cd $(REACT_APP_PATH) && npm start + +# Not a target: +.bingo//prometheus.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/prometheus-v1.8.2-0.20210331101223-3cafc58827d1: .bingo//prometheus.mod .bingo//prometheus.1.mod .bingo//prometheus.2.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 112): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/prometheus-v2.4.3+incompatible" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.mod -o=$(GOBIN)/prometheus-v2.4.3+incompatible "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.1.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.2.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1 "github.com/prometheus/prometheus/cmd/prometheus" + +# Not a target: +pkg/ui/react-app/src/pages/config: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +react-app-lint-fix: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 118): + @echo ">> running React app linting and fixing errors where possible" + cd $(REACT_APP_PATH) && npm run lint + +# Not a target: +pkg/ui/react-app/src/App.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/Navbar.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/add_runbook_links.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/QueryStatsView.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/tsdbStatus/TSDBStatus.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/mixin.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +docker: build +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 152): + @echo ">> copying Thanos from $(PREFIX) to ./thanos_tmp_for_docker" + @cp $(PREFIX)/thanos ./thanos_tmp_for_docker + @echo ">> building docker image 'thanos'" + @docker build -t "thanos" --build-arg BASE_DOCKER_SHA=$(BASE_DOCKER_SHA) . + @rm ./thanos_tmp_for_docker + +# Not a target: +.bingo//jsonnetfmt.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/flags/Flags.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +react-app-lint: pkg/ui/react-app/node_modules +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 113): + @echo ">> running React app linting" + cd $(REACT_APP_PATH) && npm run lint:ci + +# Not a target: +pkg/ui/react-app/src/hooks/useLocalStorage.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/ExpressionInput.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +proto: check-git /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 /home/infracloud/go/bin/protoc-3.4.0 /home/infracloud/go/bin/protoc-gen-gogofast-v1.3.2 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 207): + @GOIMPORTS_BIN="$(GOIMPORTS)" PROTOC_BIN="$(PROTOC)" PROTOC_GEN_GOGOFAST_BIN="$(PROTOC_GEN_GOGOFAST)" PROTOC_GEN_GO_BIN="$(PROTOC_GEN_GO)" scripts/genproto.sh + +/home/infracloud/go/bin/shfmt-v3.1.2: .bingo//shfmt.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 146): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/shfmt-v3.1.2" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=shfmt.mod -o=$(GOBIN)/shfmt-v3.1.2 "mvdan.cc/sh/v3/cmd/shfmt" + +# Not a target: +pkg/ui/react-app/src/pages/targets/ScrapePoolList.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +docs: build examples /home/infracloud/go/bin/mdox-v0.2.2-0.20210818122826-f16709a2bc2b +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 177): + @echo ">> generating docs" + PATH=${PATH}:$(GOBIN) $(MDOX) fmt -l --links.localize.address-regex="https://thanos.io/.*" --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) $(MD_FILES_TO_FORMAT) + +# Not a target: +pkg/ui/react-app/src/pages/graph/Panel.test.tsx: + +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/SeriesName.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/components/Checkbox.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +web-pre-process: /home/infracloud/go/bin/mdox-v0.2.2-0.20210818122826-f16709a2bc2b +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 273): + @echo ">> running documentation website pre processing" + scripts/website/websitepreprocess.sh + +example-rules-lint: /home/infracloud/go/bin/promtool-v1.8.2-0.20200522113006-f4dd45609a05 examples/alerts/alerts.yaml examples/alerts/rules.yaml +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 372): + $(PROMTOOL) check rules examples/alerts/alerts.yaml examples/alerts/rules.yaml + $(PROMTOOL) test rules examples/alerts/tests.yaml + +/home/infracloud/go/bin/promtool-v1.8.2-0.20200522113006-f4dd45609a05: .bingo//promtool.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 122): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/promtool-v1.8.2-0.20200522113006-f4dd45609a05" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=promtool.mod -o=$(GOBIN)/promtool-v1.8.2-0.20200522113006-f4dd45609a05 "github.com/prometheus/prometheus/cmd/promtool" + +# Not a target: +pkg/ui/react-app/src/pages/rules: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//hugo.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +Makefile: +# Implicit rule search has been done. +# Last modified 2021-11-27 13:48:53.691692507 +# File has been updated. +# Successfully updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/__testdata__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/flags: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/fonts/codicon.ttf: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/store.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/status/__snapshots__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/BlockDetails.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/mdox-v0.2.2-0.20210818122826-f16709a2bc2b: .bingo//mdox.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 94): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/mdox-v0.2.2-0.20210818122826-f16709a2bc2b" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=mdox.mod -o=$(GOBIN)/mdox-v0.2.2-0.20210818122826-f16709a2bc2b "github.com/bwplotka/mdox" + +examples/dashboards: /home/infracloud/go/bin/jsonnet-v0.17.0 mixin/mixin.libsonnet mixin/config.libsonnet mixin/dashboards/bucket_replicate.libsonnet mixin/dashboards/compact.libsonnet mixin/dashboards/dashboards.libsonnet mixin/dashboards/defaults.libsonnet mixin/dashboards/overview.libsonnet mixin/dashboards/query.libsonnet mixin/dashboards/receive.libsonnet mixin/dashboards/rule.libsonnet mixin/dashboards/sidecar.libsonnet mixin/dashboards/store.libsonnet +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 340): + -rm -rf examples/dashboards/*.json + $(JSONNET) -J ${JSONNET_VENDOR_DIR} -m examples/dashboards ${THANOS_MIXIN}/dashboards.jsonnet + +# Not a target: +pkg/ui/react-app/src/pages/graph/GraphControls.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/alerts/AlertContents.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +shell-lint: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 326): + @echo ">> linting all of the shell script files" + @$(SHELLCHECK) --severity=error -o all -s bash $(shell find . -type f -name "*.sh" -not -path "*vendor*" -not -path "tmp/*" -not -path "*node_modules*") + +# Not a target: +pkg/ui/react-app/src/types/index.d.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/rules/RulesContent.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +check-git: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 266): + @test -x $(GIT) || (echo >&2 "No git executable binary found at $(GIT)."; exit 1) + +# Not a target: +pkg/ui/react-app/public/manifest.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/components/Checkbox.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/receive.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/prometheus-v1.8.2-0.20200724121523-657ba532e42f: .bingo//prometheus.mod .bingo//prometheus.1.mod .bingo//prometheus.2.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 112): + + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/prometheus-v2.4.3+incompatible" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.mod -o=$(GOBIN)/prometheus-v2.4.3+incompatible "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.1.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.2.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1 "github.com/prometheus/prometheus/cmd/prometheus" + +/home/infracloud/go/bin/go-bindata-v3.1.1+incompatible: .bingo//go-bindata.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 40): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" + +# Not a target: +.bingo//go-bindata.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/serviceDiscovery: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/Panel.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +react-app-test: | pkg/ui/react-app/node_modules react-app-lint +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 123): + @echo ">> running React app tests" + cd $(REACT_APP_PATH) && export CI=true && npm test --no-watch + +# Not a target: +pkg/ui/react-app/src/themes/_bootstrap_light.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/GraphTabContent.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/defaults.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +shell-format: /home/infracloud/go/bin/shfmt-v3.1.2 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 189): + @echo ">> formatting shell scripts" + @$(SHFMT) -i 2 -ci -w -s $(shell find . -type f -name "*.sh" -not -path "*vendor*" -not -path "tmp/*") + +# Not a target: +pkg/ui/react-app/src/utils/utils.test.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/flags/__snapshots__/Flags.test.tsx.snap: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/themes: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/Legend.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/StoreLabels.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/hooks: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/SeriesName.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/StoreLabels.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/CMExpressionInput.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/compact.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +assets: /home/infracloud/go/bin/go-bindata-v3.1.1+incompatible pkg/ui/static/react +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 105): + @echo ">> deleting asset file" + @rm pkg/ui/bindata.go || true + @echo ">> writing assets" + @$(GO_BINDATA) $(bindata_flags) -pkg ui -o pkg/ui/bindata.go -ignore '(.*\.map|bootstrap\.js|bootstrap-theme\.css|bootstrap\.css)' pkg/ui/templates/... pkg/ui/static/... + @$(MAKE) format + +# Not a target: +mixin/rules/bucket_replicate.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2: .bingo//goimports.mod +# Implicit rule search has not been done. +# Last modified 2021-09-17 23:01:00.479430899 +# File has been updated. +# Successfully updated. +# recipe to execute (from '.bingo/Variables.mk', line 46): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200526224456-8b020aee10d2" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200526224456-8b020aee10d2 "golang.org/x/tools/cmd/goimports" + +# Not a target: +pkg/ui/react-app/src/pages/config/Config.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/Blocks.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/public/: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# 'override' directive +go-format: .SHELLSTATUS := 0 +go-format: /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# Implicit/static pattern stem: '' +# File does not exist. +# File has been updated. +# Needs to be updated (-q is set). +# automatic +# @ := go-format +# automatic +# * := +# automatic +# < := /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# automatic +# + := /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# automatic +# % := +# automatic +# ^ := /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# automatic +# ? := /home/infracloud/go/bin/goimports-v0.0.0-20200526224456-8b020aee10d2 +# automatic +# | := +# variable set hash-table stats: +# Load=9/32=28%, Rehash=0, Collisions=1/22=5% +# recipe to execute (from 'Makefile', line 200): + @echo ">> formatting go code" + @gofmt -s -w $(FILES_TO_FMT) + @$(GOIMPORTS) -w $(FILES_TO_FMT) + +pkg/ui/static/react: pkg/ui/react-app/node_modules pkg/ui/react-app/public/ pkg/ui/react-app/public/index.html pkg/ui/react-app/public/favicon.ico pkg/ui/react-app/public/manifest.json pkg/ui/react-app/src/ pkg/ui/react-app/src/Theme.tsx pkg/ui/react-app/src/pages pkg/ui/react-app/src/pages/graph pkg/ui/react-app/src/pages/graph/PanelList.tsx pkg/ui/react-app/src/pages/graph/ExpressionInput.tsx pkg/ui/react-app/src/pages/graph/Graph.tsx pkg/ui/react-app/src/pages/graph/Panel.test.tsx pkg/ui/react-app/src/pages/graph/CMExpressionInput.test.tsx pkg/ui/react-app/src/pages/graph/CMExpressionInput.tsx pkg/ui/react-app/src/pages/graph/CMTheme.tsx pkg/ui/react-app/src/pages/graph/DataTable.tsx pkg/ui/react-app/src/pages/graph/ExpressionInput.test.tsx pkg/ui/react-app/src/pages/graph/GraphControls.test.tsx pkg/ui/react-app/src/pages/graph/QueryStatsView.test.tsx pkg/ui/react-app/src/pages/graph/SeriesName.test.tsx pkg/ui/react-app/src/pages/graph/Panel.tsx pkg/ui/react-app/src/pages/graph/GraphTabContent.test.tsx pkg/ui/react-app/src/pages/graph/TimeInput.test.tsx pkg/ui/react-app/src/pages/graph/QueryStatsView.tsx pkg/ui/react-app/src/pages/graph/GraphHelpers.ts pkg/ui/react-app/src/pages/graph/SeriesName.tsx pkg/ui/react-app/src/pages/graph/TimeInput.tsx pkg/ui/react-app/src/pages/graph/DataTable.test.tsx pkg/ui/react-app/src/pages/graph/GraphHelpers.test.ts pkg/ui/react-app/src/pages/graph/PanelList.test.tsx pkg/ui/react-app/src/pages/graph/GraphTabContent.tsx pkg/ui/react-app/src/pages/graph/GraphControls.tsx pkg/ui/react-app/src/pages/graph/Legend.tsx pkg/ui/react-app/src/pages/graph/Graph.test.tsx pkg/ui/react-app/src/pages/index.ts pkg/ui/react-app/src/pages/serviceDiscovery pkg/ui/react-app/src/pages/serviceDiscovery/LabelsTable.tsx pkg/ui/react-app/src/pages/serviceDiscovery/Services.tsx pkg/ui/react-app/src/pages/rules pkg/ui/react-app/src/pages/rules/Rules.tsx pkg/ui/react-app/src/pages/rules/RulesContent.tsx pkg/ui/react-app/src/pages/targets pkg/ui/react-app/src/pages/targets/EndpointLink.tsx pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.tsx pkg/ui/react-app/src/pages/targets/Targets.tsx pkg/ui/react-app/src/pages/targets/Filter.test.tsx pkg/ui/react-app/src/pages/targets/TargetLabels.tsx pkg/ui/react-app/src/pages/targets/target.test.ts pkg/ui/react-app/src/pages/targets/Targets.test.tsx pkg/ui/react-app/src/pages/targets/Filter.tsx pkg/ui/react-app/src/pages/targets/__testdata__ pkg/ui/react-app/src/pages/targets/__testdata__/testdata.ts pkg/ui/react-app/src/pages/targets/target.ts pkg/ui/react-app/src/pages/targets/ScrapePoolList.test.tsx pkg/ui/react-app/src/pages/targets/TargetLabels.test.tsx pkg/ui/react-app/src/pages/targets/TargetLabels.module.css pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.module.css pkg/ui/react-app/src/pages/targets/__snapshots__ pkg/ui/react-app/src/pages/targets/__snapshots__/TargetLabels.test.tsx.snap pkg/ui/react-app/src/pages/targets/ScrapePoolList.tsx pkg/ui/react-app/src/pages/targets/EndpointLink.test.tsx pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.test.tsx pkg/ui/react-app/src/pages/flags pkg/ui/react-app/src/pages/flags/Flags.tsx pkg/ui/react-app/src/pages/flags/Flags.test.tsx pkg/ui/react-app/src/pages/flags/__snapshots__ pkg/ui/react-app/src/pages/flags/__snapshots__/Flags.test.tsx.snap pkg/ui/react-app/src/pages/tsdbStatus pkg/ui/react-app/src/pages/tsdbStatus/TSDBStatus.test.tsx pkg/ui/react-app/src/pages/tsdbStatus/TSDBStatus.tsx pkg/ui/react-app/src/pages/alerts pkg/ui/react-app/src/pages/alerts/Alerts.tsx pkg/ui/react-app/src/pages/alerts/CollapsibleAlertPanel.tsx pkg/ui/react-app/src/pages/alerts/AlertContents.tsx pkg/ui/react-app/src/pages/config pkg/ui/react-app/src/pages/config/Config.tsx pkg/ui/react-app/src/pages/status pkg/ui/react-app/src/pages/status/Status.test.tsx pkg/ui/react-app/src/pages/status/Status.tsx pkg/ui/react-app/src/pages/status/__snapshots__ pkg/ui/react-app/src/pages/status/__snapshots__/Status.test.tsx.snap pkg/ui/react-app/src/index.tsx pkg/ui/react-app/src/setupTests.ts pkg/ui/react-app/src/Navbar.test.tsx pkg/ui/react-app/src/fonts pkg/ui/react-app/src/fonts/codicon.ttf pkg/ui/react-app/src/components pkg/ui/react-app/src/components/Checkbox.test.tsx pkg/ui/react-app/src/components/ToggleMoreLess.test.tsx pkg/ui/react-app/src/components/Checkbox.tsx pkg/ui/react-app/src/components/ToggleMoreLess.tsx pkg/ui/react-app/src/components/withStatusIndicator.tsx pkg/ui/react-app/src/react-app-env.d.ts pkg/ui/react-app/src/Navbar.tsx pkg/ui/react-app/src/types pkg/ui/react-app/src/types/types.ts pkg/ui/react-app/src/types/PathPrefixProps.ts pkg/ui/react-app/src/types/index.d.ts pkg/ui/react-app/src/vendor pkg/ui/react-app/src/vendor/flot pkg/ui/react-app/src/vendor/flot/jquery.flot.stack.js pkg/ui/react-app/src/vendor/flot/jquery.flot.crosshair.js pkg/ui/react-app/src/vendor/flot/jquery.flot.js pkg/ui/react-app/src/vendor/flot/jquery.flot.time.js pkg/ui/react-app/src/contexts pkg/ui/react-app/src/contexts/ThemeContext.tsx pkg/ui/react-app/src/themes pkg/ui/react-app/src/themes/dark.scss pkg/ui/react-app/src/themes/light.scss pkg/ui/react-app/src/themes/_bootstrap_dark.scss pkg/ui/react-app/src/themes/_bootstrap_light.scss pkg/ui/react-app/src/themes/app.scss pkg/ui/react-app/src/themes/_shared.scss pkg/ui/react-app/src/App.css pkg/ui/react-app/src/globals.ts pkg/ui/react-app/src/utils pkg/ui/react-app/src/utils/index.ts pkg/ui/react-app/src/utils/utils.test.ts pkg/ui/react-app/src/thanos pkg/ui/react-app/src/thanos/pages pkg/ui/react-app/src/thanos/pages/blocks pkg/ui/react-app/src/thanos/pages/blocks/TimeRange.tsx pkg/ui/react-app/src/thanos/pages/blocks/BlockSearchInput.tsx pkg/ui/react-app/src/thanos/pages/blocks/BlockSpan.tsx pkg/ui/react-app/src/thanos/pages/blocks/blocks.module.css pkg/ui/react-app/src/thanos/pages/blocks/SourceView.tsx pkg/ui/react-app/src/thanos/pages/blocks/Blocks.test.tsx pkg/ui/react-app/src/thanos/pages/blocks/SourceView.test.tsx pkg/ui/react-app/src/thanos/pages/blocks/block.ts pkg/ui/react-app/src/thanos/pages/blocks/__testdata__ pkg/ui/react-app/src/thanos/pages/blocks/__testdata__/testdata.ts pkg/ui/react-app/src/thanos/pages/blocks/Blocks.tsx pkg/ui/react-app/src/thanos/pages/blocks/helpers.test.tsx pkg/ui/react-app/src/thanos/pages/blocks/BlockDetails.tsx pkg/ui/react-app/src/thanos/pages/blocks/helpers.ts pkg/ui/react-app/src/thanos/pages/blocks/BlockDetails.test.tsx pkg/ui/react-app/src/thanos/pages/index.tsx pkg/ui/react-app/src/thanos/pages/errorBoundary pkg/ui/react-app/src/thanos/pages/errorBoundary/ErrorBoundary.tsx pkg/ui/react-app/src/thanos/pages/errorBoundary/ErrorBoundary.module.css pkg/ui/react-app/src/thanos/pages/notFound pkg/ui/react-app/src/thanos/pages/notFound/NotFound.module.css pkg/ui/react-app/src/thanos/pages/notFound/NotFound.tsx pkg/ui/react-app/src/thanos/pages/stores pkg/ui/react-app/src/thanos/pages/stores/StorePoolPanel.test.tsx pkg/ui/react-app/src/thanos/pages/stores/StoreLabels.test.tsx pkg/ui/react-app/src/thanos/pages/stores/StoreLabels.tsx pkg/ui/react-app/src/thanos/pages/stores/Stores.tsx pkg/ui/react-app/src/thanos/pages/stores/__testdata__ pkg/ui/react-app/src/thanos/pages/stores/__testdata__/testdata.ts pkg/ui/react-app/src/thanos/pages/stores/Stores.test.tsx pkg/ui/react-app/src/thanos/pages/stores/store.ts pkg/ui/react-app/src/thanos/pages/stores/__snapshots__ pkg/ui/react-app/src/thanos/pages/stores/__snapshots__/StoreLabels.test.tsx.snap pkg/ui/react-app/src/thanos/pages/stores/StorePoolPanel.tsx pkg/ui/react-app/src/thanos/config.ts pkg/ui/react-app/src/thanos/Navbar.tsx pkg/ui/react-app/src/thanos/types pkg/ui/react-app/src/thanos/types/ThanosComponentProps.ts pkg/ui/react-app/src/hooks pkg/ui/react-app/src/hooks/useLocalStorage.tsx pkg/ui/react-app/src/hooks/useFetch.ts pkg/ui/react-app/src/hooks/useLocalStorage.test.tsx pkg/ui/react-app/src/App.test.tsx pkg/ui/react-app/src/App.tsx pkg/ui/react-app/tsconfig.json +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 99): + @echo ">> building React app" + @scripts/build-react-app.sh + +# Not a target: +pkg/ui/react-app/src/pages/targets/ScrapePoolList.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/Navbar.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/utils/index.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/config.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/alerts/CollapsibleAlertPanel.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/vendor/flot/jquery.flot.crosshair.js: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/CMTheme.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/jsonnet-lint-v0.17.1-0.20210113194615-cd59751527e0: .bingo//jsonnet-lint.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 76): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/jsonnet-lint-v0.17.1-0.20210113194615-cd59751527e0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=jsonnet-lint.mod -o=$(GOBIN)/jsonnet-lint-v0.17.1-0.20210113194615-cd59751527e0 "github.com/google/go-jsonnet/cmd/jsonnet-lint" + +# Not a target: +pkg/ui/react-app/src/themes/app.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/react-app-env.d.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/tsconfig.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/alerts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +jsonnet-format: /home/infracloud/go/bin/jsonnetfmt-v0.17.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 362): + find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ + xargs -n 1 -- $(JSONNETFMT_CMD) -i + +# Not a target: +.bingo//jsonnet.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/promu-v0.5.0: .bingo//promu.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 128): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/promu-v0.5.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=promu.mod -o=$(GOBIN)/promu-v0.5.0 "github.com/prometheus/promu" + +# makefile (from 'Makefile', line 230) +test-local: THANOS_TEST_OBJSTORE_SKIP = GCS,S3,AZURE,SWIFT,COS,ALIYUNOSS,BOS +test-local: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# variable set hash-table stats: +# Load=1/32=3%, Rehash=0, Collisions=0/2=0% +# recipe to execute (from 'Makefile', line 232): + $(MAKE) test + +go-lint: check-git deps /home/infracloud/go/bin/golangci-lint-v1.39.1-0.20210330125642-6844f6abf817 /home/infracloud/go/bin/faillint-v1.5.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 303): + $(call require_clean_work_tree,'detected not clean work tree before running lint, previous job changed something?') + @echo ">> verifying modules being imported" + @# TODO(bwplotka): Add, Printf, DefaultRegisterer, NewGaugeFunc and MustRegister once exception are accepted. Add fmt.{Errorf}=github.com/pkg/errors.{Errorf} once https://github.com/fatih/faillint/issues/10 is addressed. + @$(FAILLINT) -paths "errors=github.com/pkg/errors,\ +github.com/prometheus/tsdb=github.com/prometheus/prometheus/tsdb,\ +github.com/prometheus/prometheus/pkg/testutils=github.com/thanos-io/thanos/pkg/testutil,\ +github.com/prometheus/client_golang/prometheus.{DefaultGatherer,DefBuckets,NewUntypedFunc,UntypedFunc},\ +github.com/prometheus/client_golang/prometheus.{NewCounter,NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,\ +NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec}=github.com/prometheus/client_golang/prometheus/promauto.{NewCounter,\ +NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec},\ +sync/atomic=go.uber.org/atomic" ./... + @$(FAILLINT) -paths "fmt.{Print,Println,Sprint}" -ignore-tests ./... + @echo ">> linting all of the Go files GOGC=${GOGC}" + @$(GOLANGCI_LINT) run + @echo ">> ensuring Copyright headers" + @go run ./scripts/copyright + @echo ">> ensuring generated proto files are up to date" + @$(MAKE) proto + $(call require_clean_work_tree,'detected files without copyright, run make lint and commit changes') + +# Not a target: +pkg/ui/react-app/src/hooks/useLocalStorage.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/__snapshots__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +pkg/ui/react-app/node_modules: pkg/ui/react-app/package.json pkg/ui/react-app/package-lock.json +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 96): + cd $(REACT_APP_PATH) && npm ci + +# Not a target: +mixin/jsonnetfile.lock.json: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//alertmanager.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//promdoc.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/TargetLabels.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/alerts/Alerts.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/target.test.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/Targets.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/QueryStatsView.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/blocks.module.css: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/rules/query.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# makefile (from 'Makefile', line 248) +test-e2e-local: THANOS_TEST_OBJSTORE_SKIP = GCS,S3,AZURE,SWIFT,COS,ALIYUNOSS,BOS +test-e2e-local: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# variable set hash-table stats: +# Load=1/32=3%, Rehash=0, Collisions=0/2=0% +# recipe to execute (from 'Makefile', line 250): + $(MAKE) test-e2e + +/home/infracloud/go/bin/protoc-gen-gogofast-v1.3.2: .bingo//protoc-gen-gogofast.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 140): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/protoc-gen-gogofast-v1.3.2" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-gogofast.mod -o=$(GOBIN)/protoc-gen-gogofast-v1.3.2 "github.com/gogo/protobuf/protoc-gen-gogofast" + +# Not a target: +pkg/ui/react-app/src/index.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/status/Status.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/errorBoundary/ErrorBoundary.module.css: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/bucket_replicate.libsonnet: + +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.DEFAULT: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/__testdata__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +check-examples: examples example-rules-lint +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 377): + $(call require_clean_work_tree,'all generated files should be committed, run make check-examples and commit changes.') + +# Not a target: +pkg/ui/react-app/src/pages/graph/PanelList.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//protoc-gen-go.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +all: format build +# Phony target (prerequisite of .PHONY). +# Command line target. +# Implicit rule search has not been done. +# File does not exist. +# File has been updated. +# Needs to be updated (-q is set). +# variable set hash-table stats: +# Load=0/32=0%, Rehash=0, Collisions=0/12=0% + +# Not a target: +pkg/ui/react-app/src/pages/index.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/Navbar.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +mixin/runbook.md: /home/infracloud/go/bin/promdoc-v0.7.0 examples/alerts/alerts.yaml +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 351): + $(PROMDOC) generate examples/alerts/alerts.yaml -i mixin -o $@ + +# Not a target: +pkg/ui/react-app/src/pages/targets/TargetLabels.module.css: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +help: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 90): + @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n\nTargets:\n"} /^[a-z0-9A-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) + +# Not a target: +pkg/ui/react-app/src/pages/graph/CMExpressionInput.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/query.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/TargetLabels.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/StorePoolPanel.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +web: web-pre-process /home/infracloud/go/bin/hugo-v0.80.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 279): + @echo ">> building documentation website" + @rm -rf "$(WEB_DIR)/public" + @cd $(WEB_DIR) && HUGO_ENV=production $(HUGO) --config hugo.yaml --minify -v -b $(WEBSITE_BASE_URL) + +# Not a target: +.bingo//shfmt.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/Desktop/thanos/tmp/bin: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 388): + mkdir -p $(BIN_DIR) + +# Not a target: +pkg/ui/react-app/src/pages/graph/DataTable.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/Filter.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/components/ToggleMoreLess.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +build: check-git deps /home/infracloud/go/bin/promu-v0.5.0 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 134): + @echo ">> building Thanos binary in $(PREFIX)" + @$(PROMU) build --prefix $(PREFIX) + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/BlockSearchInput.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/serviceDiscovery/LabelsTable.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/rules/Rules.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/TimeInput.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//minio.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//promtool.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +examples: jsonnet-vendor jsonnet-format mixin/README.md examples/alerts/alerts.md examples/alerts/alerts.yaml examples/alerts/rules.yaml examples/dashboards examples/tmp mixin/runbook.md +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. + +/home/infracloud/go/bin/promdoc-v0.7.0: .bingo//promdoc.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 106): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/promdoc-v0.7.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=promdoc.mod -o=$(GOBIN)/promdoc-v0.7.0 "github.com/plexsystems/promdoc" + +# Not a target: +pkg/ui/react-app/src/themes/dark.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//jb.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/__testdata__/testdata.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/target.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/types: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/jb-v0.4.0: .bingo//jb.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 70): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/jb-v0.4.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=jb.mod -o=$(GOBIN)/jb-v0.4.0 "github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb" + +# Not a target: +pkg/ui/react-app/src/App.css: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/__snapshots__/StoreLabels.test.tsx.snap: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +docker-multi-stage: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 164): + @echo ">> building docker image 'thanos' with Dockerfile.multi-stage" + @docker build -f Dockerfile.multi-stage -t "thanos" --build-arg BASE_DOCKER_SHA=$(BASE_DOCKER_SHA) . + +# Not a target: +pkg/ui/react-app/src/pages/targets/__snapshots__/TargetLabels.test.tsx.snap: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + + +# Not a target: +pkg/ui/react-app/src/types: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/notFound/NotFound.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/alertmanager-v0.20.0: .bingo//alertmanager.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 22): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/alertmanager-v0.20.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=alertmanager.mod -o=$(GOBIN)/alertmanager-v0.20.0 "github.com/prometheus/alertmanager/cmd/alertmanager" + +# makefile (from 'Makefile', line 220) +test: THANOS_TEST_MINIO_PATH = $(MINIO) +# makefile (from 'Makefile', line 221) +test: THANOS_TEST_PROMETHEUS_PATHS = $(PROMETHEUS_ARRAY) +# makefile (from 'Makefile', line 222) +test: THANOS_TEST_ALERTMANAGER_PATH = $(ALERTMANAGER) +# makefile (from 'Makefile', line 219) +test: GOCACHE = $(TMP_GOPATH)/gocache +test: check-git install-deps +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# variable set hash-table stats: +# Load=4/32=12%, Rehash=0, Collisions=0/5=0% +# recipe to execute (from 'Makefile', line 224): + @echo ">> install thanos GOOPTS=${GOOPTS}" + @echo ">> running unit tests (without /test/e2e). Do export THANOS_TEST_OBJSTORE_SKIP=GCS,S3,AZURE,SWIFT,COS,ALIYUNOSS,BOS if you want to skip e2e tests against all real store buckets. Current value: ${THANOS_TEST_OBJSTORE_SKIP}" + @go test $(shell go list ./... | grep -v /vendor/ | grep -v /test/e2e); + +# Not a target: +pkg/ui/react-app/src/thanos/pages/notFound/NotFound.module.css: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/contexts/ThemeContext.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/protoc-gen-go: .bingo//protoc-gen-go.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 134): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/protoc-gen-go + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.5.2 "github.com/golang/protobuf/protoc-gen-go" + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/Blocks.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/ScrapePoolPanel.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/__testdata__/testdata.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/status/__snapshots__/Status.test.tsx.snap: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +test-e2e: docker +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 237): + @echo ">> cleaning docker environment." + @docker system prune -f --volumes + @echo ">> cleaning e2e test garbage." + @rm -rf ./test/e2e/e2e_integration_test* + @echo ">> running /test/e2e tests." + # NOTE(bwplotka): + # * If you see errors on CI (timeouts), but not locally, try to add -parallel 1 to limit to single CPU to reproduce small 1CPU machine. + @go test $(GOTEST_OPTS) ./test/e2e/... + +# Not a target: +pkg/ui/react-app/src/themes/_shared.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +install-deps: /home/infracloud/go/bin/alertmanager-v0.20.0 /home/infracloud/go/bin/minio-v0.0.0-20200527010300-cccf2de129da /home/infracloud/go/bin/prometheus-v2.4.3+incompatible /home/infracloud/go/bin/prometheus-v1.8.2-0.20200724121523-657ba532e42f /home/infracloud/go/bin/prometheus-v1.8.2-0.20210331101223-3cafc58827d1 +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 261): + @echo ">>GOBIN=$(GOBIN)" + +/home/infracloud/go/bin/golangci-lint-v1.39.1-0.20210330125642-6844f6abf817: .bingo//golangci-lint.mod + +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 58): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/golangci-lint-v1.39.1-0.20210330125642-6844f6abf817" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.39.1-0.20210330125642-6844f6abf817 "github.com/golangci/golangci-lint/cmd/golangci-lint" + +# Not a target: +mixin/dashboards/sidecar.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/rules/rules.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/fonts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/App.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +check-docs: build examples /home/infracloud/go/bin/mdox-v0.2.2-0.20210818122826-f16709a2bc2b +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 183): + @echo ">> checking formatting and local/remote links" + PATH=${PATH}:$(GOBIN) $(MDOX) fmt --check -l --links.localize.address-regex="https://thanos.io/.*" --links.validate.config-file=$(MDOX_VALIDATE_CONFIG) $(MD_FILES_TO_FORMAT) + $(call require_clean_work_tree,'run make docs and commit changes') + +# Not a target: +mixin/dashboards/query.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/themes/light.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +examples/alerts/rules.yaml: /home/infracloud/go/bin/jsonnet-v0.17.0 /home/infracloud/go/bin/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742 mixin/mixin.libsonnet mixin/config.libsonnet mixin/rules/bucket_replicate.libsonnet mixin/rules/query.libsonnet mixin/rules/receive.libsonnet mixin/rules/rules.libsonnet mixin/rules/store.libsonnet +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 347): + $(JSONNET) ${THANOS_MIXIN}/rules.jsonnet | $(GOJSONTOYAML) > $@ + +# Not a target: +pkg/ui/react-app/public/index.html: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/GraphHelpers.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/hugo-v0.80.0: .bingo//hugo.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 64): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/hugo-v0.80.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.80.0 "github.com/gohugoio/hugo" + +# Not a target: +mixin/alerts/rule.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + + +# Not a target: +pkg/ui/react-app/src/pages/targets/EndpointLink.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +docker-push: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 170): + @echo ">> pushing image" + @docker tag "thanos" "$(DOCKER_IMAGE_REPO):$(DOCKER_IMAGE_TAG)" + @docker push "$(DOCKER_IMAGE_REPO):$(DOCKER_IMAGE_TAG)" + +# Not a target: +mixin/alerts/sidecar.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +examples-clean: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 381): + rm -f examples/alerts/alerts.yaml + rm -f examples/alerts/rules.yaml + rm -f examples/dashboards/*.json + rm -f examples/tmp/*.yaml + +# Not a target: +pkg/ui/react-app/src/pages/graph/PanelList.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/StorePoolPanel.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/absent.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/targets/Targets.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/prometheus-v2.4.3+incompatible: .bingo//prometheus.mod .bingo//prometheus.1.mod .bingo//prometheus.2.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 112): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/prometheus-v2.4.3+incompatible" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.mod -o=$(GOBIN)/prometheus-v2.4.3+incompatible "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.1.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20200724121523-657ba532e42f "github.com/prometheus/prometheus/cmd/prometheus" + @echo "(re)installing $(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=prometheus.2.mod -o=$(GOBIN)/prometheus-v1.8.2-0.20210331101223-3cafc58827d1 "github.com/prometheus/prometheus/cmd/prometheus" + +examples/tmp: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 334): + -rm -rf examples/tmp/ + -mkdir -p examples/tmp/ + $(JSONNET) -J ${JSONNET_VENDOR_DIR} -m examples/tmp/ ${THANOS_MIXIN}/separated_alerts.jsonnet | xargs -I{} sh -c 'cat {} | $(GOJSONTOYAML) > {}.yaml; rm -f {}' -- {} + +# Not a target: +.bingo//goimports.mod: +# Implicit rule search has been done. +# Last modified 2021-09-17 22:57:53.085897254 +# File has been updated. +# Successfully updated. + +# Not a target: +pkg/ui/react-app/src/globals.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/block.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/Stores.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/setupTests.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +format: go-format shell-format +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has been updated. +# Needs to be updated (-q is set). +# variable set hash-table stats: +# Load=0/32=0%, Rehash=0, Collisions=0/12=0% +# recipe to execute (from 'Makefile', line 195): + @SED_BIN="$(SED)" scripts/cleanup-white-noise.sh $(FILES_TO_FMT) + +# Not a target: +pkg/ui/react-app/src/vendor/flot/jquery.flot.time.js: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +quickstart: build install-deps +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 256): + scripts/quickstart.sh + +# Not a target: +pkg/ui/react-app/src/components/ToggleMoreLess.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/rules/store.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/faillint-v1.5.0: .bingo//faillint.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 34): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/faillint-v1.5.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.5.0 "github.com/fatih/faillint" + +# Not a target: +mixin/vendor: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +deps: +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 145): + @go mod tidy + @go mod verify + +jsonnet-lint: /home/infracloud/go/bin/jsonnet-lint-v0.17.1-0.20210113194615-cd59751527e0 mixin/vendor +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 367): + find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ + xargs -n 1 -- $(JSONNET_LINT) -J ${JSONNET_VENDOR_DIR} + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/TimeRange.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/notFound: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/jsonnet-v0.17.0: .bingo//jsonnet.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 82): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/jsonnet-v0.17.0" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=jsonnet.mod -o=$(GOBIN)/jsonnet-v0.17.0 "github.com/google/go-jsonnet/cmd/jsonnet" + +/home/infracloud/go/bin/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742: .bingo//gojsontoyaml.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 52): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=gojsontoyaml.mod -o=$(GOBIN)/gojsontoyaml-v0.0.0-20191212081931-bf2969bbd742 "github.com/brancz/gojsontoyaml" + +# Not a target: +pkg/ui/react-app/src/pages/graph/TimeInput.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/serviceDiscovery/Services.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/protoc-3.4.0: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 396): + @mkdir -p $(TMP_GOPATH) + @echo ">> fetching protoc@${PROTOC_VERSION}" + @PROTOC_VERSION="$(PROTOC_VERSION)" TMP_GOPATH="$(TMP_GOPATH)" scripts/installprotoc.sh + @echo ">> installing protoc@${PROTOC_VERSION}" + @mv -- "$(TMP_GOPATH)/bin/protoc" "$(GOBIN)/protoc-$(PROTOC_VERSION)" + @echo ">> produced $(GOBIN)/protoc-$(PROTOC_VERSION)" + +# Not a target: +.bingo//jsonnet-lint.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/__testdata__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/types/types.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/Desktop/thanos/tmp/bin/shellcheck: /home/infracloud/Desktop/thanos/tmp/bin +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from 'Makefile', line 392): + @echo "Downloading Shellcheck" + curl -sNL "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.$(OS).$(ARCH).tar.xz" | tar --strip-components=1 -xJf - -C $(BIN_DIR) + +# Not a target: +pkg/ui/react-app/src/pages: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/rule.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. + +# File has not been updated. + +# Not a target: +.bingo//prometheus.1.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/DataTable.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/types/PathPrefixProps.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/tsdbStatus/TSDBStatus.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/components/withStatusIndicator.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.SUFFIXES: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/errorBoundary: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//promu.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +.PHONY: all assets react-app-lint react-app-lint-fix react-app-test react-app-start build crossbuild deps docker docker-multi-stage docker-push docs check-docs shell-format format go-format proto tarballs-release test test-local test-e2e test-e2e-local quickstart install-deps check-git web-pre-process web web-serve lint go-lint shell-lint examples examples/tmp examples/dashboards mixin/runbook.md jsonnet-vendor jsonnet-format jsonnet-lint example-rules-lint check-examples examples-clean +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +jsonnet-vendor: /home/infracloud/go/bin/jb-v0.4.0 mixin/jsonnetfile.json mixin/jsonnetfile.lock.json +# Phony target (prerequisite of .PHONY). +# Implicit rule search has not been done. +# File does not exist. +# File has not been updated. +# recipe to execute (from 'Makefile', line 355): + rm -rf ${JSONNET_VENDOR_DIR} + cd ${THANOS_MIXIN} && $(JB) install + +# Not a target: +pkg/ui/react-app/src/pages/flags/__snapshots__: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/contexts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/flags/Flags.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/vendor/flot/jquery.flot.js: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/blocks/helpers.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/utils: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/graph/ExpressionInput.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/public/favicon.ico: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/hooks/useFetch.ts: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/Theme.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/alerts/alerts.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/thanos/pages/stores/Stores.test.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +.bingo//bingo.mod: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +mixin/dashboards/store.libsonnet: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +/home/infracloud/go/bin/bingo-v0.4.3: .bingo//bingo.mod +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. +# recipe to execute (from '.bingo/Variables.mk', line 28): + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/bingo-v0.4.3" + @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.4.3 "github.com/bwplotka/bingo" + +# Not a target: +pkg/ui/react-app/src/themes/_bootstrap_dark.scss: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/vendor/flot/jquery.flot.stack.js: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/vendor/flot: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# Not a target: +pkg/ui/react-app/src/pages/status/Status.tsx: +# Implicit rule search has not been done. +# Modification time never checked. +# File has not been updated. + +# files hash-table stats: +# Load=301/1024=29%, Rehash=0, Collisions=156/771=20% +# VPATH Search Paths + +# No 'vpath' search paths. + +# No general ('VPATH' variable) search path. + +# strcache buffers: 2 (1) / strings = 361 / storage = 12207 B / avg = 33 B +# current buf: size = 8162 B / used = 4067 B / count = 131 / avg = 31 B +# other used: total = 8140 B / count = 230 / avg = 35 B +# other free: total = 22 B / max = 22 B / min = 22 B / avg = 22 B + +# strcache performance: lookups = 716 / hit rate = 49% +# hash-table stats: +# Load=361/8192=4%, Rehash=0, Collisions=13/716=2% +# Finished Make data base on Wed Dec 1 20:44:05 2021 + + diff --git a/Makefile b/Makefile index c4dcd9a7f1..89fc2a0345 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ DOCKER_IMAGE_REPO ?= quay.io/thanos/thanos DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))-$(shell date +%Y-%m-%d)-$(shell git rev-parse --short HEAD) DOCKER_CI_TAG ?= test + BASE_DOCKER_SHA='' arch = $(shell uname -m) # Run `DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect quay.io/prometheus/busybox:latest` to get SHA or @@ -26,6 +27,7 @@ endif # The `go env GOPATH` will work for all cases for Go 1.8+. GOPATH ?= $(shell go env GOPATH) TMP_GOPATH ?= /tmp/thanos-go +TMP_PROTOPATH ?= /tmp/proto GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin export GOBIN @@ -203,8 +205,8 @@ go-format: $(GOIMPORTS) .PHONY: proto proto: ## Generates Go files from Thanos proto files. -proto: check-git $(GOIMPORTS) $(PROTOC) $(PROTOC_GEN_GOGOFAST) - @GOIMPORTS_BIN="$(GOIMPORTS)" PROTOC_BIN="$(PROTOC)" PROTOC_GEN_GOGOFAST_BIN="$(PROTOC_GEN_GOGOFAST)" scripts/genproto.sh +proto: check-git $(GOIMPORTS) $(PROTOC) $(PROTOC_GEN_GOGOFAST) $(TMP_PROTOPATH) + @GOIMPORTS_BIN="$(GOIMPORTS)" PROTOC_BIN="$(PROTOC)" PROTOC_GEN_GOGOFAST_BIN="$(PROTOC_GEN_GOGOFAST)" PROTOC_GEN_GO_BIN="$(PROTOC_GEN_GO)" INCLUDE_PATH="$(TMP_PROTOPATH)/include" scripts/genproto.sh .PHONY: tarballs-release tarballs-release: ## Build tarballs. @@ -392,11 +394,11 @@ $(SHELLCHECK): $(BIN_DIR) @echo "Downloading Shellcheck" curl -sNL "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.$(OS).$(ARCH).tar.xz" | tar --strip-components=1 -xJf - -C $(BIN_DIR) -$(PROTOC): +$(PROTOC) $(TMP_PROTOPATH): @mkdir -p $(TMP_GOPATH) + @mkdir -p $(TMP_PROTOPATH) @echo ">> fetching protoc@${PROTOC_VERSION}" - @PROTOC_VERSION="$(PROTOC_VERSION)" TMP_GOPATH="$(TMP_GOPATH)" scripts/installprotoc.sh + @PROTOC_VERSION="$(PROTOC_VERSION)" TMP_GOPATH="$(TMP_GOPATH)" TMP_PROTOPATH="$(TMP_PROTOPATH)" scripts/installprotoc.sh @echo ">> installing protoc@${PROTOC_VERSION}" @mv -- "$(TMP_GOPATH)/bin/protoc" "$(GOBIN)/protoc-$(PROTOC_VERSION)" @echo ">> produced $(GOBIN)/protoc-$(PROTOC_VERSION)" - diff --git a/go.mod b/go.mod index d08c8a50b5..8c943d6325 100644 --- a/go.mod +++ b/go.mod @@ -32,6 +32,7 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/gogo/status v1.1.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da + github.com/golang/protobuf v1.5.2 github.com/golang/snappy v0.0.4 github.com/googleapis/gax-go v2.0.2+incompatible github.com/grafana/dskit v0.0.0-20210819132858-471020752967 @@ -78,6 +79,7 @@ require ( google.golang.org/api v0.50.0 google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a google.golang.org/grpc v1.39.0 + google.golang.org/protobuf v1.27.1 gopkg.in/alecthomas/kingpin.v2 v2.2.6 gopkg.in/fsnotify.v1 v1.4.7 gopkg.in/yaml.v2 v2.4.0 diff --git a/pkg/exemplars/exemplarspb/rpc.pb.go b/pkg/exemplars/exemplarspb/rpc.pb.go index feb98a5cdb..bd124335c4 100644 --- a/pkg/exemplars/exemplarspb/rpc.pb.go +++ b/pkg/exemplars/exemplarspb/rpc.pb.go @@ -1,165 +1,145 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: exemplars/exemplarspb/rpc.proto package exemplarspb import ( - context "context" - encoding_binary "encoding/binary" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" storepb "github.com/thanos-io/thanos/pkg/store/storepb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ExemplarsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,4,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ExemplarsRequest) Reset() { *m = ExemplarsRequest{} } -func (m *ExemplarsRequest) String() string { return proto.CompactTextString(m) } -func (*ExemplarsRequest) ProtoMessage() {} -func (*ExemplarsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd9ad2a40bac3cc9, []int{0} +func (x *ExemplarsRequest) Reset() { + *x = ExemplarsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ExemplarsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ExemplarsRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExemplarsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExemplarsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ExemplarsRequest) ProtoMessage() {} + +func (x *ExemplarsRequest) ProtoReflect() protoreflect.Message { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ExemplarsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExemplarsRequest.Merge(m, src) -} -func (m *ExemplarsRequest) XXX_Size() int { - return m.Size() -} -func (m *ExemplarsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExemplarsRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ExemplarsRequest proto.InternalMessageInfo +// Deprecated: Use ExemplarsRequest.ProtoReflect.Descriptor instead. +func (*ExemplarsRequest) Descriptor() ([]byte, []int) { + return file_exemplars_exemplarspb_rpc_proto_rawDescGZIP(), []int{0} +} -func (m *ExemplarsRequest) GetQuery() string { - if m != nil { - return m.Query +func (x *ExemplarsRequest) GetQuery() string { + if x != nil { + return x.Query } return "" } -func (m *ExemplarsRequest) GetStart() int64 { - if m != nil { - return m.Start +func (x *ExemplarsRequest) GetStart() int64 { + if x != nil { + return x.Start } return 0 } -func (m *ExemplarsRequest) GetEnd() int64 { - if m != nil { - return m.End +func (x *ExemplarsRequest) GetEnd() int64 { + if x != nil { + return x.End } return 0 } -func (m *ExemplarsRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { - if m != nil { - return m.PartialResponseStrategy +func (x *ExemplarsRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy } return storepb.PartialResponseStrategy_WARN } type ExemplarsResponse struct { - // Types that are valid to be assigned to Result: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: // *ExemplarsResponse_Data // *ExemplarsResponse_Warning - Result isExemplarsResponse_Result `protobuf_oneof:"result"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Result isExemplarsResponse_Result `protobuf_oneof:"result"` } -func (m *ExemplarsResponse) Reset() { *m = ExemplarsResponse{} } -func (m *ExemplarsResponse) String() string { return proto.CompactTextString(m) } -func (*ExemplarsResponse) ProtoMessage() {} -func (*ExemplarsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_fd9ad2a40bac3cc9, []int{1} -} -func (m *ExemplarsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExemplarsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExemplarsResponse.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 (x *ExemplarsResponse) Reset() { + *x = ExemplarsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ExemplarsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExemplarsResponse.Merge(m, src) -} -func (m *ExemplarsResponse) XXX_Size() int { - return m.Size() -} -func (m *ExemplarsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExemplarsResponse.DiscardUnknown(m) + +func (x *ExemplarsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ExemplarsResponse proto.InternalMessageInfo +func (*ExemplarsResponse) ProtoMessage() {} -type isExemplarsResponse_Result interface { - isExemplarsResponse_Result() - MarshalTo([]byte) (int, error) - Size() int +func (x *ExemplarsResponse) ProtoReflect() protoreflect.Message { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type ExemplarsResponse_Data struct { - Data *ExemplarData `protobuf:"bytes,1,opt,name=data,proto3,oneof" json:"data,omitempty"` -} -type ExemplarsResponse_Warning struct { - Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof" json:"warning,omitempty"` +// Deprecated: Use ExemplarsResponse.ProtoReflect.Descriptor instead. +func (*ExemplarsResponse) Descriptor() ([]byte, []int) { + return file_exemplars_exemplarspb_rpc_proto_rawDescGZIP(), []int{1} } -func (*ExemplarsResponse_Data) isExemplarsResponse_Result() {} -func (*ExemplarsResponse_Warning) isExemplarsResponse_Result() {} - func (m *ExemplarsResponse) GetResult() isExemplarsResponse_Result { if m != nil { return m.Result @@ -167,1223 +147,319 @@ func (m *ExemplarsResponse) GetResult() isExemplarsResponse_Result { return nil } -func (m *ExemplarsResponse) GetData() *ExemplarData { - if x, ok := m.GetResult().(*ExemplarsResponse_Data); ok { +func (x *ExemplarsResponse) GetData() *ExemplarData { + if x, ok := x.GetResult().(*ExemplarsResponse_Data); ok { return x.Data } return nil } -func (m *ExemplarsResponse) GetWarning() string { - if x, ok := m.GetResult().(*ExemplarsResponse_Warning); ok { +func (x *ExemplarsResponse) GetWarning() string { + if x, ok := x.GetResult().(*ExemplarsResponse_Warning); ok { return x.Warning } return "" } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ExemplarsResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ExemplarsResponse_Data)(nil), - (*ExemplarsResponse_Warning)(nil), - } -} - -type ExemplarData struct { - // @gotags: json:"seriesLabels" - SeriesLabels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=seriesLabels,proto3" json:"seriesLabels"` - // @gotags: json:"exemplars" - Exemplars []*Exemplar `protobuf:"bytes,2,rep,name=exemplars,proto3" json:"exemplars"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExemplarData) Reset() { *m = ExemplarData{} } -func (m *ExemplarData) String() string { return proto.CompactTextString(m) } -func (*ExemplarData) ProtoMessage() {} -func (*ExemplarData) Descriptor() ([]byte, []int) { - return fileDescriptor_fd9ad2a40bac3cc9, []int{2} -} -func (m *ExemplarData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExemplarData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExemplarData.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 *ExemplarData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExemplarData.Merge(m, src) -} -func (m *ExemplarData) XXX_Size() int { - return m.Size() -} -func (m *ExemplarData) XXX_DiscardUnknown() { - xxx_messageInfo_ExemplarData.DiscardUnknown(m) -} - -var xxx_messageInfo_ExemplarData proto.InternalMessageInfo - -func (m *ExemplarData) GetSeriesLabels() *labelpb.ZLabelSet { - if m != nil { - return m.SeriesLabels - } - return nil -} - -func (m *ExemplarData) GetExemplars() []*Exemplar { - if m != nil { - return m.Exemplars - } - return nil -} - -type Exemplar struct { - // @gotags: json:"labels" - Labels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"` - // @gotags: json:"value" - Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value"` - // @gotags: json:"timestamp" - Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"timestamp"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Exemplar) Reset() { *m = Exemplar{} } -func (m *Exemplar) String() string { return proto.CompactTextString(m) } -func (*Exemplar) ProtoMessage() {} -func (*Exemplar) Descriptor() ([]byte, []int) { - return fileDescriptor_fd9ad2a40bac3cc9, []int{3} -} -func (m *Exemplar) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Exemplar.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 *Exemplar) XXX_Merge(src proto.Message) { - xxx_messageInfo_Exemplar.Merge(m, src) -} -func (m *Exemplar) XXX_Size() int { - return m.Size() -} -func (m *Exemplar) XXX_DiscardUnknown() { - xxx_messageInfo_Exemplar.DiscardUnknown(m) -} - -var xxx_messageInfo_Exemplar proto.InternalMessageInfo - -func (m *Exemplar) GetLabels() *labelpb.ZLabelSet { - if m != nil { - return m.Labels - } - return nil -} - -func (m *Exemplar) GetValue() float64 { - if m != nil { - return m.Value - } - return 0 -} - -func (m *Exemplar) GetTs() int64 { - if m != nil { - return m.Ts - } - return 0 -} - -func init() { - proto.RegisterType((*ExemplarsRequest)(nil), "thanos.ExemplarsRequest") - proto.RegisterType((*ExemplarsResponse)(nil), "thanos.ExemplarsResponse") - proto.RegisterType((*ExemplarData)(nil), "thanos.ExemplarData") - proto.RegisterType((*Exemplar)(nil), "thanos.Exemplar") -} - -func init() { proto.RegisterFile("exemplars/exemplarspb/rpc.proto", fileDescriptor_fd9ad2a40bac3cc9) } - -var fileDescriptor_fd9ad2a40bac3cc9 = []byte{ - // 391 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6e, 0xd4, 0x30, - 0x10, 0x86, 0xeb, 0x4d, 0x09, 0xcd, 0x6c, 0x55, 0x6d, 0xad, 0x4a, 0x24, 0x7b, 0xd8, 0x46, 0x39, - 0x05, 0x0e, 0x09, 0x0a, 0xe2, 0x05, 0x56, 0x20, 0xf5, 0x80, 0x04, 0x72, 0x6f, 0xed, 0xa1, 0x72, - 0xe8, 0xa8, 0xac, 0x14, 0x12, 0xd7, 0x9e, 0x00, 0xfb, 0x50, 0xbc, 0x07, 0x47, 0x1e, 0x01, 0xed, - 0x93, 0xa0, 0xd8, 0xf1, 0x92, 0x56, 0x95, 0xb8, 0x44, 0x9e, 0xf9, 0xbf, 0x78, 0x7e, 0xcf, 0x0c, - 0x9c, 0xe3, 0x0f, 0xfc, 0xaa, 0x1a, 0xa9, 0x4d, 0xb9, 0x3f, 0xa9, 0xba, 0xd4, 0xea, 0x73, 0xa1, - 0x74, 0x47, 0x1d, 0x0f, 0xe9, 0x8b, 0x6c, 0x3b, 0xb3, 0x4c, 0x0c, 0x75, 0x1a, 0x4b, 0xfb, 0x55, - 0x75, 0x49, 0x5b, 0x85, 0xc6, 0x21, 0x5e, 0x6a, 0x64, 0x8d, 0xcd, 0x43, 0x29, 0xfb, 0xc9, 0x60, - 0xf1, 0xde, 0xdf, 0x2b, 0xf0, 0xbe, 0x47, 0x43, 0xfc, 0x0c, 0x9e, 0xdd, 0xf7, 0xa8, 0xb7, 0x31, - 0x4b, 0x59, 0x1e, 0x09, 0x17, 0x0c, 0x59, 0x43, 0x52, 0x53, 0x3c, 0x4b, 0x59, 0x1e, 0x08, 0x17, - 0xf0, 0x05, 0x04, 0xd8, 0xde, 0xc6, 0x81, 0xcd, 0x0d, 0x47, 0x7e, 0x0d, 0x89, 0x92, 0x9a, 0x36, - 0xb2, 0xb9, 0xd1, 0x68, 0x54, 0xd7, 0x1a, 0xbc, 0x31, 0xa4, 0x25, 0xe1, 0xdd, 0x36, 0x3e, 0x4c, - 0x59, 0x7e, 0x52, 0x9d, 0x17, 0xce, 0x74, 0xf1, 0xc9, 0x81, 0x62, 0xe4, 0x2e, 0x47, 0x4c, 0xbc, - 0x50, 0x4f, 0x0b, 0x19, 0xc2, 0xe9, 0xc4, 0xae, 0x13, 0xf9, 0x2b, 0x38, 0xbc, 0x95, 0x24, 0xad, - 0xdd, 0x79, 0x75, 0xe6, 0x2f, 0xf7, 0xe0, 0x3b, 0x49, 0xf2, 0xe2, 0x40, 0x58, 0x86, 0x2f, 0xe1, - 0xf9, 0x77, 0xa9, 0xdb, 0x4d, 0x7b, 0x67, 0xdf, 0x11, 0x5d, 0x1c, 0x08, 0x9f, 0x58, 0x1f, 0x41, - 0xa8, 0xd1, 0xf4, 0x0d, 0x65, 0x3d, 0x1c, 0x4f, 0xff, 0xe6, 0x6f, 0xe1, 0xd8, 0xa0, 0xde, 0xa0, - 0xf9, 0x30, 0xf4, 0xd0, 0x8c, 0x95, 0x4e, 0x7d, 0xa5, 0x2b, 0x9b, 0xbe, 0x44, 0x12, 0x0f, 0x30, - 0x5e, 0x40, 0xb4, 0x1f, 0x5a, 0x3c, 0x4b, 0x83, 0x7c, 0x5e, 0x2d, 0x1e, 0xbb, 0x13, 0xff, 0x90, - 0xec, 0x1a, 0x8e, 0x7c, 0x9a, 0xbf, 0x84, 0xb0, 0xf9, 0x4f, 0xb1, 0x11, 0x18, 0x26, 0xf3, 0x4d, - 0x36, 0x3d, 0xda, 0x17, 0x31, 0xe1, 0x02, 0x7e, 0x02, 0x33, 0x32, 0xe3, 0x60, 0x66, 0x64, 0xaa, - 0x8f, 0x10, 0xed, 0x5b, 0xc7, 0xd7, 0xd3, 0x20, 0x7e, 0xec, 0xc9, 0x6f, 0xc2, 0x32, 0x79, 0x42, - 0x71, 0x4d, 0x7f, 0xcd, 0xd6, 0xc9, 0xaf, 0xdd, 0x8a, 0xfd, 0xde, 0xad, 0xd8, 0x9f, 0xdd, 0x8a, - 0x5d, 0xcd, 0x27, 0xeb, 0x59, 0x87, 0x76, 0xbb, 0xde, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8a, - 0x6f, 0x72, 0x81, 0xbe, 0x02, 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 - -// ExemplarsClient is the client API for Exemplars service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExemplarsClient interface { - /// Exemplars has info for all exemplars. - /// Returned exemplars are expected to include external labels. - Exemplars(ctx context.Context, in *ExemplarsRequest, opts ...grpc.CallOption) (Exemplars_ExemplarsClient, error) -} - -type exemplarsClient struct { - cc *grpc.ClientConn -} - -func NewExemplarsClient(cc *grpc.ClientConn) ExemplarsClient { - return &exemplarsClient{cc} -} - -func (c *exemplarsClient) Exemplars(ctx context.Context, in *ExemplarsRequest, opts ...grpc.CallOption) (Exemplars_ExemplarsClient, error) { - stream, err := c.cc.NewStream(ctx, &_Exemplars_serviceDesc.Streams[0], "/thanos.Exemplars/Exemplars", opts...) - if err != nil { - return nil, err - } - x := &exemplarsExemplarsClient{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 Exemplars_ExemplarsClient interface { - Recv() (*ExemplarsResponse, error) - grpc.ClientStream -} - -type exemplarsExemplarsClient struct { - grpc.ClientStream -} - -func (x *exemplarsExemplarsClient) Recv() (*ExemplarsResponse, error) { - m := new(ExemplarsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ExemplarsServer is the server API for Exemplars service. -type ExemplarsServer interface { - /// Exemplars has info for all exemplars. - /// Returned exemplars are expected to include external labels. - Exemplars(*ExemplarsRequest, Exemplars_ExemplarsServer) error -} - -// UnimplementedExemplarsServer can be embedded to have forward compatible implementations. -type UnimplementedExemplarsServer struct { -} - -func (*UnimplementedExemplarsServer) Exemplars(req *ExemplarsRequest, srv Exemplars_ExemplarsServer) error { - return status.Errorf(codes.Unimplemented, "method Exemplars not implemented") -} - -func RegisterExemplarsServer(s *grpc.Server, srv ExemplarsServer) { - s.RegisterService(&_Exemplars_serviceDesc, srv) -} - -func _Exemplars_Exemplars_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ExemplarsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ExemplarsServer).Exemplars(m, &exemplarsExemplarsServer{stream}) +type isExemplarsResponse_Result interface { + isExemplarsResponse_Result() } -type Exemplars_ExemplarsServer interface { - Send(*ExemplarsResponse) error - grpc.ServerStream +type ExemplarsResponse_Data struct { + Data *ExemplarData `protobuf:"bytes,1,opt,name=data,proto3,oneof"` } -type exemplarsExemplarsServer struct { - grpc.ServerStream +type ExemplarsResponse_Warning struct { + Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof"` } -func (x *exemplarsExemplarsServer) Send(m *ExemplarsResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*ExemplarsResponse_Data) isExemplarsResponse_Result() {} -var _Exemplars_serviceDesc = grpc.ServiceDesc{ - ServiceName: "thanos.Exemplars", - HandlerType: (*ExemplarsServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Exemplars", - Handler: _Exemplars_Exemplars_Handler, - ServerStreams: true, - }, - }, - Metadata: "exemplars/exemplarspb/rpc.proto", -} +func (*ExemplarsResponse_Warning) isExemplarsResponse_Result() {} -func (m *ExemplarsRequest) 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 -} +type ExemplarData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExemplarsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + // @gotags: json:"seriesLabels" + SeriesLabels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=seriesLabels,proto3" json:"seriesLabels"` + // @gotags: json:"exemplars" + Exemplars []*Exemplar `protobuf:"bytes,2,rep,name=exemplars,proto3" json:"exemplars"` } -func (m *ExemplarsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PartialResponseStrategy != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy)) - i-- - dAtA[i] = 0x20 - } - if m.End != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.End)) - i-- - dAtA[i] = 0x18 - } - if m.Start != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.Start)) - i-- - dAtA[i] = 0x10 +func (x *ExemplarData) Reset() { + *x = ExemplarData{} + if protoimpl.UnsafeEnabled { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Query) > 0 { - i -= len(m.Query) - copy(dAtA[i:], m.Query) - i = encodeVarintRpc(dAtA, i, uint64(len(m.Query))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *ExemplarsResponse) 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 (x *ExemplarData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExemplarsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ExemplarData) ProtoMessage() {} -func (m *ExemplarsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Result != nil { - { - size := m.Result.Size() - i -= size - if _, err := m.Result.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } +func (x *ExemplarData) ProtoReflect() protoreflect.Message { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *ExemplarsResponse_Data) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ExemplarData.ProtoReflect.Descriptor instead. +func (*ExemplarData) Descriptor() ([]byte, []int) { + return file_exemplars_exemplarspb_rpc_proto_rawDescGZIP(), []int{2} } -func (m *ExemplarsResponse_Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *ExemplarData) GetSeriesLabels() *labelpb.ZLabelSet { + if x != nil { + return x.SeriesLabels } - return len(dAtA) - i, nil -} -func (m *ExemplarsResponse_Warning) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *ExemplarsResponse_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 *ExemplarData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ExemplarData) GetExemplars() []*Exemplar { + if x != nil { + return x.Exemplars } - return dAtA[:n], nil + return nil } -func (m *ExemplarData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type Exemplar struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ExemplarData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Exemplars) > 0 { - for iNdEx := len(m.Exemplars) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Exemplars[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.SeriesLabels != nil { - { - size, err := m.SeriesLabels.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 + // @gotags: json:"labels" + Labels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"` + // @gotags: json:"value" + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value"` + // @gotags: json:"timestamp" + Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"timestamp"` } -func (m *Exemplar) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Exemplar) Reset() { + *x = Exemplar{} + if protoimpl.UnsafeEnabled { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *Exemplar) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *Exemplar) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Exemplar) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ts != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.Ts)) - i-- - dAtA[i] = 0x18 - } - if m.Value != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) - i-- - dAtA[i] = 0x11 - } - if m.Labels != nil { - { - size, err := m.Labels.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) +func (*Exemplar) ProtoMessage() {} + +func (x *Exemplar) ProtoReflect() protoreflect.Message { + mi := &file_exemplars_exemplarspb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -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 *ExemplarsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Query) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - if m.Start != 0 { - n += 1 + sovRpc(uint64(m.Start)) - } - if m.End != 0 { - n += 1 + sovRpc(uint64(m.End)) - } - if m.PartialResponseStrategy != 0 { - n += 1 + sovRpc(uint64(m.PartialResponseStrategy)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use Exemplar.ProtoReflect.Descriptor instead. +func (*Exemplar) Descriptor() ([]byte, []int) { + return file_exemplars_exemplarspb_rpc_proto_rawDescGZIP(), []int{3} } -func (m *ExemplarsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - n += m.Result.Size() +func (x *Exemplar) GetLabels() *labelpb.ZLabelSet { + if x != nil { + return x.Labels } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *ExemplarsResponse_Data) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovRpc(uint64(l)) - } - return n -} -func (m *ExemplarsResponse_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 *ExemplarData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SeriesLabels != nil { - l = m.SeriesLabels.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if len(m.Exemplars) > 0 { - for _, e := range m.Exemplars { - l = e.Size() - n += 1 + l + sovRpc(uint64(l)) - } +func (x *Exemplar) GetValue() float64 { + if x != nil { + return x.Value } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return 0 } -func (m *Exemplar) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Labels != nil { - l = m.Labels.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.Value != 0 { - n += 9 - } - if m.Ts != 0 { - n += 1 + sovRpc(uint64(m.Ts)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *Exemplar) GetTs() int64 { + if x != nil { + return x.Ts } - return n + return 0 } -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)))) +var File_exemplars_exemplarspb_rpc_proto protoreflect.FileDescriptor + +var file_exemplars_exemplarspb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x2f, 0x65, 0x78, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x72, 0x73, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x06, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xad, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, + 0x6e, 0x64, 0x12, 0x5b, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, + 0x65, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x72, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x1a, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x75, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, + 0x0c, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2e, 0x0a, + 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x72, 0x52, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x22, 0x5b, 0x0a, + 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x74, 0x73, 0x32, 0x4f, 0x0a, 0x09, 0x45, 0x78, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x45, 0x78, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x72, 0x73, 0x12, 0x18, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x45, 0x78, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x0d, 0x5a, 0x0b, 0x65, + 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } -func (m *ExemplarsRequest) 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: ExemplarsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExemplarsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.Query = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 3: - 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 4: - 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 |= storepb.PartialResponseStrategy(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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExemplarsResponse) 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: ExemplarsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExemplarsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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 := &ExemplarData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Result = &ExemplarsResponse_Data{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 = &ExemplarsResponse_Warning{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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_exemplars_exemplarspb_rpc_proto_rawDescOnce sync.Once + file_exemplars_exemplarspb_rpc_proto_rawDescData = file_exemplars_exemplarspb_rpc_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExemplarData) 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 +func file_exemplars_exemplarspb_rpc_proto_rawDescGZIP() []byte { + file_exemplars_exemplarspb_rpc_proto_rawDescOnce.Do(func() { + file_exemplars_exemplarspb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_exemplars_exemplarspb_rpc_proto_rawDescData) + }) + return file_exemplars_exemplarspb_rpc_proto_rawDescData +} + +var file_exemplars_exemplarspb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_exemplars_exemplarspb_rpc_proto_goTypes = []interface{}{ + (*ExemplarsRequest)(nil), // 0: thanos.ExemplarsRequest + (*ExemplarsResponse)(nil), // 1: thanos.ExemplarsResponse + (*ExemplarData)(nil), // 2: thanos.ExemplarData + (*Exemplar)(nil), // 3: thanos.Exemplar + (storepb.PartialResponseStrategy)(0), // 4: thanos.PartialResponseStrategy + (*labelpb.ZLabelSet)(nil), // 5: thanos.ZLabelSet +} +var file_exemplars_exemplarspb_rpc_proto_depIdxs = []int32{ + 4, // 0: thanos.ExemplarsRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 2, // 1: thanos.ExemplarsResponse.data:type_name -> thanos.ExemplarData + 5, // 2: thanos.ExemplarData.seriesLabels:type_name -> thanos.ZLabelSet + 3, // 3: thanos.ExemplarData.exemplars:type_name -> thanos.Exemplar + 5, // 4: thanos.Exemplar.labels:type_name -> thanos.ZLabelSet + 0, // 5: thanos.Exemplars.Exemplars:input_type -> thanos.ExemplarsRequest + 1, // 6: thanos.Exemplars.Exemplars:output_type -> thanos.ExemplarsResponse + 6, // [6:7] is the sub-list for method output_type + 5, // [5:6] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_exemplars_exemplarspb_rpc_proto_init() } +func file_exemplars_exemplarspb_rpc_proto_init() { + if File_exemplars_exemplarspb_rpc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_exemplars_exemplarspb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExemplarsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExemplarData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExemplarData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SeriesLabels", 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.SeriesLabels == nil { - m.SeriesLabels = &labelpb.ZLabelSet{} - } - if err := m.SeriesLabels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exemplars", 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 - } + file_exemplars_exemplarspb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExemplarsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if msglen < 0 { - return ErrInvalidLengthRpc - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRpc - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Exemplars = append(m.Exemplars, &Exemplar{}) - if err := m.Exemplars[len(m.Exemplars)-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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Exemplar) 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 + file_exemplars_exemplarspb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExemplarData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - 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: Exemplar: wiretype end group for non-group") } - if fieldNum <= 0 { - return fmt.Errorf("proto: Exemplar: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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 + file_exemplars_exemplarspb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Exemplar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if m.Labels == nil { - m.Labels = &labelpb.ZLabelSet{} - } - if err := m.Labels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Value = float64(math.Float64frombits(v)) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ts", wireType) - } - m.Ts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRpc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Ts |= 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - } + file_exemplars_exemplarspb_rpc_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ExemplarsResponse_Data)(nil), + (*ExemplarsResponse_Warning)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_exemplars_exemplarspb_rpc_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_exemplars_exemplarspb_rpc_proto_goTypes, + DependencyIndexes: file_exemplars_exemplarspb_rpc_proto_depIdxs, + MessageInfos: file_exemplars_exemplarspb_rpc_proto_msgTypes, + }.Build() + File_exemplars_exemplarspb_rpc_proto = out.File + file_exemplars_exemplarspb_rpc_proto_rawDesc = nil + file_exemplars_exemplarspb_rpc_proto_goTypes = nil + file_exemplars_exemplarspb_rpc_proto_depIdxs = nil } - -var ( - ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/info/infopb/rpc.pb.go b/pkg/info/infopb/rpc.pb.go index dd1b406f25..91afcf9d85 100644 --- a/pkg/info/infopb/rpc.pb.go +++ b/pkg/info/infopb/rpc.pb.go @@ -1,73 +1,73 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: info/infopb/rpc.proto package infopb import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type InfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *InfoRequest) Reset() { *m = InfoRequest{} } -func (m *InfoRequest) String() string { return proto.CompactTextString(m) } -func (*InfoRequest) ProtoMessage() {} -func (*InfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{0} +func (x *InfoRequest) Reset() { + *x = InfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *InfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*InfoRequest) ProtoMessage() {} + +func (x *InfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *InfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoRequest.Merge(m, src) -} -func (m *InfoRequest) XXX_Size() int { - return m.Size() -} -func (m *InfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InfoRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_InfoRequest proto.InternalMessageInfo +// Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead. +func (*InfoRequest) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{0} +} type InfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + LabelSets []*labelpb.ZLabelSet `protobuf:"bytes,1,rep,name=label_sets,json=labelSets,proto3" json:"label_sets,omitempty"` ComponentType string `protobuf:"bytes,2,opt,name=ComponentType,proto3" json:"ComponentType,omitempty"` /// StoreInfo holds the metadata related to Store API if exposed by the component otherwise it will be null. @@ -79,1642 +79,516 @@ type InfoResponse struct { /// TargetsInfo holds the metadata related to Targets API if exposed by the component otherwise it will be null. Targets *TargetsInfo `protobuf:"bytes,6,opt,name=targets,proto3" json:"targets,omitempty"` /// ExemplarsInfo holds the metadata related to Exemplars API if exposed by the component otherwise it will be null. - Exemplars *ExemplarsInfo `protobuf:"bytes,7,opt,name=exemplars,proto3" json:"exemplars,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Exemplars *ExemplarsInfo `protobuf:"bytes,7,opt,name=exemplars,proto3" json:"exemplars,omitempty"` } -func (m *InfoResponse) Reset() { *m = InfoResponse{} } -func (m *InfoResponse) String() string { return proto.CompactTextString(m) } -func (*InfoResponse) ProtoMessage() {} -func (*InfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{1} +func (x *InfoResponse) Reset() { + *x = InfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *InfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*InfoResponse) ProtoMessage() {} + +func (x *InfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *InfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoResponse.Merge(m, src) -} -func (m *InfoResponse) XXX_Size() int { - return m.Size() -} -func (m *InfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InfoResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_InfoResponse proto.InternalMessageInfo +// Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead. +func (*InfoResponse) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{1} +} -func (m *InfoResponse) GetLabelSets() []*labelpb.ZLabelSet { - if m != nil { - return m.LabelSets +func (x *InfoResponse) GetLabelSets() []*labelpb.ZLabelSet { + if x != nil { + return x.LabelSets } return nil } -func (m *InfoResponse) GetComponentType() string { - if m != nil { - return m.ComponentType +func (x *InfoResponse) GetComponentType() string { + if x != nil { + return x.ComponentType } return "" } -func (m *InfoResponse) GetStore() *StoreInfo { - if m != nil { - return m.Store +func (x *InfoResponse) GetStore() *StoreInfo { + if x != nil { + return x.Store } return nil } -func (m *InfoResponse) GetRules() *RulesInfo { - if m != nil { - return m.Rules +func (x *InfoResponse) GetRules() *RulesInfo { + if x != nil { + return x.Rules } return nil } -func (m *InfoResponse) GetMetricMetadata() *MetricMetadataInfo { - if m != nil { - return m.MetricMetadata +func (x *InfoResponse) GetMetricMetadata() *MetricMetadataInfo { + if x != nil { + return x.MetricMetadata } return nil } -func (m *InfoResponse) GetTargets() *TargetsInfo { - if m != nil { - return m.Targets +func (x *InfoResponse) GetTargets() *TargetsInfo { + if x != nil { + return x.Targets } return nil } -func (m *InfoResponse) GetExemplars() *ExemplarsInfo { - if m != nil { - return m.Exemplars +func (x *InfoResponse) GetExemplars() *ExemplarsInfo { + if x != nil { + return x.Exemplars } return nil } /// StoreInfo holds the metadata related to Store API exposed by the component. type StoreInfo 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StoreInfo) Reset() { *m = StoreInfo{} } -func (m *StoreInfo) String() string { return proto.CompactTextString(m) } -func (*StoreInfo) ProtoMessage() {} -func (*StoreInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{2} -} -func (m *StoreInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StoreInfo.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 *StoreInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreInfo.Merge(m, src) -} -func (m *StoreInfo) XXX_Size() int { - return m.Size() -} -func (m *StoreInfo) XXX_DiscardUnknown() { - xxx_messageInfo_StoreInfo.DiscardUnknown(m) + 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"` } -var xxx_messageInfo_StoreInfo proto.InternalMessageInfo - -func (m *StoreInfo) GetMinTime() int64 { - if m != nil { - return m.MinTime - } - return 0 -} - -func (m *StoreInfo) GetMaxTime() int64 { - if m != nil { - return m.MaxTime - } - return 0 -} - -/// RulesInfo holds the metadata related to Rules API exposed by the component. -type RulesInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RulesInfo) Reset() { *m = RulesInfo{} } -func (m *RulesInfo) String() string { return proto.CompactTextString(m) } -func (*RulesInfo) ProtoMessage() {} -func (*RulesInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{3} -} -func (m *RulesInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RulesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RulesInfo.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 (x *StoreInfo) Reset() { + *x = StoreInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *RulesInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RulesInfo.Merge(m, src) -} -func (m *RulesInfo) XXX_Size() int { - return m.Size() -} -func (m *RulesInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RulesInfo.DiscardUnknown(m) -} -var xxx_messageInfo_RulesInfo proto.InternalMessageInfo - -/// MetricMetadataInfo holds the metadata related to Metadata API exposed by the component. -type MetricMetadataInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MetricMetadataInfo) Reset() { *m = MetricMetadataInfo{} } -func (m *MetricMetadataInfo) String() string { return proto.CompactTextString(m) } -func (*MetricMetadataInfo) ProtoMessage() {} -func (*MetricMetadataInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{4} +func (x *StoreInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MetricMetadataInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricMetadataInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetricMetadataInfo.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 *MetricMetadataInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricMetadataInfo.Merge(m, src) -} -func (m *MetricMetadataInfo) XXX_Size() int { - return m.Size() -} -func (m *MetricMetadataInfo) XXX_DiscardUnknown() { - xxx_messageInfo_MetricMetadataInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricMetadataInfo proto.InternalMessageInfo -/// TargetsInfo holds the metadata related to Targets API exposed by the component. -type TargetsInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*StoreInfo) ProtoMessage() {} -func (m *TargetsInfo) Reset() { *m = TargetsInfo{} } -func (m *TargetsInfo) String() string { return proto.CompactTextString(m) } -func (*TargetsInfo) ProtoMessage() {} -func (*TargetsInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{5} -} -func (m *TargetsInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TargetsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TargetsInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *StoreInfo) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *TargetsInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_TargetsInfo.Merge(m, src) -} -func (m *TargetsInfo) XXX_Size() int { - return m.Size() -} -func (m *TargetsInfo) XXX_DiscardUnknown() { - xxx_messageInfo_TargetsInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_TargetsInfo proto.InternalMessageInfo - -/// EXemplarsInfo holds the metadata related to Exemplars API exposed by the component. -type ExemplarsInfo 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *ExemplarsInfo) Reset() { *m = ExemplarsInfo{} } -func (m *ExemplarsInfo) String() string { return proto.CompactTextString(m) } -func (*ExemplarsInfo) ProtoMessage() {} -func (*ExemplarsInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1214ec45d2bf952, []int{6} -} -func (m *ExemplarsInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExemplarsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ExemplarsInfo.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 *ExemplarsInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExemplarsInfo.Merge(m, src) -} -func (m *ExemplarsInfo) XXX_Size() int { - return m.Size() -} -func (m *ExemplarsInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ExemplarsInfo.DiscardUnknown(m) +// Deprecated: Use StoreInfo.ProtoReflect.Descriptor instead. +func (*StoreInfo) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_ExemplarsInfo proto.InternalMessageInfo - -func (m *ExemplarsInfo) GetMinTime() int64 { - if m != nil { - return m.MinTime +func (x *StoreInfo) GetMinTime() int64 { + if x != nil { + return x.MinTime } return 0 } -func (m *ExemplarsInfo) GetMaxTime() int64 { - if m != nil { - return m.MaxTime +func (x *StoreInfo) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } return 0 } -func init() { - proto.RegisterType((*InfoRequest)(nil), "thanos.info.InfoRequest") - proto.RegisterType((*InfoResponse)(nil), "thanos.info.InfoResponse") - proto.RegisterType((*StoreInfo)(nil), "thanos.info.StoreInfo") - proto.RegisterType((*RulesInfo)(nil), "thanos.info.RulesInfo") - proto.RegisterType((*MetricMetadataInfo)(nil), "thanos.info.MetricMetadataInfo") - proto.RegisterType((*TargetsInfo)(nil), "thanos.info.TargetsInfo") - proto.RegisterType((*ExemplarsInfo)(nil), "thanos.info.ExemplarsInfo") -} - -func init() { proto.RegisterFile("info/infopb/rpc.proto", fileDescriptor_a1214ec45d2bf952) } - -var fileDescriptor_a1214ec45d2bf952 = []byte{ - // 399 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcf, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0xe5, 0x76, 0x6b, 0xc9, 0x0b, 0x05, 0x61, 0x0d, 0xe4, 0xf6, 0x50, 0xa2, 0x88, 0x43, - 0x0e, 0x28, 0x41, 0xe1, 0x82, 0xc4, 0x09, 0xa6, 0x49, 0x20, 0xb1, 0x4b, 0xd6, 0xd3, 0x2e, 0x95, - 0x33, 0xde, 0x20, 0x52, 0xfc, 0x83, 0xd8, 0x93, 0xba, 0xff, 0x90, 0x23, 0x7f, 0x02, 0xea, 0x9f, - 0xc1, 0x09, 0xd9, 0x4e, 0x4b, 0x23, 0x7a, 0xda, 0x25, 0x3f, 0xfc, 0xf9, 0x7c, 0x5f, 0x9e, 0x9d, - 0x07, 0xcf, 0x1b, 0x79, 0xab, 0x0a, 0x77, 0xd1, 0x75, 0xd1, 0xe9, 0x9b, 0x5c, 0x77, 0xca, 0x2a, - 0x1a, 0xdb, 0xef, 0x5c, 0x2a, 0x93, 0x3b, 0xb0, 0x98, 0x1b, 0xab, 0x3a, 0x2c, 0x5a, 0x5e, 0x63, - 0xab, 0xeb, 0xc2, 0xde, 0x6b, 0x34, 0xc1, 0x4b, 0x67, 0x10, 0x7f, 0x96, 0xb7, 0xaa, 0xc2, 0x1f, - 0x77, 0x68, 0x6c, 0xfa, 0x67, 0x04, 0x8f, 0xc3, 0xbb, 0xd1, 0x4a, 0x1a, 0xa4, 0x6f, 0x00, 0x7c, - 0x6c, 0x6d, 0xd0, 0x1a, 0x46, 0x92, 0x71, 0x16, 0x97, 0xcf, 0xf2, 0xbe, 0xf8, 0xf5, 0x17, 0x87, - 0xae, 0xd0, 0x56, 0x51, 0xdb, 0x3f, 0x19, 0xfa, 0x0a, 0x66, 0xe7, 0x4a, 0x68, 0x25, 0x51, 0xda, - 0xd5, 0xbd, 0x46, 0x36, 0x4a, 0x48, 0x16, 0x55, 0xc3, 0x45, 0xfa, 0x1a, 0x4e, 0x7d, 0x53, 0x6c, - 0x9c, 0x90, 0x2c, 0x2e, 0x5f, 0xe4, 0x07, 0xfd, 0xe6, 0x57, 0x8e, 0xf8, 0x36, 0x82, 0xe4, 0xec, - 0xee, 0xae, 0x45, 0xc3, 0x4e, 0x8e, 0xd8, 0x95, 0x23, 0xc1, 0xf6, 0x12, 0xfd, 0x04, 0x4f, 0x05, - 0xda, 0xae, 0xb9, 0x59, 0x0b, 0xb4, 0xfc, 0x2b, 0xb7, 0x9c, 0x9d, 0xfa, 0xdc, 0xcb, 0x41, 0xee, - 0xd2, 0x3b, 0x97, 0xbd, 0xe2, 0x0b, 0x3c, 0x11, 0x83, 0x35, 0x5a, 0xc2, 0xd4, 0xf2, 0xee, 0x9b, - 0xdb, 0xfa, 0xc4, 0x57, 0x60, 0x83, 0x0a, 0xab, 0xc0, 0x7c, 0x74, 0x27, 0xd2, 0x77, 0x10, 0xe1, - 0x06, 0x85, 0x6e, 0x79, 0x67, 0xd8, 0xd4, 0xa7, 0x16, 0x83, 0xd4, 0xc5, 0x8e, 0xfa, 0xdc, 0x3f, - 0x39, 0xfd, 0x00, 0xd1, 0x7e, 0xe7, 0x74, 0x0e, 0x8f, 0x44, 0x23, 0xd7, 0xb6, 0x11, 0xc8, 0x48, - 0x42, 0xb2, 0x71, 0x35, 0x15, 0x8d, 0x5c, 0x35, 0x02, 0x3d, 0xe2, 0x9b, 0x80, 0x46, 0x3d, 0xe2, - 0x1b, 0x87, 0xd2, 0x18, 0xa2, 0xfd, 0x71, 0xa4, 0x67, 0x40, 0xff, 0xdf, 0xa3, 0xfb, 0xe3, 0x07, - 0x7d, 0xa7, 0x17, 0x30, 0x1b, 0x34, 0xf4, 0xb0, 0x0f, 0x97, 0xe7, 0x70, 0xe2, 0xd3, 0xef, 0xfb, - 0xfb, 0xf0, 0xa0, 0x0e, 0x46, 0x6c, 0x31, 0x3f, 0x42, 0xc2, 0xb0, 0x7d, 0x3c, 0xfb, 0xb9, 0x5d, - 0x92, 0x5f, 0xdb, 0x25, 0xf9, 0xbd, 0x5d, 0x92, 0xeb, 0x49, 0x18, 0xea, 0x7a, 0xe2, 0x27, 0xf5, - 0xed, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xdb, 0x96, 0x3e, 0xea, 0x02, 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 - -// InfoClient is the client API for Info service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InfoClient interface { - /// Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. - Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) -} - -type infoClient struct { - cc *grpc.ClientConn -} - -func NewInfoClient(cc *grpc.ClientConn) InfoClient { - return &infoClient{cc} -} - -func (c *infoClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { - out := new(InfoResponse) - err := c.cc.Invoke(ctx, "/thanos.info.Info/Info", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InfoServer is the server API for Info service. -type InfoServer interface { - /// Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. - Info(context.Context, *InfoRequest) (*InfoResponse, error) -} - -// UnimplementedInfoServer can be embedded to have forward compatible implementations. -type UnimplementedInfoServer struct { -} - -func (*UnimplementedInfoServer) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") -} - -func RegisterInfoServer(s *grpc.Server, srv InfoServer) { - s.RegisterService(&_Info_serviceDesc, srv) -} - -func _Info_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InfoServer).Info(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/thanos.info.Info/Info", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InfoServer).Info(ctx, req.(*InfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Info_serviceDesc = grpc.ServiceDesc{ - ServiceName: "thanos.info.Info", - HandlerType: (*InfoServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Info", - Handler: _Info_Info_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "info/infopb/rpc.proto", -} - -func (m *InfoRequest) 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 *InfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +/// RulesInfo holds the metadata related to Rules API exposed by the component. +type RulesInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *InfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RulesInfo) Reset() { + *x = RulesInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *InfoResponse) 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 (x *RulesInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*RulesInfo) ProtoMessage() {} -func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Exemplars != nil { - { - size, err := m.Exemplars.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Targets != nil { - { - size, err := m.Targets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.MetricMetadata != nil { - { - size, err := m.MetricMetadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Rules != nil { - { - size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) +func (x *RulesInfo) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x22 + return ms } - if m.Store != nil { - { - size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.ComponentType) > 0 { - i -= len(m.ComponentType) - copy(dAtA[i:], m.ComponentType) - i = encodeVarintRpc(dAtA, i, uint64(len(m.ComponentType))) - i-- - dAtA[i] = 0x12 - } - if len(m.LabelSets) > 0 { - for iNdEx := len(m.LabelSets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.LabelSets[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 *StoreInfo) 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 *StoreInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *StoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 *RulesInfo) 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 *RulesInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RulesInfo.ProtoReflect.Descriptor instead. +func (*RulesInfo) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{3} } -func (m *RulesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +/// MetricMetadataInfo holds the metadata related to Metadata API exposed by the component. +type MetricMetadataInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MetricMetadataInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *MetricMetadataInfo) Reset() { + *x = MetricMetadataInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *MetricMetadataInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *MetricMetadataInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MetricMetadataInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +func (*MetricMetadataInfo) ProtoMessage() {} -func (m *TargetsInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *MetricMetadataInfo) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *TargetsInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use MetricMetadataInfo.ProtoReflect.Descriptor instead. +func (*MetricMetadataInfo) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{4} } -func (m *TargetsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +/// TargetsInfo holds the metadata related to Targets API exposed by the component. +type TargetsInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ExemplarsInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *TargetsInfo) Reset() { + *x = TargetsInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ExemplarsInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *TargetsInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ExemplarsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 (*TargetsInfo) ProtoMessage() {} -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 *InfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.LabelSets) > 0 { - for _, e := range m.LabelSets { - l = e.Size() - n += 1 + l + sovRpc(uint64(l)) +func (x *TargetsInfo) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.ComponentType) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - if m.Store != nil { - l = m.Store.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.Rules != nil { - l = m.Rules.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.MetricMetadata != nil { - l = m.MetricMetadata.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.Targets != nil { - l = m.Targets.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.Exemplars != nil { - l = m.Exemplars.Size() - n += 1 + l + sovRpc(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func (m *StoreInfo) 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 m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use TargetsInfo.ProtoReflect.Descriptor instead. +func (*TargetsInfo) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{5} } -func (m *RulesInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +/// EXemplarsInfo holds the metadata related to Exemplars API exposed by the component. +type ExemplarsInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MetricMetadataInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + 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"` } -func (m *TargetsInfo) Size() (n int) { - if m == nil { - return 0 +func (x *ExemplarsInfo) Reset() { + *x = ExemplarsInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_info_infopb_rpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n } -func (m *ExemplarsInfo) 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 m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ExemplarsInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -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 *InfoRequest) 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: InfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InfoRequest: 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InfoResponse) 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: InfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSets", 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.LabelSets = append(m.LabelSets, &labelpb.ZLabelSet{}) - if err := m.LabelSets[len(m.LabelSets)-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 ComponentType", 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.ComponentType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Store", 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.Store == nil { - m.Store = &StoreInfo{} - } - if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", 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.Rules == nil { - m.Rules = &RulesInfo{} - } - if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricMetadata", 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.MetricMetadata == nil { - m.MetricMetadata = &MetricMetadataInfo{} - } - if err := m.MetricMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Targets", 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.Targets == nil { - m.Targets = &TargetsInfo{} - } - if err := m.Targets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exemplars", 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.Exemplars == nil { - m.Exemplars = &ExemplarsInfo{} - } - if err := m.Exemplars.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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +func (*ExemplarsInfo) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StoreInfo) 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: StoreInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StoreInfo: 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 - } - } - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy +func (x *ExemplarsInfo) ProtoReflect() protoreflect.Message { + mi := &file_info_infopb_rpc_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *RulesInfo) 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: RulesInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RulesInfo: 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ExemplarsInfo.ProtoReflect.Descriptor instead. +func (*ExemplarsInfo) Descriptor() ([]byte, []int) { + return file_info_infopb_rpc_proto_rawDescGZIP(), []int{6} } -func (m *MetricMetadataInfo) 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: MetricMetadataInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricMetadataInfo: 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExemplarsInfo) GetMinTime() int64 { + if x != nil { + return x.MinTime } - return nil + return 0 } -func (m *TargetsInfo) 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: TargetsInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TargetsInfo: 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ExemplarsInfo) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } - return nil + return 0 } -func (m *ExemplarsInfo) 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: ExemplarsInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExemplarsInfo: 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 - } - } - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 File_info_infopb_rpc_proto protoreflect.FileDescriptor + +var file_info_infopb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x70, 0x62, 0x2f, 0x72, 0x70, + 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x69, 0x6e, 0x66, 0x6f, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x0d, 0x0a, 0x0b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xfa, + 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x30, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, + 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x69, 0x6e, + 0x66, 0x6f, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x6d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, + 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x73, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x69, 0x6e, + 0x66, 0x6f, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x22, 0x41, 0x0a, 0x09, 0x53, + 0x74, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x0b, + 0x0a, 0x09, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x66, + 0x6f, 0x22, 0x0d, 0x0a, 0x0b, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x49, 0x6e, 0x66, 0x6f, + 0x22, 0x45, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x32, 0x43, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x3b, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, + 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2e, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x08, 0x5a, 0x06, + 0x69, 0x6e, 0x66, 0x6f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") + file_info_infopb_rpc_proto_rawDescOnce sync.Once + file_info_infopb_rpc_proto_rawDescData = file_info_infopb_rpc_proto_rawDesc ) + +func file_info_infopb_rpc_proto_rawDescGZIP() []byte { + file_info_infopb_rpc_proto_rawDescOnce.Do(func() { + file_info_infopb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_info_infopb_rpc_proto_rawDescData) + }) + return file_info_infopb_rpc_proto_rawDescData +} + +var file_info_infopb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_info_infopb_rpc_proto_goTypes = []interface{}{ + (*InfoRequest)(nil), // 0: thanos.info.InfoRequest + (*InfoResponse)(nil), // 1: thanos.info.InfoResponse + (*StoreInfo)(nil), // 2: thanos.info.StoreInfo + (*RulesInfo)(nil), // 3: thanos.info.RulesInfo + (*MetricMetadataInfo)(nil), // 4: thanos.info.MetricMetadataInfo + (*TargetsInfo)(nil), // 5: thanos.info.TargetsInfo + (*ExemplarsInfo)(nil), // 6: thanos.info.ExemplarsInfo + (*labelpb.ZLabelSet)(nil), // 7: thanos.ZLabelSet +} +var file_info_infopb_rpc_proto_depIdxs = []int32{ + 7, // 0: thanos.info.InfoResponse.label_sets:type_name -> thanos.ZLabelSet + 2, // 1: thanos.info.InfoResponse.store:type_name -> thanos.info.StoreInfo + 3, // 2: thanos.info.InfoResponse.rules:type_name -> thanos.info.RulesInfo + 4, // 3: thanos.info.InfoResponse.metric_metadata:type_name -> thanos.info.MetricMetadataInfo + 5, // 4: thanos.info.InfoResponse.targets:type_name -> thanos.info.TargetsInfo + 6, // 5: thanos.info.InfoResponse.exemplars:type_name -> thanos.info.ExemplarsInfo + 0, // 6: thanos.info.Info.Info:input_type -> thanos.info.InfoRequest + 1, // 7: thanos.info.Info.Info:output_type -> thanos.info.InfoResponse + 7, // [7:8] is the sub-list for method output_type + 6, // [6:7] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_info_infopb_rpc_proto_init() } +func file_info_infopb_rpc_proto_init() { + if File_info_infopb_rpc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_info_infopb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StoreInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RulesInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadataInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TargetsInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_info_infopb_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExemplarsInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_info_infopb_rpc_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_info_infopb_rpc_proto_goTypes, + DependencyIndexes: file_info_infopb_rpc_proto_depIdxs, + MessageInfos: file_info_infopb_rpc_proto_msgTypes, + }.Build() + File_info_infopb_rpc_proto = out.File + file_info_infopb_rpc_proto_rawDesc = nil + file_info_infopb_rpc_proto_goTypes = nil + file_info_infopb_rpc_proto_depIdxs = nil +} diff --git a/pkg/metadata/metadatapb/rpc.pb.go b/pkg/metadata/metadatapb/rpc.pb.go index 0fb9fac658..36bf84a766 100644 --- a/pkg/metadata/metadatapb/rpc.pb.go +++ b/pkg/metadata/metadatapb/rpc.pb.go @@ -1,155 +1,136 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: metadata/metadatapb/rpc.proto package metadatapb import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" storepb "github.com/thanos-io/thanos/pkg/store/storepb" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type MetricMetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,3,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *MetricMetadataRequest) Reset() { *m = MetricMetadataRequest{} } -func (m *MetricMetadataRequest) String() string { return proto.CompactTextString(m) } -func (*MetricMetadataRequest) ProtoMessage() {} -func (*MetricMetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9ae5661e0dc3fc, []int{0} +func (x *MetricMetadataRequest) Reset() { + *x = MetricMetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MetricMetadataRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MetricMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MetricMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetricMetadataRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MetricMetadataRequest) ProtoMessage() {} + +func (x *MetricMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MetricMetadataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricMetadataRequest.Merge(m, src) -} -func (m *MetricMetadataRequest) XXX_Size() int { - return m.Size() -} -func (m *MetricMetadataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MetricMetadataRequest.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MetricMetadataRequest proto.InternalMessageInfo +// Deprecated: Use MetricMetadataRequest.ProtoReflect.Descriptor instead. +func (*MetricMetadataRequest) Descriptor() ([]byte, []int) { + return file_metadata_metadatapb_rpc_proto_rawDescGZIP(), []int{0} +} -func (m *MetricMetadataRequest) GetMetric() string { - if m != nil { - return m.Metric +func (x *MetricMetadataRequest) GetMetric() string { + if x != nil { + return x.Metric } return "" } -func (m *MetricMetadataRequest) GetLimit() int32 { - if m != nil { - return m.Limit +func (x *MetricMetadataRequest) GetLimit() int32 { + if x != nil { + return x.Limit } return 0 } -func (m *MetricMetadataRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { - if m != nil { - return m.PartialResponseStrategy +func (x *MetricMetadataRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy } return storepb.PartialResponseStrategy_WARN } type MetricMetadataResponse struct { - // Types that are valid to be assigned to Result: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: // *MetricMetadataResponse_Metadata // *MetricMetadataResponse_Warning - Result isMetricMetadataResponse_Result `protobuf_oneof:"result"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Result isMetricMetadataResponse_Result `protobuf_oneof:"result"` } -func (m *MetricMetadataResponse) Reset() { *m = MetricMetadataResponse{} } -func (m *MetricMetadataResponse) String() string { return proto.CompactTextString(m) } -func (*MetricMetadataResponse) ProtoMessage() {} -func (*MetricMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9ae5661e0dc3fc, []int{1} -} -func (m *MetricMetadataResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetricMetadataResponse.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 (x *MetricMetadataResponse) Reset() { + *x = MetricMetadataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MetricMetadataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricMetadataResponse.Merge(m, src) -} -func (m *MetricMetadataResponse) XXX_Size() int { - return m.Size() -} -func (m *MetricMetadataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MetricMetadataResponse.DiscardUnknown(m) + +func (x *MetricMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_MetricMetadataResponse proto.InternalMessageInfo +func (*MetricMetadataResponse) ProtoMessage() {} -type isMetricMetadataResponse_Result interface { - isMetricMetadataResponse_Result() - MarshalTo([]byte) (int, error) - Size() int +func (x *MetricMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type MetricMetadataResponse_Metadata struct { - Metadata *MetricMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"` -} -type MetricMetadataResponse_Warning struct { - Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof" json:"warning,omitempty"` +// Deprecated: Use MetricMetadataResponse.ProtoReflect.Descriptor instead. +func (*MetricMetadataResponse) Descriptor() ([]byte, []int) { + return file_metadata_metadatapb_rpc_proto_rawDescGZIP(), []int{1} } -func (*MetricMetadataResponse_Metadata) isMetricMetadataResponse_Result() {} -func (*MetricMetadataResponse_Warning) isMetricMetadataResponse_Result() {} - func (m *MetricMetadataResponse) GetResult() isMetricMetadataResponse_Result { if m != nil { return m.Result @@ -157,1468 +138,376 @@ func (m *MetricMetadataResponse) GetResult() isMetricMetadataResponse_Result { return nil } -func (m *MetricMetadataResponse) GetMetadata() *MetricMetadata { - if x, ok := m.GetResult().(*MetricMetadataResponse_Metadata); ok { +func (x *MetricMetadataResponse) GetMetadata() *MetricMetadata { + if x, ok := x.GetResult().(*MetricMetadataResponse_Metadata); ok { return x.Metadata } return nil } -func (m *MetricMetadataResponse) GetWarning() string { - if x, ok := m.GetResult().(*MetricMetadataResponse_Warning); ok { +func (x *MetricMetadataResponse) GetWarning() string { + if x, ok := x.GetResult().(*MetricMetadataResponse_Warning); ok { return x.Warning } return "" } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*MetricMetadataResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*MetricMetadataResponse_Metadata)(nil), - (*MetricMetadataResponse_Warning)(nil), - } -} - -type MetricMetadata struct { - Metadata map[string]*MetricMetadataEntry `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MetricMetadata) Reset() { *m = MetricMetadata{} } -func (m *MetricMetadata) String() string { return proto.CompactTextString(m) } -func (*MetricMetadata) ProtoMessage() {} -func (*MetricMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9ae5661e0dc3fc, []int{2} -} -func (m *MetricMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetricMetadata.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 *MetricMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricMetadata.Merge(m, src) -} -func (m *MetricMetadata) XXX_Size() int { - return m.Size() -} -func (m *MetricMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_MetricMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricMetadata proto.InternalMessageInfo - -func (m *MetricMetadata) GetMetadata() map[string]*MetricMetadataEntry { - if m != nil { - return m.Metadata - } - return nil -} - -type MetricMetadataEntry struct { - Metas []*Meta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MetricMetadataEntry) Reset() { *m = MetricMetadataEntry{} } -func (m *MetricMetadataEntry) String() string { return proto.CompactTextString(m) } -func (*MetricMetadataEntry) ProtoMessage() {} -func (*MetricMetadataEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9ae5661e0dc3fc, []int{3} -} -func (m *MetricMetadataEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricMetadataEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetricMetadataEntry.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 *MetricMetadataEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricMetadataEntry.Merge(m, src) -} -func (m *MetricMetadataEntry) XXX_Size() int { - return m.Size() -} -func (m *MetricMetadataEntry) XXX_DiscardUnknown() { - xxx_messageInfo_MetricMetadataEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricMetadataEntry proto.InternalMessageInfo - -func (m *MetricMetadataEntry) GetMetas() []*Meta { - if m != nil { - return m.Metas - } - return nil -} - -type Meta struct { - // @gotags: json:"type" - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type"` - // @gotags: json:"help" - Help string `protobuf:"bytes,2,opt,name=help,proto3" json:"help"` - // @gotags: json:"unit" - Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Meta) Reset() { *m = Meta{} } -func (m *Meta) String() string { return proto.CompactTextString(m) } -func (*Meta) ProtoMessage() {} -func (*Meta) Descriptor() ([]byte, []int) { - return fileDescriptor_1d9ae5661e0dc3fc, []int{4} -} -func (m *Meta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Meta.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 *Meta) XXX_Merge(src proto.Message) { - xxx_messageInfo_Meta.Merge(m, src) -} -func (m *Meta) XXX_Size() int { - return m.Size() -} -func (m *Meta) XXX_DiscardUnknown() { - xxx_messageInfo_Meta.DiscardUnknown(m) -} - -var xxx_messageInfo_Meta proto.InternalMessageInfo - -func (m *Meta) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *Meta) GetHelp() string { - if m != nil { - return m.Help - } - return "" -} - -func (m *Meta) GetUnit() string { - if m != nil { - return m.Unit - } - return "" -} - -func init() { - proto.RegisterType((*MetricMetadataRequest)(nil), "thanos.MetricMetadataRequest") - proto.RegisterType((*MetricMetadataResponse)(nil), "thanos.MetricMetadataResponse") - proto.RegisterType((*MetricMetadata)(nil), "thanos.MetricMetadata") - proto.RegisterMapType((map[string]*MetricMetadataEntry)(nil), "thanos.MetricMetadata.MetadataEntry") - proto.RegisterType((*MetricMetadataEntry)(nil), "thanos.MetricMetadataEntry") - proto.RegisterType((*Meta)(nil), "thanos.Meta") -} - -func init() { proto.RegisterFile("metadata/metadatapb/rpc.proto", fileDescriptor_1d9ae5661e0dc3fc) } - -var fileDescriptor_1d9ae5661e0dc3fc = []byte{ - // 413 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xc1, 0x8e, 0xd3, 0x30, - 0x10, 0x5d, 0xb7, 0x9b, 0xd0, 0x4e, 0x61, 0x85, 0x0c, 0x94, 0x6c, 0xd0, 0x86, 0x2a, 0xe2, 0x90, - 0x53, 0x02, 0x81, 0x03, 0x70, 0x42, 0x95, 0x90, 0xf6, 0xb2, 0x12, 0x98, 0x0b, 0x02, 0xa1, 0x95, - 0xbb, 0x58, 0x6d, 0x44, 0x9a, 0x18, 0x7b, 0x02, 0xca, 0xef, 0x70, 0xe6, 0x43, 0x38, 0xf2, 0x09, - 0xa8, 0x5f, 0x82, 0x62, 0x27, 0x2d, 0x81, 0x70, 0x89, 0xde, 0xcc, 0xbc, 0xcc, 0x7b, 0x33, 0x1e, - 0x38, 0xdb, 0x0a, 0xe4, 0x1f, 0x39, 0xf2, 0xa4, 0x03, 0x72, 0x95, 0x28, 0x79, 0x15, 0x4b, 0x55, - 0x62, 0x49, 0x5d, 0xdc, 0xf0, 0xa2, 0xd4, 0xfe, 0xa9, 0xc6, 0x52, 0x89, 0xc4, 0x7c, 0xe5, 0x2a, - 0xc1, 0x5a, 0x0a, 0x6d, 0x29, 0xe1, 0x37, 0x02, 0x77, 0x2e, 0x04, 0xaa, 0xec, 0xea, 0xa2, 0xed, - 0xc0, 0xc4, 0xe7, 0x4a, 0x68, 0xa4, 0x73, 0x70, 0xb7, 0xa6, 0xe0, 0x91, 0x05, 0x89, 0xa6, 0xac, - 0x8d, 0xe8, 0x6d, 0x70, 0xf2, 0x6c, 0x9b, 0xa1, 0x37, 0x5a, 0x90, 0xc8, 0x61, 0x36, 0xa0, 0xef, - 0xe1, 0x54, 0x72, 0x85, 0x19, 0xcf, 0x2f, 0x95, 0xd0, 0xb2, 0x2c, 0xb4, 0xb8, 0xd4, 0xa8, 0x38, - 0x8a, 0x75, 0xed, 0x8d, 0x17, 0x24, 0x3a, 0x49, 0xef, 0xc7, 0xd6, 0x4e, 0xfc, 0xca, 0x12, 0x59, - 0xcb, 0x7b, 0xd3, 0xd2, 0xd8, 0x5d, 0x39, 0x5c, 0x08, 0x11, 0xe6, 0x7f, 0x7b, 0xb4, 0x0c, 0xfa, - 0x04, 0x26, 0xdd, 0xe4, 0xc6, 0xe6, 0x2c, 0x9d, 0x77, 0x2a, 0xfd, 0x3f, 0xce, 0x8f, 0xd8, 0x9e, - 0x49, 0x7d, 0xb8, 0xf6, 0x95, 0xab, 0x22, 0x2b, 0xd6, 0x66, 0x88, 0xe9, 0xf9, 0x11, 0xeb, 0x12, - 0xcb, 0x09, 0xb8, 0x4a, 0xe8, 0x2a, 0xc7, 0xf0, 0x3b, 0x81, 0x93, 0x7e, 0x13, 0xfa, 0xa2, 0x27, - 0x37, 0x8e, 0x66, 0xe9, 0x83, 0x61, 0xb9, 0xb8, 0x03, 0x2f, 0x0b, 0x54, 0xf5, 0x41, 0xda, 0x7f, - 0x0b, 0x37, 0x7a, 0x25, 0x7a, 0x13, 0xc6, 0x9f, 0x44, 0xdd, 0xee, 0xb8, 0x81, 0xf4, 0x11, 0x38, - 0x5f, 0x78, 0x5e, 0x09, 0xe3, 0x6d, 0x96, 0xde, 0x1b, 0x56, 0xb0, 0x8d, 0x2d, 0xf3, 0xf9, 0xe8, - 0x29, 0x09, 0x9f, 0xc1, 0xad, 0x01, 0x06, 0x0d, 0xc1, 0x69, 0xc4, 0xb5, 0x37, 0x32, 0x7e, 0xaf, - 0xff, 0xd1, 0x8d, 0x33, 0x5b, 0x0a, 0x97, 0x70, 0xdc, 0x84, 0x94, 0xc2, 0x71, 0x73, 0x1b, 0xad, - 0x19, 0x83, 0x9b, 0xdc, 0x46, 0xe4, 0xd2, 0x2e, 0x8a, 0x19, 0xdc, 0xe4, 0xaa, 0x22, 0x43, 0xf3, - 0xae, 0x53, 0x66, 0x70, 0xfa, 0x01, 0x26, 0xfb, 0x35, 0xbd, 0xfe, 0x67, 0x71, 0x67, 0xc3, 0x43, - 0xb4, 0xb7, 0xe6, 0x07, 0xff, 0x2b, 0xdb, 0x67, 0x7e, 0x48, 0x96, 0xde, 0x8f, 0x5d, 0x40, 0x7e, - 0xee, 0x02, 0xf2, 0x6b, 0x17, 0x90, 0x77, 0x70, 0x38, 0xf7, 0x95, 0x6b, 0x0e, 0xf9, 0xf1, 0xef, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x41, 0xbd, 0xee, 0x0c, 0x03, 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 - -// MetadataClient is the client API for Metadata service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MetadataClient interface { - MetricMetadata(ctx context.Context, in *MetricMetadataRequest, opts ...grpc.CallOption) (Metadata_MetricMetadataClient, error) -} - -type metadataClient struct { - cc *grpc.ClientConn -} - -func NewMetadataClient(cc *grpc.ClientConn) MetadataClient { - return &metadataClient{cc} -} - -func (c *metadataClient) MetricMetadata(ctx context.Context, in *MetricMetadataRequest, opts ...grpc.CallOption) (Metadata_MetricMetadataClient, error) { - stream, err := c.cc.NewStream(ctx, &_Metadata_serviceDesc.Streams[0], "/thanos.Metadata/MetricMetadata", opts...) - if err != nil { - return nil, err - } - x := &metadataMetricMetadataClient{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 Metadata_MetricMetadataClient interface { - Recv() (*MetricMetadataResponse, error) - grpc.ClientStream +type isMetricMetadataResponse_Result interface { + isMetricMetadataResponse_Result() } -type metadataMetricMetadataClient struct { - grpc.ClientStream +type MetricMetadataResponse_Metadata struct { + /// A collection of metric metadata entries. + Metadata *MetricMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` } -func (x *metadataMetricMetadataClient) Recv() (*MetricMetadataResponse, error) { - m := new(MetricMetadataResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type MetricMetadataResponse_Warning struct { + /// warning is considered an information piece in place of series for warning purposes. + /// It is used to warn metadata API users about suspicious cases or partial response (if enabled). + Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof"` } -// MetadataServer is the server API for Metadata service. -type MetadataServer interface { - MetricMetadata(*MetricMetadataRequest, Metadata_MetricMetadataServer) error -} +func (*MetricMetadataResponse_Metadata) isMetricMetadataResponse_Result() {} -// UnimplementedMetadataServer can be embedded to have forward compatible implementations. -type UnimplementedMetadataServer struct { -} +func (*MetricMetadataResponse_Warning) isMetricMetadataResponse_Result() {} -func (*UnimplementedMetadataServer) MetricMetadata(req *MetricMetadataRequest, srv Metadata_MetricMetadataServer) error { - return status.Errorf(codes.Unimplemented, "method MetricMetadata not implemented") -} +type MetricMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func RegisterMetadataServer(s *grpc.Server, srv MetadataServer) { - s.RegisterService(&_Metadata_serviceDesc, srv) + Metadata map[string]*MetricMetadataEntry `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func _Metadata_MetricMetadata_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MetricMetadataRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *MetricMetadata) Reset() { + *x = MetricMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(MetadataServer).MetricMetadata(m, &metadataMetricMetadataServer{stream}) } -type Metadata_MetricMetadataServer interface { - Send(*MetricMetadataResponse) error - grpc.ServerStream +func (x *MetricMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -type metadataMetricMetadataServer struct { - grpc.ServerStream -} - -func (x *metadataMetricMetadataServer) Send(m *MetricMetadataResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Metadata_serviceDesc = grpc.ServiceDesc{ - ServiceName: "thanos.Metadata", - HandlerType: (*MetadataServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "MetricMetadata", - Handler: _Metadata_MetricMetadata_Handler, - ServerStreams: true, - }, - }, - Metadata: "metadata/metadatapb/rpc.proto", -} +func (*MetricMetadata) ProtoMessage() {} -func (m *MetricMetadataRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *MetricMetadata) ProtoReflect() protoreflect.Message { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *MetricMetadataRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *MetricMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PartialResponseStrategy != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy)) - i-- - dAtA[i] = 0x18 - } - if m.Limit != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x10 - } - if len(m.Metric) > 0 { - i -= len(m.Metric) - copy(dAtA[i:], m.Metric) - i = encodeVarintRpc(dAtA, i, uint64(len(m.Metric))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use MetricMetadata.ProtoReflect.Descriptor instead. +func (*MetricMetadata) Descriptor() ([]byte, []int) { + return file_metadata_metadatapb_rpc_proto_rawDescGZIP(), []int{2} } -func (m *MetricMetadataResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *MetricMetadata) GetMetadata() map[string]*MetricMetadataEntry { + if x != nil { + return x.Metadata } - return dAtA[:n], nil -} - -func (m *MetricMetadataResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *MetricMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 -} +type MetricMetadataEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MetricMetadataResponse_Metadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Metas []*Meta `protobuf:"bytes,2,rep,name=metas,proto3" json:"metas,omitempty"` } -func (m *MetricMetadataResponse_Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *MetricMetadataEntry) Reset() { + *x = MetricMetadataEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil -} -func (m *MetricMetadataResponse_Warning) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MetricMetadataResponse_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 *MetricMetadata) 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 (x *MetricMetadataEntry) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MetricMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*MetricMetadataEntry) ProtoMessage() {} -func (m *MetricMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Metadata) > 0 { - for k := range m.Metadata { - v := m.Metadata[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintRpc(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintRpc(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa +func (x *MetricMetadataEntry) ProtoReflect() protoreflect.Message { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *MetricMetadataEntry) 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 *MetricMetadataEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use MetricMetadataEntry.ProtoReflect.Descriptor instead. +func (*MetricMetadataEntry) Descriptor() ([]byte, []int) { + return file_metadata_metadatapb_rpc_proto_rawDescGZIP(), []int{3} } -func (m *MetricMetadataEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } +func (x *MetricMetadataEntry) GetMetas() []*Meta { + if x != nil { + return x.Metas } - return len(dAtA) - i, nil + return nil } -func (m *Meta) 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 -} +type Meta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Meta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + // @gotags: json:"type" + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type"` + // @gotags: json:"help" + Help string `protobuf:"bytes,2,opt,name=help,proto3" json:"help"` + // @gotags: json:"unit" + Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit"` } -func (m *Meta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Unit) > 0 { - i -= len(m.Unit) - copy(dAtA[i:], m.Unit) - i = encodeVarintRpc(dAtA, i, uint64(len(m.Unit))) - i-- - dAtA[i] = 0x1a - } - if len(m.Help) > 0 { - i -= len(m.Help) - copy(dAtA[i:], m.Help) - i = encodeVarintRpc(dAtA, i, uint64(len(m.Help))) - i-- - dAtA[i] = 0x12 - } - if len(m.Type) > 0 { - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintRpc(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa +func (x *Meta) Reset() { + *x = Meta{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - 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 *MetricMetadataRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Metric) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovRpc(uint64(m.Limit)) - } - if m.PartialResponseStrategy != 0 { - n += 1 + sovRpc(uint64(m.PartialResponseStrategy)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *Meta) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MetricMetadataResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - n += m.Result.Size() - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*Meta) ProtoMessage() {} -func (m *MetricMetadataResponse_Metadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovRpc(uint64(l)) - } - return n -} -func (m *MetricMetadataResponse_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 *MetricMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Metadata) > 0 { - for k, v := range m.Metadata { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovRpc(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovRpc(uint64(len(k))) + l - n += mapEntrySize + 1 + sovRpc(uint64(mapEntrySize)) +func (x *Meta) ProtoReflect() protoreflect.Message { + mi := &file_metadata_metadatapb_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func (m *MetricMetadataEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Metas) > 0 { - for _, e := range m.Metas { - l = e.Size() - n += 1 + l + sovRpc(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use Meta.ProtoReflect.Descriptor instead. +func (*Meta) Descriptor() ([]byte, []int) { + return file_metadata_metadatapb_rpc_proto_rawDescGZIP(), []int{4} } -func (m *Meta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - l = len(m.Help) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - l = len(m.Unit) - if l > 0 { - n += 1 + l + sovRpc(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *Meta) GetType() string { + if x != nil { + return x.Type } - return n + return "" } -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 *MetricMetadataRequest) 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: MetricMetadataRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", 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.Metric = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRpc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 |= storepb.PartialResponseStrategy(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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } +func (x *Meta) GetHelp() string { + if x != nil { + return x.Help } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return "" } -func (m *MetricMetadataResponse) 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: MetricMetadataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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 := &MetricMetadata{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Result = &MetricMetadataResponse_Metadata{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 = &MetricMetadataResponse_Warning{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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Meta) GetUnit() string { + if x != nil { + return x.Unit } - return nil + return "" } -func (m *MetricMetadata) 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: MetricMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.Metadata == nil { - m.Metadata = make(map[string]*MetricMetadataEntry) - } - var mapkey string - var mapvalue *MetricMetadataEntry - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRpc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthRpc - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthRpc - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRpc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthRpc - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthRpc - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &MetricMetadataEntry{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipRpc(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRpc - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Metadata[mapkey] = mapvalue - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +var File_metadata_metadatapb_rpc_proto protoreflect.FileDescriptor + +var file_metadata_metadatapb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x06, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xa2, 0x01, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5b, 0x0a, 0x19, 0x70, 0x61, + 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x74, 0x0a, 0x16, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x34, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, + 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x77, 0x61, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xac, 0x01, + 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x1a, 0x58, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x39, 0x0a, 0x13, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x6d, 0x65, 0x74, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x52, 0x05, 0x6d, 0x65, 0x74, 0x61, 0x73, 0x22, 0x42, 0x0a, 0x04, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x32, 0x5d, 0x0a, 0x08, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x51, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x0c, 0x5a, 0x0a, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *MetricMetadataEntry) 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: MetricMetadataEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricMetadataEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metas", 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.Metas = append(m.Metas, &Meta{}) - if err := m.Metas[len(m.Metas)-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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Meta) 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: Meta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Meta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Help", 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.Help = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unit", 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.Unit = 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_metadata_metadatapb_rpc_proto_rawDescOnce sync.Once + file_metadata_metadatapb_rpc_proto_rawDescData = file_metadata_metadatapb_rpc_proto_rawDesc +) - 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 - } +func file_metadata_metadatapb_rpc_proto_rawDescGZIP() []byte { + file_metadata_metadatapb_rpc_proto_rawDescOnce.Do(func() { + file_metadata_metadatapb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_metadata_metadatapb_rpc_proto_rawDescData) + }) + return file_metadata_metadatapb_rpc_proto_rawDescData +} + +var file_metadata_metadatapb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_metadata_metadatapb_rpc_proto_goTypes = []interface{}{ + (*MetricMetadataRequest)(nil), // 0: thanos.MetricMetadataRequest + (*MetricMetadataResponse)(nil), // 1: thanos.MetricMetadataResponse + (*MetricMetadata)(nil), // 2: thanos.MetricMetadata + (*MetricMetadataEntry)(nil), // 3: thanos.MetricMetadataEntry + (*Meta)(nil), // 4: thanos.Meta + nil, // 5: thanos.MetricMetadata.MetadataEntry + (storepb.PartialResponseStrategy)(0), // 6: thanos.PartialResponseStrategy +} +var file_metadata_metadatapb_rpc_proto_depIdxs = []int32{ + 6, // 0: thanos.MetricMetadataRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 2, // 1: thanos.MetricMetadataResponse.metadata:type_name -> thanos.MetricMetadata + 5, // 2: thanos.MetricMetadata.metadata:type_name -> thanos.MetricMetadata.MetadataEntry + 4, // 3: thanos.MetricMetadataEntry.metas:type_name -> thanos.Meta + 3, // 4: thanos.MetricMetadata.MetadataEntry.value:type_name -> thanos.MetricMetadataEntry + 0, // 5: thanos.Metadata.MetricMetadata:input_type -> thanos.MetricMetadataRequest + 1, // 6: thanos.Metadata.MetricMetadata:output_type -> thanos.MetricMetadataResponse + 6, // [6:7] is the sub-list for method output_type + 5, // [5:6] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_metadata_metadatapb_rpc_proto_init() } +func file_metadata_metadatapb_rpc_proto_init() { + if File_metadata_metadatapb_rpc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_metadata_metadatapb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_metadatapb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_metadatapb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_metadatapb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadataEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_metadatapb_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Meta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_metadata_metadatapb_rpc_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*MetricMetadataResponse_Metadata)(nil), + (*MetricMetadataResponse_Warning)(nil), } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_metadata_metadatapb_rpc_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_metadata_metadatapb_rpc_proto_goTypes, + DependencyIndexes: file_metadata_metadatapb_rpc_proto_depIdxs, + MessageInfos: file_metadata_metadatapb_rpc_proto_msgTypes, + }.Build() + File_metadata_metadatapb_rpc_proto = out.File + file_metadata_metadatapb_rpc_proto_rawDesc = nil + file_metadata_metadatapb_rpc_proto_goTypes = nil + file_metadata_metadatapb_rpc_proto_depIdxs = nil } - -var ( - ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/queryfrontend/response.pb.go b/pkg/queryfrontend/response.pb.go index 43507ed030..690aa9bae7 100644 --- a/pkg/queryfrontend/response.pb.go +++ b/pkg/queryfrontend/response.pb.go @@ -1,30 +1,35 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: queryfrontend/response.proto package queryfrontend import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ThanosLabelsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // @gotags: json:"status" Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` // @gotags: json:"data" @@ -34,75 +39,81 @@ type ThanosLabelsResponse struct { // @gotags: json:"error,omitempty" Error string `protobuf:"bytes,4,opt,name=Error,proto3" json:"error,omitempty"` // @gotags: json:"-" - Headers []*ResponseHeader `protobuf:"bytes,5,rep,name=Headers,proto3" json:"-"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Headers []*ResponseHeader `protobuf:"bytes,5,rep,name=Headers,proto3" json:"-"` } -func (m *ThanosLabelsResponse) Reset() { *m = ThanosLabelsResponse{} } -func (m *ThanosLabelsResponse) String() string { return proto.CompactTextString(m) } -func (*ThanosLabelsResponse) ProtoMessage() {} -func (*ThanosLabelsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b882fa7024d92f38, []int{0} +func (x *ThanosLabelsResponse) Reset() { + *x = ThanosLabelsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_queryfrontend_response_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ThanosLabelsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ThanosLabelsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ThanosLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ThanosLabelsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ThanosLabelsResponse) ProtoMessage() {} + +func (x *ThanosLabelsResponse) ProtoReflect() protoreflect.Message { + mi := &file_queryfrontend_response_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ThanosLabelsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ThanosLabelsResponse.Merge(m, src) -} -func (m *ThanosLabelsResponse) XXX_Size() int { - return m.Size() -} -func (m *ThanosLabelsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ThanosLabelsResponse.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ThanosLabelsResponse proto.InternalMessageInfo +// Deprecated: Use ThanosLabelsResponse.ProtoReflect.Descriptor instead. +func (*ThanosLabelsResponse) Descriptor() ([]byte, []int) { + return file_queryfrontend_response_proto_rawDescGZIP(), []int{0} +} -func (m *ThanosLabelsResponse) GetStatus() string { - if m != nil { - return m.Status +func (x *ThanosLabelsResponse) GetStatus() string { + if x != nil { + return x.Status } return "" } -func (m *ThanosLabelsResponse) GetData() []string { - if m != nil { - return m.Data +func (x *ThanosLabelsResponse) GetData() []string { + if x != nil { + return x.Data } return nil } -func (m *ThanosLabelsResponse) GetErrorType() string { - if m != nil { - return m.ErrorType +func (x *ThanosLabelsResponse) GetErrorType() string { + if x != nil { + return x.ErrorType } return "" } -func (m *ThanosLabelsResponse) GetError() string { - if m != nil { - return m.Error +func (x *ThanosLabelsResponse) GetError() string { + if x != nil { + return x.Error } return "" } +func (x *ThanosLabelsResponse) GetHeaders() []*ResponseHeader { + if x != nil { + return x.Headers + } + return nil +} type ThanosSeriesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // @gotags: json:"status" Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` // @gotags: json:"data" @@ -112,1085 +123,260 @@ type ThanosSeriesResponse struct { // @gotags: json:"error,omitempty" Error string `protobuf:"bytes,4,opt,name=Error,proto3" json:"error,omitempty"` // @gotags: json:"-" - Headers []*ResponseHeader `protobuf:"bytes,5,rep,name=Headers,proto3" json:"-"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Headers []*ResponseHeader `protobuf:"bytes,5,rep,name=Headers,proto3" json:"-"` } -func (m *ThanosSeriesResponse) Reset() { *m = ThanosSeriesResponse{} } -func (m *ThanosSeriesResponse) String() string { return proto.CompactTextString(m) } -func (*ThanosSeriesResponse) ProtoMessage() {} -func (*ThanosSeriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b882fa7024d92f38, []int{1} -} -func (m *ThanosSeriesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ThanosSeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ThanosSeriesResponse.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 (x *ThanosSeriesResponse) Reset() { + *x = ThanosSeriesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_queryfrontend_response_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ThanosSeriesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ThanosSeriesResponse.Merge(m, src) -} -func (m *ThanosSeriesResponse) XXX_Size() int { - return m.Size() -} -func (m *ThanosSeriesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ThanosSeriesResponse.DiscardUnknown(m) + +func (x *ThanosSeriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ThanosSeriesResponse proto.InternalMessageInfo +func (*ThanosSeriesResponse) ProtoMessage() {} -func (m *ThanosSeriesResponse) GetStatus() string { - if m != nil { - return m.Status +func (x *ThanosSeriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_queryfrontend_response_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *ThanosSeriesResponse) GetData() []*labelpb.ZLabelSet { - if m != nil { - return m.Data - } - return nil +// Deprecated: Use ThanosSeriesResponse.ProtoReflect.Descriptor instead. +func (*ThanosSeriesResponse) Descriptor() ([]byte, []int) { + return file_queryfrontend_response_proto_rawDescGZIP(), []int{1} } -func (m *ThanosSeriesResponse) GetErrorType() string { - if m != nil { - return m.ErrorType +func (x *ThanosSeriesResponse) GetStatus() string { + if x != nil { + return x.Status } return "" } -func (m *ThanosSeriesResponse) GetError() string { - if m != nil { - return m.Error +func (x *ThanosSeriesResponse) GetData() []*labelpb.ZLabelSet { + if x != nil { + return x.Data } - return "" -} - -type ResponseHeader struct { - // @gotags: json:"-" - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"-"` - // @gotags: json:"-" - Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"-"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return nil } -func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } -func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } -func (*ResponseHeader) ProtoMessage() {} -func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_b882fa7024d92f38, []int{2} -} -func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponseHeader.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 (x *ThanosSeriesResponse) GetErrorType() string { + if x != nil { + return x.ErrorType } -} -func (m *ResponseHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponseHeader.Merge(m, src) -} -func (m *ResponseHeader) XXX_Size() int { - return m.Size() -} -func (m *ResponseHeader) XXX_DiscardUnknown() { - xxx_messageInfo_ResponseHeader.DiscardUnknown(m) + return "" } -var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo - -func (m *ResponseHeader) GetName() string { - if m != nil { - return m.Name +func (x *ThanosSeriesResponse) GetError() string { + if x != nil { + return x.Error } return "" } -func (m *ResponseHeader) GetValues() []string { - if m != nil { - return m.Values +func (x *ThanosSeriesResponse) GetHeaders() []*ResponseHeader { + if x != nil { + return x.Headers } return nil } -func init() { - proto.RegisterType((*ThanosLabelsResponse)(nil), "queryfrontend.ThanosLabelsResponse") - proto.RegisterType((*ThanosSeriesResponse)(nil), "queryfrontend.ThanosSeriesResponse") - proto.RegisterType((*ResponseHeader)(nil), "queryfrontend.ResponseHeader") -} - -func init() { proto.RegisterFile("queryfrontend/response.proto", fileDescriptor_b882fa7024d92f38) } - -var fileDescriptor_b882fa7024d92f38 = []byte{ - // 276 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2c, 0x4d, 0x2d, - 0xaa, 0x4c, 0x2b, 0xca, 0xcf, 0x2b, 0x49, 0xcd, 0x4b, 0xd1, 0x2f, 0x4a, 0x2d, 0x2e, 0xc8, 0xcf, - 0x2b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x45, 0x91, 0x95, 0x92, 0x2c, 0x2e, - 0xc9, 0x2f, 0x4a, 0xd5, 0xcf, 0x49, 0x4c, 0x4a, 0xcd, 0x29, 0x48, 0xd2, 0x2f, 0xa9, 0x2c, 0x48, - 0x2d, 0x86, 0xa8, 0x54, 0x5a, 0xcf, 0xc8, 0x25, 0x12, 0x92, 0x91, 0x98, 0x97, 0x5f, 0xec, 0x03, - 0x92, 0x2d, 0x0e, 0x82, 0x1a, 0x24, 0x24, 0xc6, 0xc5, 0x16, 0x5c, 0x92, 0x58, 0x52, 0x5a, 0x2c, - 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe5, 0x09, 0x09, 0x71, 0xb1, 0xb8, 0x24, 0x96, 0x24, - 0x4a, 0x30, 0x29, 0x30, 0x6b, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x32, 0x5c, 0x9c, 0xae, 0x45, 0x45, - 0xf9, 0x45, 0x21, 0x95, 0x05, 0xa9, 0x12, 0xcc, 0x60, 0xe5, 0x08, 0x01, 0x21, 0x11, 0x2e, 0x56, - 0x30, 0x47, 0x82, 0x05, 0x2c, 0x03, 0xe1, 0x08, 0x99, 0x73, 0xb1, 0x7b, 0xa4, 0x26, 0xa6, 0xa4, - 0x16, 0x15, 0x4b, 0xb0, 0x2a, 0x30, 0x6b, 0x70, 0x1b, 0xc9, 0xea, 0xa1, 0x38, 0x5a, 0x0f, 0xe6, - 0x12, 0x88, 0xaa, 0x20, 0x98, 0x6a, 0xa5, 0x43, 0x70, 0x17, 0x07, 0xa7, 0x16, 0x65, 0xa6, 0x12, - 0x76, 0xb1, 0x2a, 0x92, 0x8b, 0xb9, 0x8d, 0x04, 0xf5, 0x4a, 0xc0, 0x9a, 0xf5, 0xa2, 0xc0, 0x1e, - 0x0e, 0x4e, 0x2d, 0x19, 0x08, 0x4f, 0xd8, 0x70, 0xf1, 0xa1, 0x4a, 0x81, 0xc2, 0xd5, 0x2f, 0x31, - 0x37, 0x15, 0xea, 0x76, 0x30, 0x1b, 0xe4, 0xa3, 0xb0, 0xc4, 0x9c, 0xd2, 0xd4, 0x62, 0x68, 0x68, - 0x43, 0x79, 0x4e, 0x3c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, - 0x63, 0x12, 0x1b, 0x38, 0x26, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x56, 0x5f, 0xfb, - 0x13, 0x02, 0x00, 0x00, -} - -func (m *ThanosLabelsResponse) 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 *ThanosLabelsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ThanosLabelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Headers) > 0 { - for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x22 - } - if len(m.ErrorType) > 0 { - i -= len(m.ErrorType) - copy(dAtA[i:], m.ErrorType) - i = encodeVarintResponse(dAtA, i, uint64(len(m.ErrorType))) - i-- - dAtA[i] = 0x1a - } - if len(m.Data) > 0 { - for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Data[iNdEx]) - copy(dAtA[i:], m.Data[iNdEx]) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Data[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ThanosSeriesResponse) 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 -} +type ResponseHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ThanosSeriesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + // @gotags: json:"-" + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"-"` + // @gotags: json:"-" + Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"-"` } -func (m *ThanosSeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Headers) > 0 { - for iNdEx := len(m.Headers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Headers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Error) > 0 { - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x22 - } - if len(m.ErrorType) > 0 { - i -= len(m.ErrorType) - copy(dAtA[i:], m.ErrorType) - i = encodeVarintResponse(dAtA, i, uint64(len(m.ErrorType))) - i-- - dAtA[i] = 0x1a - } - if len(m.Data) > 0 { - for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } +func (x *ResponseHeader) Reset() { + *x = ResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_queryfrontend_response_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *ResponseHeader) 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 (x *ResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ResponseHeader) ProtoMessage() {} -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 = encodeVarintResponse(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x12 +func (x *ResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_queryfrontend_response_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintResponse(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintResponse(dAtA []byte, offset int, v uint64) int { - offset -= sovResponse(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ThanosLabelsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Status) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - if len(m.Data) > 0 { - for _, s := range m.Data { - l = len(s) - n += 1 + l + sovResponse(uint64(l)) - } - } - l = len(m.ErrorType) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - if len(m.Headers) > 0 { - for _, e := range m.Headers { - l = e.Size() - n += 1 + l + sovResponse(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead. +func (*ResponseHeader) Descriptor() ([]byte, []int) { + return file_queryfrontend_response_proto_rawDescGZIP(), []int{2} } -func (m *ThanosSeriesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Status) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - if len(m.Data) > 0 { - for _, e := range m.Data { - l = e.Size() - n += 1 + l + sovResponse(uint64(l)) - } - } - l = len(m.ErrorType) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) +func (x *ResponseHeader) GetName() string { + if x != nil { + return x.Name } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - if len(m.Headers) > 0 { - for _, e := range m.Headers { - l = e.Size() - n += 1 + l + sovResponse(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 +func (x *ResponseHeader) GetValues() []string { + if x != nil { + return x.Values } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovResponse(uint64(l)) - } - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovResponse(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func sovResponse(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozResponse(x uint64) (n int) { - return sovResponse(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +var File_queryfrontend_response_proto protoreflect.FileDescriptor + +var file_queryfrontend_response_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x2f, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x1a, 0x19, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x14, 0x54, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, + 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x37, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x14, 0x54, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x44, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x04, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x66, + 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, + 0x3c, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ThanosLabelsResponse) 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 ErrIntOverflowResponse - } - 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: ThanosLabelsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ThanosLabelsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Headers = append(m.Headers, &ResponseHeader{}) - if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ThanosSeriesResponse) 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 ErrIntOverflowResponse - } - 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: ThanosSeriesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ThanosSeriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data, &labelpb.ZLabelSet{}) - if err := m.Data[len(m.Data)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Headers = append(m.Headers, &ResponseHeader{}) - if err := m.Headers[len(m.Headers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_queryfrontend_response_proto_rawDescOnce sync.Once + file_queryfrontend_response_proto_rawDescData = file_queryfrontend_response_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResponseHeader) 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 ErrIntOverflowResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break +func file_queryfrontend_response_proto_rawDescGZIP() []byte { + file_queryfrontend_response_proto_rawDescOnce.Do(func() { + file_queryfrontend_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_queryfrontend_response_proto_rawDescData) + }) + return file_queryfrontend_response_proto_rawDescData +} + +var file_queryfrontend_response_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_queryfrontend_response_proto_goTypes = []interface{}{ + (*ThanosLabelsResponse)(nil), // 0: queryfrontend.ThanosLabelsResponse + (*ThanosSeriesResponse)(nil), // 1: queryfrontend.ThanosSeriesResponse + (*ResponseHeader)(nil), // 2: queryfrontend.ResponseHeader + (*labelpb.ZLabelSet)(nil), // 3: thanos.ZLabelSet +} +var file_queryfrontend_response_proto_depIdxs = []int32{ + 2, // 0: queryfrontend.ThanosLabelsResponse.Headers:type_name -> queryfrontend.ResponseHeader + 3, // 1: queryfrontend.ThanosSeriesResponse.Data:type_name -> thanos.ZLabelSet + 2, // 2: queryfrontend.ThanosSeriesResponse.Headers:type_name -> queryfrontend.ResponseHeader + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_queryfrontend_response_proto_init() } +func file_queryfrontend_response_proto_init() { + if File_queryfrontend_response_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_queryfrontend_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ThanosLabelsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResponseHeader: 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 ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 ErrIntOverflowResponse - } - 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 ErrInvalidLengthResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipResponse(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, ErrIntOverflowResponse - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + file_queryfrontend_response_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ThanosSeriesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowResponse - } - 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, ErrIntOverflowResponse - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } + file_queryfrontend_response_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponseHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if length < 0 { - return 0, ErrInvalidLengthResponse - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupResponse - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthResponse - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_queryfrontend_response_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_queryfrontend_response_proto_goTypes, + DependencyIndexes: file_queryfrontend_response_proto_depIdxs, + MessageInfos: file_queryfrontend_response_proto_msgTypes, + }.Build() + File_queryfrontend_response_proto = out.File + file_queryfrontend_response_proto_rawDesc = nil + file_queryfrontend_response_proto_goTypes = nil + file_queryfrontend_response_proto_depIdxs = nil } - -var ( - ErrInvalidLengthResponse = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowResponse = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupResponse = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/rules/rulespb/rpc.proto b/pkg/rules/rulespb/rpc.proto index 7e69f45f3a..f31f18707c 100644 --- a/pkg/rules/rulespb/rpc.proto +++ b/pkg/rules/rulespb/rpc.proto @@ -9,7 +9,7 @@ import "store/labelpb/types.proto"; //import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "rulespb"; +option go_package = "store/rulespb"; // option (gogoproto.sizer_all) = true; // option (gogoproto.marshaler_all) = true; diff --git a/pkg/store/hintspb/hints.pb.go b/pkg/store/hintspb/hints.pb.go index 1218d4d261..ff6722f288 100644 --- a/pkg/store/hintspb/hints.pb.go +++ b/pkg/store/hintspb/hints.pb.go @@ -1,1498 +1,559 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: store/hintspb/hints.proto package hintspb import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" storepb "github.com/thanos-io/thanos/pkg/store/storepb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type SeriesRequestHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// block_matchers is a list of label matchers that are evaluated against each single block's /// labels to filter which blocks get queried. If the list is empty, no per-block filtering /// is applied. - BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SeriesRequestHints) Reset() { *m = SeriesRequestHints{} } -func (m *SeriesRequestHints) String() string { return proto.CompactTextString(m) } -func (*SeriesRequestHints) ProtoMessage() {} -func (*SeriesRequestHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{0} -} -func (m *SeriesRequestHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SeriesRequestHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SeriesRequestHints.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 *SeriesRequestHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_SeriesRequestHints.Merge(m, src) -} -func (m *SeriesRequestHints) XXX_Size() int { - return m.Size() -} -func (m *SeriesRequestHints) XXX_DiscardUnknown() { - xxx_messageInfo_SeriesRequestHints.DiscardUnknown(m) -} - -var xxx_messageInfo_SeriesRequestHints proto.InternalMessageInfo - -func (m *SeriesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { - if m != nil { - return m.BlockMatchers - } - return nil -} - -type SeriesResponseHints struct { - /// queried_blocks is the list of blocks that have been queried. - QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` } -func (m *SeriesResponseHints) Reset() { *m = SeriesResponseHints{} } -func (m *SeriesResponseHints) String() string { return proto.CompactTextString(m) } -func (*SeriesResponseHints) ProtoMessage() {} -func (*SeriesResponseHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{1} -} -func (m *SeriesResponseHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SeriesResponseHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SeriesResponseHints.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 (x *SeriesRequestHints) Reset() { + *x = SeriesRequestHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SeriesResponseHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_SeriesResponseHints.Merge(m, src) -} -func (m *SeriesResponseHints) XXX_Size() int { - return m.Size() -} -func (m *SeriesResponseHints) XXX_DiscardUnknown() { - xxx_messageInfo_SeriesResponseHints.DiscardUnknown(m) -} -var xxx_messageInfo_SeriesResponseHints proto.InternalMessageInfo - -func (m *SeriesResponseHints) GetQueriedBlocks() []*Block { - if m != nil { - return m.QueriedBlocks - } - return nil +func (x *SeriesRequestHints) String() string { + return protoimpl.X.MessageStringOf(x) } -type Block struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*SeriesRequestHints) ProtoMessage() {} -func (m *Block) Reset() { *m = Block{} } -func (m *Block) String() string { return proto.CompactTextString(m) } -func (*Block) ProtoMessage() {} -func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{2} -} -func (m *Block) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Block.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SeriesRequestHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *Block) XXX_Merge(src proto.Message) { - xxx_messageInfo_Block.Merge(m, src) -} -func (m *Block) XXX_Size() int { - return m.Size() -} -func (m *Block) XXX_DiscardUnknown() { - xxx_messageInfo_Block.DiscardUnknown(m) -} - -var xxx_messageInfo_Block proto.InternalMessageInfo -func (m *Block) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type LabelNamesRequestHints struct { - /// block_matchers is a list of label matchers that are evaluated against each single block's - /// labels to filter which blocks get queried. If the list is empty, no per-block filtering - /// is applied. - BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LabelNamesRequestHints) Reset() { *m = LabelNamesRequestHints{} } -func (m *LabelNamesRequestHints) String() string { return proto.CompactTextString(m) } -func (*LabelNamesRequestHints) ProtoMessage() {} -func (*LabelNamesRequestHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{3} -} -func (m *LabelNamesRequestHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelNamesRequestHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelNamesRequestHints.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 *LabelNamesRequestHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelNamesRequestHints.Merge(m, src) -} -func (m *LabelNamesRequestHints) XXX_Size() int { - return m.Size() -} -func (m *LabelNamesRequestHints) XXX_DiscardUnknown() { - xxx_messageInfo_LabelNamesRequestHints.DiscardUnknown(m) +// Deprecated: Use SeriesRequestHints.ProtoReflect.Descriptor instead. +func (*SeriesRequestHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_LabelNamesRequestHints proto.InternalMessageInfo - -func (m *LabelNamesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { - if m != nil { - return m.BlockMatchers +func (x *SeriesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { + if x != nil { + return x.BlockMatchers } return nil } -type LabelNamesResponseHints struct { +type SeriesResponseHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + /// queried_blocks is the list of blocks that have been queried. - QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` } -func (m *LabelNamesResponseHints) Reset() { *m = LabelNamesResponseHints{} } -func (m *LabelNamesResponseHints) String() string { return proto.CompactTextString(m) } -func (*LabelNamesResponseHints) ProtoMessage() {} -func (*LabelNamesResponseHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{4} -} -func (m *LabelNamesResponseHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelNamesResponseHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelNamesResponseHints.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 (x *SeriesResponseHints) Reset() { + *x = SeriesResponseHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LabelNamesResponseHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelNamesResponseHints.Merge(m, src) -} -func (m *LabelNamesResponseHints) XXX_Size() int { - return m.Size() -} -func (m *LabelNamesResponseHints) XXX_DiscardUnknown() { - xxx_messageInfo_LabelNamesResponseHints.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelNamesResponseHints proto.InternalMessageInfo -func (m *LabelNamesResponseHints) GetQueriedBlocks() []*Block { - if m != nil { - return m.QueriedBlocks - } - return nil +func (x *SeriesResponseHints) String() string { + return protoimpl.X.MessageStringOf(x) } -type LabelValuesRequestHints struct { - /// block_matchers is a list of label matchers that are evaluated against each single block's - /// labels to filter which blocks get queried. If the list is empty, no per-block filtering - /// is applied. - BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*SeriesResponseHints) ProtoMessage() {} -func (m *LabelValuesRequestHints) Reset() { *m = LabelValuesRequestHints{} } -func (m *LabelValuesRequestHints) String() string { return proto.CompactTextString(m) } -func (*LabelValuesRequestHints) ProtoMessage() {} -func (*LabelValuesRequestHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{5} -} -func (m *LabelValuesRequestHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelValuesRequestHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelValuesRequestHints.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *SeriesResponseHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *LabelValuesRequestHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelValuesRequestHints.Merge(m, src) -} -func (m *LabelValuesRequestHints) XXX_Size() int { - return m.Size() -} -func (m *LabelValuesRequestHints) XXX_DiscardUnknown() { - xxx_messageInfo_LabelValuesRequestHints.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_LabelValuesRequestHints proto.InternalMessageInfo - -func (m *LabelValuesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { - if m != nil { - return m.BlockMatchers - } - return nil -} - -type LabelValuesResponseHints struct { - /// queried_blocks is the list of blocks that have been queried. - QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use SeriesResponseHints.ProtoReflect.Descriptor instead. +func (*SeriesResponseHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{1} } -func (m *LabelValuesResponseHints) Reset() { *m = LabelValuesResponseHints{} } -func (m *LabelValuesResponseHints) String() string { return proto.CompactTextString(m) } -func (*LabelValuesResponseHints) ProtoMessage() {} -func (*LabelValuesResponseHints) Descriptor() ([]byte, []int) { - return fileDescriptor_b82aa23c4c11e83f, []int{6} -} -func (m *LabelValuesResponseHints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelValuesResponseHints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelValuesResponseHints.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 *LabelValuesResponseHints) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelValuesResponseHints.Merge(m, src) -} -func (m *LabelValuesResponseHints) XXX_Size() int { - return m.Size() -} -func (m *LabelValuesResponseHints) XXX_DiscardUnknown() { - xxx_messageInfo_LabelValuesResponseHints.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelValuesResponseHints proto.InternalMessageInfo - -func (m *LabelValuesResponseHints) GetQueriedBlocks() []*Block { - if m != nil { - return m.QueriedBlocks +func (x *SeriesResponseHints) GetQueriedBlocks() []*Block { + if x != nil { + return x.QueriedBlocks } return nil } -func init() { - proto.RegisterType((*SeriesRequestHints)(nil), "hintspb.SeriesRequestHints") - proto.RegisterType((*SeriesResponseHints)(nil), "hintspb.SeriesResponseHints") - proto.RegisterType((*Block)(nil), "hintspb.Block") - proto.RegisterType((*LabelNamesRequestHints)(nil), "hintspb.LabelNamesRequestHints") - proto.RegisterType((*LabelNamesResponseHints)(nil), "hintspb.LabelNamesResponseHints") - proto.RegisterType((*LabelValuesRequestHints)(nil), "hintspb.LabelValuesRequestHints") - proto.RegisterType((*LabelValuesResponseHints)(nil), "hintspb.LabelValuesResponseHints") -} +type Block struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func init() { proto.RegisterFile("store/hintspb/hints.proto", fileDescriptor_b82aa23c4c11e83f) } - -var fileDescriptor_b82aa23c4c11e83f = []byte{ - // 258 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x2e, 0xc9, 0x2f, - 0x4a, 0xd5, 0xcf, 0xc8, 0xcc, 0x2b, 0x29, 0x2e, 0x48, 0x82, 0xd0, 0x7a, 0x05, 0x45, 0xf9, 0x25, - 0xf9, 0x42, 0xec, 0x50, 0x41, 0x29, 0xa8, 0x1a, 0x30, 0x59, 0x90, 0xa4, 0x5f, 0x52, 0x59, 0x90, - 0x0a, 0x55, 0xa3, 0x14, 0xc8, 0x25, 0x14, 0x9c, 0x5a, 0x94, 0x99, 0x5a, 0x1c, 0x94, 0x5a, 0x58, - 0x9a, 0x5a, 0x5c, 0xe2, 0x01, 0xd2, 0x22, 0x64, 0xcd, 0xc5, 0x97, 0x94, 0x93, 0x9f, 0x9c, 0x1d, - 0x9f, 0x9b, 0x58, 0x92, 0x9c, 0x91, 0x5a, 0x54, 0x2c, 0xc1, 0xa8, 0xc0, 0xac, 0xc1, 0x6d, 0x24, - 0xa2, 0x57, 0x92, 0x91, 0x98, 0x97, 0x5f, 0xac, 0xe7, 0x93, 0x98, 0x94, 0x9a, 0xe3, 0x0b, 0x91, - 0x0c, 0xe2, 0x05, 0xab, 0x85, 0xf2, 0x8a, 0x95, 0x7c, 0xb8, 0x84, 0x61, 0x46, 0x16, 0x17, 0xe4, - 0xe7, 0x15, 0xa7, 0x42, 0xcc, 0x34, 0xe5, 0xe2, 0x2b, 0x2c, 0x05, 0x89, 0xa7, 0xc4, 0x83, 0xd5, - 0xc3, 0xcc, 0xe4, 0xd3, 0x83, 0x3a, 0x53, 0xcf, 0x09, 0x24, 0x1c, 0xc4, 0x0b, 0x55, 0x05, 0xe6, - 0x15, 0x2b, 0x89, 0x73, 0xb1, 0x82, 0x59, 0x42, 0x7c, 0x5c, 0x4c, 0x99, 0x29, 0x12, 0x8c, 0x0a, - 0x8c, 0x1a, 0x9c, 0x41, 0x4c, 0x99, 0x29, 0x4a, 0xa1, 0x5c, 0x62, 0x60, 0x57, 0xf8, 0x25, 0xe6, - 0x52, 0xd3, 0xf5, 0x01, 0x5c, 0xe2, 0xc8, 0xc6, 0x52, 0xc1, 0x07, 0x61, 0x50, 0x13, 0xc3, 0x12, - 0x73, 0x4a, 0xa9, 0xe9, 0xd2, 0x40, 0x2e, 0x09, 0x14, 0x73, 0x29, 0x77, 0xaa, 0x93, 0xe8, 0x89, - 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x18, 0x05, 0x4b, 0x3f, 0x49, - 0x6c, 0xe0, 0xb4, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x20, 0x58, 0x75, 0x0f, 0x6c, 0x02, - 0x00, 0x00, + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *SeriesRequestHints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Block) Reset() { + *x = Block{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *SeriesRequestHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *Block) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SeriesRequestHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.BlockMatchers) > 0 { - for iNdEx := len(m.BlockMatchers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlockMatchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} +func (*Block) ProtoMessage() {} -func (m *SeriesResponseHints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Block) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *SeriesResponseHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use Block.ProtoReflect.Descriptor instead. +func (*Block) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{2} } -func (m *SeriesResponseHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *Block) GetId() string { + if x != nil { + return x.Id } - if len(m.QueriedBlocks) > 0 { - for iNdEx := len(m.QueriedBlocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.QueriedBlocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return "" } -func (m *Block) 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 -} +type LabelNamesRequestHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Block) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + /// block_matchers is a list of label matchers that are evaluated against each single block's + /// labels to filter which blocks get queried. If the list is empty, no per-block filtering + /// is applied. + BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` } -func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *LabelNamesRequestHints) Reset() { + *x = LabelNamesRequestHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintHints(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *LabelNamesRequestHints) 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 (x *LabelNamesRequestHints) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelNamesRequestHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*LabelNamesRequestHints) ProtoMessage() {} -func (m *LabelNamesRequestHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.BlockMatchers) > 0 { - for iNdEx := len(m.BlockMatchers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlockMatchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *LabelNamesRequestHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func (m *LabelNamesResponseHints) 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 *LabelNamesResponseHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use LabelNamesRequestHints.ProtoReflect.Descriptor instead. +func (*LabelNamesRequestHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{3} } -func (m *LabelNamesResponseHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *LabelNamesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { + if x != nil { + return x.BlockMatchers } - if len(m.QueriedBlocks) > 0 { - for iNdEx := len(m.QueriedBlocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.QueriedBlocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return nil } -func (m *LabelValuesRequestHints) 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 -} +type LabelNamesResponseHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LabelValuesRequestHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + /// queried_blocks is the list of blocks that have been queried. + QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` } -func (m *LabelValuesRequestHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *LabelNamesResponseHints) Reset() { + *x = LabelNamesResponseHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.BlockMatchers) > 0 { - for iNdEx := len(m.BlockMatchers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlockMatchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil } -func (m *LabelValuesResponseHints) 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 (x *LabelNamesResponseHints) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelValuesResponseHints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*LabelNamesResponseHints) ProtoMessage() {} -func (m *LabelValuesResponseHints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.QueriedBlocks) > 0 { - for iNdEx := len(m.QueriedBlocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.QueriedBlocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHints(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (x *LabelNamesResponseHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintHints(dAtA []byte, offset int, v uint64) int { - offset -= sovHints(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *SeriesRequestHints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.BlockMatchers) > 0 { - for _, e := range m.BlockMatchers { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use LabelNamesResponseHints.ProtoReflect.Descriptor instead. +func (*LabelNamesResponseHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{4} } -func (m *SeriesResponseHints) Size() (n int) { - if m == nil { - return 0 +func (x *LabelNamesResponseHints) GetQueriedBlocks() []*Block { + if x != nil { + return x.QueriedBlocks } - var l int - _ = l - if len(m.QueriedBlocks) > 0 { - for _, e := range m.QueriedBlocks { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return nil } -func (m *Block) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovHints(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +type LabelValuesRequestHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LabelNamesRequestHints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.BlockMatchers) > 0 { - for _, e := range m.BlockMatchers { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + /// block_matchers is a list of label matchers that are evaluated against each single block's + /// labels to filter which blocks get queried. If the list is empty, no per-block filtering + /// is applied. + BlockMatchers []*storepb.LabelMatcher `protobuf:"bytes,1,rep,name=block_matchers,json=blockMatchers,proto3" json:"block_matchers,omitempty"` } -func (m *LabelNamesResponseHints) Size() (n int) { - if m == nil { - return 0 +func (x *LabelValuesRequestHints) Reset() { + *x = LabelValuesRequestHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - var l int - _ = l - if len(m.QueriedBlocks) > 0 { - for _, e := range m.QueriedBlocks { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n } -func (m *LabelValuesRequestHints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.BlockMatchers) > 0 { - for _, e := range m.BlockMatchers { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *LabelValuesRequestHints) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelValuesResponseHints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.QueriedBlocks) > 0 { - for _, e := range m.QueriedBlocks { - l = e.Size() - n += 1 + l + sovHints(uint64(l)) +func (*LabelValuesRequestHints) ProtoMessage() {} + +func (x *LabelValuesRequestHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func sovHints(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHints(x uint64) (n int) { - return sovHints(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use LabelValuesRequestHints.ProtoReflect.Descriptor instead. +func (*LabelValuesRequestHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{5} } -func (m *SeriesRequestHints) 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 ErrIntOverflowHints - } - 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: SeriesRequestHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SeriesRequestHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockMatchers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockMatchers = append(m.BlockMatchers, &storepb.LabelMatcher{}) - if err := m.BlockMatchers[len(m.BlockMatchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelValuesRequestHints) GetBlockMatchers() []*storepb.LabelMatcher { + if x != nil { + return x.BlockMatchers } return nil } -func (m *SeriesResponseHints) 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 ErrIntOverflowHints - } - 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: SeriesResponseHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SeriesResponseHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueriedBlocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueriedBlocks = append(m.QueriedBlocks, &Block{}) - if err := m.QueriedBlocks[len(m.QueriedBlocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Block) 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 ErrIntOverflowHints - } - 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: Block: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - 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 ErrInvalidLengthHints - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +type LabelValuesResponseHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + /// queried_blocks is the list of blocks that have been queried. + QueriedBlocks []*Block `protobuf:"bytes,1,rep,name=queried_blocks,json=queriedBlocks,proto3" json:"queried_blocks,omitempty"` } -func (m *LabelNamesRequestHints) 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 ErrIntOverflowHints - } - 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: LabelNamesRequestHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelNamesRequestHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockMatchers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockMatchers = append(m.BlockMatchers, &storepb.LabelMatcher{}) - if err := m.BlockMatchers[len(m.BlockMatchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelValuesResponseHints) Reset() { + *x = LabelValuesResponseHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_hintspb_hints_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *LabelNamesResponseHints) 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 ErrIntOverflowHints - } - 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: LabelNamesResponseHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelNamesResponseHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueriedBlocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueriedBlocks = append(m.QueriedBlocks, &Block{}) - if err := m.QueriedBlocks[len(m.QueriedBlocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *LabelValuesResponseHints) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelValuesRequestHints) 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 ErrIntOverflowHints - } - 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: LabelValuesRequestHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelValuesRequestHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockMatchers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlockMatchers = append(m.BlockMatchers, &storepb.LabelMatcher{}) - if err := m.BlockMatchers[len(m.BlockMatchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy + +func (*LabelValuesResponseHints) ProtoMessage() {} + +func (x *LabelValuesResponseHints) ProtoReflect() protoreflect.Message { + mi := &file_store_hintspb_hints_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } + return mi.MessageOf(x) +} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use LabelValuesResponseHints.ProtoReflect.Descriptor instead. +func (*LabelValuesResponseHints) Descriptor() ([]byte, []int) { + return file_store_hintspb_hints_proto_rawDescGZIP(), []int{6} } -func (m *LabelValuesResponseHints) 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 ErrIntOverflowHints - } - 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: LabelValuesResponseHints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelValuesResponseHints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueriedBlocks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHints - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHints - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHints - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueriedBlocks = append(m.QueriedBlocks, &Block{}) - if err := m.QueriedBlocks[len(m.QueriedBlocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHints(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHints - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelValuesResponseHints) GetQueriedBlocks() []*Block { + if x != nil { + return x.QueriedBlocks } return nil } -func skipHints(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, ErrIntOverflowHints - } - 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, ErrIntOverflowHints - } - 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, ErrIntOverflowHints - } - 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, ErrInvalidLengthHints - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHints - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHints - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF + +var File_store_hintspb_hints_proto protoreflect.FileDescriptor + +var file_store_hintspb_hints_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x2f, + 0x68, 0x69, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x68, 0x69, 0x6e, + 0x74, 0x73, 0x70, 0x62, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x51, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x72, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x72, 0x73, 0x22, 0x4c, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x35, 0x0a, 0x0e, 0x71, 0x75, 0x65, + 0x72, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x2e, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x22, 0x17, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x16, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x69, + 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x68, + 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x72, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, + 0x22, 0x50, 0x0a, 0x17, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x35, 0x0a, 0x0e, 0x71, + 0x75, 0x65, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x2e, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x22, 0x56, 0x0a, 0x17, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, + 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x0d, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x22, 0x51, 0x0a, 0x18, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x35, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, + 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, + 0x2e, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0d, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x42, 0x0f, 0x5a, + 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthHints = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHints = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHints = fmt.Errorf("proto: unexpected end of group") + file_store_hintspb_hints_proto_rawDescOnce sync.Once + file_store_hintspb_hints_proto_rawDescData = file_store_hintspb_hints_proto_rawDesc ) + +func file_store_hintspb_hints_proto_rawDescGZIP() []byte { + file_store_hintspb_hints_proto_rawDescOnce.Do(func() { + file_store_hintspb_hints_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_hintspb_hints_proto_rawDescData) + }) + return file_store_hintspb_hints_proto_rawDescData +} + +var file_store_hintspb_hints_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_store_hintspb_hints_proto_goTypes = []interface{}{ + (*SeriesRequestHints)(nil), // 0: hintspb.SeriesRequestHints + (*SeriesResponseHints)(nil), // 1: hintspb.SeriesResponseHints + (*Block)(nil), // 2: hintspb.Block + (*LabelNamesRequestHints)(nil), // 3: hintspb.LabelNamesRequestHints + (*LabelNamesResponseHints)(nil), // 4: hintspb.LabelNamesResponseHints + (*LabelValuesRequestHints)(nil), // 5: hintspb.LabelValuesRequestHints + (*LabelValuesResponseHints)(nil), // 6: hintspb.LabelValuesResponseHints + (*storepb.LabelMatcher)(nil), // 7: thanos.LabelMatcher +} +var file_store_hintspb_hints_proto_depIdxs = []int32{ + 7, // 0: hintspb.SeriesRequestHints.block_matchers:type_name -> thanos.LabelMatcher + 2, // 1: hintspb.SeriesResponseHints.queried_blocks:type_name -> hintspb.Block + 7, // 2: hintspb.LabelNamesRequestHints.block_matchers:type_name -> thanos.LabelMatcher + 2, // 3: hintspb.LabelNamesResponseHints.queried_blocks:type_name -> hintspb.Block + 7, // 4: hintspb.LabelValuesRequestHints.block_matchers:type_name -> thanos.LabelMatcher + 2, // 5: hintspb.LabelValuesResponseHints.queried_blocks:type_name -> hintspb.Block + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_store_hintspb_hints_proto_init() } +func file_store_hintspb_hints_proto_init() { + if File_store_hintspb_hints_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_store_hintspb_hints_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SeriesRequestHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SeriesResponseHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Block); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelNamesRequestHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelNamesResponseHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValuesRequestHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_hintspb_hints_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValuesResponseHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_hintspb_hints_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_store_hintspb_hints_proto_goTypes, + DependencyIndexes: file_store_hintspb_hints_proto_depIdxs, + MessageInfos: file_store_hintspb_hints_proto_msgTypes, + }.Build() + File_store_hintspb_hints_proto = out.File + file_store_hintspb_hints_proto_rawDesc = nil + file_store_hintspb_hints_proto_goTypes = nil + file_store_hintspb_hints_proto_depIdxs = nil +} diff --git a/pkg/store/hintspb/hints.proto b/pkg/store/hintspb/hints.proto index 5b2f04b39a..cbe5e66009 100644 --- a/pkg/store/hintspb/hints.proto +++ b/pkg/store/hintspb/hints.proto @@ -7,7 +7,7 @@ package hintspb; //import "gogoproto/gogo.proto"; import "store/storepb/types.proto"; -option go_package = "hintspb"; +option go_package = "store/hintspb"; // option (gogoproto.sizer_all) = true; // option (gogoproto.marshaler_all) = true; @@ -58,4 +58,4 @@ message LabelValuesRequestHints { message LabelValuesResponseHints { /// queried_blocks is the list of blocks that have been queried. repeated Block queried_blocks = 1; -} \ No newline at end of file +} diff --git a/pkg/store/labelpb/types.pb.go b/pkg/store/labelpb/types.pb.go index c042c05b22..8754f75d03 100644 --- a/pkg/store/labelpb/types.pb.go +++ b/pkg/store/labelpb/types.pb.go @@ -1,762 +1,284 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: store/labelpb/types.proto package labelpb import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Label struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Label) Reset() { *m = Label{} } -func (m *Label) String() string { return proto.CompactTextString(m) } -func (*Label) ProtoMessage() {} -func (*Label) Descriptor() ([]byte, []int) { - return fileDescriptor_cdcc9e7dae4870e8, []int{0} -} -func (m *Label) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Label.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 *Label) XXX_Merge(src proto.Message) { - xxx_messageInfo_Label.Merge(m, src) + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (m *Label) XXX_Size() int { - return m.Size() -} -func (m *Label) XXX_DiscardUnknown() { - xxx_messageInfo_Label.DiscardUnknown(m) -} - -var xxx_messageInfo_Label proto.InternalMessageInfo -func (m *Label) GetName() string { - if m != nil { - return m.Name +func (x *Label) Reset() { + *x = Label{} + if protoimpl.UnsafeEnabled { + mi := &file_store_labelpb_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *Label) GetValue() string { - if m != nil { - return m.Value - } - return "" +func (x *Label) String() string { + return protoimpl.X.MessageStringOf(x) } -type LabelSet struct { - Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*Label) ProtoMessage() {} -func (m *LabelSet) Reset() { *m = LabelSet{} } -func (m *LabelSet) String() string { return proto.CompactTextString(m) } -func (*LabelSet) ProtoMessage() {} -func (*LabelSet) Descriptor() ([]byte, []int) { - return fileDescriptor_cdcc9e7dae4870e8, []int{1} -} -func (m *LabelSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *Label) ProtoReflect() protoreflect.Message { + mi := &file_store_labelpb_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *LabelSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelSet.Merge(m, src) -} -func (m *LabelSet) XXX_Size() int { - return m.Size() -} -func (m *LabelSet) XXX_DiscardUnknown() { - xxx_messageInfo_LabelSet.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelSet proto.InternalMessageInfo - -func (m *LabelSet) GetLabels() []*Label { - if m != nil { - return m.Labels + return ms } - return nil + return mi.MessageOf(x) } -type ZLabelSet struct { - Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use Label.ProtoReflect.Descriptor instead. +func (*Label) Descriptor() ([]byte, []int) { + return file_store_labelpb_types_proto_rawDescGZIP(), []int{0} } -func (m *ZLabelSet) Reset() { *m = ZLabelSet{} } -func (m *ZLabelSet) String() string { return proto.CompactTextString(m) } -func (*ZLabelSet) ProtoMessage() {} -func (*ZLabelSet) Descriptor() ([]byte, []int) { - return fileDescriptor_cdcc9e7dae4870e8, []int{2} -} -func (m *ZLabelSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ZLabelSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ZLabelSet.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 (x *Label) GetName() string { + if x != nil { + return x.Name } + return "" } -func (m *ZLabelSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ZLabelSet.Merge(m, src) -} -func (m *ZLabelSet) XXX_Size() int { - return m.Size() -} -func (m *ZLabelSet) XXX_DiscardUnknown() { - xxx_messageInfo_ZLabelSet.DiscardUnknown(m) -} - -var xxx_messageInfo_ZLabelSet proto.InternalMessageInfo -func (m *ZLabelSet) GetLabels() []*Label { - if m != nil { - return m.Labels +func (x *Label) GetValue() string { + if x != nil { + return x.Value } - return nil + return "" } -func init() { - proto.RegisterType((*Label)(nil), "thanos.Label") - proto.RegisterType((*LabelSet)(nil), "thanos.LabelSet") - proto.RegisterType((*ZLabelSet)(nil), "thanos.ZLabelSet") -} +type LabelSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func init() { proto.RegisterFile("store/labelpb/types.proto", fileDescriptor_cdcc9e7dae4870e8) } - -var fileDescriptor_cdcc9e7dae4870e8 = []byte{ - // 162 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x2e, 0xc9, 0x2f, - 0x4a, 0xd5, 0xcf, 0x49, 0x4c, 0x4a, 0xcd, 0x29, 0x48, 0xd2, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2b, 0xc9, 0x48, 0xcc, 0xcb, 0x2f, 0x56, 0x32, 0xe4, - 0x62, 0xf5, 0x01, 0x49, 0x0b, 0x09, 0x71, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, - 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, 0xac, 0x65, 0x89, 0x39, 0xa5, 0xa9, 0x12, 0x4c, - 0x60, 0x41, 0x08, 0x47, 0xc9, 0x90, 0x8b, 0x03, 0xac, 0x25, 0x38, 0xb5, 0x44, 0x48, 0x95, 0x8b, - 0x0d, 0x6c, 0x7a, 0xb1, 0x04, 0xa3, 0x02, 0xb3, 0x06, 0xb7, 0x11, 0xaf, 0x1e, 0xc4, 0x5c, 0x3d, - 0xb0, 0x8a, 0x20, 0xa8, 0xa4, 0x92, 0x11, 0x17, 0x67, 0x14, 0x89, 0x7a, 0x9c, 0x44, 0x4f, 0x3c, - 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x28, 0x76, 0xa8, 0x27, 0x92, - 0xd8, 0xc0, 0xee, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xcd, 0x3d, 0x7d, 0xdc, 0x00, - 0x00, 0x00, + Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` } -func (m *Label) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *LabelSet) Reset() { + *x = LabelSet{} + if protoimpl.UnsafeEnabled { + mi := &file_store_labelpb_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *Label) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *LabelSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*LabelSet) ProtoMessage() {} -func (m *LabelSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *LabelSet) ProtoReflect() protoreflect.Message { + mi := &file_store_labelpb_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *LabelSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use LabelSet.ProtoReflect.Descriptor instead. +func (*LabelSet) Descriptor() ([]byte, []int) { + return file_store_labelpb_types_proto_rawDescGZIP(), []int{1} } -func (m *LabelSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } +func (x *LabelSet) GetLabels() []*Label { + if x != nil { + return x.Labels } - return len(dAtA) - i, nil + return nil } -func (m *ZLabelSet) 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 -} +type ZLabelSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ZLabelSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` } -func (m *ZLabelSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *ZLabelSet) Reset() { + *x = ZLabelSet{} + if protoimpl.UnsafeEnabled { + mi := &file_store_labelpb_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Label) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *ZLabelSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Labels) > 0 { - for _, e := range m.Labels { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*ZLabelSet) ProtoMessage() {} -func (m *ZLabelSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Labels) > 0 { - for _, e := range m.Labels { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) +func (x *ZLabelSet) ProtoReflect() protoreflect.Message { + mi := &file_store_labelpb_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return mi.MessageOf(x) } -func sovTypes(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use ZLabelSet.ProtoReflect.Descriptor instead. +func (*ZLabelSet) Descriptor() ([]byte, []int) { + return file_store_labelpb_types_proto_rawDescGZIP(), []int{2} } -func (m *Label) 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 ErrIntOverflowTypes - } - 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: Label: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Label: 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 ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ZLabelSet) GetLabels() []*Label { + if x != nil { + return x.Labels } return nil } -func (m *LabelSet) 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 ErrIntOverflowTypes - } - 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: LabelSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Labels = append(m.Labels, &Label{}) - if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ZLabelSet) 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 ErrIntOverflowTypes - } - 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: ZLabelSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ZLabelSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Labels = append(m.Labels, &Label{}) - if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var File_store_labelpb_types_proto protoreflect.FileDescriptor - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +var file_store_labelpb_types_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x22, 0x31, 0x0a, 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x31, 0x0a, 0x08, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, + 0x65, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, 0x32, 0x0a, 0x09, 0x5a, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x42, 0x0f, 0x5a, + 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func skipTypes(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, ErrIntOverflowTypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + +var ( + file_store_labelpb_types_proto_rawDescOnce sync.Once + file_store_labelpb_types_proto_rawDescData = file_store_labelpb_types_proto_rawDesc +) + +func file_store_labelpb_types_proto_rawDescGZIP() []byte { + file_store_labelpb_types_proto_rawDescOnce.Do(func() { + file_store_labelpb_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_labelpb_types_proto_rawDescData) + }) + return file_store_labelpb_types_proto_rawDescData +} + +var file_store_labelpb_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_store_labelpb_types_proto_goTypes = []interface{}{ + (*Label)(nil), // 0: thanos.Label + (*LabelSet)(nil), // 1: thanos.LabelSet + (*ZLabelSet)(nil), // 2: thanos.ZLabelSet +} +var file_store_labelpb_types_proto_depIdxs = []int32{ + 0, // 0: thanos.LabelSet.labels:type_name -> thanos.Label + 0, // 1: thanos.ZLabelSet.labels:type_name -> thanos.Label + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_store_labelpb_types_proto_init() } +func file_store_labelpb_types_proto_init() { + if File_store_labelpb_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_store_labelpb_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Label); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTypes - } - 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, ErrIntOverflowTypes - } - 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, ErrInvalidLengthTypes + file_store_labelpb_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTypes } - if depth == 0 { - return iNdEx, nil + file_store_labelpb_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ZLabelSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_labelpb_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_store_labelpb_types_proto_goTypes, + DependencyIndexes: file_store_labelpb_types_proto_depIdxs, + MessageInfos: file_store_labelpb_types_proto_msgTypes, + }.Build() + File_store_labelpb_types_proto = out.File + file_store_labelpb_types_proto_rawDesc = nil + file_store_labelpb_types_proto_goTypes = nil + file_store_labelpb_types_proto_depIdxs = nil } - -var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/store/labelpb/types.proto b/pkg/store/labelpb/types.proto index f6a8717cc5..0ba94bb957 100644 --- a/pkg/store/labelpb/types.proto +++ b/pkg/store/labelpb/types.proto @@ -4,7 +4,7 @@ syntax = "proto3"; package thanos; -option go_package = "labelpb"; +option go_package = "store/labelpb"; //import "gogoproto/gogo.proto"; diff --git a/pkg/store/prompb/remote.pb.go b/pkg/store/prompb/remote.pb.go new file mode 100644 index 0000000000..a82ef045da --- /dev/null +++ b/pkg/store/prompb/remote.pb.go @@ -0,0 +1,650 @@ +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Copyright 2016 Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 +// source: store/storepb/prompb/remote.proto + +package prompb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ReadRequest_ResponseType int32 + +const ( + // Server will return a single ReadResponse message with matched series that includes list of raw samples. + // It's recommended to use streamed response types instead. + // + // Response headers: + // Content-Type: "application/x-protobuf" + // Content-Encoding: "snappy" + ReadRequest_SAMPLES ReadRequest_ResponseType = 0 + // Server will stream a delimited ChunkedReadResponse message that contains XOR encoded chunks for a single series. + // Each message is following varint size and fixed size bigendian uint32 for CRC32 Castagnoli checksum. + // + // Response headers: + // Content-Type: "application/x-streamed-protobuf; proto=prometheus.ChunkedReadResponse" + // Content-Encoding: "" + ReadRequest_STREAMED_XOR_CHUNKS ReadRequest_ResponseType = 1 +) + +// Enum value maps for ReadRequest_ResponseType. +var ( + ReadRequest_ResponseType_name = map[int32]string{ + 0: "SAMPLES", + 1: "STREAMED_XOR_CHUNKS", + } + ReadRequest_ResponseType_value = map[string]int32{ + "SAMPLES": 0, + "STREAMED_XOR_CHUNKS": 1, + } +) + +func (x ReadRequest_ResponseType) Enum() *ReadRequest_ResponseType { + p := new(ReadRequest_ResponseType) + *p = x + return p +} + +func (x ReadRequest_ResponseType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ReadRequest_ResponseType) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_prompb_remote_proto_enumTypes[0].Descriptor() +} + +func (ReadRequest_ResponseType) Type() protoreflect.EnumType { + return &file_store_storepb_prompb_remote_proto_enumTypes[0] +} + +func (x ReadRequest_ResponseType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ReadRequest_ResponseType.Descriptor instead. +func (ReadRequest_ResponseType) EnumDescriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{1, 0} +} + +type WriteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timeseries []*TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"` + Metadata []*MetricMetadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *WriteRequest) Reset() { + *x = WriteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WriteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WriteRequest) ProtoMessage() {} + +func (x *WriteRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. +func (*WriteRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{0} +} + +func (x *WriteRequest) GetTimeseries() []*TimeSeries { + if x != nil { + return x.Timeseries + } + return nil +} + +func (x *WriteRequest) GetMetadata() []*MetricMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +// ReadRequest represents a remote read request. +type ReadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Queries []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` + // accepted_response_types allows negotiating the content type of the response. + // + // Response types are taken from the list in the FIFO order. If no response type in `accepted_response_types` is + // implemented by server, error is returned. + // For request that do not contain `accepted_response_types` field the SAMPLES response type will be used. + AcceptedResponseTypes []ReadRequest_ResponseType `protobuf:"varint,2,rep,packed,name=accepted_response_types,json=acceptedResponseTypes,proto3,enum=prometheus_copy.ReadRequest_ResponseType" json:"accepted_response_types,omitempty"` +} + +func (x *ReadRequest) Reset() { + *x = ReadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadRequest) ProtoMessage() {} + +func (x *ReadRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead. +func (*ReadRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{1} +} + +func (x *ReadRequest) GetQueries() []*Query { + if x != nil { + return x.Queries + } + return nil +} + +func (x *ReadRequest) GetAcceptedResponseTypes() []ReadRequest_ResponseType { + if x != nil { + return x.AcceptedResponseTypes + } + return nil +} + +// ReadResponse is a response when response_type equals SAMPLES. +type ReadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // In same order as the request's queries. + Results []*QueryResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` +} + +func (x *ReadResponse) Reset() { + *x = ReadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadResponse) ProtoMessage() {} + +func (x *ReadResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead. +func (*ReadResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{2} +} + +func (x *ReadResponse) GetResults() []*QueryResult { + if x != nil { + return x.Results + } + return nil +} + +type Query struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` + EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` + Matchers []*LabelMatcher `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers,omitempty"` + Hints *ReadHints `protobuf:"bytes,4,opt,name=hints,proto3" json:"hints,omitempty"` +} + +func (x *Query) Reset() { + *x = Query{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Query) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Query) ProtoMessage() {} + +func (x *Query) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Query.ProtoReflect.Descriptor instead. +func (*Query) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{3} +} + +func (x *Query) GetStartTimestampMs() int64 { + if x != nil { + return x.StartTimestampMs + } + return 0 +} + +func (x *Query) GetEndTimestampMs() int64 { + if x != nil { + return x.EndTimestampMs + } + return 0 +} + +func (x *Query) GetMatchers() []*LabelMatcher { + if x != nil { + return x.Matchers + } + return nil +} + +func (x *Query) GetHints() *ReadHints { + if x != nil { + return x.Hints + } + return nil +} + +type QueryResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Samples within a time series must be ordered by time. + Timeseries []*TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"` +} + +func (x *QueryResult) Reset() { + *x = QueryResult{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResult) ProtoMessage() {} + +func (x *QueryResult) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead. +func (*QueryResult) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryResult) GetTimeseries() []*TimeSeries { + if x != nil { + return x.Timeseries + } + return nil +} + +// ChunkedReadResponse is a response when response_type equals STREAMED_XOR_CHUNKS. +// We 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 chunks will +// be sent for previous one. +type ChunkedReadResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChunkedSeries []*ChunkedSeries `protobuf:"bytes,1,rep,name=chunked_series,json=chunkedSeries,proto3" json:"chunked_series,omitempty"` + // query_index represents an index of the query from ReadRequest.queries these chunks relates to. + QueryIndex int64 `protobuf:"varint,2,opt,name=query_index,json=queryIndex,proto3" json:"query_index,omitempty"` +} + +func (x *ChunkedReadResponse) Reset() { + *x = ChunkedReadResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChunkedReadResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChunkedReadResponse) ProtoMessage() {} + +func (x *ChunkedReadResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_remote_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChunkedReadResponse.ProtoReflect.Descriptor instead. +func (*ChunkedReadResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_remote_proto_rawDescGZIP(), []int{5} +} + +func (x *ChunkedReadResponse) GetChunkedSeries() []*ChunkedSeries { + if x != nil { + return x.ChunkedSeries + } + return nil +} + +func (x *ChunkedReadResponse) GetQueryIndex() int64 { + if x != nil { + return x.QueryIndex + } + return 0 +} + +var File_store_storepb_prompb_remote_proto protoreflect.FileDescriptor + +var file_store_storepb_prompb_remote_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, + 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, + 0x63, 0x6f, 0x70, 0x79, 0x1a, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x70, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, + 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, + 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xd8, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, + 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x17, 0x61, 0x63, 0x63, + 0x65, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, + 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x0c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, + 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x53, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x52, + 0x45, 0x41, 0x4d, 0x45, 0x44, 0x5f, 0x58, 0x4f, 0x52, 0x5f, 0x43, 0x48, 0x55, 0x4e, 0x4b, 0x53, + 0x10, 0x01, 0x22, 0x46, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, + 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x05, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x4d, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x6e, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x73, 0x12, 0x39, 0x0a, 0x08, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, + 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x08, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, + 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x48, 0x69, 0x6e, + 0x74, 0x73, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x22, 0x4a, 0x0a, 0x0b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, + 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x7d, 0x0a, 0x13, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, + 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0e, + 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, + 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x0d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0e, 0x5a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_store_storepb_prompb_remote_proto_rawDescOnce sync.Once + file_store_storepb_prompb_remote_proto_rawDescData = file_store_storepb_prompb_remote_proto_rawDesc +) + +func file_store_storepb_prompb_remote_proto_rawDescGZIP() []byte { + file_store_storepb_prompb_remote_proto_rawDescOnce.Do(func() { + file_store_storepb_prompb_remote_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_storepb_prompb_remote_proto_rawDescData) + }) + return file_store_storepb_prompb_remote_proto_rawDescData +} + +var file_store_storepb_prompb_remote_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_store_storepb_prompb_remote_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_store_storepb_prompb_remote_proto_goTypes = []interface{}{ + (ReadRequest_ResponseType)(0), // 0: prometheus_copy.ReadRequest.ResponseType + (*WriteRequest)(nil), // 1: prometheus_copy.WriteRequest + (*ReadRequest)(nil), // 2: prometheus_copy.ReadRequest + (*ReadResponse)(nil), // 3: prometheus_copy.ReadResponse + (*Query)(nil), // 4: prometheus_copy.Query + (*QueryResult)(nil), // 5: prometheus_copy.QueryResult + (*ChunkedReadResponse)(nil), // 6: prometheus_copy.ChunkedReadResponse + (*TimeSeries)(nil), // 7: prometheus_copy.TimeSeries + (*MetricMetadata)(nil), // 8: prometheus_copy.MetricMetadata + (*LabelMatcher)(nil), // 9: prometheus_copy.LabelMatcher + (*ReadHints)(nil), // 10: prometheus_copy.ReadHints + (*ChunkedSeries)(nil), // 11: prometheus_copy.ChunkedSeries +} +var file_store_storepb_prompb_remote_proto_depIdxs = []int32{ + 7, // 0: prometheus_copy.WriteRequest.timeseries:type_name -> prometheus_copy.TimeSeries + 8, // 1: prometheus_copy.WriteRequest.metadata:type_name -> prometheus_copy.MetricMetadata + 4, // 2: prometheus_copy.ReadRequest.queries:type_name -> prometheus_copy.Query + 0, // 3: prometheus_copy.ReadRequest.accepted_response_types:type_name -> prometheus_copy.ReadRequest.ResponseType + 5, // 4: prometheus_copy.ReadResponse.results:type_name -> prometheus_copy.QueryResult + 9, // 5: prometheus_copy.Query.matchers:type_name -> prometheus_copy.LabelMatcher + 10, // 6: prometheus_copy.Query.hints:type_name -> prometheus_copy.ReadHints + 7, // 7: prometheus_copy.QueryResult.timeseries:type_name -> prometheus_copy.TimeSeries + 11, // 8: prometheus_copy.ChunkedReadResponse.chunked_series:type_name -> prometheus_copy.ChunkedSeries + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_store_storepb_prompb_remote_proto_init() } +func file_store_storepb_prompb_remote_proto_init() { + if File_store_storepb_prompb_remote_proto != nil { + return + } + file_store_storepb_prompb_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_store_storepb_prompb_remote_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_remote_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_remote_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_remote_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Query); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_remote_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_remote_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChunkedReadResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_storepb_prompb_remote_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_store_storepb_prompb_remote_proto_goTypes, + DependencyIndexes: file_store_storepb_prompb_remote_proto_depIdxs, + EnumInfos: file_store_storepb_prompb_remote_proto_enumTypes, + MessageInfos: file_store_storepb_prompb_remote_proto_msgTypes, + }.Build() + File_store_storepb_prompb_remote_proto = out.File + file_store_storepb_prompb_remote_proto_rawDesc = nil + file_store_storepb_prompb_remote_proto_goTypes = nil + file_store_storepb_prompb_remote_proto_depIdxs = nil +} diff --git a/pkg/store/prompb/types.pb.go b/pkg/store/prompb/types.pb.go new file mode 100644 index 0000000000..f239e7f236 --- /dev/null +++ b/pkg/store/prompb/types.pb.go @@ -0,0 +1,1009 @@ +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Copyright 2017 Prometheus Team +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 +// source: store/storepb/prompb/types.proto + +package prompb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + labelpb "store/labelpb" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type MetricMetadata_MetricType int32 + +const ( + MetricMetadata_UNKNOWN MetricMetadata_MetricType = 0 + MetricMetadata_COUNTER MetricMetadata_MetricType = 1 + MetricMetadata_GAUGE MetricMetadata_MetricType = 2 + MetricMetadata_HISTOGRAM MetricMetadata_MetricType = 3 + MetricMetadata_GAUGEHISTOGRAM MetricMetadata_MetricType = 4 + MetricMetadata_SUMMARY MetricMetadata_MetricType = 5 + MetricMetadata_INFO MetricMetadata_MetricType = 6 + MetricMetadata_STATESET MetricMetadata_MetricType = 7 +) + +// Enum value maps for MetricMetadata_MetricType. +var ( + MetricMetadata_MetricType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COUNTER", + 2: "GAUGE", + 3: "HISTOGRAM", + 4: "GAUGEHISTOGRAM", + 5: "SUMMARY", + 6: "INFO", + 7: "STATESET", + } + MetricMetadata_MetricType_value = map[string]int32{ + "UNKNOWN": 0, + "COUNTER": 1, + "GAUGE": 2, + "HISTOGRAM": 3, + "GAUGEHISTOGRAM": 4, + "SUMMARY": 5, + "INFO": 6, + "STATESET": 7, + } +) + +func (x MetricMetadata_MetricType) Enum() *MetricMetadata_MetricType { + p := new(MetricMetadata_MetricType) + *p = x + return p +} + +func (x MetricMetadata_MetricType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MetricMetadata_MetricType) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_prompb_types_proto_enumTypes[0].Descriptor() +} + +func (MetricMetadata_MetricType) Type() protoreflect.EnumType { + return &file_store_storepb_prompb_types_proto_enumTypes[0] +} + +func (x MetricMetadata_MetricType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MetricMetadata_MetricType.Descriptor instead. +func (MetricMetadata_MetricType) EnumDescriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{0, 0} +} + +type LabelMatcher_Type int32 + +const ( + LabelMatcher_EQ LabelMatcher_Type = 0 + LabelMatcher_NEQ LabelMatcher_Type = 1 + LabelMatcher_RE LabelMatcher_Type = 2 + LabelMatcher_NRE LabelMatcher_Type = 3 +) + +// Enum value maps for LabelMatcher_Type. +var ( + LabelMatcher_Type_name = map[int32]string{ + 0: "EQ", + 1: "NEQ", + 2: "RE", + 3: "NRE", + } + LabelMatcher_Type_value = map[string]int32{ + "EQ": 0, + "NEQ": 1, + "RE": 2, + "NRE": 3, + } +) + +func (x LabelMatcher_Type) Enum() *LabelMatcher_Type { + p := new(LabelMatcher_Type) + *p = x + return p +} + +func (x LabelMatcher_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LabelMatcher_Type) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_prompb_types_proto_enumTypes[1].Descriptor() +} + +func (LabelMatcher_Type) Type() protoreflect.EnumType { + return &file_store_storepb_prompb_types_proto_enumTypes[1] +} + +func (x LabelMatcher_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LabelMatcher_Type.Descriptor instead. +func (LabelMatcher_Type) EnumDescriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{4, 0} +} + +// We require this to match chunkenc.Encoding. +type Chunk_Encoding int32 + +const ( + Chunk_UNKNOWN Chunk_Encoding = 0 + Chunk_XOR Chunk_Encoding = 1 +) + +// Enum value maps for Chunk_Encoding. +var ( + Chunk_Encoding_name = map[int32]string{ + 0: "UNKNOWN", + 1: "XOR", + } + Chunk_Encoding_value = map[string]int32{ + "UNKNOWN": 0, + "XOR": 1, + } +) + +func (x Chunk_Encoding) Enum() *Chunk_Encoding { + p := new(Chunk_Encoding) + *p = x + return p +} + +func (x Chunk_Encoding) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Chunk_Encoding) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_prompb_types_proto_enumTypes[2].Descriptor() +} + +func (Chunk_Encoding) Type() protoreflect.EnumType { + return &file_store_storepb_prompb_types_proto_enumTypes[2] +} + +func (x Chunk_Encoding) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Chunk_Encoding.Descriptor instead. +func (Chunk_Encoding) EnumDescriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{6, 0} +} + +type MetricMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents the metric type, these match the set from Prometheus. + // Refer to pkg/textparse/interface.go for details. + Type MetricMetadata_MetricType `protobuf:"varint,1,opt,name=type,proto3,enum=prometheus_copy.MetricMetadata_MetricType" json:"type,omitempty"` + MetricFamilyName string `protobuf:"bytes,2,opt,name=metric_family_name,json=metricFamilyName,proto3" json:"metric_family_name,omitempty"` + Help string `protobuf:"bytes,4,opt,name=help,proto3" json:"help,omitempty"` + Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` +} + +func (x *MetricMetadata) Reset() { + *x = MetricMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetricMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetricMetadata) ProtoMessage() {} + +func (x *MetricMetadata) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MetricMetadata.ProtoReflect.Descriptor instead. +func (*MetricMetadata) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{0} +} + +func (x *MetricMetadata) GetType() MetricMetadata_MetricType { + if x != nil { + return x.Type + } + return MetricMetadata_UNKNOWN +} + +func (x *MetricMetadata) GetMetricFamilyName() string { + if x != nil { + return x.MetricFamilyName + } + return "" +} + +func (x *MetricMetadata) GetHelp() string { + if x != nil { + return x.Help + } + return "" +} + +func (x *MetricMetadata) GetUnit() string { + if x != nil { + return x.Unit + } + return "" +} + +type Sample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *Sample) Reset() { + *x = Sample{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Sample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Sample) ProtoMessage() {} + +func (x *Sample) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Sample.ProtoReflect.Descriptor instead. +func (*Sample) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{1} +} + +func (x *Sample) GetValue() float64 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *Sample) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +type Exemplar struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional, can be empty. + Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` + // timestamp is in ms format, see pkg/timestamp/timestamp.go for + // conversion from time.Time to Prometheus timestamp. + Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *Exemplar) Reset() { + *x = Exemplar{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Exemplar) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Exemplar) ProtoMessage() {} + +func (x *Exemplar) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Exemplar.ProtoReflect.Descriptor instead. +func (*Exemplar) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{2} +} + +func (x *Exemplar) GetLabels() []*labelpb.Label { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Exemplar) GetValue() float64 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *Exemplar) GetTimestamp() int64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +// TimeSeries represents samples and labels for a single time series. +type TimeSeries struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Labels have to be sorted by label names and without duplicated label names. + // TODO(bwplotka): Don't use zero copy ZLabels, see https://github.com/thanos-io/thanos/pull/3279 for details. + Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + Samples []*Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"` + Exemplars []*Exemplar `protobuf:"bytes,3,rep,name=exemplars,proto3" json:"exemplars,omitempty"` +} + +func (x *TimeSeries) Reset() { + *x = TimeSeries{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeSeries) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeSeries) ProtoMessage() {} + +func (x *TimeSeries) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead. +func (*TimeSeries) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{3} +} + +func (x *TimeSeries) GetLabels() []*labelpb.Label { + if x != nil { + return x.Labels + } + return nil +} + +func (x *TimeSeries) GetSamples() []*Sample { + if x != nil { + return x.Samples + } + return nil +} + +func (x *TimeSeries) GetExemplars() []*Exemplar { + if x != nil { + return x.Exemplars + } + return nil +} + +// Matcher specifies a rule, which can match or set of labels or not. +type LabelMatcher struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type LabelMatcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=prometheus_copy.LabelMatcher_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *LabelMatcher) Reset() { + *x = LabelMatcher{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LabelMatcher) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LabelMatcher) ProtoMessage() {} + +func (x *LabelMatcher) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LabelMatcher.ProtoReflect.Descriptor instead. +func (*LabelMatcher) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{4} +} + +func (x *LabelMatcher) GetType() LabelMatcher_Type { + if x != nil { + return x.Type + } + return LabelMatcher_EQ +} + +func (x *LabelMatcher) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *LabelMatcher) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type ReadHints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StepMs int64 `protobuf:"varint,1,opt,name=step_ms,json=stepMs,proto3" json:"step_ms,omitempty"` // Query step size in milliseconds. + Func string `protobuf:"bytes,2,opt,name=func,proto3" json:"func,omitempty"` // String representation of surrounding function or aggregation. + StartMs int64 `protobuf:"varint,3,opt,name=start_ms,json=startMs,proto3" json:"start_ms,omitempty"` // Start time in milliseconds. + EndMs int64 `protobuf:"varint,4,opt,name=end_ms,json=endMs,proto3" json:"end_ms,omitempty"` // End time in milliseconds. + Grouping []string `protobuf:"bytes,5,rep,name=grouping,proto3" json:"grouping,omitempty"` // List of label names used in aggregation. + By bool `protobuf:"varint,6,opt,name=by,proto3" json:"by,omitempty"` // Indicate whether it is without or by. + RangeMs int64 `protobuf:"varint,7,opt,name=range_ms,json=rangeMs,proto3" json:"range_ms,omitempty"` // Range vector selector range in milliseconds. +} + +func (x *ReadHints) Reset() { + *x = ReadHints{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadHints) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadHints) ProtoMessage() {} + +func (x *ReadHints) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadHints.ProtoReflect.Descriptor instead. +func (*ReadHints) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{5} +} + +func (x *ReadHints) GetStepMs() int64 { + if x != nil { + return x.StepMs + } + return 0 +} + +func (x *ReadHints) GetFunc() string { + if x != nil { + return x.Func + } + return "" +} + +func (x *ReadHints) GetStartMs() int64 { + if x != nil { + return x.StartMs + } + return 0 +} + +func (x *ReadHints) GetEndMs() int64 { + if x != nil { + return x.EndMs + } + return 0 +} + +func (x *ReadHints) GetGrouping() []string { + if x != nil { + return x.Grouping + } + return nil +} + +func (x *ReadHints) GetBy() bool { + if x != nil { + return x.By + } + return false +} + +func (x *ReadHints) GetRangeMs() int64 { + if x != nil { + return x.RangeMs + } + return 0 +} + +// Chunk represents a TSDB chunk. +// Time range [min, max] is inclusive. +type Chunk struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MinTimeMs int64 `protobuf:"varint,1,opt,name=min_time_ms,json=minTimeMs,proto3" json:"min_time_ms,omitempty"` + MaxTimeMs int64 `protobuf:"varint,2,opt,name=max_time_ms,json=maxTimeMs,proto3" json:"max_time_ms,omitempty"` + Type Chunk_Encoding `protobuf:"varint,3,opt,name=type,proto3,enum=prometheus_copy.Chunk_Encoding" json:"type,omitempty"` + Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *Chunk) Reset() { + *x = Chunk{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Chunk) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Chunk) ProtoMessage() {} + +func (x *Chunk) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Chunk.ProtoReflect.Descriptor instead. +func (*Chunk) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{6} +} + +func (x *Chunk) GetMinTimeMs() int64 { + if x != nil { + return x.MinTimeMs + } + return 0 +} + +func (x *Chunk) GetMaxTimeMs() int64 { + if x != nil { + return x.MaxTimeMs + } + return 0 +} + +func (x *Chunk) GetType() Chunk_Encoding { + if x != nil { + return x.Type + } + return Chunk_UNKNOWN +} + +func (x *Chunk) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +// ChunkedSeries represents single, encoded time series. +type ChunkedSeries struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Labels should be sorted. + Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + // Chunks will be in start time order and may overlap. + Chunks []*Chunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks,omitempty"` +} + +func (x *ChunkedSeries) Reset() { + *x = ChunkedSeries{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_prompb_types_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChunkedSeries) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChunkedSeries) ProtoMessage() {} + +func (x *ChunkedSeries) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_prompb_types_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChunkedSeries.ProtoReflect.Descriptor instead. +func (*ChunkedSeries) Descriptor() ([]byte, []int) { + return file_store_storepb_prompb_types_proto_rawDescGZIP(), []int{7} +} + +func (x *ChunkedSeries) GetLabels() []*labelpb.Label { + if x != nil { + return x.Labels + } + return nil +} + +func (x *ChunkedSeries) GetChunks() []*Chunk { + if x != nil { + return x.Chunks + } + return nil +} + +var File_store_storepb_prompb_types_proto protoreflect.FileDescriptor + +var file_store_storepb_prompb_types_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, + 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, + 0x6f, 0x70, 0x79, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, + 0x02, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, + 0x79, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x66, 0x61, 0x6d, 0x69, + 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, + 0x65, 0x6c, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x79, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, + 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x49, + 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x47, 0x41, 0x55, + 0x47, 0x45, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x04, 0x12, 0x0b, 0x0a, + 0x07, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, + 0x46, 0x4f, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x54, 0x41, 0x54, 0x45, 0x53, 0x45, 0x54, + 0x10, 0x07, 0x22, 0x3c, 0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x22, 0x65, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x12, 0x25, 0x0a, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x9f, 0x01, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x31, 0x0a, + 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, + 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, + 0x12, 0x37, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, + 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x52, 0x09, + 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x22, 0x9a, 0x01, 0x0a, 0x0c, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, + 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x04, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, + 0x4e, 0x45, 0x51, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, + 0x03, 0x4e, 0x52, 0x45, 0x10, 0x03, 0x22, 0xb1, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x61, 0x64, 0x48, + 0x69, 0x6e, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x6d, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x65, 0x70, 0x4d, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x66, 0x75, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x75, 0x6e, + 0x63, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x73, 0x12, 0x15, 0x0a, 0x06, + 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, + 0x64, 0x4d, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x67, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x67, 0x12, + 0x0e, 0x0a, 0x02, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x62, 0x79, 0x12, + 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x05, 0x43, + 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x54, 0x69, + 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, + 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, + 0x69, 0x6e, 0x67, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x20, 0x0a, + 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x4f, 0x52, 0x10, 0x01, 0x22, + 0x66, 0x0a, 0x0d, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, + 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, + 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x42, 0x0e, 0x5a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_store_storepb_prompb_types_proto_rawDescOnce sync.Once + file_store_storepb_prompb_types_proto_rawDescData = file_store_storepb_prompb_types_proto_rawDesc +) + +func file_store_storepb_prompb_types_proto_rawDescGZIP() []byte { + file_store_storepb_prompb_types_proto_rawDescOnce.Do(func() { + file_store_storepb_prompb_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_storepb_prompb_types_proto_rawDescData) + }) + return file_store_storepb_prompb_types_proto_rawDescData +} + +var file_store_storepb_prompb_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_store_storepb_prompb_types_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_store_storepb_prompb_types_proto_goTypes = []interface{}{ + (MetricMetadata_MetricType)(0), // 0: prometheus_copy.MetricMetadata.MetricType + (LabelMatcher_Type)(0), // 1: prometheus_copy.LabelMatcher.Type + (Chunk_Encoding)(0), // 2: prometheus_copy.Chunk.Encoding + (*MetricMetadata)(nil), // 3: prometheus_copy.MetricMetadata + (*Sample)(nil), // 4: prometheus_copy.Sample + (*Exemplar)(nil), // 5: prometheus_copy.Exemplar + (*TimeSeries)(nil), // 6: prometheus_copy.TimeSeries + (*LabelMatcher)(nil), // 7: prometheus_copy.LabelMatcher + (*ReadHints)(nil), // 8: prometheus_copy.ReadHints + (*Chunk)(nil), // 9: prometheus_copy.Chunk + (*ChunkedSeries)(nil), // 10: prometheus_copy.ChunkedSeries + (*labelpb.Label)(nil), // 11: thanos.Label +} +var file_store_storepb_prompb_types_proto_depIdxs = []int32{ + 0, // 0: prometheus_copy.MetricMetadata.type:type_name -> prometheus_copy.MetricMetadata.MetricType + 11, // 1: prometheus_copy.Exemplar.labels:type_name -> thanos.Label + 11, // 2: prometheus_copy.TimeSeries.labels:type_name -> thanos.Label + 4, // 3: prometheus_copy.TimeSeries.samples:type_name -> prometheus_copy.Sample + 5, // 4: prometheus_copy.TimeSeries.exemplars:type_name -> prometheus_copy.Exemplar + 1, // 5: prometheus_copy.LabelMatcher.type:type_name -> prometheus_copy.LabelMatcher.Type + 2, // 6: prometheus_copy.Chunk.type:type_name -> prometheus_copy.Chunk.Encoding + 11, // 7: prometheus_copy.ChunkedSeries.labels:type_name -> thanos.Label + 9, // 8: prometheus_copy.ChunkedSeries.chunks:type_name -> prometheus_copy.Chunk + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_store_storepb_prompb_types_proto_init() } +func file_store_storepb_prompb_types_proto_init() { + if File_store_storepb_prompb_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_store_storepb_prompb_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Sample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Exemplar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeSeries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelMatcher); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadHints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Chunk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_prompb_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChunkedSeries); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_storepb_prompb_types_proto_rawDesc, + NumEnums: 3, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_store_storepb_prompb_types_proto_goTypes, + DependencyIndexes: file_store_storepb_prompb_types_proto_depIdxs, + EnumInfos: file_store_storepb_prompb_types_proto_enumTypes, + MessageInfos: file_store_storepb_prompb_types_proto_msgTypes, + }.Build() + File_store_storepb_prompb_types_proto = out.File + file_store_storepb_prompb_types_proto_rawDesc = nil + file_store_storepb_prompb_types_proto_goTypes = nil + file_store_storepb_prompb_types_proto_depIdxs = nil +} diff --git a/pkg/store/rulespb/rpc.pb.go b/pkg/store/rulespb/rpc.pb.go new file mode 100644 index 0000000000..f2d84ac8ae --- /dev/null +++ b/pkg/store/rulespb/rpc.pb.go @@ -0,0 +1,1262 @@ +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 +// source: rules/rulespb/rpc.proto + +package rulespb + +import ( + _ "github.com/golang/protobuf/ptypes/timestamp" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + labelpb "store/labelpb" + storepb "store/storepb" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +/// AlertState represents state of the alert. Has to match 1:1 Prometheus AlertState: +// +// StateInactive is the state of an alert that is neither firing nor pending. +//StateInactive AlertState = iota +// StatePending is the state of an alert that has been active for less than +// the configured threshold duration. +//StatePending +// StateFiring is the state of an alert that has been active for longer than +// the configured threshold duration. +//StateFiring +type AlertState int32 + +const ( + AlertState_INACTIVE AlertState = 0 + AlertState_PENDING AlertState = 1 + AlertState_FIRING AlertState = 2 +) + +// Enum value maps for AlertState. +var ( + AlertState_name = map[int32]string{ + 0: "INACTIVE", + 1: "PENDING", + 2: "FIRING", + } + AlertState_value = map[string]int32{ + "INACTIVE": 0, + "PENDING": 1, + "FIRING": 2, + } +) + +func (x AlertState) Enum() *AlertState { + p := new(AlertState) + *p = x + return p +} + +func (x AlertState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AlertState) Descriptor() protoreflect.EnumDescriptor { + return file_rules_rulespb_rpc_proto_enumTypes[0].Descriptor() +} + +func (AlertState) Type() protoreflect.EnumType { + return &file_rules_rulespb_rpc_proto_enumTypes[0] +} + +func (x AlertState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AlertState.Descriptor instead. +func (AlertState) EnumDescriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{0} +} + +type RulesRequest_Type int32 + +const ( + RulesRequest_ALL RulesRequest_Type = 0 + /// This will make sure strings.ToLower(.String()) will match 'alert' and 'record' values for + /// Prometheus HTTP API. + /// NOTE: The implementation has to return empty rule groups as well. + RulesRequest_ALERT RulesRequest_Type = 1 + RulesRequest_RECORD RulesRequest_Type = 2 +) + +// Enum value maps for RulesRequest_Type. +var ( + RulesRequest_Type_name = map[int32]string{ + 0: "ALL", + 1: "ALERT", + 2: "RECORD", + } + RulesRequest_Type_value = map[string]int32{ + "ALL": 0, + "ALERT": 1, + "RECORD": 2, + } +) + +func (x RulesRequest_Type) Enum() *RulesRequest_Type { + p := new(RulesRequest_Type) + *p = x + return p +} + +func (x RulesRequest_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RulesRequest_Type) Descriptor() protoreflect.EnumDescriptor { + return file_rules_rulespb_rpc_proto_enumTypes[1].Descriptor() +} + +func (RulesRequest_Type) Type() protoreflect.EnumType { + return &file_rules_rulespb_rpc_proto_enumTypes[1] +} + +func (x RulesRequest_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RulesRequest_Type.Descriptor instead. +func (RulesRequest_Type) EnumDescriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{1, 0} +} + +// // Do not generate XXX fields to reduce memory footprint and opening a door +// // for zero-copy casts to/from prometheus data types. +// option (gogoproto.goproto_unkeyed_all) = false; +// option (gogoproto.goproto_unrecognized_all) = false; +// option (gogoproto.goproto_sizecache_all) = false; +type Timestamp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (x *Timestamp) Reset() { + *x = Timestamp{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Timestamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Timestamp) ProtoMessage() {} + +func (x *Timestamp) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Timestamp.ProtoReflect.Descriptor instead. +func (*Timestamp) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{0} +} + +func (x *Timestamp) GetSeconds() int64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Timestamp) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +type RulesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type RulesRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=thanos.RulesRequest_Type" json:"type,omitempty"` + PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,2,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` +} + +func (x *RulesRequest) Reset() { + *x = RulesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RulesRequest) ProtoMessage() {} + +func (x *RulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RulesRequest.ProtoReflect.Descriptor instead. +func (*RulesRequest) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{1} +} + +func (x *RulesRequest) GetType() RulesRequest_Type { + if x != nil { + return x.Type + } + return RulesRequest_ALL +} + +func (x *RulesRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy + } + return storepb.PartialResponseStrategy_WARN +} + +type RulesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: + // *RulesResponse_Group + // *RulesResponse_Warning + Result isRulesResponse_Result `protobuf_oneof:"result"` +} + +func (x *RulesResponse) Reset() { + *x = RulesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RulesResponse) ProtoMessage() {} + +func (x *RulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RulesResponse.ProtoReflect.Descriptor instead. +func (*RulesResponse) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{2} +} + +func (m *RulesResponse) GetResult() isRulesResponse_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *RulesResponse) GetGroup() *RuleGroup { + if x, ok := x.GetResult().(*RulesResponse_Group); ok { + return x.Group + } + return nil +} + +func (x *RulesResponse) GetWarning() string { + if x, ok := x.GetResult().(*RulesResponse_Warning); ok { + return x.Warning + } + return "" +} + +type isRulesResponse_Result interface { + isRulesResponse_Result() +} + +type RulesResponse_Group struct { + /// group for rule groups. It is up to server implementation to decide how many of those to put here within single frame. + Group *RuleGroup `protobuf:"bytes,1,opt,name=group,proto3,oneof"` +} + +type RulesResponse_Warning struct { + /// warning is considered an information piece in place of series for warning purposes. + /// It is used to warn rule API users about suspicious cases or partial response (if enabled). + Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof"` +} + +func (*RulesResponse_Group) isRulesResponse_Result() {} + +func (*RulesResponse_Warning) isRulesResponse_Result() {} + +/// RuleGroups is set of rule groups. +/// This and below APIs are meant to be used for unmarshaling and marshsaling rules from/to Prometheus API. +/// That's why json tag has to be customized and matching https://github.com/prometheus/prometheus/blob/c530b4b456cc5f9ec249f771dff187eb7715dc9b/web/api/v1/api.go#L955 +/// NOTE: See rules_custom_test.go for compatibility tests. +/// +/// For rule parsing from YAML configuration other struct is used: https://github.com/prometheus/prometheus/blob/20b1f596f6fb16107ef0c244d240b0ad6da36829/pkg/rulefmt/rulefmt.go#L105 +type RuleGroups struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"groups" + Groups []*RuleGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` +} + +func (x *RuleGroups) Reset() { + *x = RuleGroups{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RuleGroups) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RuleGroups) ProtoMessage() {} + +func (x *RuleGroups) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RuleGroups.ProtoReflect.Descriptor instead. +func (*RuleGroups) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{3} +} + +func (x *RuleGroups) GetGroups() []*RuleGroup { + if x != nil { + return x.Groups + } + return nil +} + +/// RuleGroup has info for rules which are part of a group. +type RuleGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"name" + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // @gotags: json:"file" + File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` + // @gotags: json:"rules" + Rules []*Rule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` + // @gotags: json:"interval" + Interval float64 `protobuf:"fixed64,4,opt,name=interval,proto3" json:"interval,omitempty"` + // @gotags: json:"evaluationTime" + EvaluationDurationSeconds float64 `protobuf:"fixed64,5,opt,name=evaluation_duration_seconds,json=evaluationDurationSeconds,proto3" json:"evaluation_duration_seconds,omitempty"` // TODO: Is it really second? + // @gotags: json:"lastEvaluation,omitempty" + LastEvaluation *Timestamp `protobuf:"bytes,6,opt,name=last_evaluation,json=lastEvaluation,proto3" json:"last_evaluation,omitempty"` + // Thanos specific. + // @gotags: json:"partialResponseStrategy" + PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,8,opt,name=PartialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"PartialResponseStrategy,omitempty"` +} + +func (x *RuleGroup) Reset() { + *x = RuleGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RuleGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RuleGroup) ProtoMessage() {} + +func (x *RuleGroup) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RuleGroup.ProtoReflect.Descriptor instead. +func (*RuleGroup) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{4} +} + +func (x *RuleGroup) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RuleGroup) GetFile() string { + if x != nil { + return x.File + } + return "" +} + +func (x *RuleGroup) GetRules() []*Rule { + if x != nil { + return x.Rules + } + return nil +} + +func (x *RuleGroup) GetInterval() float64 { + if x != nil { + return x.Interval + } + return 0 +} + +func (x *RuleGroup) GetEvaluationDurationSeconds() float64 { + if x != nil { + return x.EvaluationDurationSeconds + } + return 0 +} + +func (x *RuleGroup) GetLastEvaluation() *Timestamp { + if x != nil { + return x.LastEvaluation + } + return nil +} + +func (x *RuleGroup) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy + } + return storepb.PartialResponseStrategy_WARN +} + +type Rule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: + // *Rule_Recording + // *Rule_Alert + Result isRule_Result `protobuf_oneof:"result"` +} + +func (x *Rule) Reset() { + *x = Rule{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Rule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Rule) ProtoMessage() {} + +func (x *Rule) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Rule.ProtoReflect.Descriptor instead. +func (*Rule) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{5} +} + +func (m *Rule) GetResult() isRule_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *Rule) GetRecording() *RecordingRule { + if x, ok := x.GetResult().(*Rule_Recording); ok { + return x.Recording + } + return nil +} + +func (x *Rule) GetAlert() *Alert { + if x, ok := x.GetResult().(*Rule_Alert); ok { + return x.Alert + } + return nil +} + +type isRule_Result interface { + isRule_Result() +} + +type Rule_Recording struct { + Recording *RecordingRule `protobuf:"bytes,1,opt,name=recording,proto3,oneof"` +} + +type Rule_Alert struct { + Alert *Alert `protobuf:"bytes,2,opt,name=alert,proto3,oneof"` +} + +func (*Rule_Recording) isRule_Result() {} + +func (*Rule_Alert) isRule_Result() {} + +type AlertInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"labels" + Labels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"` + // @gotags: json:"annotations" + Annotations *labelpb.ZLabelSet `protobuf:"bytes,2,opt,name=annotations,proto3" json:"annotations,omitempty"` + // @gotags: json:"state" + State AlertState `protobuf:"varint,3,opt,name=state,proto3,enum=thanos.AlertState" json:"state,omitempty"` + // @gotags: json:"activeAt,omitempty" + ActiveAt *Timestamp `protobuf:"bytes,4,opt,name=active_at,json=activeAt,proto3" json:"active_at,omitempty"` + // @gotags: json:"value" + Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` + // Thanos specific. Used mainly for alert API purposes. + // @gotags: json:"partialResponseStrategy" + PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,6,opt,name=PartialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"PartialResponseStrategy,omitempty"` +} + +func (x *AlertInstance) Reset() { + *x = AlertInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AlertInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AlertInstance) ProtoMessage() {} + +func (x *AlertInstance) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AlertInstance.ProtoReflect.Descriptor instead. +func (*AlertInstance) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{6} +} + +func (x *AlertInstance) GetLabels() *labelpb.ZLabelSet { + if x != nil { + return x.Labels + } + return nil +} + +func (x *AlertInstance) GetAnnotations() *labelpb.ZLabelSet { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *AlertInstance) GetState() AlertState { + if x != nil { + return x.State + } + return AlertState_INACTIVE +} + +func (x *AlertInstance) GetActiveAt() *Timestamp { + if x != nil { + return x.ActiveAt + } + return nil +} + +func (x *AlertInstance) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *AlertInstance) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy + } + return storepb.PartialResponseStrategy_WARN +} + +type Alert struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + /// state returns the maximum state of alert instances for this rule. + // @gotags: json:"state" + State AlertState `protobuf:"varint,1,opt,name=state,proto3,enum=thanos.AlertState" json:"state,omitempty"` + // @gotags: json:"name" + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // @gotags: json:"query" + Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` + // @gotags: json:"duration" + DurationSeconds float64 `protobuf:"fixed64,4,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"` + // @gotags: json:"labels" + Labels *labelpb.ZLabelSet `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` + // @gotags: json:"annotations" + Annotations *labelpb.ZLabelSet `protobuf:"bytes,6,opt,name=annotations,proto3" json:"annotations,omitempty"` + // @gotags: json:"alerts" + Alerts []*AlertInstance `protobuf:"bytes,7,rep,name=alerts,proto3" json:"alerts,omitempty"` + // @gotags: json:"health" + Health string `protobuf:"bytes,8,opt,name=health,proto3" json:"health,omitempty"` + // @gotags: json:"lastError,omitempty" + LastError string `protobuf:"bytes,9,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` + // @gotags: json:"evaluationTime" + EvaluationDurationSeconds float64 `protobuf:"fixed64,10,opt,name=evaluation_duration_seconds,json=evaluationDurationSeconds,proto3" json:"evaluation_duration_seconds,omitempty"` + // @gotags: json:"lastEvaluation,omitempty" + LastEvaluation *Timestamp `protobuf:"bytes,11,opt,name=last_evaluation,json=lastEvaluation,proto3" json:"last_evaluation,omitempty"` +} + +func (x *Alert) Reset() { + *x = Alert{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Alert) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Alert) ProtoMessage() {} + +func (x *Alert) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Alert.ProtoReflect.Descriptor instead. +func (*Alert) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{7} +} + +func (x *Alert) GetState() AlertState { + if x != nil { + return x.State + } + return AlertState_INACTIVE +} + +func (x *Alert) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Alert) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +func (x *Alert) GetDurationSeconds() float64 { + if x != nil { + return x.DurationSeconds + } + return 0 +} + +func (x *Alert) GetLabels() *labelpb.ZLabelSet { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Alert) GetAnnotations() *labelpb.ZLabelSet { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *Alert) GetAlerts() []*AlertInstance { + if x != nil { + return x.Alerts + } + return nil +} + +func (x *Alert) GetHealth() string { + if x != nil { + return x.Health + } + return "" +} + +func (x *Alert) GetLastError() string { + if x != nil { + return x.LastError + } + return "" +} + +func (x *Alert) GetEvaluationDurationSeconds() float64 { + if x != nil { + return x.EvaluationDurationSeconds + } + return 0 +} + +func (x *Alert) GetLastEvaluation() *Timestamp { + if x != nil { + return x.LastEvaluation + } + return nil +} + +type RecordingRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"name" + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // @gotags: json:"query" + Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + // @gotags: json:"labels" + Labels *labelpb.ZLabelSet `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"` + // @gotags: json:"health" + Health string `protobuf:"bytes,4,opt,name=health,proto3" json:"health,omitempty"` + // @gotags: json:"lastError,omitempty" + LastError string `protobuf:"bytes,5,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` + // @gotags: json:"evaluationTime" + EvaluationDurationSeconds float64 `protobuf:"fixed64,6,opt,name=evaluation_duration_seconds,json=evaluationDurationSeconds,proto3" json:"evaluation_duration_seconds,omitempty"` + // @gotags: json:"lastEvaluation,omitempty" + LastEvaluation *Timestamp `protobuf:"bytes,7,opt,name=last_evaluation,json=lastEvaluation,proto3" json:"last_evaluation,omitempty"` +} + +func (x *RecordingRule) Reset() { + *x = RecordingRule{} + if protoimpl.UnsafeEnabled { + mi := &file_rules_rulespb_rpc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecordingRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecordingRule) ProtoMessage() {} + +func (x *RecordingRule) ProtoReflect() protoreflect.Message { + mi := &file_rules_rulespb_rpc_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RecordingRule.ProtoReflect.Descriptor instead. +func (*RecordingRule) Descriptor() ([]byte, []int) { + return file_rules_rulespb_rpc_proto_rawDescGZIP(), []int{8} +} + +func (x *RecordingRule) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RecordingRule) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +func (x *RecordingRule) GetLabels() *labelpb.ZLabelSet { + if x != nil { + return x.Labels + } + return nil +} + +func (x *RecordingRule) GetHealth() string { + if x != nil { + return x.Health + } + return "" +} + +func (x *RecordingRule) GetLastError() string { + if x != nil { + return x.LastError + } + return "" +} + +func (x *RecordingRule) GetEvaluationDurationSeconds() float64 { + if x != nil { + return x.EvaluationDurationSeconds + } + return 0 +} + +func (x *RecordingRule) GetLastEvaluation() *Timestamp { + if x != nil { + return x.LastEvaluation + } + return nil +} + +var File_rules_rulespb_rpc_proto protoreflect.FileDescriptor + +var file_rules_rulespb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x70, 0x62, 0x2f, + 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x5b, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x22, 0x26, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, + 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x10, 0x01, 0x12, 0x0a, + 0x0a, 0x06, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x02, 0x22, 0x60, 0x0a, 0x0d, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x00, 0x52, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, + 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x37, 0x0a, 0x0a, + 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x29, 0x0a, 0x06, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0xca, 0x02, 0x0a, 0x09, 0x52, 0x75, 0x6c, 0x65, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x74, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3e, 0x0a, 0x1b, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, + 0x52, 0x19, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x3a, 0x0a, 0x0f, 0x6c, + 0x61, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x74, 0x69, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x50, 0x61, 0x72, 0x74, 0x69, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x22, 0x6e, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, + 0x52, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x67, 0x12, 0x25, 0x0a, 0x05, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x48, + 0x00, 0x52, 0x05, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x22, 0xba, 0x02, 0x0a, 0x0d, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, + 0x33, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2e, + 0x0a, 0x09, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x59, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, + 0xc8, 0x03, 0x0a, 0x05, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x29, 0x0a, + 0x10, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x29, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x33, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x6c, 0x65, 0x72, + 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x06, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, + 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3e, + 0x0a, 0x1b, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x19, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x3a, + 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, + 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x97, 0x02, 0x0a, 0x0d, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x29, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, + 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x1b, 0x65, 0x76, 0x61, 0x6c, + 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x19, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x3a, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x33, 0x0a, 0x0a, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, + 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, + 0x06, 0x46, 0x49, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x32, 0x3f, 0x0a, 0x05, 0x52, 0x75, 0x6c, + 0x65, 0x73, 0x12, 0x36, 0x0a, 0x05, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x2e, 0x74, 0x68, + 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_rules_rulespb_rpc_proto_rawDescOnce sync.Once + file_rules_rulespb_rpc_proto_rawDescData = file_rules_rulespb_rpc_proto_rawDesc +) + +func file_rules_rulespb_rpc_proto_rawDescGZIP() []byte { + file_rules_rulespb_rpc_proto_rawDescOnce.Do(func() { + file_rules_rulespb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rules_rulespb_rpc_proto_rawDescData) + }) + return file_rules_rulespb_rpc_proto_rawDescData +} + +var file_rules_rulespb_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_rules_rulespb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_rules_rulespb_rpc_proto_goTypes = []interface{}{ + (AlertState)(0), // 0: thanos.AlertState + (RulesRequest_Type)(0), // 1: thanos.RulesRequest.Type + (*Timestamp)(nil), // 2: thanos.Timestamp + (*RulesRequest)(nil), // 3: thanos.RulesRequest + (*RulesResponse)(nil), // 4: thanos.RulesResponse + (*RuleGroups)(nil), // 5: thanos.RuleGroups + (*RuleGroup)(nil), // 6: thanos.RuleGroup + (*Rule)(nil), // 7: thanos.Rule + (*AlertInstance)(nil), // 8: thanos.AlertInstance + (*Alert)(nil), // 9: thanos.Alert + (*RecordingRule)(nil), // 10: thanos.RecordingRule + (storepb.PartialResponseStrategy)(0), // 11: thanos.PartialResponseStrategy + (*labelpb.ZLabelSet)(nil), // 12: thanos.ZLabelSet +} +var file_rules_rulespb_rpc_proto_depIdxs = []int32{ + 1, // 0: thanos.RulesRequest.type:type_name -> thanos.RulesRequest.Type + 11, // 1: thanos.RulesRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 6, // 2: thanos.RulesResponse.group:type_name -> thanos.RuleGroup + 6, // 3: thanos.RuleGroups.groups:type_name -> thanos.RuleGroup + 7, // 4: thanos.RuleGroup.rules:type_name -> thanos.Rule + 2, // 5: thanos.RuleGroup.last_evaluation:type_name -> thanos.Timestamp + 11, // 6: thanos.RuleGroup.PartialResponseStrategy:type_name -> thanos.PartialResponseStrategy + 10, // 7: thanos.Rule.recording:type_name -> thanos.RecordingRule + 9, // 8: thanos.Rule.alert:type_name -> thanos.Alert + 12, // 9: thanos.AlertInstance.labels:type_name -> thanos.ZLabelSet + 12, // 10: thanos.AlertInstance.annotations:type_name -> thanos.ZLabelSet + 0, // 11: thanos.AlertInstance.state:type_name -> thanos.AlertState + 2, // 12: thanos.AlertInstance.active_at:type_name -> thanos.Timestamp + 11, // 13: thanos.AlertInstance.PartialResponseStrategy:type_name -> thanos.PartialResponseStrategy + 0, // 14: thanos.Alert.state:type_name -> thanos.AlertState + 12, // 15: thanos.Alert.labels:type_name -> thanos.ZLabelSet + 12, // 16: thanos.Alert.annotations:type_name -> thanos.ZLabelSet + 8, // 17: thanos.Alert.alerts:type_name -> thanos.AlertInstance + 2, // 18: thanos.Alert.last_evaluation:type_name -> thanos.Timestamp + 12, // 19: thanos.RecordingRule.labels:type_name -> thanos.ZLabelSet + 2, // 20: thanos.RecordingRule.last_evaluation:type_name -> thanos.Timestamp + 3, // 21: thanos.Rules.Rules:input_type -> thanos.RulesRequest + 4, // 22: thanos.Rules.Rules:output_type -> thanos.RulesResponse + 22, // [22:23] is the sub-list for method output_type + 21, // [21:22] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name +} + +func init() { file_rules_rulespb_rpc_proto_init() } +func file_rules_rulespb_rpc_proto_init() { + if File_rules_rulespb_rpc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_rules_rulespb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Timestamp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RulesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RulesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuleGroups); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuleGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Rule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AlertInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Alert); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_rules_rulespb_rpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecordingRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_rules_rulespb_rpc_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*RulesResponse_Group)(nil), + (*RulesResponse_Warning)(nil), + } + file_rules_rulespb_rpc_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*Rule_Recording)(nil), + (*Rule_Alert)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_rules_rulespb_rpc_proto_rawDesc, + NumEnums: 2, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_rules_rulespb_rpc_proto_goTypes, + DependencyIndexes: file_rules_rulespb_rpc_proto_depIdxs, + EnumInfos: file_rules_rulespb_rpc_proto_enumTypes, + MessageInfos: file_rules_rulespb_rpc_proto_msgTypes, + }.Build() + File_rules_rulespb_rpc_proto = out.File + file_rules_rulespb_rpc_proto_rawDesc = nil + file_rules_rulespb_rpc_proto_goTypes = nil + file_rules_rulespb_rpc_proto_depIdxs = nil +} diff --git a/pkg/store/storepb/prompb/remote.proto b/pkg/store/storepb/prompb/remote.proto index cde7fbae87..75d6892657 100644 --- a/pkg/store/storepb/prompb/remote.proto +++ b/pkg/store/storepb/prompb/remote.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package prometheus_copy; -option go_package = "prompb"; +option go_package = "store/prompb"; import "store/storepb/prompb/types.proto"; //import "gogoproto/gogo.proto"; diff --git a/pkg/store/storepb/prompb/types.proto b/pkg/store/storepb/prompb/types.proto index 605aeef2b5..4362790194 100644 --- a/pkg/store/storepb/prompb/types.proto +++ b/pkg/store/storepb/prompb/types.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package prometheus_copy; -option go_package = "prompb"; +option go_package = "store/prompb"; //import "gogoproto/gogo.proto"; import "store/labelpb/types.proto"; diff --git a/pkg/store/storepb/rpc.pb.go b/pkg/store/storepb/rpc.pb.go index 1cad364378..5cb88869fc 100644 --- a/pkg/store/storepb/rpc.pb.go +++ b/pkg/store/storepb/rpc.pb.go @@ -1,34 +1,31 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: store/storepb/rpc.proto package storepb import ( - context "context" - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/gogo/protobuf/proto" - types "github.com/gogo/protobuf/types" + reflect "reflect" + prompb "store/prompb" + sync "sync" + + any "github.com/golang/protobuf/ptypes/any" labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" - 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" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type StoreType int32 @@ -43,32 +40,53 @@ const ( StoreType_DEBUG StoreType = 6 ) -var StoreType_name = map[int32]string{ - 0: "UNKNOWN", - 1: "QUERY", - 2: "RULE", - 3: "SIDECAR", - 4: "STORE", - 5: "RECEIVE", - 6: "DEBUG", -} +// Enum value maps for StoreType. +var ( + StoreType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "QUERY", + 2: "RULE", + 3: "SIDECAR", + 4: "STORE", + 5: "RECEIVE", + 6: "DEBUG", + } + StoreType_value = map[string]int32{ + "UNKNOWN": 0, + "QUERY": 1, + "RULE": 2, + "SIDECAR": 3, + "STORE": 4, + "RECEIVE": 5, + "DEBUG": 6, + } +) -var StoreType_value = map[string]int32{ - "UNKNOWN": 0, - "QUERY": 1, - "RULE": 2, - "SIDECAR": 3, - "STORE": 4, - "RECEIVE": 5, - "DEBUG": 6, +func (x StoreType) Enum() *StoreType { + p := new(StoreType) + *p = x + return p } func (x StoreType) String() string { - return proto.EnumName(StoreType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StoreType) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_rpc_proto_enumTypes[0].Descriptor() +} + +func (StoreType) Type() protoreflect.EnumType { + return &file_store_storepb_rpc_proto_enumTypes[0] +} + +func (x StoreType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use StoreType.Descriptor instead. func (StoreType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a938d55a388af629, []int{0} + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{0} } type Aggr int32 @@ -82,255 +100,278 @@ const ( Aggr_COUNTER Aggr = 5 ) -var Aggr_name = map[int32]string{ - 0: "RAW", - 1: "COUNT", - 2: "SUM", - 3: "MIN", - 4: "MAX", - 5: "COUNTER", -} +// Enum value maps for Aggr. +var ( + Aggr_name = map[int32]string{ + 0: "RAW", + 1: "COUNT", + 2: "SUM", + 3: "MIN", + 4: "MAX", + 5: "COUNTER", + } + Aggr_value = map[string]int32{ + "RAW": 0, + "COUNT": 1, + "SUM": 2, + "MIN": 3, + "MAX": 4, + "COUNTER": 5, + } +) -var Aggr_value = map[string]int32{ - "RAW": 0, - "COUNT": 1, - "SUM": 2, - "MIN": 3, - "MAX": 4, - "COUNTER": 5, +func (x Aggr) Enum() *Aggr { + p := new(Aggr) + *p = x + return p } func (x Aggr) String() string { - return proto.EnumName(Aggr_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Aggr) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_rpc_proto_enumTypes[1].Descriptor() +} + +func (Aggr) Type() protoreflect.EnumType { + return &file_store_storepb_rpc_proto_enumTypes[1] +} + +func (x Aggr) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Aggr.Descriptor instead. func (Aggr) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a938d55a388af629, []int{1} + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{1} } type WriteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -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 (x *WriteResponse) Reset() { + *x = WriteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteResponse.Merge(m, src) -} -func (m *WriteResponse) XXX_Size() int { - return m.Size() + +func (x *WriteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteResponse.DiscardUnknown(m) + +func (*WriteResponse) ProtoMessage() {} + +func (x *WriteResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WriteResponse proto.InternalMessageInfo +// Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. +func (*WriteResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{0} +} type WriteRequest struct { - Timeseries []*prompb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"` - Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` - Replica int64 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timeseries []*prompb.TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"` + Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"` + Replica int64 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"` } -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 (x *WriteRequest) Reset() { + *x = WriteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *WriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteRequest.Merge(m, src) -} -func (m *WriteRequest) XXX_Size() int { - return m.Size() + +func (x *WriteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *WriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteRequest.DiscardUnknown(m) + +func (*WriteRequest) ProtoMessage() {} + +func (x *WriteRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_WriteRequest proto.InternalMessageInfo +// Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. +func (*WriteRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{1} +} -func (m *WriteRequest) GetTimeseries() []*prompb.TimeSeries { - if m != nil { - return m.Timeseries +func (x *WriteRequest) GetTimeseries() []*prompb.TimeSeries { + if x != nil { + return x.Timeseries } return nil } -func (m *WriteRequest) GetTenant() string { - if m != nil { - return m.Tenant +func (x *WriteRequest) GetTenant() string { + if x != nil { + return x.Tenant } return "" } -func (m *WriteRequest) GetReplica() int64 { - if m != nil { - return m.Replica +func (x *WriteRequest) GetReplica() int64 { + if x != nil { + return x.Replica } return 0 } type InfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *InfoRequest) Reset() { *m = InfoRequest{} } -func (m *InfoRequest) String() string { return proto.CompactTextString(m) } -func (*InfoRequest) ProtoMessage() {} -func (*InfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a938d55a388af629, []int{2} -} -func (m *InfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InfoRequest.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 (x *InfoRequest) Reset() { + *x = InfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *InfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoRequest.Merge(m, src) -} -func (m *InfoRequest) XXX_Size() int { - return m.Size() + +func (x *InfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InfoRequest.DiscardUnknown(m) + +func (*InfoRequest) ProtoMessage() {} + +func (x *InfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InfoRequest proto.InternalMessageInfo +// Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead. +func (*InfoRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{2} +} type InfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Deprecated. Use label_sets instead. Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` MinTime int64 `protobuf:"varint,2,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` MaxTime int64 `protobuf:"varint,3,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` StoreType StoreType `protobuf:"varint,4,opt,name=storeType,proto3,enum=thanos.StoreType" json:"storeType,omitempty"` // label_sets is an unsorted list of `ZLabelSet`s. - LabelSets []*labelpb.ZLabelSet `protobuf:"bytes,5,rep,name=label_sets,json=labelSets,proto3" json:"label_sets,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LabelSets []*labelpb.ZLabelSet `protobuf:"bytes,5,rep,name=label_sets,json=labelSets,proto3" json:"label_sets,omitempty"` } -func (m *InfoResponse) Reset() { *m = InfoResponse{} } -func (m *InfoResponse) String() string { return proto.CompactTextString(m) } -func (*InfoResponse) ProtoMessage() {} -func (*InfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a938d55a388af629, []int{3} -} -func (m *InfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InfoResponse.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 (x *InfoResponse) Reset() { + *x = InfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *InfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InfoResponse.Merge(m, src) -} -func (m *InfoResponse) XXX_Size() int { - return m.Size() + +func (x *InfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InfoResponse.DiscardUnknown(m) + +func (*InfoResponse) ProtoMessage() {} + +func (x *InfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_InfoResponse proto.InternalMessageInfo +// Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead. +func (*InfoResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{3} +} -func (m *InfoResponse) GetLabels() []*labelpb.Label { - if m != nil { - return m.Labels +func (x *InfoResponse) GetLabels() []*labelpb.Label { + if x != nil { + return x.Labels } return nil } -func (m *InfoResponse) GetMinTime() int64 { - if m != nil { - return m.MinTime +func (x *InfoResponse) GetMinTime() int64 { + if x != nil { + return x.MinTime } return 0 } -func (m *InfoResponse) GetMaxTime() int64 { - if m != nil { - return m.MaxTime +func (x *InfoResponse) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } return 0 } -func (m *InfoResponse) GetStoreType() StoreType { - if m != nil { - return m.StoreType +func (x *InfoResponse) GetStoreType() StoreType { + if x != nil { + return x.StoreType } return StoreType_UNKNOWN } -func (m *InfoResponse) GetLabelSets() []*labelpb.ZLabelSet { - if m != nil { - return m.LabelSets +func (x *InfoResponse) GetLabelSets() []*labelpb.ZLabelSet { + if x != nil { + return x.LabelSets } return nil } type SeriesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + 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,omitempty"` @@ -345,172 +386,148 @@ type SeriesRequest struct { // 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hints *any.Any `protobuf:"bytes,9,opt,name=hints,proto3" json:"hints,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{4} -} -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 (x *SeriesRequest) Reset() { + *x = SeriesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SeriesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SeriesRequest.Merge(m, src) -} -func (m *SeriesRequest) XXX_Size() int { - return m.Size() + +func (x *SeriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SeriesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SeriesRequest.DiscardUnknown(m) + +func (*SeriesRequest) ProtoMessage() {} + +func (x *SeriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SeriesRequest proto.InternalMessageInfo +// Deprecated: Use SeriesRequest.ProtoReflect.Descriptor instead. +func (*SeriesRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{4} +} -func (m *SeriesRequest) GetMinTime() int64 { - if m != nil { - return m.MinTime +func (x *SeriesRequest) GetMinTime() int64 { + if x != nil { + return x.MinTime } return 0 } -func (m *SeriesRequest) GetMaxTime() int64 { - if m != nil { - return m.MaxTime +func (x *SeriesRequest) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } return 0 } -func (m *SeriesRequest) GetMatchers() []*LabelMatcher { - if m != nil { - return m.Matchers +func (x *SeriesRequest) GetMatchers() []*LabelMatcher { + if x != nil { + return x.Matchers } return nil } -func (m *SeriesRequest) GetMaxResolutionWindow() int64 { - if m != nil { - return m.MaxResolutionWindow +func (x *SeriesRequest) GetMaxResolutionWindow() int64 { + if x != nil { + return x.MaxResolutionWindow } return 0 } -func (m *SeriesRequest) GetAggregates() []Aggr { - if m != nil { - return m.Aggregates +func (x *SeriesRequest) GetAggregates() []Aggr { + if x != nil { + return x.Aggregates } return nil } -func (m *SeriesRequest) GetPartialResponseDisabled() bool { - if m != nil { - return m.PartialResponseDisabled +func (x *SeriesRequest) GetPartialResponseDisabled() bool { + if x != nil { + return x.PartialResponseDisabled } return false } -func (m *SeriesRequest) GetPartialResponseStrategy() PartialResponseStrategy { - if m != nil { - return m.PartialResponseStrategy +func (x *SeriesRequest) GetPartialResponseStrategy() PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy } return PartialResponseStrategy_WARN } -func (m *SeriesRequest) GetSkipChunks() bool { - if m != nil { - return m.SkipChunks +func (x *SeriesRequest) GetSkipChunks() bool { + if x != nil { + return x.SkipChunks } return false } -func (m *SeriesRequest) GetHints() *types.Any { - if m != nil { - return m.Hints +func (x *SeriesRequest) GetHints() *any.Any { + if x != nil { + return x.Hints } return nil } type SeriesResponse struct { - // Types that are valid to be assigned to Result: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: // *SeriesResponse_Series // *SeriesResponse_Warning // *SeriesResponse_Hints - Result isSeriesResponse_Result `protobuf_oneof:"result"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + 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{5} -} -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 (x *SeriesResponse) Reset() { + *x = SeriesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -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) + +func (x *SeriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SeriesResponse proto.InternalMessageInfo +func (*SeriesResponse) ProtoMessage() {} -type isSeriesResponse_Result interface { - isSeriesResponse_Result() - MarshalTo([]byte) (int, error) - Size() int +func (x *SeriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -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"` +// Deprecated: Use SeriesResponse.ProtoReflect.Descriptor instead. +func (*SeriesResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{5} } -func (*SeriesResponse_Series) isSeriesResponse_Result() {} -func (*SeriesResponse_Warning) isSeriesResponse_Result() {} -func (*SeriesResponse_Hints) isSeriesResponse_Result() {} - func (m *SeriesResponse) GetResult() isSeriesResponse_Result { if m != nil { return m.Result @@ -518,37 +535,62 @@ func (m *SeriesResponse) GetResult() isSeriesResponse_Result { return nil } -func (m *SeriesResponse) GetSeries() *Series { - if x, ok := m.GetResult().(*SeriesResponse_Series); ok { +func (x *SeriesResponse) GetSeries() *Series { + if x, ok := x.GetResult().(*SeriesResponse_Series); ok { return x.Series } return nil } -func (m *SeriesResponse) GetWarning() string { - if x, ok := m.GetResult().(*SeriesResponse_Warning); ok { +func (x *SeriesResponse) GetWarning() string { + if x, ok := x.GetResult().(*SeriesResponse_Warning); ok { return x.Warning } return "" } -func (m *SeriesResponse) GetHints() *types.Any { - if x, ok := m.GetResult().(*SeriesResponse_Hints); ok { +func (x *SeriesResponse) GetHints() *any.Any { + if x, ok := x.GetResult().(*SeriesResponse_Hints); ok { return x.Hints } 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), - } +type isSeriesResponse_Result interface { + isSeriesResponse_Result() +} + +type SeriesResponse_Series struct { + /// series contains 1 response series. The series labels are sorted by name. + Series *Series `protobuf:"bytes,1,opt,name=series,proto3,oneof"` +} + +type SeriesResponse_Warning struct { + /// warning is considered an information piece in place of series for warning purposes. + /// It is used to warn store API user about suspicious cases or partial response (if enabled). + Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof"` +} + +type SeriesResponse_Hints struct { + /// 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. It's also implementation specific if it's allowed that + /// multiple SeriesResponse frames contain hints for a single Series() request and how should they + /// be handled in such case (ie. merged vs keep the first/last one). + Hints *any.Any `protobuf:"bytes,3,opt,name=hints,proto3,oneof"` } +func (*SeriesResponse_Series) isSeriesResponse_Result() {} + +func (*SeriesResponse_Warning) isSeriesResponse_Result() {} + +func (*SeriesResponse_Hints) isSeriesResponse_Result() {} + type LabelNamesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + 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"` @@ -557,155 +599,155 @@ type LabelNamesRequest struct { // 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,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hints *any.Any `protobuf:"bytes,5,opt,name=hints,proto3" json:"hints,omitempty"` + Matchers []*LabelMatcher `protobuf:"bytes,6,rep,name=matchers,proto3" json:"matchers,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{6} -} -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 (x *LabelNamesRequest) Reset() { + *x = LabelNamesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LabelNamesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelNamesRequest.Merge(m, src) -} -func (m *LabelNamesRequest) XXX_Size() int { - return m.Size() + +func (x *LabelNamesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelNamesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LabelNamesRequest.DiscardUnknown(m) + +func (*LabelNamesRequest) ProtoMessage() {} + +func (x *LabelNamesRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LabelNamesRequest proto.InternalMessageInfo +// Deprecated: Use LabelNamesRequest.ProtoReflect.Descriptor instead. +func (*LabelNamesRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{6} +} -func (m *LabelNamesRequest) GetPartialResponseDisabled() bool { - if m != nil { - return m.PartialResponseDisabled +func (x *LabelNamesRequest) GetPartialResponseDisabled() bool { + if x != nil { + return x.PartialResponseDisabled } return false } -func (m *LabelNamesRequest) GetPartialResponseStrategy() PartialResponseStrategy { - if m != nil { - return m.PartialResponseStrategy +func (x *LabelNamesRequest) GetPartialResponseStrategy() PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy } return PartialResponseStrategy_WARN } -func (m *LabelNamesRequest) GetStart() int64 { - if m != nil { - return m.Start +func (x *LabelNamesRequest) GetStart() int64 { + if x != nil { + return x.Start } return 0 } -func (m *LabelNamesRequest) GetEnd() int64 { - if m != nil { - return m.End +func (x *LabelNamesRequest) GetEnd() int64 { + if x != nil { + return x.End } return 0 } -func (m *LabelNamesRequest) GetHints() *types.Any { - if m != nil { - return m.Hints +func (x *LabelNamesRequest) GetHints() *any.Any { + if x != nil { + return x.Hints } return nil } -func (m *LabelNamesRequest) GetMatchers() []*LabelMatcher { - if m != nil { - return m.Matchers +func (x *LabelNamesRequest) GetMatchers() []*LabelMatcher { + if x != nil { + return x.Matchers } return nil } type LabelNamesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hints *any.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{7} -} -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 (x *LabelNamesResponse) Reset() { + *x = LabelNamesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LabelNamesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelNamesResponse.Merge(m, src) -} -func (m *LabelNamesResponse) XXX_Size() int { - return m.Size() + +func (x *LabelNamesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelNamesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LabelNamesResponse.DiscardUnknown(m) + +func (*LabelNamesResponse) ProtoMessage() {} + +func (x *LabelNamesResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LabelNamesResponse proto.InternalMessageInfo +// Deprecated: Use LabelNamesResponse.ProtoReflect.Descriptor instead. +func (*LabelNamesResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{7} +} -func (m *LabelNamesResponse) GetNames() []string { - if m != nil { - return m.Names +func (x *LabelNamesResponse) GetNames() []string { + if x != nil { + return x.Names } return nil } -func (m *LabelNamesResponse) GetWarnings() []string { - if m != nil { - return m.Warnings +func (x *LabelNamesResponse) GetWarnings() []string { + if x != nil { + return x.Warnings } return nil } -func (m *LabelNamesResponse) GetHints() *types.Any { - if m != nil { - return m.Hints +func (x *LabelNamesResponse) GetHints() *any.Any { + if x != nil { + return x.Hints } return nil } type LabelValuesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + 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. @@ -715,3224 +757,541 @@ type LabelValuesRequest struct { // 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,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hints *any.Any `protobuf:"bytes,6,opt,name=hints,proto3" json:"hints,omitempty"` + Matchers []*LabelMatcher `protobuf:"bytes,7,rep,name=matchers,proto3" json:"matchers,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{8} -} -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 (x *LabelValuesRequest) Reset() { + *x = LabelValuesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LabelValuesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelValuesRequest.Merge(m, src) -} -func (m *LabelValuesRequest) XXX_Size() int { - return m.Size() + +func (x *LabelValuesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelValuesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LabelValuesRequest.DiscardUnknown(m) + +func (*LabelValuesRequest) ProtoMessage() {} + +func (x *LabelValuesRequest) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LabelValuesRequest proto.InternalMessageInfo +// Deprecated: Use LabelValuesRequest.ProtoReflect.Descriptor instead. +func (*LabelValuesRequest) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{8} +} -func (m *LabelValuesRequest) GetLabel() string { - if m != nil { - return m.Label +func (x *LabelValuesRequest) GetLabel() string { + if x != nil { + return x.Label } return "" } -func (m *LabelValuesRequest) GetPartialResponseDisabled() bool { - if m != nil { - return m.PartialResponseDisabled +func (x *LabelValuesRequest) GetPartialResponseDisabled() bool { + if x != nil { + return x.PartialResponseDisabled } return false } -func (m *LabelValuesRequest) GetPartialResponseStrategy() PartialResponseStrategy { - if m != nil { - return m.PartialResponseStrategy +func (x *LabelValuesRequest) GetPartialResponseStrategy() PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy } return PartialResponseStrategy_WARN } -func (m *LabelValuesRequest) GetStart() int64 { - if m != nil { - return m.Start +func (x *LabelValuesRequest) GetStart() int64 { + if x != nil { + return x.Start } return 0 } -func (m *LabelValuesRequest) GetEnd() int64 { - if m != nil { - return m.End +func (x *LabelValuesRequest) GetEnd() int64 { + if x != nil { + return x.End } return 0 } -func (m *LabelValuesRequest) GetHints() *types.Any { - if m != nil { - return m.Hints +func (x *LabelValuesRequest) GetHints() *any.Any { + if x != nil { + return x.Hints } return nil } -func (m *LabelValuesRequest) GetMatchers() []*LabelMatcher { - if m != nil { - return m.Matchers +func (x *LabelValuesRequest) GetMatchers() []*LabelMatcher { + if x != nil { + return x.Matchers } return nil } type LabelValuesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -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{9} -} -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 (m *LabelValuesResponse) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -func (m *LabelValuesResponse) GetWarnings() []string { - if m != nil { - return m.Warnings - } - return nil + Hints *any.Any `protobuf:"bytes,3,opt,name=hints,proto3" json:"hints,omitempty"` } -func (m *LabelValuesResponse) GetHints() *types.Any { - if m != nil { - return m.Hints +func (x *LabelValuesResponse) Reset() { + *x = LabelValuesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_rpc_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func init() { - proto.RegisterEnum("thanos.StoreType", StoreType_name, StoreType_value) - proto.RegisterEnum("thanos.Aggr", Aggr_name, Aggr_value) - proto.RegisterType((*WriteResponse)(nil), "thanos.WriteResponse") - proto.RegisterType((*WriteRequest)(nil), "thanos.WriteRequest") - proto.RegisterType((*InfoRequest)(nil), "thanos.InfoRequest") - proto.RegisterType((*InfoResponse)(nil), "thanos.InfoResponse") - proto.RegisterType((*SeriesRequest)(nil), "thanos.SeriesRequest") - 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{ - // 985 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xe2, 0x46, - 0x14, 0x8e, 0x6d, 0x6c, 0xe0, 0xb0, 0x49, 0xbd, 0x13, 0x92, 0x75, 0x58, 0x29, 0x8b, 0x90, 0x2a, - 0xa1, 0x68, 0x05, 0x29, 0xbd, 0xea, 0xcf, 0x0d, 0x21, 0xb4, 0x89, 0xba, 0x21, 0xed, 0x10, 0x36, - 0xed, 0x56, 0x15, 0x32, 0x64, 0x16, 0xac, 0xf5, 0x5f, 0x3d, 0x43, 0x13, 0x2e, 0x7a, 0xd3, 0x07, - 0xe8, 0xc3, 0xf4, 0x05, 0x7a, 0xdb, 0xde, 0x54, 0x7d, 0x84, 0x2a, 0x4f, 0x52, 0xcd, 0x8f, 0x01, - 0xa7, 0xec, 0x4f, 0x95, 0xbd, 0xb1, 0xe6, 0x9c, 0xef, 0xcc, 0x9c, 0x6f, 0xce, 0x37, 0x67, 0x3c, - 0xf0, 0x88, 0xb2, 0x28, 0x21, 0x4d, 0xf1, 0x8d, 0x47, 0xcd, 0x24, 0x1e, 0x37, 0xe2, 0x24, 0x62, - 0x11, 0xb2, 0xd8, 0xd4, 0x0d, 0x23, 0x5a, 0xd9, 0xcb, 0x06, 0xb0, 0x79, 0x4c, 0xa8, 0x0c, 0xa9, - 0x54, 0xb3, 0x50, 0x9c, 0x44, 0xc1, 0x9d, 0x08, 0x35, 0xd9, 0x77, 0x47, 0xc4, 0xbf, 0x0b, 0x4d, - 0xa2, 0x68, 0xe2, 0x93, 0xa6, 0xb0, 0x46, 0xb3, 0x97, 0x4d, 0x37, 0x9c, 0x4b, 0xa8, 0xf6, 0x01, - 0x6c, 0x5e, 0x26, 0x1e, 0x23, 0x98, 0xd0, 0x38, 0x0a, 0x29, 0xa9, 0xfd, 0x0c, 0x0f, 0x94, 0xe3, - 0xc7, 0x19, 0xa1, 0x0c, 0x7d, 0x06, 0xc0, 0xbc, 0x80, 0x50, 0x92, 0x78, 0x84, 0x3a, 0x5a, 0xd5, - 0xa8, 0x97, 0x5a, 0x8f, 0xf9, 0xe4, 0x80, 0xb0, 0x29, 0x99, 0xd1, 0xe1, 0x38, 0x8a, 0xe7, 0x8d, - 0x0b, 0x2f, 0x20, 0x7d, 0x11, 0x82, 0x57, 0xc2, 0xd1, 0x2e, 0x58, 0x8c, 0x84, 0x6e, 0xc8, 0x1c, - 0xbd, 0xaa, 0xd5, 0x8b, 0x58, 0x59, 0xc8, 0x81, 0x7c, 0x42, 0x62, 0xdf, 0x1b, 0xbb, 0x8e, 0x51, - 0xd5, 0xea, 0x06, 0x4e, 0xcd, 0xda, 0x26, 0x94, 0x4e, 0xc3, 0x97, 0x91, 0xca, 0x5e, 0xfb, 0x4b, - 0x83, 0x07, 0xd2, 0x96, 0xf4, 0xd0, 0x87, 0x60, 0x89, 0x1d, 0xa6, 0x54, 0x36, 0x1b, 0xb2, 0x76, - 0x8d, 0x67, 0xdc, 0x8b, 0x15, 0x88, 0xf6, 0xa0, 0x10, 0x78, 0xe1, 0x90, 0x53, 0x11, 0xa9, 0x0d, - 0x9c, 0x0f, 0xbc, 0x90, 0xb3, 0x14, 0x90, 0x7b, 0x23, 0x21, 0x95, 0x3c, 0x70, 0x6f, 0x04, 0xd4, - 0x84, 0xa2, 0x28, 0xe2, 0xc5, 0x3c, 0x26, 0x4e, 0xae, 0xaa, 0xd5, 0xb7, 0x5a, 0x0f, 0xd3, 0xf5, - 0xfb, 0x29, 0x80, 0x97, 0x31, 0xe8, 0x10, 0x40, 0x24, 0x1c, 0x52, 0xc2, 0xa8, 0x63, 0x0a, 0x46, - 0x8b, 0x19, 0x2f, 0x04, 0xa5, 0x3e, 0x61, 0xb8, 0xe8, 0xab, 0x11, 0xad, 0xfd, 0x6e, 0xc0, 0xa6, - 0x2a, 0x94, 0x2a, 0xf0, 0x2a, 0x55, 0xed, 0xf5, 0x54, 0xf5, 0x2c, 0xd5, 0x43, 0x0e, 0xb1, 0xf1, - 0x94, 0x24, 0xd4, 0x31, 0x44, 0xde, 0x72, 0xa6, 0x12, 0x67, 0x12, 0xc4, 0x8b, 0x28, 0xd4, 0x82, - 0x1d, 0xbe, 0x58, 0x42, 0x68, 0xe4, 0xcf, 0x98, 0x17, 0x85, 0xc3, 0x6b, 0x2f, 0xbc, 0x8a, 0xae, - 0xc5, 0x46, 0x0d, 0xbc, 0x1d, 0xb8, 0x37, 0x78, 0x81, 0x5d, 0x0a, 0x08, 0x3d, 0x05, 0x70, 0x27, - 0x93, 0x84, 0x4c, 0x5c, 0x46, 0xe4, 0xfe, 0xb6, 0x5a, 0x0f, 0xd2, 0x3c, 0xed, 0xc9, 0x24, 0xc1, - 0x2b, 0x38, 0xfa, 0x14, 0xf6, 0x62, 0x37, 0x61, 0x9e, 0xeb, 0xf3, 0x2c, 0x42, 0xaf, 0xe1, 0x95, - 0x47, 0xdd, 0x91, 0x4f, 0xae, 0x1c, 0xab, 0xaa, 0xd5, 0x0b, 0xf8, 0x91, 0x0a, 0x48, 0xf5, 0x3c, - 0x56, 0x30, 0xfa, 0x7e, 0xcd, 0x5c, 0xca, 0x12, 0x97, 0x91, 0xc9, 0xdc, 0xc9, 0x0b, 0x29, 0x9e, - 0xa4, 0x89, 0xbf, 0xce, 0xae, 0xd1, 0x57, 0x61, 0xff, 0x59, 0x3c, 0x05, 0xd0, 0x13, 0x28, 0xd1, - 0x57, 0x5e, 0x3c, 0x1c, 0x4f, 0x67, 0xe1, 0x2b, 0xea, 0x14, 0x04, 0x15, 0xe0, 0xae, 0x8e, 0xf0, - 0xa0, 0x03, 0x30, 0xa7, 0x5e, 0xc8, 0xa8, 0x53, 0xac, 0x6a, 0xa2, 0x94, 0xb2, 0x61, 0x1a, 0x69, - 0xc3, 0x34, 0xda, 0xe1, 0x1c, 0xcb, 0x90, 0xda, 0xaf, 0x1a, 0x6c, 0xa5, 0x0a, 0xaa, 0x43, 0x59, - 0x07, 0x6b, 0xd1, 0x1f, 0x7c, 0xfe, 0xd6, 0xe2, 0xd0, 0x08, 0xef, 0xc9, 0x06, 0x56, 0x38, 0xaa, - 0x40, 0xfe, 0xda, 0x4d, 0x42, 0x2f, 0x9c, 0xc8, 0x8e, 0x38, 0xd9, 0xc0, 0xa9, 0x03, 0x3d, 0x4d, - 0x49, 0x18, 0xaf, 0x27, 0x71, 0xb2, 0xa1, 0x68, 0x1c, 0x15, 0xc0, 0x4a, 0x08, 0x9d, 0xf9, 0xac, - 0xf6, 0x9b, 0x0e, 0x0f, 0x85, 0xe6, 0x3d, 0x37, 0x58, 0x1e, 0xab, 0x37, 0x8a, 0xa1, 0xdd, 0x43, - 0x0c, 0xfd, 0x9e, 0x62, 0x94, 0xc1, 0xa4, 0xcc, 0x4d, 0x98, 0x6a, 0x3e, 0x69, 0x20, 0x1b, 0x0c, - 0x12, 0x5e, 0xa9, 0xb3, 0xc8, 0x87, 0x4b, 0x4d, 0xcc, 0xb7, 0x6a, 0x92, 0xe9, 0x06, 0xeb, 0x5d, - 0xba, 0xa1, 0x96, 0x00, 0x5a, 0xad, 0x99, 0x12, 0xb2, 0x0c, 0x66, 0xc8, 0x1d, 0xe2, 0x72, 0x29, - 0x62, 0x69, 0xa0, 0x0a, 0x14, 0x94, 0x46, 0xd4, 0xd1, 0x05, 0xb0, 0xb0, 0x97, 0x2c, 0x8d, 0xb7, - 0x9f, 0x9c, 0x3f, 0x75, 0x95, 0xf4, 0xb9, 0xeb, 0xcf, 0x96, 0x4a, 0x95, 0xc1, 0x14, 0xf7, 0x83, - 0x50, 0xa5, 0x88, 0xa5, 0xf1, 0x66, 0xfd, 0xf4, 0x7b, 0xe8, 0x67, 0xbc, 0x2f, 0xfd, 0x72, 0x6b, - 0xf4, 0x33, 0xd7, 0xe8, 0x67, 0xfd, 0x3f, 0xfd, 0xf2, 0xef, 0xa4, 0xdf, 0x0c, 0xb6, 0x33, 0xa5, - 0x54, 0x02, 0xee, 0x82, 0xf5, 0x93, 0xf0, 0x28, 0x05, 0x95, 0xf5, 0xbe, 0x24, 0x3c, 0xf8, 0x01, - 0x8a, 0x8b, 0x1f, 0x01, 0x2a, 0x41, 0x7e, 0xd0, 0xfb, 0xaa, 0x77, 0x7e, 0xd9, 0xb3, 0x37, 0x50, - 0x11, 0xcc, 0x6f, 0x06, 0x5d, 0xfc, 0x9d, 0xad, 0xa1, 0x02, 0xe4, 0xf0, 0xe0, 0x59, 0xd7, 0xd6, - 0x79, 0x44, 0xff, 0xf4, 0xb8, 0xdb, 0x69, 0x63, 0xdb, 0xe0, 0x11, 0xfd, 0x8b, 0x73, 0xdc, 0xb5, - 0x73, 0xdc, 0x8f, 0xbb, 0x9d, 0xee, 0xe9, 0xf3, 0xae, 0x6d, 0x72, 0xff, 0x71, 0xf7, 0x68, 0xf0, - 0xa5, 0x6d, 0x1d, 0x1c, 0x41, 0x8e, 0xdf, 0xaa, 0x28, 0x0f, 0x06, 0x6e, 0x5f, 0xca, 0x55, 0x3b, - 0xe7, 0x83, 0xde, 0x85, 0xad, 0x71, 0x5f, 0x7f, 0x70, 0x66, 0xeb, 0x7c, 0x70, 0x76, 0xda, 0xb3, - 0x0d, 0x31, 0x68, 0x7f, 0x2b, 0x97, 0x13, 0x51, 0x5d, 0x6c, 0x9b, 0xad, 0x5f, 0x74, 0x30, 0x05, - 0x47, 0xf4, 0x11, 0xe4, 0xf8, 0xbf, 0x13, 0x6d, 0xa7, 0xb5, 0x5c, 0xf9, 0xb3, 0x56, 0xca, 0x59, - 0xa7, 0xaa, 0xdf, 0x27, 0x60, 0xc9, 0x3b, 0x0b, 0xed, 0x64, 0xef, 0xb0, 0x74, 0xda, 0xee, 0x5d, - 0xb7, 0x9c, 0x78, 0xa8, 0xa1, 0x0e, 0xc0, 0xb2, 0xa3, 0xd0, 0x5e, 0x46, 0xbf, 0xd5, 0x9b, 0xa9, - 0x52, 0x59, 0x07, 0xa9, 0xfc, 0x5f, 0x40, 0x69, 0x45, 0x56, 0x94, 0x0d, 0xcd, 0xb4, 0x4d, 0xe5, - 0xf1, 0x5a, 0x4c, 0xae, 0xd3, 0xea, 0xc1, 0x96, 0x78, 0xc5, 0xf0, 0x7e, 0x90, 0xc5, 0xf8, 0x1c, - 0x4a, 0x98, 0x04, 0x11, 0x23, 0xc2, 0x8f, 0x16, 0xdb, 0x5f, 0x7d, 0xec, 0x54, 0x76, 0xee, 0x78, - 0xd5, 0x9b, 0x68, 0xe3, 0x68, 0xe7, 0x8f, 0xdb, 0x7d, 0xed, 0xef, 0xdb, 0x7d, 0xed, 0x9f, 0xdb, - 0x7d, 0xed, 0x45, 0x5e, 0x3d, 0xc3, 0x46, 0x96, 0x38, 0x23, 0x1f, 0xff, 0x1b, 0x00, 0x00, 0xff, - 0xff, 0x9b, 0x71, 0x45, 0x5e, 0xda, 0x09, 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 { - /// Info returns meta information about a store e.g labels that makes that store unique as well as time range that is - /// available. - Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) - /// 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. - 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) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { - out := new(InfoResponse) - err := c.cc.Invoke(ctx, "/thanos.Store/Info", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -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 +func (x *LabelValuesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type storeSeriesClient struct { - grpc.ClientStream -} +func (*LabelValuesResponse) ProtoMessage() {} -func (x *storeSeriesClient) Recv() (*SeriesResponse, error) { - m := new(SeriesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *LabelValuesResponse) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_rpc_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -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 +// Deprecated: Use LabelValuesResponse.ProtoReflect.Descriptor instead. +func (*LabelValuesResponse) Descriptor() ([]byte, []int) { + return file_store_storepb_rpc_proto_rawDescGZIP(), []int{9} } -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 +func (x *LabelValuesResponse) GetValues() []string { + if x != nil { + return x.Values } - return out, nil -} - -// StoreServer is the server API for Store service. -type StoreServer interface { - /// Info returns meta information about a store e.g labels that makes that store unique as well as time range that is - /// available. - Info(context.Context, *InfoRequest) (*InfoResponse, error) - /// 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. - 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) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") -} -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) + return nil } -func _Store_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StoreServer).Info(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/thanos.Store/Info", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StoreServer).Info(ctx, req.(*InfoRequest)) +func (x *LabelValuesResponse) GetWarnings() []string { + if x != nil { + return x.Warnings } - return interceptor(ctx, in, info, handler) + return nil } -func _Store_Series_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SeriesRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *LabelValuesResponse) GetHints() *any.Any { + if x != nil { + return x.Hints } - return srv.(StoreServer).Series(m, &storeSeriesServer{stream}) -} - -type Store_SeriesServer interface { - Send(*SeriesResponse) error - grpc.ServerStream -} - -type storeSeriesServer struct { - grpc.ServerStream + return nil } -func (x *storeSeriesServer) Send(m *SeriesResponse) error { - return x.ServerStream.SendMsg(m) +var File_store_storepb_rpc_proto protoreflect.FileDescriptor + +var file_store_storepb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, + 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7d, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x6d, + 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x22, 0x0d, 0x0a, 0x0b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0xce, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, + 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, + 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x53, 0x74, + 0x6f, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x53, 0x65, 0x74, 0x73, 0x22, 0xbf, 0x03, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x08, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x72, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x12, 0x32, + 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6d, + 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x6e, 0x64, + 0x6f, 0x77, 0x12, 0x2c, 0x0a, 0x0a, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x41, 0x67, 0x67, 0x72, 0x52, 0x0a, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, + 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x19, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, + 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x73, 0x6b, 0x69, 0x70, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x68, 0x69, + 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x12, + 0x2c, 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x42, 0x08, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb2, 0x02, 0x0a, 0x11, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, + 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x19, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x2a, + 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x72, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x22, 0x72, 0x0a, 0x12, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, + 0x22, 0xc9, 0x02, 0x0a, 0x12, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3a, 0x0a, + 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x19, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x17, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x2a, + 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x72, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x22, 0x75, 0x0a, 0x13, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, + 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x77, + 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x68, 0x69, + 0x6e, 0x74, 0x73, 0x2a, 0x5d, 0x0a, 0x09, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, + 0x05, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x55, 0x4c, 0x45, + 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x49, 0x44, 0x45, 0x43, 0x41, 0x52, 0x10, 0x03, 0x12, + 0x09, 0x0a, 0x05, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, + 0x43, 0x45, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, + 0x10, 0x06, 0x2a, 0x42, 0x0a, 0x04, 0x41, 0x67, 0x67, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x41, + 0x57, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x07, + 0x0a, 0x03, 0x53, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x49, 0x4e, 0x10, 0x03, + 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x58, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x55, + 0x4e, 0x54, 0x45, 0x52, 0x10, 0x05, 0x32, 0x82, 0x02, 0x0a, 0x05, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x12, 0x31, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x15, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x43, + 0x0a, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, + 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x4e, 0x0a, 0x0e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x3c, 0x0a, + 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0f, 0x5a, 0x0d, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } -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) -} +var ( + file_store_storepb_rpc_proto_rawDescOnce sync.Once + file_store_storepb_rpc_proto_rawDescData = file_store_storepb_rpc_proto_rawDesc +) -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)) +func file_store_storepb_rpc_proto_rawDescGZIP() []byte { + file_store_storepb_rpc_proto_rawDescOnce.Do(func() { + file_store_storepb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_storepb_rpc_proto_rawDescData) + }) + return file_store_storepb_rpc_proto_rawDescData +} + +var file_store_storepb_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_store_storepb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_store_storepb_rpc_proto_goTypes = []interface{}{ + (StoreType)(0), // 0: thanos.StoreType + (Aggr)(0), // 1: thanos.Aggr + (*WriteResponse)(nil), // 2: thanos.WriteResponse + (*WriteRequest)(nil), // 3: thanos.WriteRequest + (*InfoRequest)(nil), // 4: thanos.InfoRequest + (*InfoResponse)(nil), // 5: thanos.InfoResponse + (*SeriesRequest)(nil), // 6: thanos.SeriesRequest + (*SeriesResponse)(nil), // 7: thanos.SeriesResponse + (*LabelNamesRequest)(nil), // 8: thanos.LabelNamesRequest + (*LabelNamesResponse)(nil), // 9: thanos.LabelNamesResponse + (*LabelValuesRequest)(nil), // 10: thanos.LabelValuesRequest + (*LabelValuesResponse)(nil), // 11: thanos.LabelValuesResponse + (*prompb.TimeSeries)(nil), // 12: prometheus_copy.TimeSeries + (*labelpb.Label)(nil), // 13: thanos.Label + (*labelpb.ZLabelSet)(nil), // 14: thanos.ZLabelSet + (*LabelMatcher)(nil), // 15: thanos.LabelMatcher + (PartialResponseStrategy)(0), // 16: thanos.PartialResponseStrategy + (*any.Any)(nil), // 17: google.protobuf.Any + (*Series)(nil), // 18: thanos.Series +} +var file_store_storepb_rpc_proto_depIdxs = []int32{ + 12, // 0: thanos.WriteRequest.timeseries:type_name -> prometheus_copy.TimeSeries + 13, // 1: thanos.InfoResponse.labels:type_name -> thanos.Label + 0, // 2: thanos.InfoResponse.storeType:type_name -> thanos.StoreType + 14, // 3: thanos.InfoResponse.label_sets:type_name -> thanos.ZLabelSet + 15, // 4: thanos.SeriesRequest.matchers:type_name -> thanos.LabelMatcher + 1, // 5: thanos.SeriesRequest.aggregates:type_name -> thanos.Aggr + 16, // 6: thanos.SeriesRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 17, // 7: thanos.SeriesRequest.hints:type_name -> google.protobuf.Any + 18, // 8: thanos.SeriesResponse.series:type_name -> thanos.Series + 17, // 9: thanos.SeriesResponse.hints:type_name -> google.protobuf.Any + 16, // 10: thanos.LabelNamesRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 17, // 11: thanos.LabelNamesRequest.hints:type_name -> google.protobuf.Any + 15, // 12: thanos.LabelNamesRequest.matchers:type_name -> thanos.LabelMatcher + 17, // 13: thanos.LabelNamesResponse.hints:type_name -> google.protobuf.Any + 16, // 14: thanos.LabelValuesRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 17, // 15: thanos.LabelValuesRequest.hints:type_name -> google.protobuf.Any + 15, // 16: thanos.LabelValuesRequest.matchers:type_name -> thanos.LabelMatcher + 17, // 17: thanos.LabelValuesResponse.hints:type_name -> google.protobuf.Any + 4, // 18: thanos.Store.Info:input_type -> thanos.InfoRequest + 6, // 19: thanos.Store.Series:input_type -> thanos.SeriesRequest + 8, // 20: thanos.Store.LabelNames:input_type -> thanos.LabelNamesRequest + 10, // 21: thanos.Store.LabelValues:input_type -> thanos.LabelValuesRequest + 3, // 22: thanos.WriteableStore.RemoteWrite:input_type -> thanos.WriteRequest + 5, // 23: thanos.Store.Info:output_type -> thanos.InfoResponse + 7, // 24: thanos.Store.Series:output_type -> thanos.SeriesResponse + 9, // 25: thanos.Store.LabelNames:output_type -> thanos.LabelNamesResponse + 11, // 26: thanos.Store.LabelValues:output_type -> thanos.LabelValuesResponse + 2, // 27: thanos.WriteableStore.RemoteWrite:output_type -> thanos.WriteResponse + 23, // [23:28] is the sub-list for method output_type + 18, // [18:23] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_store_storepb_rpc_proto_init() } +func file_store_storepb_rpc_proto_init() { + if File_store_storepb_rpc_proto != nil { + return + } + file_store_storepb_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_store_storepb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WriteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SeriesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SeriesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelNamesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelNamesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValuesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_rpc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValuesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_store_storepb_rpc_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*SeriesResponse_Series)(nil), + (*SeriesResponse_Warning)(nil), + (*SeriesResponse_Hints)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _Store_serviceDesc = grpc.ServiceDesc{ - ServiceName: "thanos.Store", - HandlerType: (*StoreServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Info", - Handler: _Store_Info_Handler, - }, - { - MethodName: "LabelNames", - Handler: _Store_LabelNames_Handler, - }, - { - MethodName: "LabelValues", - Handler: _Store_LabelValues_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_storepb_rpc_proto_rawDesc, + NumEnums: 2, + NumMessages: 10, + NumExtensions: 0, + NumServices: 2, }, - }, - 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) + GoTypes: file_store_storepb_rpc_proto_goTypes, + DependencyIndexes: file_store_storepb_rpc_proto_depIdxs, + EnumInfos: file_store_storepb_rpc_proto_enumTypes, + MessageInfos: file_store_storepb_rpc_proto_msgTypes, + }.Build() + File_store_storepb_rpc_proto = out.File + file_store_storepb_rpc_proto_rawDesc = nil + file_store_storepb_rpc_proto_goTypes = nil + file_store_storepb_rpc_proto_depIdxs = nil } - -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 - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 *InfoRequest) 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 *InfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *InfoResponse) 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 *InfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LabelSets) > 0 { - for iNdEx := len(m.LabelSets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.LabelSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRpc(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.StoreType != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.StoreType)) - i-- - dAtA[i] = 0x20 - } - if m.MaxTime != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.MaxTime)) - i-- - dAtA[i] = 0x18 - } - if m.MinTime != 0 { - i = encodeVarintRpc(dAtA, i, uint64(m.MinTime)) - i-- - dAtA[i] = 0x10 - } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 { - dAtA3 := make([]byte, len(m.Aggregates)*10) - var j2 int - for _, num := range m.Aggregates { - for num >= 1<<7 { - dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j2++ - } - dAtA3[j2] = uint8(num) - j2++ - } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintRpc(dAtA, i, uint64(j2)) - 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 *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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 *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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - 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 - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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 m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Labels) > 0 { - for _, e := range m.Labels { - l = e.Size() - n += 1 + l + sovRpc(uint64(l)) - } - } - if m.MinTime != 0 { - n += 1 + sovRpc(uint64(m.MinTime)) - } - if m.MaxTime != 0 { - n += 1 + sovRpc(uint64(m.MaxTime)) - } - if m.StoreType != 0 { - n += 1 + sovRpc(uint64(m.StoreType)) - } - if len(m.LabelSets) > 0 { - for _, e := range m.LabelSets { - l = e.Size() - n += 1 + l + sovRpc(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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() - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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 *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 m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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 m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - } - } - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InfoRequest) 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: InfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InfoRequest: 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InfoResponse) 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: InfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.Labels = append(m.Labels, &labelpb.Label{}) - if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - 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 3: - 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 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StoreType", wireType) - } - m.StoreType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRpc - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StoreType |= StoreType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSets", 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.LabelSets = append(m.LabelSets, &labelpb.ZLabelSet{}) - if err := m.LabelSets[len(m.LabelSets)-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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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 - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - 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") -) diff --git a/pkg/store/storepb/rpc.proto b/pkg/store/storepb/rpc.proto index aa15bad86f..1ca50fd88c 100644 --- a/pkg/store/storepb/rpc.proto +++ b/pkg/store/storepb/rpc.proto @@ -10,7 +10,7 @@ import "store/storepb/prompb/types.proto"; import "store/labelpb/types.proto"; import "google/protobuf/any.proto"; -option go_package = "storepb"; +option go_package = "store/storepb"; // option (gogoproto.sizer_all) = true; // option (gogoproto.marshaler_all) = true; diff --git a/pkg/store/storepb/types.pb.go b/pkg/store/storepb/types.pb.go index 16feb93f8c..4cbbe3f9b2 100644 --- a/pkg/store/storepb/types.pb.go +++ b/pkg/store/storepb/types.pb.go @@ -1,28 +1,29 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 // source: store/storepb/types.proto package storepb import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" + reflect "reflect" + sync "sync" - proto "github.com/gogo/protobuf/proto" labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) /// PartialResponseStrategy controls partial response handling. type PartialResponseStrategy int32 @@ -40,22 +41,43 @@ const ( PartialResponseStrategy_ABORT PartialResponseStrategy = 1 ) -var PartialResponseStrategy_name = map[int32]string{ - 0: "WARN", - 1: "ABORT", -} +// Enum value maps for PartialResponseStrategy. +var ( + PartialResponseStrategy_name = map[int32]string{ + 0: "WARN", + 1: "ABORT", + } + PartialResponseStrategy_value = map[string]int32{ + "WARN": 0, + "ABORT": 1, + } +) -var PartialResponseStrategy_value = map[string]int32{ - "WARN": 0, - "ABORT": 1, +func (x PartialResponseStrategy) Enum() *PartialResponseStrategy { + p := new(PartialResponseStrategy) + *p = x + return p } func (x PartialResponseStrategy) String() string { - return proto.EnumName(PartialResponseStrategy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PartialResponseStrategy) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_types_proto_enumTypes[0].Descriptor() } +func (PartialResponseStrategy) Type() protoreflect.EnumType { + return &file_store_storepb_types_proto_enumTypes[0] +} + +func (x PartialResponseStrategy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PartialResponseStrategy.Descriptor instead. func (PartialResponseStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{0} + return file_store_storepb_types_proto_rawDescGZIP(), []int{0} } type Chunk_Encoding int32 @@ -64,1491 +86,538 @@ const ( Chunk_XOR Chunk_Encoding = 0 ) -var Chunk_Encoding_name = map[int32]string{ - 0: "XOR", -} +// Enum value maps for Chunk_Encoding. +var ( + Chunk_Encoding_name = map[int32]string{ + 0: "XOR", + } + Chunk_Encoding_value = map[string]int32{ + "XOR": 0, + } +) -var Chunk_Encoding_value = map[string]int32{ - "XOR": 0, +func (x Chunk_Encoding) Enum() *Chunk_Encoding { + p := new(Chunk_Encoding) + *p = x + return p } func (x Chunk_Encoding) String() string { - return proto.EnumName(Chunk_Encoding_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Chunk_Encoding) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_types_proto_enumTypes[1].Descriptor() +} + +func (Chunk_Encoding) Type() protoreflect.EnumType { + return &file_store_storepb_types_proto_enumTypes[1] +} + +func (x Chunk_Encoding) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Chunk_Encoding.Descriptor instead. func (Chunk_Encoding) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{0, 0} + return file_store_storepb_types_proto_rawDescGZIP(), []int{0, 0} } type LabelMatcher_Type int32 const ( - LabelMatcher_EQ LabelMatcher_Type = 0 - LabelMatcher_NEQ LabelMatcher_Type = 1 - LabelMatcher_RE LabelMatcher_Type = 2 - LabelMatcher_NRE LabelMatcher_Type = 3 + LabelMatcher_EQ LabelMatcher_Type = 0 // = + LabelMatcher_NEQ LabelMatcher_Type = 1 // != + LabelMatcher_RE LabelMatcher_Type = 2 // =~ + LabelMatcher_NRE LabelMatcher_Type = 3 // !~ ) -var LabelMatcher_Type_name = map[int32]string{ - 0: "EQ", - 1: "NEQ", - 2: "RE", - 3: "NRE", -} +// Enum value maps for LabelMatcher_Type. +var ( + LabelMatcher_Type_name = map[int32]string{ + 0: "EQ", + 1: "NEQ", + 2: "RE", + 3: "NRE", + } + LabelMatcher_Type_value = map[string]int32{ + "EQ": 0, + "NEQ": 1, + "RE": 2, + "NRE": 3, + } +) -var LabelMatcher_Type_value = map[string]int32{ - "EQ": 0, - "NEQ": 1, - "RE": 2, - "NRE": 3, +func (x LabelMatcher_Type) Enum() *LabelMatcher_Type { + p := new(LabelMatcher_Type) + *p = x + return p } func (x LabelMatcher_Type) String() string { - return proto.EnumName(LabelMatcher_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (LabelMatcher_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{3, 0} +func (LabelMatcher_Type) Descriptor() protoreflect.EnumDescriptor { + return file_store_storepb_types_proto_enumTypes[2].Descriptor() } -type Chunk struct { - Type Chunk_Encoding `protobuf:"varint,1,opt,name=type,proto3,enum=thanos.Chunk_Encoding" json:"type,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (LabelMatcher_Type) Type() protoreflect.EnumType { + return &file_store_storepb_types_proto_enumTypes[2] } -func (m *Chunk) Reset() { *m = Chunk{} } -func (m *Chunk) String() string { return proto.CompactTextString(m) } -func (*Chunk) ProtoMessage() {} -func (*Chunk) Descriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{0} -} -func (m *Chunk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Chunk.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 *Chunk) XXX_Merge(src proto.Message) { - xxx_messageInfo_Chunk.Merge(m, src) -} -func (m *Chunk) XXX_Size() int { - return m.Size() +func (x LabelMatcher_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *Chunk) XXX_DiscardUnknown() { - xxx_messageInfo_Chunk.DiscardUnknown(m) + +// Deprecated: Use LabelMatcher_Type.Descriptor instead. +func (LabelMatcher_Type) EnumDescriptor() ([]byte, []int) { + return file_store_storepb_types_proto_rawDescGZIP(), []int{3, 0} } -var xxx_messageInfo_Chunk proto.InternalMessageInfo +type Chunk struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Chunk) GetType() Chunk_Encoding { - if m != nil { - return m.Type - } - return Chunk_XOR + Type Chunk_Encoding `protobuf:"varint,1,opt,name=type,proto3,enum=thanos.Chunk_Encoding" json:"type,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *Chunk) GetData() []byte { - if m != nil { - return m.Data +func (x *Chunk) Reset() { + *x = Chunk{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type Series struct { - Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` - Chunks []*AggrChunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Chunk) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Series) Reset() { *m = Series{} } -func (m *Series) String() string { return proto.CompactTextString(m) } -func (*Series) ProtoMessage() {} -func (*Series) Descriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{1} -} -func (m *Series) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Series.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*Chunk) ProtoMessage() {} + +func (x *Chunk) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Series) XXX_Merge(src proto.Message) { - xxx_messageInfo_Series.Merge(m, src) -} -func (m *Series) XXX_Size() int { - return m.Size() -} -func (m *Series) XXX_DiscardUnknown() { - xxx_messageInfo_Series.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Series proto.InternalMessageInfo +// Deprecated: Use Chunk.ProtoReflect.Descriptor instead. +func (*Chunk) Descriptor() ([]byte, []int) { + return file_store_storepb_types_proto_rawDescGZIP(), []int{0} +} -func (m *Series) GetLabels() []*labelpb.Label { - if m != nil { - return m.Labels +func (x *Chunk) GetType() Chunk_Encoding { + if x != nil { + return x.Type } - return nil + return Chunk_XOR } -func (m *Series) GetChunks() []*AggrChunk { - if m != nil { - return m.Chunks +func (x *Chunk) GetData() []byte { + if x != nil { + return x.Data } return nil } -type AggrChunk 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"` - Raw *Chunk `protobuf:"bytes,3,opt,name=raw,proto3" json:"raw,omitempty"` - Count *Chunk `protobuf:"bytes,4,opt,name=count,proto3" json:"count,omitempty"` - Sum *Chunk `protobuf:"bytes,5,opt,name=sum,proto3" json:"sum,omitempty"` - Min *Chunk `protobuf:"bytes,6,opt,name=min,proto3" json:"min,omitempty"` - Max *Chunk `protobuf:"bytes,7,opt,name=max,proto3" json:"max,omitempty"` - Counter *Chunk `protobuf:"bytes,8,opt,name=counter,proto3" json:"counter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type Series struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AggrChunk) Reset() { *m = AggrChunk{} } -func (m *AggrChunk) String() string { return proto.CompactTextString(m) } -func (*AggrChunk) ProtoMessage() {} -func (*AggrChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{2} -} -func (m *AggrChunk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + Labels []*labelpb.Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + Chunks []*AggrChunk `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks,omitempty"` } -func (m *AggrChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AggrChunk.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 *AggrChunk) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggrChunk.Merge(m, src) -} -func (m *AggrChunk) XXX_Size() int { - return m.Size() -} -func (m *AggrChunk) XXX_DiscardUnknown() { - xxx_messageInfo_AggrChunk.DiscardUnknown(m) -} - -var xxx_messageInfo_AggrChunk proto.InternalMessageInfo -func (m *AggrChunk) GetMinTime() int64 { - if m != nil { - return m.MinTime +func (x *Series) Reset() { + *x = Series{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *AggrChunk) GetMaxTime() int64 { - if m != nil { - return m.MaxTime - } - return 0 +func (x *Series) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AggrChunk) GetRaw() *Chunk { - if m != nil { - return m.Raw - } - return nil -} +func (*Series) ProtoMessage() {} -func (m *AggrChunk) GetCount() *Chunk { - if m != nil { - return m.Count +func (x *Series) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *AggrChunk) GetSum() *Chunk { - if m != nil { - return m.Sum - } - return nil +// Deprecated: Use Series.ProtoReflect.Descriptor instead. +func (*Series) Descriptor() ([]byte, []int) { + return file_store_storepb_types_proto_rawDescGZIP(), []int{1} } -func (m *AggrChunk) GetMin() *Chunk { - if m != nil { - return m.Min +func (x *Series) GetLabels() []*labelpb.Label { + if x != nil { + return x.Labels } return nil } -func (m *AggrChunk) GetMax() *Chunk { - if m != nil { - return m.Max +func (x *Series) GetChunks() []*AggrChunk { + if x != nil { + return x.Chunks } return nil } -func (m *AggrChunk) GetCounter() *Chunk { - if m != nil { - return m.Counter - } - return nil -} +type AggrChunk struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// Matcher specifies a rule, which can match or set of labels or not. -type LabelMatcher struct { - Type LabelMatcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=thanos.LabelMatcher_Type" json:"type,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + 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"` + Raw *Chunk `protobuf:"bytes,3,opt,name=raw,proto3" json:"raw,omitempty"` + Count *Chunk `protobuf:"bytes,4,opt,name=count,proto3" json:"count,omitempty"` + Sum *Chunk `protobuf:"bytes,5,opt,name=sum,proto3" json:"sum,omitempty"` + Min *Chunk `protobuf:"bytes,6,opt,name=min,proto3" json:"min,omitempty"` + Max *Chunk `protobuf:"bytes,7,opt,name=max,proto3" json:"max,omitempty"` + Counter *Chunk `protobuf:"bytes,8,opt,name=counter,proto3" json:"counter,omitempty"` } -func (m *LabelMatcher) Reset() { *m = LabelMatcher{} } -func (m *LabelMatcher) String() string { return proto.CompactTextString(m) } -func (*LabelMatcher) ProtoMessage() {} -func (*LabelMatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_121fba57de02d8e0, []int{3} -} -func (m *LabelMatcher) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LabelMatcher.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 (x *AggrChunk) Reset() { + *x = AggrChunk{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *LabelMatcher) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelMatcher.Merge(m, src) -} -func (m *LabelMatcher) XXX_Size() int { - return m.Size() -} -func (m *LabelMatcher) XXX_DiscardUnknown() { - xxx_messageInfo_LabelMatcher.DiscardUnknown(m) -} -var xxx_messageInfo_LabelMatcher proto.InternalMessageInfo - -func (m *LabelMatcher) GetType() LabelMatcher_Type { - if m != nil { - return m.Type - } - return LabelMatcher_EQ +func (x *AggrChunk) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelMatcher) GetName() string { - if m != nil { - return m.Name - } - return "" -} +func (*AggrChunk) ProtoMessage() {} -func (m *LabelMatcher) GetValue() string { - if m != nil { - return m.Value +func (x *AggrChunk) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" -} - -func init() { - proto.RegisterEnum("thanos.PartialResponseStrategy", PartialResponseStrategy_name, PartialResponseStrategy_value) - proto.RegisterEnum("thanos.Chunk_Encoding", Chunk_Encoding_name, Chunk_Encoding_value) - proto.RegisterEnum("thanos.LabelMatcher_Type", LabelMatcher_Type_name, LabelMatcher_Type_value) - proto.RegisterType((*Chunk)(nil), "thanos.Chunk") - proto.RegisterType((*Series)(nil), "thanos.Series") - proto.RegisterType((*AggrChunk)(nil), "thanos.AggrChunk") - proto.RegisterType((*LabelMatcher)(nil), "thanos.LabelMatcher") + return mi.MessageOf(x) } -func init() { proto.RegisterFile("store/storepb/types.proto", fileDescriptor_121fba57de02d8e0) } - -var fileDescriptor_121fba57de02d8e0 = []byte{ - // 447 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0xeb, 0xfc, 0x6d, 0x0f, 0x03, 0x05, 0xf3, 0xcf, 0xe5, 0xa2, 0x54, 0x41, 0x88, 0x32, - 0x89, 0x4c, 0x1a, 0x4f, 0xd0, 0xa1, 0xdc, 0xc1, 0xc6, 0xbc, 0x4a, 0xa0, 0x09, 0x09, 0xb9, 0x9d, - 0xd5, 0x5a, 0x34, 0x4e, 0x64, 0x3b, 0xd0, 0x3e, 0x06, 0xe2, 0xa5, 0xb8, 0xe4, 0x11, 0x50, 0x9f, - 0x04, 0xd9, 0x49, 0x61, 0x95, 0x72, 0x13, 0x39, 0xdf, 0xf7, 0xb3, 0x3f, 0xfb, 0x9c, 0x03, 0x43, - 0x6d, 0x4a, 0xc5, 0x4f, 0xdc, 0xb7, 0x9a, 0x9f, 0x98, 0x6d, 0xc5, 0x75, 0x56, 0xa9, 0xd2, 0x94, - 0x38, 0x32, 0x2b, 0x26, 0x4b, 0xfd, 0xb4, 0x45, 0xd6, 0x6c, 0xce, 0xd7, 0x87, 0x48, 0xfa, 0x19, - 0xc2, 0xb7, 0xab, 0x5a, 0x7e, 0xc5, 0xc7, 0x10, 0x58, 0x9d, 0xa0, 0x31, 0x9a, 0xdc, 0x3b, 0x7d, - 0x9c, 0x35, 0x5b, 0x33, 0x67, 0x66, 0xb9, 0x5c, 0x94, 0x37, 0x42, 0x2e, 0xa9, 0x63, 0x30, 0x86, - 0xe0, 0x86, 0x19, 0x46, 0xbc, 0x31, 0x9a, 0x1c, 0x51, 0xb7, 0x4e, 0x1f, 0x40, 0x7f, 0x4f, 0xe1, - 0x18, 0xfc, 0x4f, 0x17, 0x34, 0xe9, 0xa5, 0xd7, 0x10, 0x5d, 0x71, 0x25, 0xb8, 0xc6, 0x2f, 0x20, - 0x72, 0xf1, 0x9a, 0xa0, 0xb1, 0x3f, 0xb9, 0x73, 0x7a, 0x77, 0x1f, 0xf0, 0xce, 0xaa, 0xb4, 0x35, - 0xf1, 0x2b, 0x88, 0x16, 0x36, 0x51, 0x13, 0xcf, 0x61, 0xf7, 0xf7, 0xd8, 0x74, 0xb9, 0x54, 0xee, - 0x2e, 0xb4, 0x05, 0xd2, 0x9f, 0x1e, 0x0c, 0xfe, 0xa9, 0x78, 0x08, 0xfd, 0x42, 0xc8, 0x2f, 0x46, - 0x14, 0xcd, 0x13, 0x7c, 0x1a, 0x17, 0x42, 0xce, 0x44, 0xc1, 0x9d, 0xc5, 0x36, 0x8d, 0xe5, 0xb5, - 0x16, 0xdb, 0x38, 0xeb, 0x19, 0xf8, 0x8a, 0x7d, 0x27, 0xfe, 0x18, 0xdd, 0xbe, 0x52, 0x93, 0x63, - 0x1d, 0xfc, 0x1c, 0xc2, 0x45, 0x59, 0x4b, 0x43, 0x82, 0x2e, 0xa4, 0xf1, 0xec, 0x29, 0xba, 0x2e, - 0x48, 0xd8, 0x79, 0x8a, 0xae, 0x0b, 0x0b, 0x14, 0x42, 0x92, 0xa8, 0x13, 0x28, 0x84, 0x74, 0x00, - 0xdb, 0x90, 0xb8, 0x1b, 0x60, 0x1b, 0xfc, 0x12, 0x62, 0x97, 0xc5, 0x15, 0xe9, 0x77, 0x41, 0x7b, - 0x37, 0xfd, 0x81, 0xe0, 0xc8, 0x95, 0xf4, 0x3d, 0x33, 0x8b, 0x15, 0x57, 0xf8, 0xf5, 0x41, 0x5f, - 0x87, 0x07, 0x65, 0x6f, 0x99, 0x6c, 0xb6, 0xad, 0xf8, 0xff, 0xd6, 0x4a, 0xd6, 0x16, 0x6a, 0x40, - 0xdd, 0x1a, 0x3f, 0x84, 0xf0, 0x1b, 0x5b, 0xd7, 0xdc, 0xd5, 0x69, 0x40, 0x9b, 0x9f, 0x74, 0x02, - 0x81, 0xdd, 0x87, 0x23, 0xf0, 0xf2, 0xcb, 0xa4, 0x67, 0x9b, 0x7e, 0x9e, 0x5f, 0x26, 0xc8, 0x0a, - 0x34, 0x4f, 0x3c, 0x27, 0xd0, 0x3c, 0xf1, 0x8f, 0x33, 0x78, 0xf2, 0x81, 0x29, 0x23, 0xd8, 0x9a, - 0x72, 0x5d, 0x95, 0x52, 0xf3, 0x2b, 0xa3, 0x98, 0xe1, 0xcb, 0x2d, 0xee, 0x43, 0xf0, 0x71, 0x4a, - 0xcf, 0x93, 0x1e, 0x1e, 0x40, 0x38, 0x3d, 0xbb, 0xa0, 0xb3, 0x04, 0x9d, 0x3d, 0xfa, 0xb5, 0x1b, - 0xa1, 0xdf, 0xbb, 0x11, 0xfa, 0xb3, 0x1b, 0xa1, 0xeb, 0xb8, 0x9d, 0xec, 0x79, 0xe4, 0x26, 0xf6, - 0xcd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x0a, 0x20, 0x79, 0xf1, 0x02, 0x00, 0x00, +// Deprecated: Use AggrChunk.ProtoReflect.Descriptor instead. +func (*AggrChunk) Descriptor() ([]byte, []int) { + return file_store_storepb_types_proto_rawDescGZIP(), []int{2} } -func (m *Chunk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AggrChunk) GetMinTime() int64 { + if x != nil { + return x.MinTime } - return dAtA[:n], nil -} - -func (m *Chunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return 0 } -func (m *Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x12 +func (x *AggrChunk) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } - if m.Type != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return 0 } -func (m *Series) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AggrChunk) GetRaw() *Chunk { + if x != nil { + return x.Raw } - return dAtA[:n], nil -} - -func (m *Series) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *Series) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *AggrChunk) GetCount() *Chunk { + if x != nil { + return x.Count } - if len(m.Chunks) > 0 { - for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Labels) > 0 { - for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil + return nil } -func (m *AggrChunk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AggrChunk) GetSum() *Chunk { + if x != nil { + return x.Sum } - return dAtA[:n], nil + return nil } -func (m *AggrChunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *AggrChunk) GetMin() *Chunk { + if x != nil { + return x.Min + } + return nil } -func (m *AggrChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *AggrChunk) GetMax() *Chunk { + if x != nil { + return x.Max } - if m.Counter != nil { - { - size, err := m.Counter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Max != nil { - { - size, err := m.Max.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Min != nil { - { - size, err := m.Min.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Sum != nil { - { - size, err := m.Sum.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Count != nil { - { - size, err := m.Count.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Raw != nil { - { - size, err := m.Raw.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.MaxTime != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxTime)) - i-- - dAtA[i] = 0x10 - } - if m.MinTime != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MinTime)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return nil } -func (m *LabelMatcher) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *AggrChunk) GetCounter() *Chunk { + if x != nil { + return x.Counter } - return dAtA[:n], nil + return nil } -func (m *LabelMatcher) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +// Matcher specifies a rule, which can match or set of labels or not. +type LabelMatcher struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LabelMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTypes(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + Type LabelMatcher_Type `protobuf:"varint,1,opt,name=type,proto3,enum=thanos.LabelMatcher_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` } -func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { - offset -= sovTypes(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Chunk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovTypes(uint64(m.Type)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) +func (x *LabelMatcher) Reset() { + *x = LabelMatcher{} + if protoimpl.UnsafeEnabled { + mi := &file_store_storepb_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n } -func (m *Series) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Labels) > 0 { - for _, e := range m.Labels { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - if len(m.Chunks) > 0 { - for _, e := range m.Chunks { - l = e.Size() - n += 1 + l + sovTypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *LabelMatcher) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AggrChunk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MinTime != 0 { - n += 1 + sovTypes(uint64(m.MinTime)) - } - if m.MaxTime != 0 { - n += 1 + sovTypes(uint64(m.MaxTime)) - } - if m.Raw != nil { - l = m.Raw.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.Count != nil { - l = m.Count.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.Sum != nil { - l = m.Sum.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.Min != nil { - l = m.Min.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.Max != nil { - l = m.Max.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.Counter != nil { - l = m.Counter.Size() - n += 1 + l + sovTypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*LabelMatcher) ProtoMessage() {} -func (m *LabelMatcher) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovTypes(uint64(m.Type)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovTypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *LabelMatcher) ProtoReflect() protoreflect.Message { + mi := &file_store_storepb_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func sovTypes(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTypes(x uint64) (n int) { - return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use LabelMatcher.ProtoReflect.Descriptor instead. +func (*LabelMatcher) Descriptor() ([]byte, []int) { + return file_store_storepb_types_proto_rawDescGZIP(), []int{3} } -func (m *Chunk) 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 ErrIntOverflowTypes - } - 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: Chunk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Chunk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= Chunk_Encoding(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelMatcher) GetType() LabelMatcher_Type { + if x != nil { + return x.Type } - return nil + return LabelMatcher_EQ } -func (m *Series) 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 ErrIntOverflowTypes - } - 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: Series: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Series: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Labels = append(m.Labels, &labelpb.Label{}) - if err := m.Labels[len(m.Labels)-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 Chunks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chunks = append(m.Chunks, &AggrChunk{}) - if err := m.Chunks[len(m.Chunks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelMatcher) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *AggrChunk) 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 ErrIntOverflowTypes - } - 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: AggrChunk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggrChunk: 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 ErrIntOverflowTypes - } - 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 ErrIntOverflowTypes - } - 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 Raw", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Raw == nil { - m.Raw = &Chunk{} - } - if err := m.Raw.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Count == nil { - m.Count = &Chunk{} - } - if err := m.Count.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Sum == nil { - m.Sum = &Chunk{} - } - if err := m.Sum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Min == nil { - m.Min = &Chunk{} - } - if err := m.Min.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Max == nil { - m.Max = &Chunk{} - } - if err := m.Max.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Counter == nil { - m.Counter = &Chunk{} - } - if err := m.Counter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelMatcher) GetValue() string { + if x != nil { + return x.Value } - return nil + return "" } -func (m *LabelMatcher) 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 ErrIntOverflowTypes - } - 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: LabelMatcher: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelMatcher: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= LabelMatcher_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - 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 ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - 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 ErrInvalidLengthTypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTypes(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, ErrIntOverflowTypes - } - 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, ErrIntOverflowTypes - } - 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, ErrIntOverflowTypes - } - 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, ErrInvalidLengthTypes - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTypes - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTypes - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_store_storepb_types_proto protoreflect.FileDescriptor + +var file_store_storepb_types_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x68, 0x61, + 0x6e, 0x6f, 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, + 0x0a, 0x05, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x43, + 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64, + 0x69, 0x6e, 0x67, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x4f, 0x52, 0x10, 0x00, 0x22, 0x5a, 0x0a, 0x06, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x29, 0x0a, + 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 0x52, 0x06, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x73, 0x22, 0x93, 0x02, 0x0a, 0x09, 0x41, 0x67, 0x67, + 0x72, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x03, + 0x72, 0x61, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x23, 0x0a, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x03, + 0x73, 0x75, 0x6d, 0x12, 0x1f, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, + 0x03, 0x6d, 0x69, 0x6e, 0x12, 0x1f, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, + 0x52, 0x03, 0x6d, 0x61, 0x78, 0x12, 0x27, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x91, + 0x01, 0x0a, 0x0c, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, + 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, + 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4d, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x45, 0x51, 0x10, + 0x01, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x52, 0x45, + 0x10, 0x03, 0x2a, 0x2e, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, + 0x04, 0x57, 0x41, 0x52, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x42, 0x4f, 0x52, 0x54, + 0x10, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") + file_store_storepb_types_proto_rawDescOnce sync.Once + file_store_storepb_types_proto_rawDescData = file_store_storepb_types_proto_rawDesc ) + +func file_store_storepb_types_proto_rawDescGZIP() []byte { + file_store_storepb_types_proto_rawDescOnce.Do(func() { + file_store_storepb_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_storepb_types_proto_rawDescData) + }) + return file_store_storepb_types_proto_rawDescData +} + +var file_store_storepb_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_store_storepb_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_store_storepb_types_proto_goTypes = []interface{}{ + (PartialResponseStrategy)(0), // 0: thanos.PartialResponseStrategy + (Chunk_Encoding)(0), // 1: thanos.Chunk.Encoding + (LabelMatcher_Type)(0), // 2: thanos.LabelMatcher.Type + (*Chunk)(nil), // 3: thanos.Chunk + (*Series)(nil), // 4: thanos.Series + (*AggrChunk)(nil), // 5: thanos.AggrChunk + (*LabelMatcher)(nil), // 6: thanos.LabelMatcher + (*labelpb.Label)(nil), // 7: thanos.Label +} +var file_store_storepb_types_proto_depIdxs = []int32{ + 1, // 0: thanos.Chunk.type:type_name -> thanos.Chunk.Encoding + 7, // 1: thanos.Series.labels:type_name -> thanos.Label + 5, // 2: thanos.Series.chunks:type_name -> thanos.AggrChunk + 3, // 3: thanos.AggrChunk.raw:type_name -> thanos.Chunk + 3, // 4: thanos.AggrChunk.count:type_name -> thanos.Chunk + 3, // 5: thanos.AggrChunk.sum:type_name -> thanos.Chunk + 3, // 6: thanos.AggrChunk.min:type_name -> thanos.Chunk + 3, // 7: thanos.AggrChunk.max:type_name -> thanos.Chunk + 3, // 8: thanos.AggrChunk.counter:type_name -> thanos.Chunk + 2, // 9: thanos.LabelMatcher.type:type_name -> thanos.LabelMatcher.Type + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_store_storepb_types_proto_init() } +func file_store_storepb_types_proto_init() { + if File_store_storepb_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_store_storepb_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Chunk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Series); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AggrChunk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_store_storepb_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelMatcher); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_store_storepb_types_proto_rawDesc, + NumEnums: 3, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_store_storepb_types_proto_goTypes, + DependencyIndexes: file_store_storepb_types_proto_depIdxs, + EnumInfos: file_store_storepb_types_proto_enumTypes, + MessageInfos: file_store_storepb_types_proto_msgTypes, + }.Build() + File_store_storepb_types_proto = out.File + file_store_storepb_types_proto_rawDesc = nil + file_store_storepb_types_proto_goTypes = nil + file_store_storepb_types_proto_depIdxs = nil +} diff --git a/pkg/store/storepb/types.proto b/pkg/store/storepb/types.proto index 1a96656285..8fb31d609a 100644 --- a/pkg/store/storepb/types.proto +++ b/pkg/store/storepb/types.proto @@ -4,7 +4,7 @@ syntax = "proto3"; package thanos; -option go_package = "storepb"; +option go_package = "store/storepb"; //import "gogoproto/gogo.proto"; import "store/labelpb/types.proto"; @@ -70,4 +70,4 @@ enum PartialResponseStrategy { /// This is especially useful for any rule/alert evaluations on top of StoreAPI which usually does not tolerate partial /// errors. ABORT = 1; -} \ No newline at end of file +} diff --git a/pkg/store/targetspb/rpc.pb.go b/pkg/store/targetspb/rpc.pb.go new file mode 100644 index 0000000000..5148aa0519 --- /dev/null +++ b/pkg/store/targetspb/rpc.pb.go @@ -0,0 +1,704 @@ +// Copyright (c) The Thanos Authors. +// Licensed under the Apache License 2.0. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0-devel +// protoc v3.4.0 +// source: targets/targetspb/rpc.proto + +package targetspb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + labelpb "store/labelpb" + rulespb "store/rulespb" + storepb "store/storepb" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type TargetHealth int32 + +const ( + TargetHealth_DOWN TargetHealth = 0 + TargetHealth_UP TargetHealth = 1 +) + +// Enum value maps for TargetHealth. +var ( + TargetHealth_name = map[int32]string{ + 0: "DOWN", + 1: "UP", + } + TargetHealth_value = map[string]int32{ + "DOWN": 0, + "UP": 1, + } +) + +func (x TargetHealth) Enum() *TargetHealth { + p := new(TargetHealth) + *p = x + return p +} + +func (x TargetHealth) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TargetHealth) Descriptor() protoreflect.EnumDescriptor { + return file_targets_targetspb_rpc_proto_enumTypes[0].Descriptor() +} + +func (TargetHealth) Type() protoreflect.EnumType { + return &file_targets_targetspb_rpc_proto_enumTypes[0] +} + +func (x TargetHealth) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TargetHealth.Descriptor instead. +func (TargetHealth) EnumDescriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{0} +} + +type TargetsRequest_State int32 + +const ( + TargetsRequest_ANY TargetsRequest_State = 0 + /// This will make sure strings.ToLower(.String()) will match 'active' and 'dropped' values for + /// Prometheus HTTP API. + TargetsRequest_ACTIVE TargetsRequest_State = 1 + TargetsRequest_DROPPED TargetsRequest_State = 2 +) + +// Enum value maps for TargetsRequest_State. +var ( + TargetsRequest_State_name = map[int32]string{ + 0: "ANY", + 1: "ACTIVE", + 2: "DROPPED", + } + TargetsRequest_State_value = map[string]int32{ + "ANY": 0, + "ACTIVE": 1, + "DROPPED": 2, + } +) + +func (x TargetsRequest_State) Enum() *TargetsRequest_State { + p := new(TargetsRequest_State) + *p = x + return p +} + +func (x TargetsRequest_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TargetsRequest_State) Descriptor() protoreflect.EnumDescriptor { + return file_targets_targetspb_rpc_proto_enumTypes[1].Descriptor() +} + +func (TargetsRequest_State) Type() protoreflect.EnumType { + return &file_targets_targetspb_rpc_proto_enumTypes[1] +} + +func (x TargetsRequest_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TargetsRequest_State.Descriptor instead. +func (TargetsRequest_State) EnumDescriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{0, 0} +} + +type TargetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State TargetsRequest_State `protobuf:"varint,1,opt,name=state,proto3,enum=thanos.TargetsRequest_State" json:"state,omitempty"` + PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,2,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"` +} + +func (x *TargetsRequest) Reset() { + *x = TargetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_targets_targetspb_rpc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TargetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TargetsRequest) ProtoMessage() {} + +func (x *TargetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_targets_targetspb_rpc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TargetsRequest.ProtoReflect.Descriptor instead. +func (*TargetsRequest) Descriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{0} +} + +func (x *TargetsRequest) GetState() TargetsRequest_State { + if x != nil { + return x.State + } + return TargetsRequest_ANY +} + +func (x *TargetsRequest) GetPartialResponseStrategy() storepb.PartialResponseStrategy { + if x != nil { + return x.PartialResponseStrategy + } + return storepb.PartialResponseStrategy_WARN +} + +type TargetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Result: + // *TargetsResponse_Targets + // *TargetsResponse_Warning + Result isTargetsResponse_Result `protobuf_oneof:"result"` +} + +func (x *TargetsResponse) Reset() { + *x = TargetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_targets_targetspb_rpc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TargetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TargetsResponse) ProtoMessage() {} + +func (x *TargetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_targets_targetspb_rpc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TargetsResponse.ProtoReflect.Descriptor instead. +func (*TargetsResponse) Descriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{1} +} + +func (m *TargetsResponse) GetResult() isTargetsResponse_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *TargetsResponse) GetTargets() *TargetDiscovery { + if x, ok := x.GetResult().(*TargetsResponse_Targets); ok { + return x.Targets + } + return nil +} + +func (x *TargetsResponse) GetWarning() string { + if x, ok := x.GetResult().(*TargetsResponse_Warning); ok { + return x.Warning + } + return "" +} + +type isTargetsResponse_Result interface { + isTargetsResponse_Result() +} + +type TargetsResponse_Targets struct { + /// structure with targets. It is up to server implementation to decide how many of those to put here within single frame. + Targets *TargetDiscovery `protobuf:"bytes,1,opt,name=targets,proto3,oneof"` +} + +type TargetsResponse_Warning struct { + /// warning is considered an information piece in place of series for warning purposes. + /// It is used to warn rule API users about suspicious cases or partial response (if enabled). + Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof"` +} + +func (*TargetsResponse_Targets) isTargetsResponse_Result() {} + +func (*TargetsResponse_Warning) isTargetsResponse_Result() {} + +type TargetDiscovery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"activeTargets" + ActiveTargets []*ActiveTarget `protobuf:"bytes,1,rep,name=activeTargets,proto3" json:"activeTargets,omitempty"` + // @gotags: json:"droppedTargets" + DroppedTargets []*DroppedTarget `protobuf:"bytes,2,rep,name=droppedTargets,proto3" json:"droppedTargets,omitempty"` +} + +func (x *TargetDiscovery) Reset() { + *x = TargetDiscovery{} + if protoimpl.UnsafeEnabled { + mi := &file_targets_targetspb_rpc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TargetDiscovery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TargetDiscovery) ProtoMessage() {} + +func (x *TargetDiscovery) ProtoReflect() protoreflect.Message { + mi := &file_targets_targetspb_rpc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TargetDiscovery.ProtoReflect.Descriptor instead. +func (*TargetDiscovery) Descriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{2} +} + +func (x *TargetDiscovery) GetActiveTargets() []*ActiveTarget { + if x != nil { + return x.ActiveTargets + } + return nil +} + +func (x *TargetDiscovery) GetDroppedTargets() []*DroppedTarget { + if x != nil { + return x.DroppedTargets + } + return nil +} + +type ActiveTarget struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"discoveredLabels" + DiscoveredLabels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=discoveredLabels,proto3" json:"discoveredLabels,omitempty"` + // @gotags: json:"labels" + Labels *labelpb.ZLabelSet `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels,omitempty"` + // @gotags: json:"scrapePool" + ScrapePool string `protobuf:"bytes,3,opt,name=scrapePool,proto3" json:"scrapePool,omitempty"` + // @gotags: json:"scrapeUrl" + ScrapeUrl string `protobuf:"bytes,4,opt,name=scrapeUrl,proto3" json:"scrapeUrl,omitempty"` + // @gotags: json:"globalUrl" + GlobalUrl string `protobuf:"bytes,5,opt,name=globalUrl,proto3" json:"globalUrl,omitempty"` + // @gotags: json:"lastError" + LastError string `protobuf:"bytes,6,opt,name=lastError,proto3" json:"lastError,omitempty"` + // @gotags: json:"lastScrape" + LastScrape *rulespb.Timestamp `protobuf:"bytes,7,opt,name=lastScrape,proto3" json:"lastScrape,omitempty"` + // @gotags: json:"lastScrapeDuration" + LastScrapeDuration float64 `protobuf:"fixed64,8,opt,name=lastScrapeDuration,proto3" json:"lastScrapeDuration,omitempty"` + // @gotags: json:"health" + Health TargetHealth `protobuf:"varint,9,opt,name=health,proto3,enum=thanos.TargetHealth" json:"health,omitempty"` +} + +func (x *ActiveTarget) Reset() { + *x = ActiveTarget{} + if protoimpl.UnsafeEnabled { + mi := &file_targets_targetspb_rpc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActiveTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActiveTarget) ProtoMessage() {} + +func (x *ActiveTarget) ProtoReflect() protoreflect.Message { + mi := &file_targets_targetspb_rpc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActiveTarget.ProtoReflect.Descriptor instead. +func (*ActiveTarget) Descriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{3} +} + +func (x *ActiveTarget) GetDiscoveredLabels() *labelpb.ZLabelSet { + if x != nil { + return x.DiscoveredLabels + } + return nil +} + +func (x *ActiveTarget) GetLabels() *labelpb.ZLabelSet { + if x != nil { + return x.Labels + } + return nil +} + +func (x *ActiveTarget) GetScrapePool() string { + if x != nil { + return x.ScrapePool + } + return "" +} + +func (x *ActiveTarget) GetScrapeUrl() string { + if x != nil { + return x.ScrapeUrl + } + return "" +} + +func (x *ActiveTarget) GetGlobalUrl() string { + if x != nil { + return x.GlobalUrl + } + return "" +} + +func (x *ActiveTarget) GetLastError() string { + if x != nil { + return x.LastError + } + return "" +} + +func (x *ActiveTarget) GetLastScrape() *rulespb.Timestamp { + if x != nil { + return x.LastScrape + } + return nil +} + +func (x *ActiveTarget) GetLastScrapeDuration() float64 { + if x != nil { + return x.LastScrapeDuration + } + return 0 +} + +func (x *ActiveTarget) GetHealth() TargetHealth { + if x != nil { + return x.Health + } + return TargetHealth_DOWN +} + +type DroppedTarget struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // @gotags: json:"discoveredLabels" + DiscoveredLabels *labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=discoveredLabels,proto3" json:"discoveredLabels,omitempty"` +} + +func (x *DroppedTarget) Reset() { + *x = DroppedTarget{} + if protoimpl.UnsafeEnabled { + mi := &file_targets_targetspb_rpc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DroppedTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DroppedTarget) ProtoMessage() {} + +func (x *DroppedTarget) ProtoReflect() protoreflect.Message { + mi := &file_targets_targetspb_rpc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DroppedTarget.ProtoReflect.Descriptor instead. +func (*DroppedTarget) Descriptor() ([]byte, []int) { + return file_targets_targetspb_rpc_proto_rawDescGZIP(), []int{4} +} + +func (x *DroppedTarget) GetDiscoveredLabels() *labelpb.ZLabelSet { + if x != nil { + return x.DiscoveredLabels + } + return nil +} + +var File_targets_targetspb_rpc_proto protoreflect.FileDescriptor + +var file_targets_targetspb_rpc_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x73, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x70, 0x62, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x72, 0x75, 0x6c, + 0x65, 0x73, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x01, 0x0a, 0x0e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x19, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, + 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x29, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, + 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x4f, 0x50, 0x50, 0x45, + 0x44, 0x10, 0x02, 0x22, 0x6c, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, + 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, + 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x07, 0x77, + 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, + 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, + 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x73, 0x12, 0x3d, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, + 0x22, 0x83, 0x03, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x3d, 0x0a, 0x10, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, + 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x10, + 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x12, 0x29, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x53, 0x65, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x73, + 0x63, 0x72, 0x61, 0x70, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x63, 0x72, 0x61, 0x70, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x63, 0x72, 0x61, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x63, 0x72, 0x61, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x72, + 0x61, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, + 0x6f, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6c, 0x61, + 0x73, 0x74, 0x53, 0x63, 0x72, 0x61, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, + 0x53, 0x63, 0x72, 0x61, 0x70, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x72, 0x61, 0x70, 0x65, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, + 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x22, 0x4e, 0x0a, 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, + 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x3d, 0x0a, 0x10, 0x64, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x5a, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x53, 0x65, 0x74, 0x52, 0x10, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2a, 0x20, 0x0a, 0x0c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x06, 0x0a, 0x02, 0x55, 0x50, 0x10, 0x01, 0x32, 0x47, 0x0a, 0x07, 0x54, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x07, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x16, + 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x68, 0x61, 0x6e, 0x6f, 0x73, 0x2e, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, + 0x01, 0x42, 0x11, 0x5a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_targets_targetspb_rpc_proto_rawDescOnce sync.Once + file_targets_targetspb_rpc_proto_rawDescData = file_targets_targetspb_rpc_proto_rawDesc +) + +func file_targets_targetspb_rpc_proto_rawDescGZIP() []byte { + file_targets_targetspb_rpc_proto_rawDescOnce.Do(func() { + file_targets_targetspb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_targets_targetspb_rpc_proto_rawDescData) + }) + return file_targets_targetspb_rpc_proto_rawDescData +} + +var file_targets_targetspb_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_targets_targetspb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_targets_targetspb_rpc_proto_goTypes = []interface{}{ + (TargetHealth)(0), // 0: thanos.TargetHealth + (TargetsRequest_State)(0), // 1: thanos.TargetsRequest.State + (*TargetsRequest)(nil), // 2: thanos.TargetsRequest + (*TargetsResponse)(nil), // 3: thanos.TargetsResponse + (*TargetDiscovery)(nil), // 4: thanos.TargetDiscovery + (*ActiveTarget)(nil), // 5: thanos.ActiveTarget + (*DroppedTarget)(nil), // 6: thanos.DroppedTarget + (storepb.PartialResponseStrategy)(0), // 7: thanos.PartialResponseStrategy + (*labelpb.ZLabelSet)(nil), // 8: thanos.ZLabelSet + (*rulespb.Timestamp)(nil), // 9: thanos.Timestamp +} +var file_targets_targetspb_rpc_proto_depIdxs = []int32{ + 1, // 0: thanos.TargetsRequest.state:type_name -> thanos.TargetsRequest.State + 7, // 1: thanos.TargetsRequest.partial_response_strategy:type_name -> thanos.PartialResponseStrategy + 4, // 2: thanos.TargetsResponse.targets:type_name -> thanos.TargetDiscovery + 5, // 3: thanos.TargetDiscovery.activeTargets:type_name -> thanos.ActiveTarget + 6, // 4: thanos.TargetDiscovery.droppedTargets:type_name -> thanos.DroppedTarget + 8, // 5: thanos.ActiveTarget.discoveredLabels:type_name -> thanos.ZLabelSet + 8, // 6: thanos.ActiveTarget.labels:type_name -> thanos.ZLabelSet + 9, // 7: thanos.ActiveTarget.lastScrape:type_name -> thanos.Timestamp + 0, // 8: thanos.ActiveTarget.health:type_name -> thanos.TargetHealth + 8, // 9: thanos.DroppedTarget.discoveredLabels:type_name -> thanos.ZLabelSet + 2, // 10: thanos.Targets.Targets:input_type -> thanos.TargetsRequest + 3, // 11: thanos.Targets.Targets:output_type -> thanos.TargetsResponse + 11, // [11:12] is the sub-list for method output_type + 10, // [10:11] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_targets_targetspb_rpc_proto_init() } +func file_targets_targetspb_rpc_proto_init() { + if File_targets_targetspb_rpc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_targets_targetspb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TargetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_targets_targetspb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TargetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_targets_targetspb_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TargetDiscovery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_targets_targetspb_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActiveTarget); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_targets_targetspb_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DroppedTarget); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_targets_targetspb_rpc_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*TargetsResponse_Targets)(nil), + (*TargetsResponse_Warning)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_targets_targetspb_rpc_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_targets_targetspb_rpc_proto_goTypes, + DependencyIndexes: file_targets_targetspb_rpc_proto_depIdxs, + EnumInfos: file_targets_targetspb_rpc_proto_enumTypes, + MessageInfos: file_targets_targetspb_rpc_proto_msgTypes, + }.Build() + File_targets_targetspb_rpc_proto = out.File + file_targets_targetspb_rpc_proto_rawDesc = nil + file_targets_targetspb_rpc_proto_goTypes = nil + file_targets_targetspb_rpc_proto_depIdxs = nil +} diff --git a/pkg/targets/targetspb/rpc.pb.go b/pkg/targets/targetspb/rpc.pb.go index c908b2cf7e..47a5fe313e 100644 --- a/pkg/targets/targetspb/rpc.pb.go +++ b/pkg/targets/targetspb/rpc.pb.go @@ -10,6 +10,7 @@ import ( io "io" math "math" math_bits "math/bits" + rulespb "github.com/thanos-io/thanos/pkg/rules/rulespb" proto "github.com/gogo/protobuf/proto" diff --git a/pkg/targets/targetspb/rpc.proto b/pkg/targets/targetspb/rpc.proto index 2d7211d079..85489a182a 100644 --- a/pkg/targets/targetspb/rpc.proto +++ b/pkg/targets/targetspb/rpc.proto @@ -8,7 +8,7 @@ import "store/storepb/types.proto"; //import "gogoproto/gogo.proto"; import "store/labelpb/types.proto"; import "rules/rulespb/rpc.proto"; -option go_package = "targetspb"; +option go_package = "store/targetspb"; // option (gogoproto.sizer_all) = true; // option (gogoproto.marshaler_all) = true; diff --git a/scripts/genproto.sh b/scripts/genproto.sh index 052d668d23..2f89c86635 100755 --- a/scripts/genproto.sh +++ b/scripts/genproto.sh @@ -8,7 +8,7 @@ set -u PROTOC_BIN=${PROTOC_BIN:-protoc} GOIMPORTS_BIN=${GOIMPORTS_BIN:-goimports} PROTOC_GEN_GOGOFAST_BIN=${PROTOC_GEN_GOGOFAST_BIN:-protoc-gen-gogofast} - +INCLUDE_PATH=${INCLUDE_PATH:-/tmp/proto/include} if ! [[ "scripts/genproto.sh" =~ $0 ]]; then echo "must be run from repository root" exit 255 @@ -21,20 +21,19 @@ fi mkdir -p /tmp/protobin/ cp ${PROTOC_GEN_GOGOFAST_BIN} /tmp/protobin/protoc-gen-gogofast +cp ${PROTOC_GEN_GO_BIN} /tmp/protobin/protoc-gen-go PATH=${PATH}:/tmp/protobin -GOGOPROTO_ROOT="$(GO111MODULE=on go list -modfile=.bingo/protoc-gen-gogofast.mod -f '{{ .Dir }}' -m github.com/gogo/protobuf)" -GOGOPROTO_PATH="${GOGOPROTO_ROOT}:${GOGOPROTO_ROOT}/protobuf" -DIRS="store/storepb/ store/storepb/prompb/ store/labelpb rules/rulespb targets/targetspb store/hintspb queryfrontend metadata/metadatapb exemplars/exemplarspb info/infopb" +DIRS="store/storepb store/storepb/prompb/ store/labelpb rules/rulespb targets/targetspb store/hintspb queryfrontend metadata/metadatapb exemplars/exemplarspb info/infopb" echo "generating code" pushd "pkg" for dir in ${DIRS}; do - ${PROTOC_BIN} --gogofast_out=Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,plugins=grpc:. \ - -I=. \ - -I="${GOGOPROTO_PATH}" \ - ${dir}/*.proto + ${PROTOC_BIN} --go_out=. \ + -I=. \ + -I=${INCLUDE_PATH} \ + ${dir}/*.proto protoc-go-inject-tag -input=${dir}/*pb.go - + pushd ${dir} sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go diff --git a/scripts/installprotoc.sh b/scripts/installprotoc.sh index ffee6c351e..c11d8201a4 100755 --- a/scripts/installprotoc.sh +++ b/scripts/installprotoc.sh @@ -6,6 +6,7 @@ set -u PROTOC_VERSION=${PROTOC_VERSION:-3.4.0} TMP_GOPATH=${TMP_GOPATH:-/tmp/thanos-go} +TMP_PROTOPATH=${TMP_PROTOPATH:-/tmp/proto} PROTOC_DOWNLOAD_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}" OS=$(go env GOOS) @@ -57,3 +58,4 @@ PACKAGE="protoc-${PROTOC_VERSION}-${OS}-${ARCH}.zip" PACKAGE_DOWNLOAD_URL="${PROTOC_DOWNLOAD_URL}/${PACKAGE}" curl -LSs ${PACKAGE_DOWNLOAD_URL} -o ${TMP_GOPATH}/${PACKAGE} unzip -qqj ${TMP_GOPATH}/${PACKAGE} "bin/protoc" -d "${TMP_GOPATH}/bin/" +unzip -qq ${TMP_GOPATH}/${PACKAGE} "include/*" -d "${TMP_PROTOPATH}"