diff --git a/.gitignore b/.gitignore index fcc21475..f78ec3d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,132 @@ -node_modules -/vald /vald-origin +/vald + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json -/coverage -/tests/wordvecs1000.json +# Pyre type checker +.pyre/ diff --git a/.npmignore b/.npmignore deleted file mode 100644 index d48b444a..00000000 --- a/.npmignore +++ /dev/null @@ -1,12 +0,0 @@ -.github/ -.fossa -node_modules/ -vald -!src/vald -!src/vald/v1/vald -vald-origin/ -example/ -example-ts/ -tmp/ -jest.config.ts -tests/ diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b6f27f13..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -engine-strict=true diff --git a/Makefile b/Makefile index 2052a633..28e20695 100755 --- a/Makefile +++ b/Makefile @@ -17,32 +17,33 @@ REPO ?= vdaas NAME = vald VALDREPO = github.com/$(REPO)/$(NAME) -LANGUAGE = node +LANGUAGE = python PKGNAME = $(NAME)-client-$(LANGUAGE) PKGREPO = github.com/$(REPO)/$(PKGNAME) +PYTHON = python + VALD_DIR = vald-origin VALD_SHA = VALD_SHA -VALD_CLIENT_NODE_VERSION = VALD_CLIENT_NODE_VERSION +VALD_CLIENT_PYTHON_VERSION = VALD_CLIENT_PYTHON_VERSION -PWD := $(eval PWD := $(shell pwd))$(PWD) +BINDIR ?= /usr/local/bin PROTO_ROOT = $(VALD_DIR)/apis/proto -NODE_VERSION := $(eval NODE_VERSION := $(shell cat NODE_VERSION))$(NODE_VERSION) -NODE_ROOT = src -NPM_BIN = $(shell npm prefix) +PB2DIR_ROOT = src +BUF_VERSION_URL := https://raw.githubusercontent.com/vdaas/vald/main/versions/BUF_VERSION BUF_CONFIGS = \ $(PROTO_ROOT)/buf.yaml \ $(PROTO_ROOT)/buf.lock -SHADOW_ROOT = vald +SHADOW_ROOT = vald SHADOW_PROTO_ROOT = $(SHADOW_ROOT)/$(SHADOW_ROOT) -TEST_DATASET_PATH = tests/wordvecs1000.json - PROTOS = \ v1/agent/core/agent.proto \ + v1/filter/egress/egress_filter.proto \ + v1/filter/ingress/ingress_filter.proto \ v1/vald/filter.proto \ v1/vald/insert.proto \ v1/vald/object.proto \ @@ -51,21 +52,11 @@ PROTOS = \ v1/vald/update.proto \ v1/vald/upsert.proto \ v1/payload/payload.proto -PROTOS := $(PROTOS:%=$(PROTO_ROOT)/%) -SHADOWS = $(PROTOS:$(PROTO_ROOT)/%.proto=$(SHADOW_PROTO_ROOT)/%.proto) -NODESOURCES = $(PROTOS:$(PROTO_ROOT)/%.proto=$(NODE_ROOT)/$(SHADOW_ROOT)/%_grpc_pb.js) -NODE_IDXDIR = $(dir $(NODESOURCES)) -NODE_IDXJS = $(NODE_IDXDIR:%=%index.js) -NODE_IDXDTS = $(NODE_IDXDIR:%=%index.d.ts) - -PROTO_PATHS = \ - $(PWD) \ - $(PWD)/$(VALD_DIR) \ - $(PWD)/$(PROTO_ROOT) - -BUF_GEN_PATH = $(NPM_BIN)/node_modules/@bufbuild/buf/bin/buf +PROTOS := $(PROTOS:%=$(PROTO_ROOT)/%) +SHADOWS = $(PROTOS:$(PROTO_ROOT)/%.proto=$(SHADOW_PROTO_ROOT)/%.proto) +PB2PYS = $(PROTOS:$(PROTO_ROOT)/%.proto=$(PB2DIR_ROOT)/$(SHADOW_ROOT)/%_pb2.py) -MAKELISTS = Makefile +MAKELISTS = Makefile red = /bin/echo -e "\x1b[31m\#\# $1\x1b[0m" green = /bin/echo -e "\x1b[32m\#\# $1\x1b[0m" @@ -97,20 +88,16 @@ help: .PHONY: clean ## clean clean: - rm -rf index.js index.d.ts - rm -rf $(NODE_ROOT) - rm -rf $(VALD_DIR) + rm -rf $(PB2DIR_ROOT)/google $(PB2DIR_ROOT)/vald $(PB2DIR_ROOT)/buf rm -rf $(SHADOW_ROOT) - rm -rf node_modules + rm -rf $(VALD_DIR) .PHONY: proto ## build proto -proto: \ - $(NODESOURCES) \ - $(NODE_IDXJS) \ - $(NODE_IDXDTS) \ - index.js \ - index.d.ts +proto: $(PB2PYS) + @$(call green, "generating pb2.py files...") + cp -f $(BUF_CONFIGS) $(SHADOW_ROOT) + buf generate --include-imports $(PROTOS): $(VALD_DIR) $(SHADOWS): $(PROTOS) @@ -119,108 +106,13 @@ $(SHADOW_PROTO_ROOT)/%.proto: $(PROTO_ROOT)/%.proto cp $< $@ sed -i -e 's:^import "v1:import "$(SHADOW_ROOT)/v1:' $@ -$(NODE_ROOT): +$(PB2DIR_ROOT): mkdir -p $@ -$(NODE_IDXDIR): \ - $(NODESOURCES) -$(NODE_IDXJS): \ - $(NODE_IDXDIR) \ - $(NODESOURCES) -$(NODE_IDXDTS): \ - $(NODE_IDXDIR) \ - $(NODESOURCES) -$(NODE_ROOT)/$(SHADOW_ROOT)/%/index.js: $(NODE_ROOT)/$(SHADOW_ROOT)/% - rm -rf $@ - for v in $(filter $> $@; \ - if [ ! "$${name}" = "payload" ]; then \ - echo "module.exports.$${name}_grpc = require(\"./$${name}_pb.grpc-client\");" >> $@; \ - fi; \ - done -$(NODE_ROOT)/$(SHADOW_ROOT)/%/index.d.ts: $(NODE_ROOT)/$(SHADOW_ROOT)/% - rm -rf $@ - ss=""; \ - for v in $(filter $> $@; \ - if [ ! "$${name}" = "payload" ]; then \ - echo "import $${name}_grpc = require(\"./$${name}_pb.grpc-client\");" >> $@; \ - fi; \ - ss="$$ss $$name"; \ - done; \ - echo "declare const _default: {" >> $@; \ - for s in $$ss; \ - do \ - echo " $$s: typeof $$s," >> $@; \ - if [ ! "$${s}" = "payload" ]; then \ - echo " $${s}_grpc: typeof $${s}_grpc," >> $@; \ - fi; \ - done - echo "};" >> $@ - echo "export = _default;" >> $@ - -index.js: $(NODE_IDXJS) - rm -rf $@ - for i in $$(find $(NODE_ROOT)/$(SHADOW_ROOT) -type f -name "index.js"); \ - do \ - d=`echo $$i | \ - sed -e "s:/index.js::"`; \ - s=`echo $$d | \ - sed -e "s:$(NODE_ROOT)/$(SHADOW_ROOT)/::" | \ - sed -e "s:/:_:g"`; \ - echo "module.exports.$$s = require(\"./$$d\");" >> $@; \ - done - -index.d.ts: $(NODE_IDXDTS) - rm -rf $@ - ss=""; \ - for i in $$(find $(NODE_ROOT)/$(SHADOW_ROOT) -type f -name "index.js"); \ - do \ - d=`echo $$i | \ - sed -e "s:/index.js::"`; \ - s=`echo $$d | \ - sed -e "s:$(NODE_ROOT)/$(SHADOW_ROOT)/::" | \ - sed -e "s:/:_:g"`; \ - echo "import $$s = require(\"./$$d\");" >> $@; \ - ss="$$ss $$s"; \ - done; \ - echo "declare const _default: {" >> $@; \ - for s in $$ss; \ - do \ - echo " $$s: typeof $$s," >> $@; \ - done - echo "};" >> $@ - echo "export = _default;" >> $@ - -$(NODESOURCES): \ - $(BUF_GEN_PATH) \ - $(NODE_ROOT) \ - $(SHADOWS) -$(NODE_ROOT)/$(SHADOW_ROOT)/%_grpc_pb.js: $(SHADOW_PROTO_ROOT)/%.proto - @$(call green, "generating node files...") - cp -f $(BUF_CONFIGS) $(SHADOW_ROOT) - $(BUF_GEN_PATH) generate --include-imports +$(PB2PYS): proto/deps $(PB2DIR_ROOT) $(SHADOWS) $(VALD_DIR): - git clone https://$(VALDREPO) $(VALD_DIR) - -.PHONY: vald/checkout -## checkout vald repository -vald/checkout: $(VALD_DIR) - cd $(VALD_DIR) && git checkout $(VALD_CHECKOUT_REF) - -.PHONY: vald/origin/sha/print -## print origin VALD_SHA value -vald/origin/sha/print: $(VALD_DIR) - @cd $(VALD_DIR) && git rev-parse HEAD | tr -d '\n' + git clone --depth 1 https://$(VALDREPO) $(VALD_DIR) .PHONY: vald/sha/print ## print VALD_SHA value @@ -229,69 +121,48 @@ vald/sha/print: .PHONY: vald/sha/update ## update VALD_SHA value -vald/sha/update: $(VALD_DIR) - (cd $(VALD_DIR); git rev-parse HEAD | tr -d '\n' > ../$(VALD_SHA)) +vald/sha/update: vald + (cd vald; git rev-parse HEAD | tr -d '\n' > ../$(VALD_SHA)) -.PHONY: vald/client/version/print -## print VALD_CLIENT_JAVA_VERSION value -vald/client/version/print: - @cat $(VALD_CLIENT_NODE_VERSION) +.PHONY: vald/client/python/version/print +## print VALD_CLIENT_PYTHON_VERSION value +vald/client/python/version/print: + @cat $(VALD_CLIENT_PYTHON_VERSION) -.PHONY: vald/client/version/update -## update VALD_CLIENT_NODE_VERSION value -vald/client/version/update: $(VALD_DIR) +.PHONY: vald/client/python/version/update +## update VALD_CLIENT_PYTHON_VERSION value +vald/client/python/version/update: vald (vald_version=`cat $(VALD_DIR)/versions/VALD_VERSION | sed -e 's/^v//'`; \ - echo "VALD_VERSION: $${vald_version}"; \ - echo "$${vald_version}" > VALD_CLIENT_NODE_VERSION) - sed -i -e "s/\"version\": \".*\",\$$/\"version\": \"`cat VALD_CLIENT_NODE_VERSION`\",/" package.json - -.PHONY: test -## Execute test for CI environment -test: $(TEST_DATASET_PATH) - npm run test - - # verify example codes - npm pack - npm install -g ts-node - (version=$(shell $(MAKE) -s vald/client/version/print); \ - echo "vald-client-node version: $${version}"; \ - cd example-ts && npm install ../vald-client-node-$${version}.tgz -s -f; \ - DIM=300 ts-node example.ts; \ - cd ../example && npm install ../vald-client-node-$${version}.tgz -s -f; \ - DIM=300 node example.js) - -$(TEST_DATASET_PATH): - curl -L https://raw.githubusercontent.com/rinx/word2vecjson/master/data/wordvecs1000.json -o $(TEST_DATASET_PATH) - -.PHONY: ci/deps/install -## install deps for CI environment -ci/deps/install: - npm install - -.PHONY: ci/deps/update -## update deps for CI environment -ci/deps/update: - npm update - -.PHONY: ci/package/prepare -## prepare for publich -ci/package/prepare: \ - ci/deps/install - -.PHONY: ci/package/publish -## publich packages -ci/package/publish: - npm publish + client_version=`cat $(VALD_CLIENT_PYTHON_VERSION)`; \ + major=$${client_version%%.*}; client_version="$${client_version#*.}"; \ + minor=$${client_version%%.*}; client_version="$${client_version#*.}"; \ + patch=$${client_version%%.*}; client_version="$${client_version#*.}"; \ + if [ "$${vald_version}" = "$${major}.$${minor}.$${patch}" ]; then \ + if [ "$${patch}" = "$${client_version}" ]; then \ + new_version="$${major}.$${minor}.$${patch}.post1"; \ + else \ + rev="$${client_version#post}"; \ + rev=$$((rev+1)); \ + new_version="$${major}.$${minor}.$${patch}.post$${rev}"; \ + fi; \ + else \ + new_version="$${vald_version}"; \ + fi; \ + echo "VALD_VERSION: $${vald_version}, NEW_CLIENT_VERSION: $${new_version}"; \ + echo "$${new_version}" > VALD_CLIENT_PYTHON_VERSION) + sed -i -e "s/^version = .*\$$/version = `cat VALD_CLIENT_PYTHON_VERSION`/" setup.cfg -.PHONY: proto/deps/install +.PHONY: proto/deps ## install proto deps -proto/deps/install: \ - $(BUF_GEN_PATH) - -$(BUF_GEN_PATH): - npm install --save-dev @bufbuild/buf @bufbuild/protobuf - -.PHONY: version/node -## Print Node version -version/node: - @echo $(NODE_VERSION) +proto/deps: buf/install + +.PHONY: buf/install +## install buf command. +buf/install: $(BINDIR)/buf + +$(BINDIR)/buf: + @version=$$(curl -sSL $(BUF_VERSION_URL)); \ + curl -sSL \ + "https://github.com/bufbuild/buf/releases/download/$$version/buf-$(shell uname -s)-$(shell uname -m)" \ + -o "${BINDIR}/buf" && \ + chmod +x "${BINDIR}/buf" diff --git a/NODE_VERSION b/NODE_VERSION deleted file mode 100644 index 2bd5a0a9..00000000 --- a/NODE_VERSION +++ /dev/null @@ -1 +0,0 @@ -22 diff --git a/README.md b/README.md index ca7d6608..7f783897 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,64 @@ -# vald-client-node +# vald-client-python -[![vald-client-node](https://img.shields.io/npm/v/vald-client-node/latest?logo=npm&style=flat-square)](https://www.npmjs.com/package/vald-client-node) +[![PyPI version](https://badge.fury.io/py/vald-client-python.svg)](https://badge.fury.io/py/vald-client-python) [![Vald version](https://img.shields.io/github/release/vdaas/vald.svg?style=flat-square)](https://github.com/vdaas/vald/releases/latest) -![node-current](https://img.shields.io/node/v/vald-client-node) -![Build version](https://img.shields.io/badge/build_version-v18-green) -![total downloads](https://img.shields.io/npm/dt/vald-client-node) +![Build version](https://img.shields.io/badge/python-3.8-green) - -A Node.js gRPC client library for [Vald](https://github.com/vdaas/vald). +A Python gRPC client library for [Vald](https://github.com/vdaas/vald). ## Install -Using npm, +Using pip, ```sh -npm install vald-client-node +pip install vald-client-python ``` ## Usage -Please see [example/example.js](example/example.js) or [example-ts/example.ts](example-ts/example.ts). +To use v1 APIs, + +```python +import grpc +from vald.v1.vald import insert_pb2_grpc +from vald.v1.vald import search_pb2_grpc +from vald.v1.vald import update_pb2_grpc +from vald.v1.vald import remove_pb2_grpc +from vald.v1.payload import payload_pb2 + +## create a channel by passing "{host}:{port}" +channel = grpc.insecure_channel("gateway.vald.vdaas.org:80") + +## create stubs for calling RPCs +istub = insert_pb2_grpc.InsertStub(channel) +sstub = search_pb2_grpc.SearchStub(channel) +ustub = update_pb2_grpc.UpdateStub(channel) +rstub = remove_pb2_grpc.RemoveStub(channel) + +## call RPCs: Insert +vec = payload_pb2.Object.Vector(id='vector_id_1', vector=[0.1, 0.2, 0.3]) +icfg = payload_pb2.Insert.Config(skip_strict_exist_check=True) +istub.Insert(payload_pb2.Insert.Request(vector=vec, config=icfg)) + -[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B21465%2Fvald-client-node.svg?type=large)](https://app.fossa.com/projects/custom%2B21465%2Fvald-client-node?ref=badge_large) +## call RPCs: Search +### num: number of results +### timeout: 3 seconds +scfg = payload_pb2.Search.Config(num=10, radius=-1.0, epsilon=0.01, timeout=3000000000) +res = sstub.Search(payload_pb2.Search.Request(vector=[0.1, 0.2, 0.3], config=scfg)) + + +## call RPCs: Update +uvec = payload_pb2.Object.Vector(id='vector_id_1', vector=[0.1, 0.2, 0.3]) +ucfg = payload_pb2.Update.Config(skip_strict_exist_check=True) +ustub.Update(payload_pb2.Update.Request(vector=uvec, config=ucfg)) + + +## call RPCs: Remove +rcfg = payload_pb2.Remove.Config(skip_strict_exist_check=True) +rid = payload_pb2.Object.ID(id='vector_id_1') +rstub.Remove(payload_pb2.Remove.Request(id=rid, config=rcfg)) + +## close channel +channel.close() +``` diff --git a/VALD_CLIENT_NODE_VERSION b/VALD_CLIENT_PYTHON_VERSION similarity index 100% rename from VALD_CLIENT_NODE_VERSION rename to VALD_CLIENT_PYTHON_VERSION diff --git a/VALD_SHA b/VALD_SHA index 61e0a9b3..2c65e91b 100644 --- a/VALD_SHA +++ b/VALD_SHA @@ -1 +1 @@ -637f60ac773a84ec0ca6a0a5cf5b8f7e9a65f3f4 +18786bf03a1a47d7c24afae496ad1c839c1aca1e \ No newline at end of file diff --git a/buf.gen.yaml b/buf.gen.yaml index ecf58a82..78fcd4b5 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,17 +1,8 @@ version: v1 managed: - enabled: true + enabled: false plugins: - - plugin: buf.build/community/timostamm-protobuf-ts + - plugin: buf.build/protocolbuffers/python + out: src + - plugin: buf.build/grpc/python out: src - # https://github.com/timostamm/protobuf-ts/blob/main/MANUAL.md#the-protoc-plugin - opt: - - add_pb_suffix - - client_grpc1 - - generate_dependencies - - keep_enum_prefix - - ts_nocheck - - use_proto_field_name - - output_javascript - - output_legacy_commonjs - - eslint_disable diff --git a/buf.work.yaml b/buf.work.yaml index 00baabc2..69b7e202 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,3 +1,4 @@ version: v1 directories: + # A vald directory containing proto files is created by executing the make command. - vald diff --git a/copy-client.sh b/copy-client.sh index a7230e22..353c0f74 100644 --- a/copy-client.sh +++ b/copy-client.sh @@ -34,23 +34,71 @@ # cp -R ../vald-client-java/version . # Node -cp -R ../vald-client-node/buf.gen.yaml . -cp -R ../vald-client-node/buf.work.yaml . -cp -R ../vald-client-node/example . -cp -R ../vald-client-node/example-ts . -cp -R ../vald-client-node/.gitignore . -cp -R ../vald-client-node/index.d.ts . -cp -R ../vald-client-node/index.js . -cp -R ../vald-client-node/jest.config.ts . -cp -R ../vald-client-node/Makefile . -cp -R ../vald-client-node/node_modules . -cp -R ../vald-client-node/.npmignore . -cp -R ../vald-client-node/.npmrc . -cp -R ../vald-client-node/package.json . -cp -R ../vald-client-node/package-lock.json . -cp -R ../vald-client-node/README.md . -cp -R ../vald-client-node/src . -cp -R ../vald-client-node/tests . -cp -R ../vald-client-node/tsconfig.json . -cp -R ../vald-client-node/VALD_CLIENT_NODE_VERSION . -cp -R ../vald-client-node/VALD_SHA . +rm -rf buf.gen.yaml +rm -rf buf.work.yaml +rm -rf example +rm -rf example-ts +rm -rf .gitignore +rm -rf index.d.ts +rm -rf index.js +rm -rf jest.config.ts +rm -rf Makefile +rm -rf node_modules +rm -rf .npmignore +rm -rf .npmrc +rm -rf package.json +rm -rf package-lock.json +rm -rf README.md +rm -rf src +rm -rf tests +rm -rf tsconfig.json +rm -rf VALD_CLIENT_NODE_VERSION +rm -rf VALD_SHA +rm -rf NODE_VERSION + +# cp -R ../vald-client-node/buf.gen.yaml . +# cp -R ../vald-client-node/buf.work.yaml . +# cp -R ../vald-client-node/example . +# cp -R ../vald-client-node/example-ts . +# cp -R ../vald-client-node/.gitignore . +# cp -R ../vald-client-node/index.d.ts . +# cp -R ../vald-client-node/index.js . +# cp -R ../vald-client-node/jest.config.ts . +# cp -R ../vald-client-node/Makefile . +# cp -R ../vald-client-node/node_modules . +# cp -R ../vald-client-node/.npmignore . +# cp -R ../vald-client-node/.npmrc . +# cp -R ../vald-client-node/package.json . +# cp -R ../vald-client-node/package-lock.json . +# cp -R ../vald-client-node/README.md . +# cp -R ../vald-client-node/src . +# cp -R ../vald-client-node/tests . +# cp -R ../vald-client-node/tsconfig.json . +# cp -R ../vald-client-node/VALD_CLIENT_NODE_VERSION . +# cp -R ../vald-client-node/VALD_SHA . + +# Python + +rm -rf buf.gen.yaml +rm -rf buf.work.yaml +rm -rf .gitignore +# rm -rf LICENSE +rm -rf Makefile +rm -rf README.md +rm -rf setup.cfg +rm -rf setup.py +rm -rf src +rm -rf VALD_CLIENT_PYTHON_VERSION +rm -rf VALD_SHA + +cp -R ../vald-client-python/buf.gen.yaml . +cp -R ../vald-client-python/buf.work.yaml . +cp -R ../vald-client-python/.gitignore . +# cp -R ../vald-client-python/LICENSE . +cp -R ../vald-client-python/Makefile . +cp -R ../vald-client-python/README.md . +cp -R ../vald-client-python/setup.cfg . +cp -R ../vald-client-python/setup.py . +cp -R ../vald-client-python/src . +cp -R ../vald-client-python/VALD_CLIENT_PYTHON_VERSION . +cp -R ../vald-client-python/VALD_SHA . diff --git a/example-ts/.gitignore b/example-ts/.gitignore deleted file mode 100644 index 46322b82..00000000 --- a/example-ts/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -example.js -node_modules diff --git a/example-ts/example.ts b/example-ts/example.ts deleted file mode 100644 index 3cc6cf4f..00000000 --- a/example-ts/example.ts +++ /dev/null @@ -1,143 +0,0 @@ -import * as grpc from "@grpc/grpc-js"; -import { v1_vald, v1_payload } from "vald-client-node"; -import type { Insert_Request, Search_Request, Remove_Request } from "vald-client-node/src/vald/v1/payload/payload_pb"; - -const addr = "localhost:8081"; -const DIM = process.env.DIM || 4; -const ID = "id_1"; - -// sleep -const sleep = async (second: number) => - new Promise((resolve) => { - console.log("Wait for ", second, "s"); - setTimeout(resolve, second * 1000); - }); - -const main = async () => { - const vec: Array = []; - for (let i = 0; i < Number(DIM); i++) { - vec.push(0.1 * (i + 1)); - } - - // insert - const ivec = v1_payload.payload.Object_Vector.create({ - id: ID, - vector: vec, - }); - - const icfg = v1_payload.payload.Insert_Config.create({ - skip_strict_exist_check: false - }) - - const ireq = v1_payload.payload.Insert_Request.create({ - vector: ivec, - config: icfg, - }) - - const iclient = new v1_vald.insert_grpc.InsertClient( - addr, - grpc.credentials.createInsecure() - ); - - const insertFunc = async (req: Insert_Request) => { - return new Promise((resolve, reject) => { - iclient.insert(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - await insertFunc(ireq) - .then((res) => { - console.log("insert resp: ", res); - }) - .catch((e) => { - console.log("err: ", e); - process.exit(1); - }); - - const second = 100; - await sleep(second); - - // search - const scfg = v1_payload.payload.Search_Config.create({ - num: 10, - min_num: 1, - radius: -1.0, - epsilon: 0.01, - timeout: BigInt(3000000000), - }) - - const sreq = v1_payload.payload.Search_Request.create({ - vector: vec, - config: scfg, - }) - const sclient = new v1_vald.search_grpc.SearchClient( - addr, - grpc.credentials.createInsecure() - ); - - const searchFunc = async (req: Search_Request) => { - return new Promise((resolve, reject) => { - sclient.search(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - await searchFunc(sreq) - .then((res) => { - console.log("search res: ", res, "\n"); - }) - .catch((e) => { - console.log("err: ", e); - process.exit(1); - }); - - // remove - const rcfg = v1_payload.payload.Remove_Config.create({ - skip_strict_exist_check: false - }); - - const robjId = v1_payload.payload.Object_ID.create({ - id: ID, - }); - const rreq = v1_payload.payload.Remove_Request.create({ - id: robjId, - config: rcfg, - }); - - const rclient = new v1_vald.remove_grpc.RemoveClient( - addr, - grpc.credentials.createInsecure() - ); - - const removeFunc = async (req: Remove_Request) => { - return new Promise((resolve, reject) => { - rclient.remove(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - await removeFunc(rreq) - .then((res) => { - console.log("remove res: ", res, "\n"); - }) - .catch((e) => { - console.log("err: ", e); - process.exit(1); - }); - process.exit(0); -}; - -main(); diff --git a/example-ts/package-lock.json b/example-ts/package-lock.json deleted file mode 100644 index 4556d005..00000000 --- a/example-ts/package-lock.json +++ /dev/null @@ -1,342 +0,0 @@ -{ - "name": "example-ts", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "example-ts", - "version": "1.0.0", - "license": "Apache-2.0", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "vald-client-node": "^1.7.12" - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.10.6", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", - "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", - "dependencies": { - "@grpc/proto-loader": "^0.7.10", - "@js-sdsl/ordered-map": "^4.4.2" - }, - "engines": { - "node": ">=12.10.0" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.7.12", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", - "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.2.4", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@js-sdsl/ordered-map": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", - "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, - "node_modules/@protobuf-ts/runtime": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", - "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" - }, - "node_modules/@protobuf-ts/runtime-rpc": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", - "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", - "dependencies": { - "@protobuf-ts/runtime": "^2.9.4" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/vald-client-node": { - "version": "1.7.12", - "resolved": "https://registry.npmjs.org/vald-client-node/-/vald-client-node-1.7.12.tgz", - "integrity": "sha512-ntqRHultpWZBUtSc23Zhxm1x/66tnirencjHh7LMYFYFQolSxBD2dMYU4hghhQfuYfDdVpIBLOwlFVLk95kR/g==", - "dependencies": { - "@grpc/grpc-js": "^1.10.0", - "@protobuf-ts/runtime": "^2.9.3", - "@protobuf-ts/runtime-rpc": "^2.9.3" - }, - "engines": { - "node": ">=18.16.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - } - } -} diff --git a/example-ts/package.json b/example-ts/package.json deleted file mode 100644 index 27682ad8..00000000 --- a/example-ts/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "example-ts", - "version": "1.0.0", - "description": "", - "main": "example.ts", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "Vald authors (https://vald.vdaas.org)", - "license": "Apache-2.0", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "vald-client-node": "^1.7.12" - } -} diff --git a/example-ts/tsconfig.json b/example-ts/tsconfig.json deleted file mode 100644 index 574e785c..00000000 --- a/example-ts/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "target": "es2020", - "module": "commonjs", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, - "resolveJsonModule": true - } -} diff --git a/example/.gitignore b/example/.gitignore deleted file mode 100644 index 3c3629e6..00000000 --- a/example/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/example/example.js b/example/example.js deleted file mode 100644 index 17519d01..00000000 --- a/example/example.js +++ /dev/null @@ -1,146 +0,0 @@ -const grpc = require("@grpc/grpc-js"); -const vald = require("vald-client-node"); - -const insert = vald.v1_vald.insert_grpc; -const search = vald.v1_vald.search_grpc; -const remove = vald.v1_vald.remove_grpc; -const payload = vald.v1_payload.payload; - -const addr = "localhost:8081"; -const DIM = process.env.DIM || 4; -const ID = "id_1"; - -// sleep -const sleep = (second) => - new Promise((resolve) => { - console.log("Wait for ", second, "s"); - setTimeout(resolve, second * 1000); - }); - -const main = async () => { - const vec = []; - for (let i = 0; i < DIM; i++) { - vec.push(0.1 * (i + 1)); - } - - // insert - const ivec = payload.Object_Vector.create({ - id: ID, - vector: vec, - }); - - const icfg = payload.Insert_Config.create({ - skip_strict_exist_check: false, - }); - - const ireq = payload.Insert_Request.create({ - vector: ivec, - config: icfg, - }); - - const iclient = new insert.InsertClient( - addr, - grpc.credentials.createInsecure(), - ); - - const insertFunc = async (req) => { - return new Promise((resolve, reject) => { - iclient.insert(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - console.log("Insert start"); - await insertFunc(ireq) - .then((res) => { - console.log("insert res: ", res); - }) - .catch((e) => { - console.log("insert err: ", e); - process.exit(1); - }); - // Wait for createIndex completed - const second = 90; - await sleep(second); - - // search - const scfg = payload.Search_Config.create({ - num: 10, - min_num: 1, - radius: -1, - epsilon: 0.01, - timeout: 3000000000, - }); - - const sreq = payload.Search_Request.create({ - vector: vec, - config: scfg, - }); - - const sclient = new search.SearchClient( - addr, - grpc.credentials.createInsecure(), - ); - - const searchFunc = async (req) => { - return new Promise((resolve, reject) => { - sclient.search(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - console.log("Search start"); - await searchFunc(sreq) - .then((res) => { - console.log("search res: ", res); - }) - .catch((e) => { - console.log("err: ", e); - process.exit(1); - }); - - const rcfg = payload.Remove_Config.create({ - skip_strict_exist_check: false, - }); - const robjId = payload.Object_ID.create({ - id: ID, - }); - const rreq = payload.Remove_Request.create({ - id: robjId, - config: rcfg, - }); - const rclient = new remove.RemoveClient( - addr, - grpc.credentials.createInsecure(), - ); - const removeFunc = async (req) => { - return new Promise((resolve, reject) => { - rclient.remove(req, (err, resp) => { - if (err) { - reject(err); - } else { - resolve(resp); - } - }); - }); - }; - await removeFunc(rreq) - .then((res) => { - console.log("remove res: ", res); - }) - .catch((e) => { - console.log("err: ", e); - process.exit(1); - }); - process.exit(0); -}; - -main(); diff --git a/example/package-lock.json b/example/package-lock.json deleted file mode 100644 index 874a6bd5..00000000 --- a/example/package-lock.json +++ /dev/null @@ -1,342 +0,0 @@ -{ - "name": "example", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "example", - "version": "1.0.0", - "license": "Apache-2.0", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "vald-client-node": "^1.7.12" - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.10.6", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", - "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", - "dependencies": { - "@grpc/proto-loader": "^0.7.10", - "@js-sdsl/ordered-map": "^4.4.2" - }, - "engines": { - "node": ">=12.10.0" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.7.12", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", - "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.2.4", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@js-sdsl/ordered-map": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", - "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, - "node_modules/@protobuf-ts/runtime": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", - "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" - }, - "node_modules/@protobuf-ts/runtime-rpc": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", - "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", - "dependencies": { - "@protobuf-ts/runtime": "^2.9.4" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/vald-client-node": { - "version": "1.7.12", - "resolved": "https://registry.npmjs.org/vald-client-node/-/vald-client-node-1.7.12.tgz", - "integrity": "sha512-ntqRHultpWZBUtSc23Zhxm1x/66tnirencjHh7LMYFYFQolSxBD2dMYU4hghhQfuYfDdVpIBLOwlFVLk95kR/g==", - "dependencies": { - "@grpc/grpc-js": "^1.10.0", - "@protobuf-ts/runtime": "^2.9.3", - "@protobuf-ts/runtime-rpc": "^2.9.3" - }, - "engines": { - "node": ">=18.16.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - } - } -} diff --git a/example/package.json b/example/package.json deleted file mode 100644 index c28215dd..00000000 --- a/example/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "example", - "version": "1.0.0", - "description": "", - "main": "example.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "Vald authors (https://vald.vdaas.org)", - "license": "Apache-2.0", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "vald-client-node": "^1.7.12" - } -} diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index a972b185..00000000 --- a/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import v1_vald = require("./src/vald/v1/vald"); -import v1_agent_core = require("./src/vald/v1/agent/core"); -import v1_payload = require("./src/vald/v1/payload"); -declare const _default: { - v1_vald: typeof v1_vald, - v1_agent_core: typeof v1_agent_core, - v1_payload: typeof v1_payload, -}; -export = _default; diff --git a/index.js b/index.js deleted file mode 100644 index aee50975..00000000 --- a/index.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports.v1_vald = require("./src/vald/v1/vald"); -module.exports.v1_agent_core = require("./src/vald/v1/agent/core"); -module.exports.v1_payload = require("./src/vald/v1/payload"); diff --git a/jest.config.ts b/jest.config.ts deleted file mode 100644 index e512bf48..00000000 --- a/jest.config.ts +++ /dev/null @@ -1,196 +0,0 @@ -/* - * For a detailed explanation regarding each configuration property and type check, visit: - * https://jestjs.io/docs/configuration - */ - -export default { - // All imported modules in your tests should be mocked automatically - // automock: false, - - // Stop running tests after `n` failures - // bail: 0, - - // The directory where Jest should store its cached dependency information - // cacheDirectory: "/tmp/jest_0", - - // Automatically clear mock calls and instances between every test - clearMocks: true, - - // Indicates whether the coverage information should be collected while executing the test - collectCoverage: false, - - // An array of glob patterns indicating a set of files for which coverage information should be collected - // collectCoverageFrom: undefined, - - // The directory where Jest should output its coverage files - coverageDirectory: "coverage", - - // An array of regexp pattern strings used to skip coverage collection - // coveragePathIgnorePatterns: [ - // "/node_modules/" - // ], - - // Indicates which provider should be used to instrument code for coverage - coverageProvider: "v8", - - // A list of reporter names that Jest uses when writing coverage reports - // coverageReporters: [ - // "json", - // "text", - // "lcov", - // "clover" - // ], - - // An object that configures minimum threshold enforcement for coverage results - // coverageThreshold: undefined, - - // A path to a custom dependency extractor - // dependencyExtractor: undefined, - - // Make calling deprecated APIs throw helpful error messages - // errorOnDeprecated: false, - - // Force coverage collection from ignored files using an array of glob patterns - // forceCoverageMatch: [], - - // A path to a module which exports an async function that is triggered once before all test suites - // globalSetup: undefined, - - // A path to a module which exports an async function that is triggered once after all test suites - // globalTeardown: undefined, - - // A set of global variables that need to be available in all test environments - // globals: {}, - - // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - // maxWorkers: "50%", - - // An array of directory names to be searched recursively up from the requiring module's location - // moduleDirectories: [ - // "node_modules" - // ], - - // An array of file extensions your modules use - // moduleFileExtensions: [ - // "js", - // "jsx", - // "ts", - // "tsx", - // "json", - // "node" - // ], - - // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module - // moduleNameMapper: {}, - - // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader - // modulePathIgnorePatterns: [], - - // Activates notifications for test results - // notify: false, - - // An enum that specifies notification mode. Requires { notify: true } - // notifyMode: "failure-change", - - // A preset that is used as a base for Jest's configuration - // preset: undefined, - - // Run tests from one or more projects - // projects: undefined, - - // Use this configuration option to add custom reporters to Jest - // reporters: undefined, - - // Automatically reset mock state between every test - // resetMocks: false, - - // Reset the module registry before running each individual test - // resetModules: false, - - // A path to a custom resolver - // resolver: undefined, - - // Automatically restore mock state between every test - // restoreMocks: false, - - // The root directory that Jest should scan for tests and modules within - // rootDir: undefined, - - // A list of paths to directories that Jest should use to search for files in - roots: [ - "/tests" - ], - - // Allows you to use a custom runner instead of Jest's default test runner - // runner: "jest-runner", - - // The paths to modules that run some code to configure or set up the testing environment before each test - // setupFiles: [], - - // A list of paths to modules that run some code to configure or set up the testing framework before each test - // setupFilesAfterEnv: [], - - // The number of seconds after which a test is considered as slow and reported as such in the results. - // slowTestThreshold: 5, - - // A list of paths to snapshot serializer modules Jest should use for snapshot testing - // snapshotSerializers: [], - - // The test environment that will be used for testing - // testEnvironment: "jest-environment-node", - - // Options that will be passed to the testEnvironment - // testEnvironmentOptions: {}, - - // Adds a location field to test results - // testLocationInResults: false, - - // The glob patterns Jest uses to detect test files - // testMatch: [ - // "**/__tests__/**/*.[jt]s?(x)", - // "**/?(*.)+(spec|test).[tj]s?(x)" - // ], - - // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - // testPathIgnorePatterns: [ - // "/node_modules/" - // ], - - // The regexp pattern or array of patterns that Jest uses to detect test files - // testRegex: [], - - // This option allows the use of a custom results processor - // testResultsProcessor: undefined, - - // This option allows use of a custom test runner - // testRunner: "jest-circus/runner", - - // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href - // testURL: "http://localhost", - - // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout" - // timers: "real", - - // A map from regular expressions to paths to transformers - transform: { - "^.+\\.(ts|tsx)$": "ts-jest" - }, - - // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation - // transformIgnorePatterns: [ - // "/node_modules/", - // "\\.pnp\\.[^\\/]+$" - // ], - - // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them - // unmockedModulePathPatterns: undefined, - - // Indicates whether each individual test should be reported during the run - // verbose: undefined, - - // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode - // watchPathIgnorePatterns: [], - - // Whether to use watchman for file crawling - // watchman: true, -}; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index b4e04e92..00000000 --- a/package-lock.json +++ /dev/null @@ -1,4622 +0,0 @@ -{ - "name": "vald-client-node", - "version": "1.7.12", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "vald-client-node", - "version": "1.7.12", - "license": "Apache-2.0", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "@protobuf-ts/runtime": "^2.9.4", - "@protobuf-ts/runtime-rpc": "^2.9.4" - }, - "devDependencies": { - "@bufbuild/buf": "^1.31.0", - "@bufbuild/protobuf": "^1.9.0", - "@types/jest": "^27.5.2", - "jest": "^27.5.1", - "ts-jest": "^27.1.5", - "ts-node": "^10.9.2", - "typescript": "^4.9.5" - }, - "engines": { - "node": ">=18.16.0" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.2", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", - "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz", - "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.4", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.24.4", - "@babel/parser": "^7.24.4", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/@babel/generator": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.4.tgz", - "integrity": "sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.24.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", - "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", - "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.4.tgz", - "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", - "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", - "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.1", - "@babel/generator": "^7.24.1", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.24.1", - "@babel/types": "^7.24.0", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", - "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@bufbuild/buf": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.31.0.tgz", - "integrity": "sha512-kM/eueGkp0NDo8p8B6GXr1MdCzf4w8zEV1gbEiDlaLYDoyeHGLtlf5jF/hrb6MsvCccy3x7cc+cj4Wn/DmoR2g==", - "dev": true, - "hasInstallScript": true, - "bin": { - "buf": "bin/buf", - "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking", - "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@bufbuild/buf-darwin-arm64": "1.31.0", - "@bufbuild/buf-darwin-x64": "1.31.0", - "@bufbuild/buf-linux-aarch64": "1.31.0", - "@bufbuild/buf-linux-x64": "1.31.0", - "@bufbuild/buf-win32-arm64": "1.31.0", - "@bufbuild/buf-win32-x64": "1.31.0" - } - }, - "node_modules/@bufbuild/buf-darwin-arm64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.31.0.tgz", - "integrity": "sha512-C0jArGS/SW0jfpBBmG6xEhUBWQTsGInnPr7y44WYWNS/U5OnnWPJtYQ7xbH0mzYDMx7sZVRV0FKvPO0FPKS+hA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/buf-darwin-x64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.31.0.tgz", - "integrity": "sha512-oBTe1T4l2WSukAG+9YS7VHID4N1CuSvAxGBfuzpFQrjjiQZaaTfYuLqqVP6408MyCN7X/LOjfCekR1QToVweNw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/buf-linux-aarch64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.31.0.tgz", - "integrity": "sha512-UN9KsTuO9YS5Vefj/CaqX1wO+hvc3AyGElxzOHMc7S3MWEuqSAFOhxu5I7CyOr2/yoZO2qZPPR29HuzmQsb2+w==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/buf-linux-x64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.31.0.tgz", - "integrity": "sha512-4uKq5Iu5tNEFE3Mz9a52KFCaywg5xLqwhN6Kf4kAk34kxWJgQ8D3WFe9ZpXHzH7Lj00u3Q+V/3vKCVATHR3tkw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/buf-win32-arm64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.31.0.tgz", - "integrity": "sha512-jz7GenlNsqwbC3qaHcBHBO35MycZ1gV8OUSRp/wTXGgZsEZzAyw335JA2NWL+5LaI8cF+CsYd6/uuWzKkdCKTQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/buf-win32-x64": { - "version": "1.31.0", - "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.31.0.tgz", - "integrity": "sha512-gw7p3PYam0g7hNwIhNphua5P8GBZczginoWNK3jk5sGVv0TzWOdHrjkVVhkc3DJbRZEg10ExGI3qRfCqiX1IHw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@bufbuild/protobuf": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.9.0.tgz", - "integrity": "sha512-W7gp8Q/v1NlCZLsv8pQ3Y0uCu/SHgXOVFK+eUluUKWXmsb6VHkpNx0apdOWWcDbB9sJoKeP8uPrjmehJz6xETQ==", - "dev": true - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.10.6", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.6.tgz", - "integrity": "sha512-xP58G7wDQ4TCmN/cMUHh00DS7SRDv/+lC+xFLrTkMIN8h55X5NhZMLYbvy7dSELP15qlI6hPhNCRWVMtZMwqLA==", - "dependencies": { - "@grpc/proto-loader": "^0.7.10", - "@js-sdsl/ordered-map": "^4.4.2" - }, - "engines": { - "node": ">=12.10.0" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.7.12", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.12.tgz", - "integrity": "sha512-DCVwMxqYzpUCiDMl7hQ384FqP4T3DbNpXU8pt681l3UWCip1WUiD5JrkImUwCB9a7f2cq4CUTmi5r/xIMRPY1Q==", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.2.4", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "dev": true, - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", - "micromatch": "^4.0.4", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", - "dev": true, - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "dev": true, - "dependencies": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@js-sdsl/ordered-map": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", - "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, - "node_modules/@protobuf-ts/runtime": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.4.tgz", - "integrity": "sha512-vHRFWtJJB/SiogWDF0ypoKfRIZ41Kq+G9cEFj6Qm1eQaAhJ1LDFvgZ7Ja4tb3iLOQhz0PaoPnnOijF1qmEqTxg==" - }, - "node_modules/@protobuf-ts/runtime-rpc": { - "version": "2.9.4", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.4.tgz", - "integrity": "sha512-y9L9JgnZxXFqH5vD4d7j9duWvIJ7AShyBRoNKJGhu9Q27qIbchfzli66H9RvrQNIFk5ER7z1Twe059WZGqERcA==", - "dependencies": { - "@protobuf-ts/runtime": "^2.9.4" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "node_modules/@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", - "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "27.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", - "dev": true, - "dependencies": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" - } - }, - "node_modules/@types/node": { - "version": "20.12.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", - "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true - }, - "node_modules/@types/yargs": { - "version": "16.0.9", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.9.tgz", - "integrity": "sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "deprecated": "Use your platform's native atob() and btoa() methods instead", - "dev": true - }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true - }, - "node_modules/babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "dev": true, - "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, - "node_modules/browserslist": { - "version": "4.23.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", - "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001612", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001612.tgz", - "integrity": "sha512-lFgnZ07UhaCcsSZgWW0K5j4e69dK1u/ltrL9lTUiFOwNHs12S3UMIEYgBV0Z6C6hRDev7iRnMzzYmKabYdXF9g==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, - "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "deprecated": "Use your platform's native DOMException instead", - "dev": true, - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.748", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.748.tgz", - "integrity": "sha512-VWqjOlPZn70UZ8FTKUOkUvBLeTQ0xpty66qV0yJcAGY2/CthI4xyW9aEozRVtuwv3Kpf5xTesmJUcPwuJmgP4A==", - "dev": true - }, - "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", - "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", - "dev": true, - "dependencies": { - "@jest/core": "^27.5.1", - "import-local": "^3.0.2", - "jest-cli": "^27.5.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "execa": "^5.0.0", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", - "dev": true, - "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-cli/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/jest-cli/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "dev": true, - "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", - "dev": true, - "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "dev": true, - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "dev": true, - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "dev": true, - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "leven": "^3.1.0", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", - "dev": true, - "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^27.5.1", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nwsapi": { - "version": "2.2.9", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.9.tgz", - "integrity": "sha512-2f3F0SEEer8bBu0dsNCFF50N0cTThV1nWFYcEYFZttdW0lDAoybv9cQoK7X7/68Z89S7FoRrVjP1LPX4XRf9vg==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve.exports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/throat": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", - "dev": true - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ts-jest": { - "version": "27.1.5", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.5.tgz", - "integrity": "sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@types/jest": "^27.0.0", - "babel-jest": ">=27.0.0 <28", - "jest": "^27.0.0", - "typescript": ">=3.8 <5.0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@types/jest": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/ts-jest/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index c5a6594e..00000000 --- a/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "vald-client-node", - "version": "1.7.12", - "description": "A gRPC client library for Vald", - "main": "index.js", - "types": "index.d.ts", - "devDependencies": { - "@bufbuild/buf": "^1.31.0", - "@bufbuild/protobuf": "^1.9.0", - "@types/jest": "^27.5.2", - "jest": "^27.5.1", - "ts-jest": "^27.1.5", - "ts-node": "^10.9.2", - "typescript": "^4.9.5" - }, - "scripts": { - "test": "jest --runInBand" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/vdaas/vald-client-node.git" - }, - "keywords": [ - "vald" - ], - "author": "Vald authors (https://vald.vdaas.org)", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/vdaas/vald-client-node/issues" - }, - "homepage": "https://github.com/vdaas/vald-client-node", - "dependencies": { - "@grpc/grpc-js": "^1.10.6", - "@protobuf-ts/runtime": "^2.9.4", - "@protobuf-ts/runtime-rpc": "^2.9.4" - }, - "engines": { - "node": ">=18.16.0" - } -} diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..78dd09ac --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = vald-client-python +version = 1.7.12 +url = https://github.com/vdaas/vald-client-python +description = a client library for Vald (https://github.com/vdaas/vald). +long_description = file: README.md +long_description_content_type = text/markdown +author = vald team +author_email = vald@vdaas.org +license_file = LICENSE + +[options] +zip_safe = False +package_dir = + =src +packages = find_namespace: +install_requires= + protobuf + grpcio + googleapis-common-protos + +[options.packages.find] +where = src +exclude = tests* diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..ad27277d --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- + +from setuptools import setup, find_packages + +setup() diff --git a/src/buf/validate/expression_pb.d.ts b/src/buf/validate/expression_pb.d.ts deleted file mode 100644 index b8f8418d..00000000 --- a/src/buf/validate/expression_pb.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/expression.proto" (package "buf.validate", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * `Constraint` represents a validation rule written in the Common Expression - * Language (CEL) syntax. Each Constraint includes a unique identifier, an - * optional error message, and the CEL expression to evaluate. For more - * information on CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). - * - * ```proto - * message Foo { - * option (buf.validate.message).cel = { - * id: "foo.bar" - * message: "bar must be greater than 0" - * expression: "this.bar > 0" - * }; - * int32 bar = 1; - * } - * ``` - * - * @generated from protobuf message buf.validate.Constraint - */ -export interface Constraint { - /** - * `id` is a string that serves as a machine-readable name for this Constraint. - * It should be unique within its scope, which could be either a message or a field. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * `message` is an optional field that provides a human-readable error message - * for this Constraint when the CEL expression evaluates to false. If a - * non-empty message is provided, any strings resulting from the CEL - * expression evaluation are ignored. - * - * @generated from protobuf field: string message = 2; - */ - message: string; - /** - * `expression` is the actual CEL expression that will be evaluated for - * validation. This string must resolve to either a boolean or a string - * value. If the expression evaluates to false or a non-empty string, the - * validation is considered failed, and the message is rejected. - * - * @generated from protobuf field: string expression = 3; - */ - expression: string; -} -/** - * `Violations` is a collection of `Violation` messages. This message type is returned by - * protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules. - * Each individual violation is represented by a `Violation` message. - * - * @generated from protobuf message buf.validate.Violations - */ -export interface Violations { - /** - * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected. - * - * @generated from protobuf field: repeated buf.validate.Violation violations = 1; - */ - violations: Violation[]; -} -/** - * `Violation` represents a single instance where a validation rule, expressed - * as a `Constraint`, was not met. It provides information about the field that - * caused the violation, the specific constraint that wasn't fulfilled, and a - * human-readable error message. - * - * ```json - * { - * "fieldPath": "bar", - * "constraintId": "foo.bar", - * "message": "bar must be greater than 0" - * } - * ``` - * - * @generated from protobuf message buf.validate.Violation - */ -export interface Violation { - /** - * `field_path` is a machine-readable identifier that points to the specific field that failed the validation. - * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation. - * - * @generated from protobuf field: string field_path = 1; - */ - field_path: string; - /** - * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled. - * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated. - * - * @generated from protobuf field: string constraint_id = 2; - */ - constraint_id: string; - /** - * `message` is a human-readable error message that describes the nature of the violation. - * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation. - * - * @generated from protobuf field: string message = 3; - */ - message: string; - /** - * `for_key` indicates whether the violation was caused by a map key, rather than a value. - * - * @generated from protobuf field: bool for_key = 4; - */ - for_key: boolean; -} -declare class Constraint$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Constraint; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Constraint): Constraint; - internalBinaryWrite(message: Constraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Constraint - */ -export declare const Constraint: Constraint$Type; -declare class Violations$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Violations; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Violations): Violations; - internalBinaryWrite(message: Violations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Violations - */ -export declare const Violations: Violations$Type; -declare class Violation$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Violation; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Violation): Violation; - internalBinaryWrite(message: Violation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Violation - */ -export declare const Violation: Violation$Type; -export {}; diff --git a/src/buf/validate/expression_pb.js b/src/buf/validate/expression_pb.js deleted file mode 100644 index bd315ee5..00000000 --- a/src/buf/validate/expression_pb.js +++ /dev/null @@ -1,208 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/expression.proto" (package "buf.validate", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Violation = exports.Violations = exports.Constraint = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class Constraint$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Constraint", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "expression", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.message = ""; - message.expression = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* string message */ 2: - message.message = reader.string(); - break; - case /* string expression */ 3: - message.expression = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* string message = 2; */ - if (message.message !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); - /* string expression = 3; */ - if (message.expression !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.expression); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Constraint - */ -exports.Constraint = new Constraint$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Violations$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Violations", [ - { no: 1, name: "violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Violation } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.violations = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated buf.validate.Violation violations */ 1: - message.violations.push(exports.Violation.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated buf.validate.Violation violations = 1; */ - for (let i = 0; i < message.violations.length; i++) - exports.Violation.internalBinaryWrite(message.violations[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Violations - */ -exports.Violations = new Violations$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Violation$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Violation", [ - { no: 1, name: "field_path", kind: "scalar", localName: "field_path", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "constraint_id", kind: "scalar", localName: "constraint_id", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "for_key", kind: "scalar", localName: "for_key", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.field_path = ""; - message.constraint_id = ""; - message.message = ""; - message.for_key = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string field_path */ 1: - message.field_path = reader.string(); - break; - case /* string constraint_id */ 2: - message.constraint_id = reader.string(); - break; - case /* string message */ 3: - message.message = reader.string(); - break; - case /* bool for_key */ 4: - message.for_key = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string field_path = 1; */ - if (message.field_path !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.field_path); - /* string constraint_id = 2; */ - if (message.constraint_id !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.constraint_id); - /* string message = 3; */ - if (message.message !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); - /* bool for_key = 4; */ - if (message.for_key !== false) - writer.tag(4, runtime_1.WireType.Varint).bool(message.for_key); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Violation - */ -exports.Violation = new Violation$Type(); diff --git a/src/buf/validate/expression_pb2.py b/src/buf/validate/expression_pb2.py new file mode 100644 index 00000000..20c0bdb9 --- /dev/null +++ b/src/buf/validate/expression_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: buf/validate/expression.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x62uf/validate/expression.proto\x12\x0c\x62uf.validate\"V\n\nConstraint\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1e\n\nexpression\x18\x03 \x01(\tR\nexpression\"E\n\nViolations\x12\x37\n\nviolations\x18\x01 \x03(\x0b\x32\x17.buf.validate.ViolationR\nviolations\"\x82\x01\n\tViolation\x12\x1d\n\nfield_path\x18\x01 \x01(\tR\tfieldPath\x12#\n\rconstraint_id\x18\x02 \x01(\tR\x0c\x63onstraintId\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x17\n\x07\x66or_key\x18\x04 \x01(\x08R\x06\x66orKeyBp\n\x12\x62uild.buf.validateB\x0f\x45xpressionProtoP\x01ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validateb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.expression_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022build.buf.validateB\017ExpressionProtoP\001ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate' + _globals['_CONSTRAINT']._serialized_start=47 + _globals['_CONSTRAINT']._serialized_end=133 + _globals['_VIOLATIONS']._serialized_start=135 + _globals['_VIOLATIONS']._serialized_end=204 + _globals['_VIOLATION']._serialized_start=207 + _globals['_VIOLATION']._serialized_end=337 +# @@protoc_insertion_point(module_scope) diff --git a/src/buf/validate/expression_pb2_grpc.py b/src/buf/validate/expression_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/buf/validate/expression_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/buf/validate/priv/private_pb.d.ts b/src/buf/validate/priv/private_pb.d.ts deleted file mode 100644 index 7c5bc1f2..00000000 --- a/src/buf/validate/priv/private_pb.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/priv/private.proto" (package "buf.validate.priv", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * Do not use. Internal to protovalidate library - * - * @generated from protobuf message buf.validate.priv.FieldConstraints - */ -export interface FieldConstraints { - /** - * @generated from protobuf field: repeated buf.validate.priv.Constraint cel = 1; - */ - cel: Constraint[]; -} -/** - * Do not use. Internal to protovalidate library - * - * @generated from protobuf message buf.validate.priv.Constraint - */ -export interface Constraint { - /** - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * @generated from protobuf field: string message = 2; - */ - message: string; - /** - * @generated from protobuf field: string expression = 3; - */ - expression: string; -} -declare class FieldConstraints$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldConstraints; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldConstraints): FieldConstraints; - internalBinaryWrite(message: FieldConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.priv.FieldConstraints - */ -export declare const FieldConstraints: FieldConstraints$Type; -declare class Constraint$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Constraint; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Constraint): Constraint; - internalBinaryWrite(message: Constraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.priv.Constraint - */ -export declare const Constraint: Constraint$Type; -export {}; diff --git a/src/buf/validate/priv/private_pb.js b/src/buf/validate/priv/private_pb.js deleted file mode 100644 index 5d9cb4b1..00000000 --- a/src/buf/validate/priv/private_pb.js +++ /dev/null @@ -1,137 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/priv/private.proto" (package "buf.validate.priv", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Constraint = exports.FieldConstraints = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class FieldConstraints$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.priv.FieldConstraints", [ - { no: 1, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Constraint } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.cel = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated buf.validate.priv.Constraint cel */ 1: - message.cel.push(exports.Constraint.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated buf.validate.priv.Constraint cel = 1; */ - for (let i = 0; i < message.cel.length; i++) - exports.Constraint.internalBinaryWrite(message.cel[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.priv.FieldConstraints - */ -exports.FieldConstraints = new FieldConstraints$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Constraint$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.priv.Constraint", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "expression", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.message = ""; - message.expression = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* string message */ 2: - message.message = reader.string(); - break; - case /* string expression */ 3: - message.expression = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* string message = 2; */ - if (message.message !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); - /* string expression = 3; */ - if (message.expression !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.expression); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.priv.Constraint - */ -exports.Constraint = new Constraint$Type(); diff --git a/src/buf/validate/priv/private_pb2.py b/src/buf/validate/priv/private_pb2.py new file mode 100644 index 00000000..1da13c3e --- /dev/null +++ b/src/buf/validate/priv/private_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: buf/validate/priv/private.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x62uf/validate/priv/private.proto\x12\x11\x62uf.validate.priv\x1a google/protobuf/descriptor.proto\"C\n\x10\x46ieldConstraints\x12/\n\x03\x63\x65l\x18\x01 \x03(\x0b\x32\x1d.buf.validate.priv.ConstraintR\x03\x63\x65l\"V\n\nConstraint\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1e\n\nexpression\x18\x03 \x01(\tR\nexpression:\\\n\x05\x66ield\x12\x1d.google.protobuf.FieldOptions\x18\x88\t \x01(\x0b\x32#.buf.validate.priv.FieldConstraintsR\x05\x66ield\x88\x01\x01\x42w\n\x17\x62uild.buf.validate.privB\x0cPrivateProtoP\x01ZLbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate/privb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.priv.private_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\027build.buf.validate.privB\014PrivateProtoP\001ZLbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate/priv' + _globals['_FIELDCONSTRAINTS']._serialized_start=88 + _globals['_FIELDCONSTRAINTS']._serialized_end=155 + _globals['_CONSTRAINT']._serialized_start=157 + _globals['_CONSTRAINT']._serialized_end=243 +# @@protoc_insertion_point(module_scope) diff --git a/src/buf/validate/priv/private_pb2_grpc.py b/src/buf/validate/priv/private_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/buf/validate/priv/private_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/buf/validate/validate_pb.d.ts b/src/buf/validate/validate_pb.d.ts deleted file mode 100644 index 13abebda..00000000 --- a/src/buf/validate/validate_pb.d.ts +++ /dev/null @@ -1,3718 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/validate.proto" (package "buf.validate", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -import { Timestamp } from "../../google/protobuf/timestamp_pb"; -import { Duration } from "../../google/protobuf/duration_pb"; -import { Constraint } from "./expression_pb"; -/** - * MessageConstraints represents validation rules that are applied to the entire message. - * It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules. - * - * @generated from protobuf message buf.validate.MessageConstraints - */ -export interface MessageConstraints { - /** - * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message. - * This includes any fields within the message that would otherwise support validation. - * - * ```proto - * message MyMessage { - * // validation will be bypassed for this message - * option (buf.validate.message).disabled = true; - * } - * ``` - * - * @generated from protobuf field: optional bool disabled = 1; - */ - disabled?: boolean; - /** - * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message. - * These constraints are written in Common Expression Language (CEL) syntax. For more information on - * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). - * - * - * ```proto - * message MyMessage { - * // The field `foo` must be greater than 42. - * option (buf.validate.message).cel = { - * id: "my_message.value", - * message: "value must be greater than 42", - * expression: "this.foo > 42", - * }; - * optional int32 foo = 1; - * } - * ``` - * - * @generated from protobuf field: repeated buf.validate.Constraint cel = 3; - */ - cel: Constraint[]; -} -/** - * The `OneofConstraints` message type enables you to manage constraints for - * oneof fields in your protobuf messages. - * - * @generated from protobuf message buf.validate.OneofConstraints - */ -export interface OneofConstraints { - /** - * If `required` is true, exactly one field of the oneof must be present. A - * validation error is returned if no fields in the oneof are present. The - * field itself may still be a default value; further constraints - * should be placed on the fields themselves to ensure they are valid values, - * such as `min_len` or `gt`. - * - * ```proto - * message MyMessage { - * oneof value { - * // Either `a` or `b` must be set. If `a` is set, it must also be - * // non-empty; whereas if `b` is set, it can still be an empty string. - * option (buf.validate.oneof).required = true; - * string a = 1 [(buf.validate.field).string.min_len = 1]; - * string b = 2; - * } - * } - * ``` - * - * @generated from protobuf field: optional bool required = 1; - */ - required?: boolean; -} -/** - * FieldRules encapsulates the rules for each type of field. Depending on the - * field, the correct set should be used to ensure proper validations. - * - * @generated from protobuf message buf.validate.FieldConstraints - */ -export interface FieldConstraints { - /** - * `cel` is a repeated field used to represent a textual expression - * in the Common Expression Language (CEL) syntax. For more information on - * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md). - * - * ```proto - * message MyMessage { - * // The field `value` must be greater than 42. - * optional int32 value = 1 [(buf.validate.field).cel = { - * id: "my_message.value", - * message: "value must be greater than 42", - * expression: "this > 42", - * }]; - * } - * ``` - * - * @generated from protobuf field: repeated buf.validate.Constraint cel = 23; - */ - cel: Constraint[]; - /** - * `skipped` is an optional boolean attribute that specifies that the - * validation rules of this field should not be evaluated. If skipped is set to - * true, any validation rules set for the field will be ignored. - * - * ```proto - * message MyMessage { - * // The field `value` must not be set. - * optional MyOtherMessage value = 1 [(buf.validate.field).skipped = true]; - * } - * ``` - * - * @generated from protobuf field: bool skipped = 24; - */ - skipped: boolean; - /** - * If `required` is true, the field must be populated. Field presence can be - * described as "serialized in the wire format," which follows the following rules: - * - * - the following "nullable" fields must be explicitly set to be considered present: - * - singular message fields (may be their empty value) - * - member fields of a oneof (may be their default value) - * - proto3 optional fields (may be their default value) - * - proto2 scalar fields - * - proto3 scalar fields must be non-zero to be considered present - * - repeated and map fields must be non-empty to be considered present - * - * ```proto - * message MyMessage { - * // The field `value` must be set to a non-null value. - * optional MyOtherMessage value = 1 [(buf.validate.field).required = true]; - * } - * ``` - * - * @generated from protobuf field: bool required = 25; - */ - required: boolean; - /** - * If `ignore_empty` is true and applied to a non-nullable field (see - * `required` for more details), validation is skipped on the field if it is - * the default or empty value. Adding `ignore_empty` to a "nullable" field is - * a noop as these unset fields already skip validation (with the exception - * of `required`). - * - * ```proto - * message MyRepeated { - * // The field `value` min_len rule is only applied if the field isn't empty. - * repeated string value = 1 [ - * (buf.validate.field).ignore_empty = true, - * (buf.validate.field).min_len = 5 - * ]; - * } - * ``` - * - * @generated from protobuf field: bool ignore_empty = 26; - */ - ignore_empty: boolean; - /** - * @generated from protobuf oneof: type - */ - type: { - oneofKind: "float"; - /** - * Scalar Field Types - * - * @generated from protobuf field: buf.validate.FloatRules float = 1; - */ - float: FloatRules; - } | { - oneofKind: "double"; - /** - * @generated from protobuf field: buf.validate.DoubleRules double = 2; - */ - double: DoubleRules; - } | { - oneofKind: "int32"; - /** - * @generated from protobuf field: buf.validate.Int32Rules int32 = 3; - */ - int32: Int32Rules; - } | { - oneofKind: "int64"; - /** - * @generated from protobuf field: buf.validate.Int64Rules int64 = 4; - */ - int64: Int64Rules; - } | { - oneofKind: "uint32"; - /** - * @generated from protobuf field: buf.validate.UInt32Rules uint32 = 5; - */ - uint32: UInt32Rules; - } | { - oneofKind: "uint64"; - /** - * @generated from protobuf field: buf.validate.UInt64Rules uint64 = 6; - */ - uint64: UInt64Rules; - } | { - oneofKind: "sint32"; - /** - * @generated from protobuf field: buf.validate.SInt32Rules sint32 = 7; - */ - sint32: SInt32Rules; - } | { - oneofKind: "sint64"; - /** - * @generated from protobuf field: buf.validate.SInt64Rules sint64 = 8; - */ - sint64: SInt64Rules; - } | { - oneofKind: "fixed32"; - /** - * @generated from protobuf field: buf.validate.Fixed32Rules fixed32 = 9; - */ - fixed32: Fixed32Rules; - } | { - oneofKind: "fixed64"; - /** - * @generated from protobuf field: buf.validate.Fixed64Rules fixed64 = 10; - */ - fixed64: Fixed64Rules; - } | { - oneofKind: "sfixed32"; - /** - * @generated from protobuf field: buf.validate.SFixed32Rules sfixed32 = 11; - */ - sfixed32: SFixed32Rules; - } | { - oneofKind: "sfixed64"; - /** - * @generated from protobuf field: buf.validate.SFixed64Rules sfixed64 = 12; - */ - sfixed64: SFixed64Rules; - } | { - oneofKind: "bool"; - /** - * @generated from protobuf field: buf.validate.BoolRules bool = 13; - */ - bool: BoolRules; - } | { - oneofKind: "string"; - /** - * @generated from protobuf field: buf.validate.StringRules string = 14; - */ - string: StringRules; - } | { - oneofKind: "bytes"; - /** - * @generated from protobuf field: buf.validate.BytesRules bytes = 15; - */ - bytes: BytesRules; - } | { - oneofKind: "enum"; - /** - * Complex Field Types - * - * @generated from protobuf field: buf.validate.EnumRules enum = 16; - */ - enum: EnumRules; - } | { - oneofKind: "repeated"; - /** - * @generated from protobuf field: buf.validate.RepeatedRules repeated = 18; - */ - repeated: RepeatedRules; - } | { - oneofKind: "map"; - /** - * @generated from protobuf field: buf.validate.MapRules map = 19; - */ - map: MapRules; - } | { - oneofKind: "any"; - /** - * Well-Known Field Types - * - * @generated from protobuf field: buf.validate.AnyRules any = 20; - */ - any: AnyRules; - } | { - oneofKind: "duration"; - /** - * @generated from protobuf field: buf.validate.DurationRules duration = 21; - */ - duration: DurationRules; - } | { - oneofKind: "timestamp"; - /** - * @generated from protobuf field: buf.validate.TimestampRules timestamp = 22; - */ - timestamp: TimestampRules; - } | { - oneofKind: undefined; - }; -} -/** - * FloatRules describes the constraints applied to `float` values. These - * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type. - * - * @generated from protobuf message buf.validate.FloatRules - */ -export interface FloatRules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyFloat { - * // value must equal 42.0 - * float value = 1 [(buf.validate.field).float.const = 42.0]; - * } - * ``` - * - * @generated from protobuf field: optional float const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyFloat { - * // value must be less than 10.0 - * float value = 1 [(buf.validate.field).float.lt = 10.0]; - * } - * ``` - * - * @generated from protobuf field: float lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyFloat { - * // value must be less than or equal to 10.0 - * float value = 1 [(buf.validate.field).float.lte = 10.0]; - * } - * ``` - * - * @generated from protobuf field: float lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFloat { - * // value must be greater than 5.0 [float.gt] - * float value = 1 [(buf.validate.field).float.gt = 5.0]; - * - * // value must be greater than 5 and less than 10.0 [float.gt_lt] - * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }]; - * - * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive] - * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }]; - * } - * ``` - * - * @generated from protobuf field: float gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFloat { - * // value must be greater than or equal to 5.0 [float.gte] - * float value = 1 [(buf.validate.field).float.gte = 5.0]; - * - * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt] - * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }]; - * - * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive] - * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }]; - * } - * ``` - * - * @generated from protobuf field: float gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message - * is generated. - * - * ```proto - * message MyFloat { - * // value must be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { in: [1.0, 2.0, 3.0] }; - * } - * ``` - * - * @generated from protobuf field: repeated float in = 6; - */ - in: number[]; - /** - * `in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyFloat { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated float value = 1 (buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }; - * } - * ``` - * - * @generated from protobuf field: repeated float not_in = 7; - */ - not_in: number[]; - /** - * `finite` requires the field value to be finite. If the field value is - * infinite or NaN, an error message is generated. - * - * @generated from protobuf field: bool finite = 8; - */ - finite: boolean; -} -/** - * DoubleRules describes the constraints applied to `double` values. These - * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type. - * - * @generated from protobuf message buf.validate.DoubleRules - */ -export interface DoubleRules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyDouble { - * // value must equal 42.0 - * double value = 1 [(buf.validate.field).double.const = 42.0]; - * } - * ``` - * - * @generated from protobuf field: optional double const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyDouble { - * // value must be less than 10.0 - * double value = 1 [(buf.validate.field).double.lt = 10.0]; - * } - * ``` - * - * @generated from protobuf field: double lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified value - * (field <= value). If the field value is greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyDouble { - * // value must be less than or equal to 10.0 - * double value = 1 [(buf.validate.field).double.lte = 10.0]; - * } - * ``` - * - * @generated from protobuf field: double lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`, - * the range is reversed, and the field value must be outside the specified - * range. If the field value doesn't meet the required conditions, an error - * message is generated. - * - * ```proto - * message MyDouble { - * // value must be greater than 5.0 [double.gt] - * double value = 1 [(buf.validate.field).double.gt = 5.0]; - * - * // value must be greater than 5 and less than 10.0 [double.gt_lt] - * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }]; - * - * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive] - * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }]; - * } - * ``` - * - * @generated from protobuf field: double gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyDouble { - * // value must be greater than or equal to 5.0 [double.gte] - * double value = 1 [(buf.validate.field).double.gte = 5.0]; - * - * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt] - * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }]; - * - * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive] - * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }]; - * } - * ``` - * - * @generated from protobuf field: double gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyDouble { - * // value must be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { in: [1.0, 2.0, 3.0] }; - * } - * ``` - * - * @generated from protobuf field: repeated double in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyDouble { - * // value must not be in list [1.0, 2.0, 3.0] - * repeated double value = 1 (buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }; - * } - * ``` - * - * @generated from protobuf field: repeated double not_in = 7; - */ - not_in: number[]; - /** - * `finite` requires the field value to be finite. If the field value is - * infinite or NaN, an error message is generated. - * - * @generated from protobuf field: bool finite = 8; - */ - finite: boolean; -} -/** - * Int32Rules describes the constraints applied to `int32` values. These - * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type. - * - * @generated from protobuf message buf.validate.Int32Rules - */ -export interface Int32Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyInt32 { - * // value must equal 42 - * int32 value = 1 [(buf.validate.field).int32.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional int32 const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field - * < value). If the field value is equal to or greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyInt32 { - * // value must be less than 10 - * int32 value = 1 [(buf.validate.field).int32.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: int32 lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyInt32 { - * // value must be less than or equal to 10 - * int32 value = 1 [(buf.validate.field).int32.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: int32 lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyInt32 { - * // value must be greater than 5 [int32.gt] - * int32 value = 1 [(buf.validate.field).int32.gt = 5]; - * - * // value must be greater than 5 and less than 10 [int32.gt_lt] - * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive] - * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: int32 gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified value - * (exclusive). If the value of `gte` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyInt32 { - * // value must be greater than or equal to 5 [int32.gte] - * int32 value = 1 [(buf.validate.field).int32.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt] - * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive] - * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: int32 gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyInt32 { - * // value must be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated int32 in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error message - * is generated. - * - * ```proto - * message MyInt32 { - * // value must not be in list [1, 2, 3] - * repeated int32 value = 1 (buf.validate.field).int32 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated int32 not_in = 7; - */ - not_in: number[]; -} -/** - * Int64Rules describes the constraints applied to `int64` values. These - * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type. - * - * @generated from protobuf message buf.validate.Int64Rules - */ -export interface Int64Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyInt64 { - * // value must equal 42 - * int64 value = 1 [(buf.validate.field).int64.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional int64 const = 1; - */ - const?: bigint; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyInt64 { - * // value must be less than 10 - * int64 value = 1 [(buf.validate.field).int64.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: int64 lt = 2; - */ - lt: bigint; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyInt64 { - * // value must be less than or equal to 10 - * int64 value = 1 [(buf.validate.field).int64.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: int64 lte = 3; - */ - lte: bigint; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyInt64 { - * // value must be greater than 5 [int64.gt] - * int64 value = 1 [(buf.validate.field).int64.gt = 5]; - * - * // value must be greater than 5 and less than 10 [int64.gt_lt] - * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive] - * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: int64 gt = 4; - */ - gt: bigint; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyInt64 { - * // value must be greater than or equal to 5 [int64.gte] - * int64 value = 1 [(buf.validate.field).int64.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt] - * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive] - * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: int64 gte = 5; - */ - gte: bigint; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyInt64 { - * // value must be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated int64 in = 6; - */ - in: bigint[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyInt64 { - * // value must not be in list [1, 2, 3] - * repeated int64 value = 1 (buf.validate.field).int64 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated int64 not_in = 7; - */ - not_in: bigint[]; -} -/** - * UInt32Rules describes the constraints applied to `uint32` values. These - * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type. - * - * @generated from protobuf message buf.validate.UInt32Rules - */ -export interface UInt32Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyUInt32 { - * // value must equal 42 - * uint32 value = 1 [(buf.validate.field).uint32.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional uint32 const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyUInt32 { - * // value must be less than 10 - * uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: uint32 lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyUInt32 { - * // value must be less than or equal to 10 - * uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: uint32 lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyUInt32 { - * // value must be greater than 5 [uint32.gt] - * uint32 value = 1 [(buf.validate.field).uint32.gt = 5]; - * - * // value must be greater than 5 and less than 10 [uint32.gt_lt] - * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive] - * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: uint32 gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyUInt32 { - * // value must be greater than or equal to 5 [uint32.gte] - * uint32 value = 1 [(buf.validate.field).uint32.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt] - * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive] - * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: uint32 gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyUInt32 { - * // value must be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated uint32 in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyUInt32 { - * // value must not be in list [1, 2, 3] - * repeated uint32 value = 1 (buf.validate.field).uint32 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated uint32 not_in = 7; - */ - not_in: number[]; -} -/** - * UInt64Rules describes the constraints applied to `uint64` values. These - * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type. - * - * @generated from protobuf message buf.validate.UInt64Rules - */ -export interface UInt64Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyUInt64 { - * // value must equal 42 - * uint64 value = 1 [(buf.validate.field).uint64.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 const = 1; - */ - const?: bigint; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyUInt64 { - * // value must be less than 10 - * uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: uint64 lt = 2; - */ - lt: bigint; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyUInt64 { - * // value must be less than or equal to 10 - * uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: uint64 lte = 3; - */ - lte: bigint; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyUInt64 { - * // value must be greater than 5 [uint64.gt] - * uint64 value = 1 [(buf.validate.field).uint64.gt = 5]; - * - * // value must be greater than 5 and less than 10 [uint64.gt_lt] - * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive] - * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: uint64 gt = 4; - */ - gt: bigint; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyUInt64 { - * // value must be greater than or equal to 5 [uint64.gte] - * uint64 value = 1 [(buf.validate.field).uint64.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt] - * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive] - * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: uint64 gte = 5; - */ - gte: bigint; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyUInt64 { - * // value must be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated uint64 in = 6; - */ - in: bigint[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyUInt64 { - * // value must not be in list [1, 2, 3] - * repeated uint64 value = 1 (buf.validate.field).uint64 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated uint64 not_in = 7; - */ - not_in: bigint[]; -} -/** - * SInt32Rules describes the constraints applied to `sint32` values. - * - * @generated from protobuf message buf.validate.SInt32Rules - */ -export interface SInt32Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MySInt32 { - * // value must equal 42 - * sint32 value = 1 [(buf.validate.field).sint32.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional sint32 const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field - * < value). If the field value is equal to or greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySInt32 { - * // value must be less than 10 - * sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: sint32 lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySInt32 { - * // value must be less than or equal to 10 - * sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: sint32 lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySInt32 { - * // value must be greater than 5 [sint32.gt] - * sint32 value = 1 [(buf.validate.field).sint32.gt = 5]; - * - * // value must be greater than 5 and less than 10 [sint32.gt_lt] - * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive] - * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sint32 gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySInt32 { - * // value must be greater than or equal to 5 [sint32.gte] - * sint32 value = 1 [(buf.validate.field).sint32.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt] - * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive] - * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sint32 gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MySInt32 { - * // value must be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sint32 in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MySInt32 { - * // value must not be in list [1, 2, 3] - * repeated sint32 value = 1 (buf.validate.field).sint32 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sint32 not_in = 7; - */ - not_in: number[]; -} -/** - * SInt64Rules describes the constraints applied to `sint64` values. - * - * @generated from protobuf message buf.validate.SInt64Rules - */ -export interface SInt64Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MySInt64 { - * // value must equal 42 - * sint64 value = 1 [(buf.validate.field).sint64.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional sint64 const = 1; - */ - const?: bigint; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field - * < value). If the field value is equal to or greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySInt64 { - * // value must be less than 10 - * sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: sint64 lt = 2; - */ - lt: bigint; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySInt64 { - * // value must be less than or equal to 10 - * sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: sint64 lte = 3; - */ - lte: bigint; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySInt64 { - * // value must be greater than 5 [sint64.gt] - * sint64 value = 1 [(buf.validate.field).sint64.gt = 5]; - * - * // value must be greater than 5 and less than 10 [sint64.gt_lt] - * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive] - * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sint64 gt = 4; - */ - gt: bigint; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySInt64 { - * // value must be greater than or equal to 5 [sint64.gte] - * sint64 value = 1 [(buf.validate.field).sint64.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt] - * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive] - * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sint64 gte = 5; - */ - gte: bigint; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message - * is generated. - * - * ```proto - * message MySInt64 { - * // value must be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sint64 in = 6; - */ - in: bigint[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MySInt64 { - * // value must not be in list [1, 2, 3] - * repeated sint64 value = 1 (buf.validate.field).sint64 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sint64 not_in = 7; - */ - not_in: bigint[]; -} -/** - * Fixed32Rules describes the constraints applied to `fixed32` values. - * - * @generated from protobuf message buf.validate.Fixed32Rules - */ -export interface Fixed32Rules { - /** - * `const` requires the field value to exactly match the specified value. - * If the field value doesn't match, an error message is generated. - * - * ```proto - * message MyFixed32 { - * // value must equal 42 - * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional fixed32 const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyFixed32 { - * // value must be less than 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: fixed32 lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyFixed32 { - * // value must be less than or equal to 10 - * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: fixed32 lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFixed32 { - * // value must be greater than 5 [fixed32.gt] - * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5]; - * - * // value must be greater than 5 and less than 10 [fixed32.gt_lt] - * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive] - * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: fixed32 gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFixed32 { - * // value must be greater than or equal to 5 [fixed32.gte] - * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt] - * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive] - * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: fixed32 gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message - * is generated. - * - * ```proto - * message MyFixed32 { - * // value must be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated fixed32 in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyFixed32 { - * // value must not be in list [1, 2, 3] - * repeated fixed32 value = 1 (buf.validate.field).fixed32 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated fixed32 not_in = 7; - */ - not_in: number[]; -} -/** - * Fixed64Rules describes the constraints applied to `fixed64` values. - * - * @generated from protobuf message buf.validate.Fixed64Rules - */ -export interface Fixed64Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyFixed64 { - * // value must equal 42 - * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional fixed64 const = 1; - */ - const?: bigint; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MyFixed64 { - * // value must be less than 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: fixed64 lt = 2; - */ - lt: bigint; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MyFixed64 { - * // value must be less than or equal to 10 - * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: fixed64 lte = 3; - */ - lte: bigint; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFixed64 { - * // value must be greater than 5 [fixed64.gt] - * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5]; - * - * // value must be greater than 5 and less than 10 [fixed64.gt_lt] - * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive] - * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: fixed64 gt = 4; - */ - gt: bigint; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyFixed64 { - * // value must be greater than or equal to 5 [fixed64.gte] - * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt] - * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive] - * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: fixed64 gte = 5; - */ - gte: bigint; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MyFixed64 { - * // value must be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated fixed64 in = 6; - */ - in: bigint[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MyFixed64 { - * // value must not be in list [1, 2, 3] - * repeated fixed64 value = 1 (buf.validate.field).fixed64 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated fixed64 not_in = 7; - */ - not_in: bigint[]; -} -/** - * SFixed32Rules describes the constraints applied to `fixed32` values. - * - * @generated from protobuf message buf.validate.SFixed32Rules - */ -export interface SFixed32Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MySFixed32 { - * // value must equal 42 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional sfixed32 const = 1; - */ - const?: number; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MySFixed32 { - * // value must be less than 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: sfixed32 lt = 2; - */ - lt: number; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySFixed32 { - * // value must be less than or equal to 10 - * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: sfixed32 lte = 3; - */ - lte: number; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySFixed32 { - * // value must be greater than 5 [sfixed32.gt] - * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5]; - * - * // value must be greater than 5 and less than 10 [sfixed32.gt_lt] - * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive] - * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sfixed32 gt = 4; - */ - gt: number; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySFixed32 { - * // value must be greater than or equal to 5 [sfixed32.gte] - * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt] - * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive] - * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sfixed32 gte = 5; - */ - gte: number; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MySFixed32 { - * // value must be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sfixed32 in = 6; - */ - in: number[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MySFixed32 { - * // value must not be in list [1, 2, 3] - * repeated sfixed32 value = 1 (buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sfixed32 not_in = 7; - */ - not_in: number[]; -} -/** - * SFixed64Rules describes the constraints applied to `fixed64` values. - * - * @generated from protobuf message buf.validate.SFixed64Rules - */ -export interface SFixed64Rules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MySFixed64 { - * // value must equal 42 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; - * } - * ``` - * - * @generated from protobuf field: optional sfixed64 const = 1; - */ - const?: bigint; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` requires the field value to be less than the specified value (field < - * value). If the field value is equal to or greater than the specified value, - * an error message is generated. - * - * ```proto - * message MySFixed64 { - * // value must be less than 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; - * } - * ``` - * - * @generated from protobuf field: sfixed64 lt = 2; - */ - lt: bigint; - } | { - oneofKind: "lte"; - /** - * `lte` requires the field value to be less than or equal to the specified - * value (field <= value). If the field value is greater than the specified - * value, an error message is generated. - * - * ```proto - * message MySFixed64 { - * // value must be less than or equal to 10 - * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; - * } - * ``` - * - * @generated from protobuf field: sfixed64 lte = 3; - */ - lte: bigint; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the field value to be greater than the specified value - * (exclusive). If the value of `gt` is larger than a specified `lt` or - * `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySFixed64 { - * // value must be greater than 5 [sfixed64.gt] - * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5]; - * - * // value must be greater than 5 and less than 10 [sfixed64.gt_lt] - * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }]; - * - * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive] - * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sfixed64 gt = 4; - */ - gt: bigint; - } | { - oneofKind: "gte"; - /** - * `gte` requires the field value to be greater than or equal to the specified - * value (exclusive). If the value of `gte` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MySFixed64 { - * // value must be greater than or equal to 5 [sfixed64.gte] - * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5]; - * - * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt] - * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }]; - * - * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive] - * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }]; - * } - * ``` - * - * @generated from protobuf field: sfixed64 gte = 5; - */ - gte: bigint; - } | { - oneofKind: undefined; - }; - /** - * `in` requires the field value to be equal to one of the specified values. - * If the field value isn't one of the specified values, an error message is - * generated. - * - * ```proto - * message MySFixed64 { - * // value must be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sfixed64 in = 6; - */ - in: bigint[]; - /** - * `not_in` requires the field value to not be equal to any of the specified - * values. If the field value is one of the specified values, an error - * message is generated. - * - * ```proto - * message MySFixed64 { - * // value must not be in list [1, 2, 3] - * repeated sfixed64 value = 1 (buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }; - * } - * ``` - * - * @generated from protobuf field: repeated sfixed64 not_in = 7; - */ - not_in: bigint[]; -} -/** - * BoolRules describes the constraints applied to `bool` values. These rules - * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type. - * - * @generated from protobuf message buf.validate.BoolRules - */ -export interface BoolRules { - /** - * `const` requires the field value to exactly match the specified boolean value. - * If the field value doesn't match, an error message is generated. - * - * ```proto - * message MyBool { - * // value must equal true - * bool value = 1 [(buf.validate.field).bool.const = true]; - * } - * ``` - * - * @generated from protobuf field: optional bool const = 1; - */ - const?: boolean; -} -/** - * StringRules describes the constraints applied to `string` values These - * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type. - * - * @generated from protobuf message buf.validate.StringRules - */ -export interface StringRules { - /** - * `const` requires the field value to exactly match the specified value. If - * the field value doesn't match, an error message is generated. - * - * ```proto - * message MyString { - * // value must equal `hello` - * string value = 1 [(buf.validate.field).string.const = "hello"]; - * } - * ``` - * - * @generated from protobuf field: optional string const = 1; - */ - const?: string; - /** - * `len` dictates that the field value must have the specified - * number of characters (Unicode code points), which may differ from the number - * of bytes in the string. If the field value does not meet the specified - * length, an error message will be generated. - * - * ```proto - * message MyString { - * // value length must be 5 characters - * string value = 1 [(buf.validate.field).string.len = 5]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 len = 19; - */ - len?: bigint; - /** - * `min_len` specifies that the field value must have at least the specified - * number of characters (Unicode code points), which may differ from the number - * of bytes in the string. If the field value contains fewer characters, an error - * message will be generated. - * - * ```proto - * message MyString { - * // value length must be at least 3 characters - * string value = 1 [(buf.validate.field).string.min_len = 3]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 min_len = 2; - */ - min_len?: bigint; - /** - * `max_len` specifies that the field value must have no more than the specified - * number of characters (Unicode code points), which may differ from the - * number of bytes in the string. If the field value contains more characters, - * an error message will be generated. - * - * ```proto - * message MyString { - * // value length must be at most 10 characters - * string value = 1 [(buf.validate.field).string.max_len = 10]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 max_len = 3; - */ - max_len?: bigint; - /** - * `len_bytes` dictates that the field value must have the specified number of - * bytes. If the field value does not match the specified length in bytes, - * an error message will be generated. - * - * ```proto - * message MyString { - * // value length must be 6 bytes - * string value = 1 [(buf.validate.field).string.len_bytes = 6]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 len_bytes = 20; - */ - len_bytes?: bigint; - /** - * `min_bytes` specifies that the field value must have at least the specified - * number of bytes. If the field value contains fewer bytes, an error message - * will be generated. - * - * ```proto - * message MyString { - * // value length must be at least 4 bytes - * string value = 1 [(buf.validate.field).string.min_bytes = 4]; - * } - * - * ``` - * - * @generated from protobuf field: optional uint64 min_bytes = 4; - */ - min_bytes?: bigint; - /** - * `max_bytes` specifies that the field value must have no more than the - * specified number of bytes. If the field value contains more bytes, an - * error message will be generated. - * - * ```proto - * message MyString { - * // value length must be at most 8 bytes - * string value = 1 [(buf.validate.field).string.max_bytes = 8]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 max_bytes = 5; - */ - max_bytes?: bigint; - /** - * `pattern` specifies that the field value must match the specified - * regular expression (RE2 syntax), with the expression provided without any - * delimiters. If the field value doesn't match the regular expression, an - * error message will be generated. - * - * ```proto - * message MyString { - * // value does not match regex pattern `^[a-zA-Z]//$` - * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; - * } - * ``` - * - * @generated from protobuf field: optional string pattern = 6; - */ - pattern?: string; - /** - * `prefix` specifies that the field value must have the - * specified substring at the beginning of the string. If the field value - * doesn't start with the specified prefix, an error message will be - * generated. - * - * ```proto - * message MyString { - * // value does not have prefix `pre` - * string value = 1 [(buf.validate.field).string.prefix = "pre"]; - * } - * ``` - * - * @generated from protobuf field: optional string prefix = 7; - */ - prefix?: string; - /** - * `suffix` specifies that the field value must have the - * specified substring at the end of the string. If the field value doesn't - * end with the specified suffix, an error message will be generated. - * - * ```proto - * message MyString { - * // value does not have suffix `post` - * string value = 1 [(buf.validate.field).string.suffix = "post"]; - * } - * ``` - * - * @generated from protobuf field: optional string suffix = 8; - */ - suffix?: string; - /** - * `contains` specifies that the field value must have the - * specified substring anywhere in the string. If the field value doesn't - * contain the specified substring, an error message will be generated. - * - * ```proto - * message MyString { - * // value does not contain substring `inside`. - * string value = 1 [(buf.validate.field).string.contains = "inside"]; - * } - * ``` - * - * @generated from protobuf field: optional string contains = 9; - */ - contains?: string; - /** - * `not_contains` specifies that the field value must not have the - * specified substring anywhere in the string. If the field value contains - * the specified substring, an error message will be generated. - * - * ```proto - * message MyString { - * // value contains substring `inside`. - * string value = 1 [(buf.validate.field).string.not_contains = "inside"]; - * } - * ``` - * - * @generated from protobuf field: optional string not_contains = 23; - */ - not_contains?: string; - /** - * `in` specifies that the field value must be equal to one of the specified - * values. If the field value isn't one of the specified values, an error - * message will be generated. - * - * ```proto - * message MyString { - * // value must be in list ["apple", "banana"] - * repeated string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; - * } - * ``` - * - * @generated from protobuf field: repeated string in = 10; - */ - in: string[]; - /** - * `not_in` specifies that the field value cannot be equal to any - * of the specified values. If the field value is one of the specified values, - * an error message will be generated. - * ```proto - * message MyString { - * // value must not be in list ["orange", "grape"] - * repeated string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; - * } - * ``` - * - * @generated from protobuf field: repeated string not_in = 11; - */ - not_in: string[]; - /** - * @generated from protobuf oneof: well_known - */ - well_known: { - oneofKind: "email"; - /** - * `email` specifies that the field value must be a valid email address - * (addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1). - * If the field value isn't a valid email address, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid email address - * string value = 1 [(buf.validate.field).string.email = true]; - * } - * ``` - * - * @generated from protobuf field: bool email = 12; - */ - email: boolean; - } | { - oneofKind: "hostname"; - /** - * `hostname` specifies that the field value must be a valid - * hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5). This constraint doesn't support - * internationalized domain names (IDNs). If the field value isn't a - * valid hostname, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid hostname - * string value = 1 [(buf.validate.field).string.hostname = true]; - * } - * ``` - * - * @generated from protobuf field: bool hostname = 13; - */ - hostname: boolean; - } | { - oneofKind: "ip"; - /** - * `ip` specifies that the field value must be a valid IP - * (v4 or v6) address, without surrounding square brackets for IPv6 addresses. - * If the field value isn't a valid IP address, an error message will be - * generated. - * - * ```proto - * message MyString { - * // value must be a valid IP address - * string value = 1 [(buf.validate.field).string.ip = true]; - * } - * ``` - * - * @generated from protobuf field: bool ip = 14; - */ - ip: boolean; - } | { - oneofKind: "ipv4"; - /** - * `ipv4` specifies that the field value must be a valid IPv4 - * address. If the field value isn't a valid IPv4 address, an error message - * will be generated. - * - * ```proto - * message MyString { - * // value must be a valid IPv4 address - * string value = 1 [(buf.validate.field).string.ipv4 = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv4 = 15; - */ - ipv4: boolean; - } | { - oneofKind: "ipv6"; - /** - * `ipv6` specifies that the field value must be a valid - * IPv6 address, without surrounding square brackets. If the field value is - * not a valid IPv6 address, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid IPv6 address - * string value = 1 [(buf.validate.field).string.ipv6 = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv6 = 16; - */ - ipv6: boolean; - } | { - oneofKind: "uri"; - /** - * `uri` specifies that the field value must be a valid, - * absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3). If the field value isn't a valid, - * absolute URI, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri = true]; - * } - * ``` - * - * @generated from protobuf field: bool uri = 17; - */ - uri: boolean; - } | { - oneofKind: "uri_ref"; - /** - * `uri_ref` specifies that the field value must be a valid URI - * as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute. If the - * field value isn't a valid URI, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid URI - * string value = 1 [(buf.validate.field).string.uri_ref = true]; - * } - * ``` - * - * @generated from protobuf field: bool uri_ref = 18; - */ - uri_ref: boolean; - } | { - oneofKind: "address"; - /** - * `address` specifies that the field value must be either a valid hostname - * as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5) - * (which doesn't support internationalized domain names or IDNs) or a valid - * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error - * message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid hostname, or ip address - * string value = 1 [(buf.validate.field).string.address = true]; - * } - * ``` - * - * @generated from protobuf field: bool address = 21; - */ - address: boolean; - } | { - oneofKind: "uuid"; - /** - * `uuid` specifies that the field value must be a valid UUID as defined by - * [RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2). If the - * field value isn't a valid UUID, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid UUID - * string value = 1 [(buf.validate.field).string.uuid = true]; - * } - * ``` - * - * @generated from protobuf field: bool uuid = 22; - */ - uuid: boolean; - } | { - oneofKind: "ip_with_prefixlen"; - /** - * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6) - * address with prefix length. If the field value isn't a valid IP with prefix - * length, an error message will be generated. - * - * - * ```proto - * message MyString { - * // value must be a valid IP with prefix length - * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; - * } - * ``` - * - * @generated from protobuf field: bool ip_with_prefixlen = 26; - */ - ip_with_prefixlen: boolean; - } | { - oneofKind: "ipv4_with_prefixlen"; - /** - * `ipv4_with_prefixlen` specifies that the field value must be a valid - * IPv4 address with prefix. - * If the field value isn't a valid IPv4 address with prefix length, - * an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid IPv4 address with prefix lentgh - * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv4_with_prefixlen = 27; - */ - ipv4_with_prefixlen: boolean; - } | { - oneofKind: "ipv6_with_prefixlen"; - /** - * `ipv6_with_prefixlen` specifies that the field value must be a valid - * IPv6 address with prefix length. - * If the field value is not a valid IPv6 address with prefix length, - * an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid IPv6 address prefix length - * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv6_with_prefixlen = 28; - */ - ipv6_with_prefixlen: boolean; - } | { - oneofKind: "ip_prefix"; - /** - * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix. - * If the field value isn't a valid IP prefix, an error message will be - * generated. The prefix must have all zeros for the masked bits of the prefix (e.g., - * `127.0.0.0/16`, not `127.0.0.1/16`). - * - * ```proto - * message MyString { - * // value must be a valid IP prefix - * string value = 1 [(buf.validate.field).string.ip_prefix = true]; - * } - * ``` - * - * @generated from protobuf field: bool ip_prefix = 29; - */ - ip_prefix: boolean; - } | { - oneofKind: "ipv4_prefix"; - /** - * `ipv4_prefix` specifies that the field value must be a valid IPv4 - * prefix. If the field value isn't a valid IPv4 prefix, an error message - * will be generated. The prefix must have all zeros for the masked bits of - * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`). - * - * ```proto - * message MyString { - * // value must be a valid IPv4 prefix - * string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv4_prefix = 30; - */ - ipv4_prefix: boolean; - } | { - oneofKind: "ipv6_prefix"; - /** - * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix. - * If the field value is not a valid IPv6 prefix, an error message will be - * generated. The prefix must have all zeros for the masked bits of the prefix - * (e.g., `2001:db8::/48`, not `2001:db8::1/48`). - * - * ```proto - * message MyString { - * // value must be a valid IPv6 prefix - * string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv6_prefix = 31; - */ - ipv6_prefix: boolean; - } | { - oneofKind: "well_known_regex"; - /** - * `well_known_regex` specifies a common well-known pattern - * defined as a regex. If the field value doesn't match the well-known - * regex, an error message will be generated. - * - * ```proto - * message MyString { - * // value must be a valid HTTP header value - * string value = 1 [(buf.validate.field).string.well_known_regex = 2]; - * } - * ``` - * - * #### KnownRegex - * - * `well_known_regex` contains some well-known patterns. - * - * | Name | Number | Description | - * |-------------------------------|--------|-------------------------------------------| - * | KNOWN_REGEX_UNSPECIFIED | 0 | | - * | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2) | - * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) | - * - * @generated from protobuf field: buf.validate.KnownRegex well_known_regex = 24; - */ - well_known_regex: KnownRegex; - } | { - oneofKind: undefined; - }; - /** - * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to - * enable strict header validation. By default, this is true, and HTTP header - * validations are [RFC-compliant](https://tools.ietf.org/html/rfc7230#section-3). Setting to false will enable looser - * validations that only disallow `\r\n\0` characters, which can be used to - * bypass header matching rules. - * - * ```proto - * message MyString { - * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules. - * string value = 1 [(buf.validate.field).string.strict = false]; - * } - * ``` - * - * @generated from protobuf field: optional bool strict = 25; - */ - strict?: boolean; -} -/** - * BytesRules describe the constraints applied to `bytes` values. These rules - * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type. - * - * @generated from protobuf message buf.validate.BytesRules - */ -export interface BytesRules { - /** - * `const` requires the field value to exactly match the specified bytes - * value. If the field value doesn't match, an error message is generated. - * - * ```proto - * message MyBytes { - * // value must be "\x01\x02\x03\x04" - * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; - * } - * ``` - * - * @generated from protobuf field: optional bytes const = 1; - */ - const?: Uint8Array; - /** - * `len` requires the field value to have the specified length in bytes. - * If the field value doesn't match, an error message is generated. - * - * ```proto - * message MyBytes { - * // value length must be 4 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 len = 13; - */ - len?: bigint; - /** - * `min_len` requires the field value to have at least the specified minimum - * length in bytes. - * If the field value doesn't meet the requirement, an error message is generated. - * - * ```proto - * message MyBytes { - * // value length must be at least 2 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 min_len = 2; - */ - min_len?: bigint; - /** - * `max_len` requires the field value to have at most the specified maximum - * length in bytes. - * If the field value exceeds the requirement, an error message is generated. - * - * ```proto - * message MyBytes { - * // value must be at most 6 bytes. - * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 max_len = 3; - */ - max_len?: bigint; - /** - * `pattern` requires the field value to match the specified regular - * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)). - * The value of the field must be valid UTF-8 or validation will fail with a - * runtime error. - * If the field value doesn't match the pattern, an error message is generated. - * - * ```proto - * message MyBytes { - * // value must match regex pattern "^[a-zA-Z0-9]+$". - * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; - * } - * ``` - * - * @generated from protobuf field: optional string pattern = 4; - */ - pattern?: string; - /** - * `prefix` requires the field value to have the specified bytes at the - * beginning of the string. - * If the field value doesn't meet the requirement, an error message is generated. - * - * ```proto - * message MyBytes { - * // value does not have prefix \x01\x02 - * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; - * } - * ``` - * - * @generated from protobuf field: optional bytes prefix = 5; - */ - prefix?: Uint8Array; - /** - * `suffix` requires the field value to have the specified bytes at the end - * of the string. - * If the field value doesn't meet the requirement, an error message is generated. - * - * ```proto - * message MyBytes { - * // value does not have suffix \x03\x04 - * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; - * } - * ``` - * - * @generated from protobuf field: optional bytes suffix = 6; - */ - suffix?: Uint8Array; - /** - * `contains` requires the field value to have the specified bytes anywhere in - * the string. - * If the field value doesn't meet the requirement, an error message is generated. - * - * ```protobuf - * message MyBytes { - * // value does not contain \x02\x03 - * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; - * } - * ``` - * - * @generated from protobuf field: optional bytes contains = 7; - */ - contains?: Uint8Array; - /** - * `in` requires the field value to be equal to one of the specified - * values. If the field value doesn't match any of the specified values, an - * error message is generated. - * - * ```protobuf - * message MyBytes { - * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] - * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; - * } - * ``` - * - * @generated from protobuf field: repeated bytes in = 8; - */ - in: Uint8Array[]; - /** - * `not_in` requires the field value to be not equal to any of the specified - * values. - * If the field value matches any of the specified values, an error message is - * generated. - * - * ```proto - * message MyBytes { - * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"] - * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; - * } - * ``` - * - * @generated from protobuf field: repeated bytes not_in = 9; - */ - not_in: Uint8Array[]; - /** - * @generated from protobuf oneof: well_known - */ - well_known: { - oneofKind: "ip"; - /** - * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format. - * If the field value doesn't meet this constraint, an error message is generated. - * - * ```proto - * message MyBytes { - * // value must be a valid IP address - * optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; - * } - * ``` - * - * @generated from protobuf field: bool ip = 10; - */ - ip: boolean; - } | { - oneofKind: "ipv4"; - /** - * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format. - * If the field value doesn't meet this constraint, an error message is generated. - * - * ```proto - * message MyBytes { - * // value must be a valid IPv4 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv4 = 11; - */ - ipv4: boolean; - } | { - oneofKind: "ipv6"; - /** - * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format. - * If the field value doesn't meet this constraint, an error message is generated. - * ```proto - * message MyBytes { - * // value must be a valid IPv6 address - * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; - * } - * ``` - * - * @generated from protobuf field: bool ipv6 = 12; - */ - ipv6: boolean; - } | { - oneofKind: undefined; - }; -} -/** - * EnumRules describe the constraints applied to `enum` values. - * - * @generated from protobuf message buf.validate.EnumRules - */ -export interface EnumRules { - /** - * `const` requires the field value to exactly match the specified enum value. - * If the field value doesn't match, an error message is generated. - * - * ```proto - * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; - * } - * - * message MyMessage { - * // The field `value` must be exactly MY_ENUM_VALUE1. - * MyEnum value = 1 [(buf.validate.field).enum.const = 1]; - * } - * ``` - * - * @generated from protobuf field: optional int32 const = 1; - */ - const?: number; - /** - * `defined_only` requires the field value to be one of the defined values for - * this enum, failing on any undefined value. - * - * ```proto - * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; - * } - * - * message MyMessage { - * // The field `value` must be a defined value of MyEnum. - * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; - * } - * ``` - * - * @generated from protobuf field: optional bool defined_only = 2; - */ - defined_only?: boolean; - /** - * `in` requires the field value to be equal to one of the - * specified enum values. If the field value doesn't match any of the - * specified values, an error message is generated. - * - * ```proto - * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; - * } - * - * message MyMessage { - * // The field `value` must be equal to one of the specified values. - * MyEnum value = 1 [(buf.validate.field).enum.in = {1, 2}]; - * } - * ``` - * - * @generated from protobuf field: repeated int32 in = 3; - */ - in: number[]; - /** - * `not_in` requires the field value to be not equal to any of the - * specified enum values. If the field value matches one of the specified - * values, an error message is generated. - * - * ```proto - * enum MyEnum { - * MY_ENUM_UNSPECIFIED = 0; - * MY_ENUM_VALUE1 = 1; - * MY_ENUM_VALUE2 = 2; - * } - * - * message MyMessage { - * // The field `value` must not be equal to any of the specified values. - * MyEnum value = 1 [(buf.validate.field).enum.not_in = {1, 2}]; - * } - * ``` - * - * @generated from protobuf field: repeated int32 not_in = 4; - */ - not_in: number[]; -} -/** - * RepeatedRules describe the constraints applied to `repeated` values. - * - * @generated from protobuf message buf.validate.RepeatedRules - */ -export interface RepeatedRules { - /** - * `min_items` requires that this field must contain at least the specified - * minimum number of items. - * - * Note that `min_items = 1` is equivalent to setting a field as `required`. - * - * ```proto - * message MyRepeated { - * // value must contain at least 2 items - * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 min_items = 1; - */ - min_items?: bigint; - /** - * `max_items` denotes that this field must not exceed a - * certain number of items as the upper limit. If the field contains more - * items than specified, an error message will be generated, requiring the - * field to maintain no more than the specified number of items. - * - * ```proto - * message MyRepeated { - * // value must contain no more than 3 item(s) - * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 max_items = 2; - */ - max_items?: bigint; - /** - * `unique` indicates that all elements in this field must - * be unique. This constraint is strictly applicable to scalar and enum - * types, with message types not being supported. - * - * ```proto - * message MyRepeated { - * // repeated value must contain unique items - * repeated string value = 1 [(buf.validate.field).repeated.unique = true]; - * } - * ``` - * - * @generated from protobuf field: optional bool unique = 3; - */ - unique?: boolean; - /** - * `items` details the constraints to be applied to each item - * in the field. Even for repeated message fields, validation is executed - * against each item unless skip is explicitly specified. - * - * ```proto - * message MyRepeated { - * // The items in the field `value` must follow the specified constraints. - * repeated string value = 1 [(buf.validate.field).repeated.items = { - * string: { - * min_len: 3 - * max_len: 10 - * } - * }]; - * } - * ``` - * - * @generated from protobuf field: optional buf.validate.FieldConstraints items = 4; - */ - items?: FieldConstraints; -} -/** - * MapRules describe the constraints applied to `map` values. - * - * @generated from protobuf message buf.validate.MapRules - */ -export interface MapRules { - /** - * Specifies the minimum number of key-value pairs allowed. If the field has - * fewer key-value pairs than specified, an error message is generated. - * - * ```proto - * message MyMap { - * // The field `value` must have at least 2 key-value pairs. - * map value = 1 [(buf.validate.field).map.min_pairs = 2]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 min_pairs = 1; - */ - min_pairs?: bigint; - /** - * Specifies the maximum number of key-value pairs allowed. If the field has - * more key-value pairs than specified, an error message is generated. - * - * ```proto - * message MyMap { - * // The field `value` must have at most 3 key-value pairs. - * map value = 1 [(buf.validate.field).map.max_pairs = 3]; - * } - * ``` - * - * @generated from protobuf field: optional uint64 max_pairs = 2; - */ - max_pairs?: bigint; - /** - * Specifies the constraints to be applied to each key in the field. - * - * ```proto - * message MyMap { - * // The keys in the field `value` must follow the specified constraints. - * map value = 1 [(buf.validate.field).map.keys = { - * string: { - * min_len: 3 - * max_len: 10 - * } - * }]; - * } - * ``` - * - * @generated from protobuf field: optional buf.validate.FieldConstraints keys = 4; - */ - keys?: FieldConstraints; - /** - * Specifies the constraints to be applied to the value of each key in the - * field. Message values will still have their validations evaluated unless - * skip is specified here. - * - * ```proto - * message MyMap { - * // The values in the field `value` must follow the specified constraints. - * map value = 1 [(buf.validate.field).map.values = { - * string: { - * min_len: 5 - * max_len: 20 - * } - * }]; - * } - * ``` - * - * @generated from protobuf field: optional buf.validate.FieldConstraints values = 5; - */ - values?: FieldConstraints; -} -/** - * AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type. - * - * @generated from protobuf message buf.validate.AnyRules - */ -export interface AnyRules { - /** - * `in` requires the field's `type_url` to be equal to one of the - * specified values. If it doesn't match any of the specified values, an error - * message is generated. - * - * ```proto - * message MyAny { - * // The `value` field must have a `type_url` equal to one of the specified values. - * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]]; - * } - * ``` - * - * @generated from protobuf field: repeated string in = 2; - */ - in: string[]; - /** - * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated. - * - * ```proto - * message MyAny { - * // The field `value` must not have a `type_url` equal to any of the specified values. - * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]]; - * } - * ``` - * - * @generated from protobuf field: repeated string not_in = 3; - */ - not_in: string[]; -} -/** - * DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type. - * - * @generated from protobuf message buf.validate.DurationRules - */ -export interface DurationRules { - /** - * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. - * If the field's value deviates from the specified value, an error message - * will be generated. - * - * ```proto - * message MyDuration { - * // value must equal 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; - * } - * ``` - * - * @generated from protobuf field: optional google.protobuf.Duration const = 2; - */ - const?: Duration; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, - * exclusive. If the field's value is greater than or equal to the specified - * value, an error message will be generated. - * - * ```proto - * message MyDuration { - * // value must be less than 5s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Duration lt = 3; - */ - lt: Duration; - } | { - oneofKind: "lte"; - /** - * `lte` indicates that the field must be less than or equal to the specified - * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, - * an error message will be generated. - * - * ```proto - * message MyDuration { - * // value must be less than or equal to 10s - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Duration lte = 4; - */ - lte: Duration; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the duration field value to be greater than the specified - * value (exclusive). If the value of `gt` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyDuration { - * // duration must be greater than 5s [duration.gt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; - * - * // duration must be greater than 5s and less than 10s [duration.gt_lt] - * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; - * - * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] - * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Duration gt = 5; - */ - gt: Duration; - } | { - oneofKind: "gte"; - /** - * `gte` requires the duration field value to be greater than or equal to the - * specified value (exclusive). If the value of `gte` is larger than a - * specified `lt` or `lte`, the range is reversed, and the field value must - * be outside the specified range. If the field value doesn't meet the - * required conditions, an error message is generated. - * - * ```proto - * message MyDuration { - * // duration must be greater than or equal to 5s [duration.gte] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; - * - * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] - * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; - * - * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] - * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Duration gte = 6; - */ - gte: Duration; - } | { - oneofKind: undefined; - }; - /** - * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. - * If the field's value doesn't correspond to any of the specified values, - * an error message will be generated. - * - * ```proto - * message MyDuration { - * // value must be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; - * } - * ``` - * - * @generated from protobuf field: repeated google.protobuf.Duration in = 7; - */ - in: Duration[]; - /** - * `not_in` denotes that the field must not be equal to - * any of the specified values of the `google.protobuf.Duration` type. - * If the field's value matches any of these values, an error message will be - * generated. - * - * ```proto - * message MyDuration { - * // value must not be in list [1s, 2s, 3s] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; - * } - * ``` - * - * @generated from protobuf field: repeated google.protobuf.Duration not_in = 8; - */ - not_in: Duration[]; -} -/** - * TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type. - * - * @generated from protobuf message buf.validate.TimestampRules - */ -export interface TimestampRules { - /** - * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated. - * - * ```proto - * message MyTimestamp { - * // value must equal 2023-05-03T10:00:00Z - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; - * } - * ``` - * - * @generated from protobuf field: optional google.protobuf.Timestamp const = 2; - */ - const?: Timestamp; - /** - * @generated from protobuf oneof: less_than - */ - less_than: { - oneofKind: "lt"; - /** - * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated. - * - * ```proto - * message MyDuration { - * // duration must be less than 'P3D' [duration.lt] - * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Timestamp lt = 3; - */ - lt: Timestamp; - } | { - oneofKind: "lte"; - /** - * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated. - * - * ```proto - * message MyTimestamp { - * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte] - * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Timestamp lte = 4; - */ - lte: Timestamp; - } | { - oneofKind: "lt_now"; - /** - * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule. - * - * ```proto - * message MyTimestamp { - * // value must be less than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; - * } - * ``` - * - * @generated from protobuf field: bool lt_now = 7; - */ - lt_now: boolean; - } | { - oneofKind: undefined; - }; - /** - * @generated from protobuf oneof: greater_than - */ - greater_than: { - oneofKind: "gt"; - /** - * `gt` requires the timestamp field value to be greater than the specified - * value (exclusive). If the value of `gt` is larger than a specified `lt` - * or `lte`, the range is reversed, and the field value must be outside the - * specified range. If the field value doesn't meet the required conditions, - * an error message is generated. - * - * ```proto - * message MyTimestamp { - * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt] - * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }]; - * - * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt] - * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; - * - * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive] - * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Timestamp gt = 5; - */ - gt: Timestamp; - } | { - oneofKind: "gte"; - /** - * `gte` requires the timestamp field value to be greater than or equal to the - * specified value (exclusive). If the value of `gte` is larger than a - * specified `lt` or `lte`, the range is reversed, and the field value - * must be outside the specified range. If the field value doesn't meet - * the required conditions, an error message is generated. - * - * ```proto - * message MyTimestamp { - * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte] - * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }]; - * - * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt] - * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; - * - * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive] - * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; - * } - * ``` - * - * @generated from protobuf field: google.protobuf.Timestamp gte = 6; - */ - gte: Timestamp; - } | { - oneofKind: "gt_now"; - /** - * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule. - * - * ```proto - * message MyTimestamp { - * // value must be greater than now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; - * } - * ``` - * - * @generated from protobuf field: bool gt_now = 8; - */ - gt_now: boolean; - } | { - oneofKind: undefined; - }; - /** - * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated. - * - * ```proto - * message MyTimestamp { - * // value must be within 1 hour of now - * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; - * } - * ``` - * - * @generated from protobuf field: optional google.protobuf.Duration within = 9; - */ - within?: Duration; -} -/** - * WellKnownRegex contain some well-known patterns. - * - * @generated from protobuf enum buf.validate.KnownRegex - */ -export declare enum KnownRegex { - /** - * @generated from protobuf enum value: KNOWN_REGEX_UNSPECIFIED = 0; - */ - KNOWN_REGEX_UNSPECIFIED = 0, - /** - * HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2). - * - * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1; - */ - KNOWN_REGEX_HTTP_HEADER_NAME = 1, - /** - * HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4). - * - * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2; - */ - KNOWN_REGEX_HTTP_HEADER_VALUE = 2 -} -declare class MessageConstraints$Type extends MessageType { - constructor(); - create(value?: PartialMessage): MessageConstraints; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageConstraints): MessageConstraints; - internalBinaryWrite(message: MessageConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.MessageConstraints - */ -export declare const MessageConstraints: MessageConstraints$Type; -declare class OneofConstraints$Type extends MessageType { - constructor(); - create(value?: PartialMessage): OneofConstraints; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofConstraints): OneofConstraints; - internalBinaryWrite(message: OneofConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.OneofConstraints - */ -export declare const OneofConstraints: OneofConstraints$Type; -declare class FieldConstraints$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldConstraints; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldConstraints): FieldConstraints; - internalBinaryWrite(message: FieldConstraints, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.FieldConstraints - */ -export declare const FieldConstraints: FieldConstraints$Type; -declare class FloatRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FloatRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatRules): FloatRules; - internalBinaryWrite(message: FloatRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.FloatRules - */ -export declare const FloatRules: FloatRules$Type; -declare class DoubleRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): DoubleRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleRules): DoubleRules; - internalBinaryWrite(message: DoubleRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.DoubleRules - */ -export declare const DoubleRules: DoubleRules$Type; -declare class Int32Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Int32Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Rules): Int32Rules; - internalBinaryWrite(message: Int32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Int32Rules - */ -export declare const Int32Rules: Int32Rules$Type; -declare class Int64Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Int64Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Rules): Int64Rules; - internalBinaryWrite(message: Int64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Int64Rules - */ -export declare const Int64Rules: Int64Rules$Type; -declare class UInt32Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): UInt32Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Rules): UInt32Rules; - internalBinaryWrite(message: UInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.UInt32Rules - */ -export declare const UInt32Rules: UInt32Rules$Type; -declare class UInt64Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): UInt64Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Rules): UInt64Rules; - internalBinaryWrite(message: UInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.UInt64Rules - */ -export declare const UInt64Rules: UInt64Rules$Type; -declare class SInt32Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SInt32Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt32Rules): SInt32Rules; - internalBinaryWrite(message: SInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.SInt32Rules - */ -export declare const SInt32Rules: SInt32Rules$Type; -declare class SInt64Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SInt64Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt64Rules): SInt64Rules; - internalBinaryWrite(message: SInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.SInt64Rules - */ -export declare const SInt64Rules: SInt64Rules$Type; -declare class Fixed32Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Fixed32Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed32Rules): Fixed32Rules; - internalBinaryWrite(message: Fixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Fixed32Rules - */ -export declare const Fixed32Rules: Fixed32Rules$Type; -declare class Fixed64Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Fixed64Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed64Rules): Fixed64Rules; - internalBinaryWrite(message: Fixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.Fixed64Rules - */ -export declare const Fixed64Rules: Fixed64Rules$Type; -declare class SFixed32Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SFixed32Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed32Rules): SFixed32Rules; - internalBinaryWrite(message: SFixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.SFixed32Rules - */ -export declare const SFixed32Rules: SFixed32Rules$Type; -declare class SFixed64Rules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SFixed64Rules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed64Rules): SFixed64Rules; - internalBinaryWrite(message: SFixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.SFixed64Rules - */ -export declare const SFixed64Rules: SFixed64Rules$Type; -declare class BoolRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): BoolRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolRules): BoolRules; - internalBinaryWrite(message: BoolRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.BoolRules - */ -export declare const BoolRules: BoolRules$Type; -declare class StringRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): StringRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringRules): StringRules; - internalBinaryWrite(message: StringRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.StringRules - */ -export declare const StringRules: StringRules$Type; -declare class BytesRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): BytesRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesRules): BytesRules; - internalBinaryWrite(message: BytesRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.BytesRules - */ -export declare const BytesRules: BytesRules$Type; -declare class EnumRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumRules): EnumRules; - internalBinaryWrite(message: EnumRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.EnumRules - */ -export declare const EnumRules: EnumRules$Type; -declare class RepeatedRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): RepeatedRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RepeatedRules): RepeatedRules; - internalBinaryWrite(message: RepeatedRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.RepeatedRules - */ -export declare const RepeatedRules: RepeatedRules$Type; -declare class MapRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): MapRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MapRules): MapRules; - internalBinaryWrite(message: MapRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.MapRules - */ -export declare const MapRules: MapRules$Type; -declare class AnyRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): AnyRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnyRules): AnyRules; - internalBinaryWrite(message: AnyRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.AnyRules - */ -export declare const AnyRules: AnyRules$Type; -declare class DurationRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): DurationRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DurationRules): DurationRules; - internalBinaryWrite(message: DurationRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.DurationRules - */ -export declare const DurationRules: DurationRules$Type; -declare class TimestampRules$Type extends MessageType { - constructor(); - create(value?: PartialMessage): TimestampRules; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimestampRules): TimestampRules; - internalBinaryWrite(message: TimestampRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message buf.validate.TimestampRules - */ -export declare const TimestampRules: TimestampRules$Type; -export {}; diff --git a/src/buf/validate/validate_pb.js b/src/buf/validate/validate_pb.js deleted file mode 100644 index a03f4392..00000000 --- a/src/buf/validate/validate_pb.js +++ /dev/null @@ -1,2880 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "buf/validate/validate.proto" (package "buf.validate", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Buf Technologies, Inc. -// -// 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. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimestampRules = exports.DurationRules = exports.AnyRules = exports.MapRules = exports.RepeatedRules = exports.EnumRules = exports.BytesRules = exports.StringRules = exports.BoolRules = exports.SFixed64Rules = exports.SFixed32Rules = exports.Fixed64Rules = exports.Fixed32Rules = exports.SInt64Rules = exports.SInt32Rules = exports.UInt64Rules = exports.UInt32Rules = exports.Int64Rules = exports.Int32Rules = exports.DoubleRules = exports.FloatRules = exports.FieldConstraints = exports.OneofConstraints = exports.MessageConstraints = exports.KnownRegex = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const timestamp_pb_1 = require("../../google/protobuf/timestamp_pb"); -const duration_pb_1 = require("../../google/protobuf/duration_pb"); -const expression_pb_1 = require("./expression_pb"); -/** - * WellKnownRegex contain some well-known patterns. - * - * @generated from protobuf enum buf.validate.KnownRegex - */ -var KnownRegex; -(function (KnownRegex) { - /** - * @generated from protobuf enum value: KNOWN_REGEX_UNSPECIFIED = 0; - */ - KnownRegex[KnownRegex["KNOWN_REGEX_UNSPECIFIED"] = 0] = "KNOWN_REGEX_UNSPECIFIED"; - /** - * HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2). - * - * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1; - */ - KnownRegex[KnownRegex["KNOWN_REGEX_HTTP_HEADER_NAME"] = 1] = "KNOWN_REGEX_HTTP_HEADER_NAME"; - /** - * HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4). - * - * @generated from protobuf enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2; - */ - KnownRegex[KnownRegex["KNOWN_REGEX_HTTP_HEADER_VALUE"] = 2] = "KNOWN_REGEX_HTTP_HEADER_VALUE"; -})(KnownRegex = exports.KnownRegex || (exports.KnownRegex = {})); -// @generated message type with reflection information, may provide speed optimized methods -class MessageConstraints$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.MessageConstraints", [ - { no: 1, name: "disabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => expression_pb_1.Constraint } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.cel = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool disabled */ 1: - message.disabled = reader.bool(); - break; - case /* repeated buf.validate.Constraint cel */ 3: - message.cel.push(expression_pb_1.Constraint.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool disabled = 1; */ - if (message.disabled !== undefined) - writer.tag(1, runtime_1.WireType.Varint).bool(message.disabled); - /* repeated buf.validate.Constraint cel = 3; */ - for (let i = 0; i < message.cel.length; i++) - expression_pb_1.Constraint.internalBinaryWrite(message.cel[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.MessageConstraints - */ -exports.MessageConstraints = new MessageConstraints$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class OneofConstraints$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.OneofConstraints", [ - { no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool required */ 1: - message.required = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool required = 1; */ - if (message.required !== undefined) - writer.tag(1, runtime_1.WireType.Varint).bool(message.required); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.OneofConstraints - */ -exports.OneofConstraints = new OneofConstraints$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FieldConstraints$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.FieldConstraints", [ - { no: 23, name: "cel", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => expression_pb_1.Constraint }, - { no: 24, name: "skipped", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 25, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 26, name: "ignore_empty", kind: "scalar", localName: "ignore_empty", T: 8 /*ScalarType.BOOL*/ }, - { no: 1, name: "float", kind: "message", oneof: "type", T: () => exports.FloatRules }, - { no: 2, name: "double", kind: "message", oneof: "type", T: () => exports.DoubleRules }, - { no: 3, name: "int32", kind: "message", oneof: "type", T: () => exports.Int32Rules }, - { no: 4, name: "int64", kind: "message", oneof: "type", T: () => exports.Int64Rules }, - { no: 5, name: "uint32", kind: "message", oneof: "type", T: () => exports.UInt32Rules }, - { no: 6, name: "uint64", kind: "message", oneof: "type", T: () => exports.UInt64Rules }, - { no: 7, name: "sint32", kind: "message", oneof: "type", T: () => exports.SInt32Rules }, - { no: 8, name: "sint64", kind: "message", oneof: "type", T: () => exports.SInt64Rules }, - { no: 9, name: "fixed32", kind: "message", oneof: "type", T: () => exports.Fixed32Rules }, - { no: 10, name: "fixed64", kind: "message", oneof: "type", T: () => exports.Fixed64Rules }, - { no: 11, name: "sfixed32", kind: "message", oneof: "type", T: () => exports.SFixed32Rules }, - { no: 12, name: "sfixed64", kind: "message", oneof: "type", T: () => exports.SFixed64Rules }, - { no: 13, name: "bool", kind: "message", oneof: "type", T: () => exports.BoolRules }, - { no: 14, name: "string", kind: "message", oneof: "type", T: () => exports.StringRules }, - { no: 15, name: "bytes", kind: "message", oneof: "type", T: () => exports.BytesRules }, - { no: 16, name: "enum", kind: "message", oneof: "type", T: () => exports.EnumRules }, - { no: 18, name: "repeated", kind: "message", oneof: "type", T: () => exports.RepeatedRules }, - { no: 19, name: "map", kind: "message", oneof: "type", T: () => exports.MapRules }, - { no: 20, name: "any", kind: "message", oneof: "type", T: () => exports.AnyRules }, - { no: 21, name: "duration", kind: "message", oneof: "type", T: () => exports.DurationRules }, - { no: 22, name: "timestamp", kind: "message", oneof: "type", T: () => exports.TimestampRules } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.cel = []; - message.skipped = false; - message.required = false; - message.ignore_empty = false; - message.type = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated buf.validate.Constraint cel */ 23: - message.cel.push(expression_pb_1.Constraint.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* bool skipped */ 24: - message.skipped = reader.bool(); - break; - case /* bool required */ 25: - message.required = reader.bool(); - break; - case /* bool ignore_empty */ 26: - message.ignore_empty = reader.bool(); - break; - case /* buf.validate.FloatRules float */ 1: - message.type = { - oneofKind: "float", - float: exports.FloatRules.internalBinaryRead(reader, reader.uint32(), options, message.type.float) - }; - break; - case /* buf.validate.DoubleRules double */ 2: - message.type = { - oneofKind: "double", - double: exports.DoubleRules.internalBinaryRead(reader, reader.uint32(), options, message.type.double) - }; - break; - case /* buf.validate.Int32Rules int32 */ 3: - message.type = { - oneofKind: "int32", - int32: exports.Int32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.int32) - }; - break; - case /* buf.validate.Int64Rules int64 */ 4: - message.type = { - oneofKind: "int64", - int64: exports.Int64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.int64) - }; - break; - case /* buf.validate.UInt32Rules uint32 */ 5: - message.type = { - oneofKind: "uint32", - uint32: exports.UInt32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.uint32) - }; - break; - case /* buf.validate.UInt64Rules uint64 */ 6: - message.type = { - oneofKind: "uint64", - uint64: exports.UInt64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.uint64) - }; - break; - case /* buf.validate.SInt32Rules sint32 */ 7: - message.type = { - oneofKind: "sint32", - sint32: exports.SInt32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sint32) - }; - break; - case /* buf.validate.SInt64Rules sint64 */ 8: - message.type = { - oneofKind: "sint64", - sint64: exports.SInt64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sint64) - }; - break; - case /* buf.validate.Fixed32Rules fixed32 */ 9: - message.type = { - oneofKind: "fixed32", - fixed32: exports.Fixed32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.fixed32) - }; - break; - case /* buf.validate.Fixed64Rules fixed64 */ 10: - message.type = { - oneofKind: "fixed64", - fixed64: exports.Fixed64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.fixed64) - }; - break; - case /* buf.validate.SFixed32Rules sfixed32 */ 11: - message.type = { - oneofKind: "sfixed32", - sfixed32: exports.SFixed32Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sfixed32) - }; - break; - case /* buf.validate.SFixed64Rules sfixed64 */ 12: - message.type = { - oneofKind: "sfixed64", - sfixed64: exports.SFixed64Rules.internalBinaryRead(reader, reader.uint32(), options, message.type.sfixed64) - }; - break; - case /* buf.validate.BoolRules bool */ 13: - message.type = { - oneofKind: "bool", - bool: exports.BoolRules.internalBinaryRead(reader, reader.uint32(), options, message.type.bool) - }; - break; - case /* buf.validate.StringRules string */ 14: - message.type = { - oneofKind: "string", - string: exports.StringRules.internalBinaryRead(reader, reader.uint32(), options, message.type.string) - }; - break; - case /* buf.validate.BytesRules bytes */ 15: - message.type = { - oneofKind: "bytes", - bytes: exports.BytesRules.internalBinaryRead(reader, reader.uint32(), options, message.type.bytes) - }; - break; - case /* buf.validate.EnumRules enum */ 16: - message.type = { - oneofKind: "enum", - enum: exports.EnumRules.internalBinaryRead(reader, reader.uint32(), options, message.type.enum) - }; - break; - case /* buf.validate.RepeatedRules repeated */ 18: - message.type = { - oneofKind: "repeated", - repeated: exports.RepeatedRules.internalBinaryRead(reader, reader.uint32(), options, message.type.repeated) - }; - break; - case /* buf.validate.MapRules map */ 19: - message.type = { - oneofKind: "map", - map: exports.MapRules.internalBinaryRead(reader, reader.uint32(), options, message.type.map) - }; - break; - case /* buf.validate.AnyRules any */ 20: - message.type = { - oneofKind: "any", - any: exports.AnyRules.internalBinaryRead(reader, reader.uint32(), options, message.type.any) - }; - break; - case /* buf.validate.DurationRules duration */ 21: - message.type = { - oneofKind: "duration", - duration: exports.DurationRules.internalBinaryRead(reader, reader.uint32(), options, message.type.duration) - }; - break; - case /* buf.validate.TimestampRules timestamp */ 22: - message.type = { - oneofKind: "timestamp", - timestamp: exports.TimestampRules.internalBinaryRead(reader, reader.uint32(), options, message.type.timestamp) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated buf.validate.Constraint cel = 23; */ - for (let i = 0; i < message.cel.length; i++) - expression_pb_1.Constraint.internalBinaryWrite(message.cel[i], writer.tag(23, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* bool skipped = 24; */ - if (message.skipped !== false) - writer.tag(24, runtime_1.WireType.Varint).bool(message.skipped); - /* bool required = 25; */ - if (message.required !== false) - writer.tag(25, runtime_1.WireType.Varint).bool(message.required); - /* bool ignore_empty = 26; */ - if (message.ignore_empty !== false) - writer.tag(26, runtime_1.WireType.Varint).bool(message.ignore_empty); - /* buf.validate.FloatRules float = 1; */ - if (message.type.oneofKind === "float") - exports.FloatRules.internalBinaryWrite(message.type.float, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.DoubleRules double = 2; */ - if (message.type.oneofKind === "double") - exports.DoubleRules.internalBinaryWrite(message.type.double, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.Int32Rules int32 = 3; */ - if (message.type.oneofKind === "int32") - exports.Int32Rules.internalBinaryWrite(message.type.int32, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.Int64Rules int64 = 4; */ - if (message.type.oneofKind === "int64") - exports.Int64Rules.internalBinaryWrite(message.type.int64, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.UInt32Rules uint32 = 5; */ - if (message.type.oneofKind === "uint32") - exports.UInt32Rules.internalBinaryWrite(message.type.uint32, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.UInt64Rules uint64 = 6; */ - if (message.type.oneofKind === "uint64") - exports.UInt64Rules.internalBinaryWrite(message.type.uint64, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.SInt32Rules sint32 = 7; */ - if (message.type.oneofKind === "sint32") - exports.SInt32Rules.internalBinaryWrite(message.type.sint32, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.SInt64Rules sint64 = 8; */ - if (message.type.oneofKind === "sint64") - exports.SInt64Rules.internalBinaryWrite(message.type.sint64, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.Fixed32Rules fixed32 = 9; */ - if (message.type.oneofKind === "fixed32") - exports.Fixed32Rules.internalBinaryWrite(message.type.fixed32, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.Fixed64Rules fixed64 = 10; */ - if (message.type.oneofKind === "fixed64") - exports.Fixed64Rules.internalBinaryWrite(message.type.fixed64, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.SFixed32Rules sfixed32 = 11; */ - if (message.type.oneofKind === "sfixed32") - exports.SFixed32Rules.internalBinaryWrite(message.type.sfixed32, writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.SFixed64Rules sfixed64 = 12; */ - if (message.type.oneofKind === "sfixed64") - exports.SFixed64Rules.internalBinaryWrite(message.type.sfixed64, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.BoolRules bool = 13; */ - if (message.type.oneofKind === "bool") - exports.BoolRules.internalBinaryWrite(message.type.bool, writer.tag(13, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.StringRules string = 14; */ - if (message.type.oneofKind === "string") - exports.StringRules.internalBinaryWrite(message.type.string, writer.tag(14, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.BytesRules bytes = 15; */ - if (message.type.oneofKind === "bytes") - exports.BytesRules.internalBinaryWrite(message.type.bytes, writer.tag(15, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.EnumRules enum = 16; */ - if (message.type.oneofKind === "enum") - exports.EnumRules.internalBinaryWrite(message.type.enum, writer.tag(16, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.RepeatedRules repeated = 18; */ - if (message.type.oneofKind === "repeated") - exports.RepeatedRules.internalBinaryWrite(message.type.repeated, writer.tag(18, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.MapRules map = 19; */ - if (message.type.oneofKind === "map") - exports.MapRules.internalBinaryWrite(message.type.map, writer.tag(19, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.AnyRules any = 20; */ - if (message.type.oneofKind === "any") - exports.AnyRules.internalBinaryWrite(message.type.any, writer.tag(20, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.DurationRules duration = 21; */ - if (message.type.oneofKind === "duration") - exports.DurationRules.internalBinaryWrite(message.type.duration, writer.tag(21, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* buf.validate.TimestampRules timestamp = 22; */ - if (message.type.oneofKind === "timestamp") - exports.TimestampRules.internalBinaryWrite(message.type.timestamp, writer.tag(22, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.FieldConstraints - */ -exports.FieldConstraints = new FieldConstraints$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FloatRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.FloatRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.lt", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.lte", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.gt", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "float.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "float.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "float.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "float.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.gte", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "float.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "float.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "float.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "float.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, - { no: 8, name: "finite", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "float.finite", expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - message.finite = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional float const */ 1: - message.const = reader.float(); - break; - case /* float lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.float() - }; - break; - case /* float lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.float() - }; - break; - case /* float gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.float() - }; - break; - case /* float gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.float() - }; - break; - case /* repeated float in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.float()); - else - message.in.push(reader.float()); - break; - case /* repeated float not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.float()); - else - message.not_in.push(reader.float()); - break; - case /* bool finite */ 8: - message.finite = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional float const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit32).float(message.const); - /* float lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit32).float(message.less_than.lt); - /* float lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit32).float(message.less_than.lte); - /* float gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit32).float(message.greater_than.gt); - /* float gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit32).float(message.greater_than.gte); - /* repeated float in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.float(message.in[i]); - writer.join(); - } - /* repeated float not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.float(message.not_in[i]); - writer.join(); - } - /* bool finite = 8; */ - if (message.finite !== false) - writer.tag(8, runtime_1.WireType.Varint).bool(message.finite); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.FloatRules - */ -exports.FloatRules = new FloatRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DoubleRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.DoubleRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.lt", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.lte", expression: "!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.gt", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "double.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "double.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "double.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "double.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.gte", expression: "!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "double.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "double.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "double.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "double.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 1 /*ScalarType.DOUBLE*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, - { no: 8, name: "finite", kind: "scalar", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "double.finite", expression: "this.isNan() || this.isInf() ? 'value must be finite' : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - message.finite = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional double const */ 1: - message.const = reader.double(); - break; - case /* double lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.double() - }; - break; - case /* double lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.double() - }; - break; - case /* double gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.double() - }; - break; - case /* double gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.double() - }; - break; - case /* repeated double in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.double()); - else - message.in.push(reader.double()); - break; - case /* repeated double not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.double()); - else - message.not_in.push(reader.double()); - break; - case /* bool finite */ 8: - message.finite = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional double const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit64).double(message.const); - /* double lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit64).double(message.less_than.lt); - /* double lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit64).double(message.less_than.lte); - /* double gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit64).double(message.greater_than.gt); - /* double gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit64).double(message.greater_than.gte); - /* repeated double in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.double(message.in[i]); - writer.join(); - } - /* repeated double not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.double(message.not_in[i]); - writer.join(); - } - /* bool finite = 8; */ - if (message.finite !== false) - writer.tag(8, runtime_1.WireType.Varint).bool(message.finite); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.DoubleRules - */ -exports.DoubleRules = new DoubleRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Int32Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Int32Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "int32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "int32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "int32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "int32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "int32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 const */ 1: - message.const = reader.int32(); - break; - case /* int32 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.int32() - }; - break; - case /* int32 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.int32() - }; - break; - case /* int32 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.int32() - }; - break; - case /* int32 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.int32() - }; - break; - case /* repeated int32 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.int32()); - else - message.in.push(reader.int32()); - break; - case /* repeated int32 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.int32()); - else - message.not_in.push(reader.int32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.const); - /* int32 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).int32(message.less_than.lt); - /* int32 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).int32(message.less_than.lte); - /* int32 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).int32(message.greater_than.gt); - /* int32 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).int32(message.greater_than.gte); - /* repeated int32 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.int32(message.in[i]); - writer.join(); - } - /* repeated int32 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.int32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Int32Rules - */ -exports.Int32Rules = new Int32Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Int64Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Int64Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "int64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "int64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "int64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "int64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "int64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "int64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "int64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int64 const */ 1: - message.const = reader.int64().toBigInt(); - break; - case /* int64 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.int64().toBigInt() - }; - break; - case /* int64 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.int64().toBigInt() - }; - break; - case /* int64 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.int64().toBigInt() - }; - break; - case /* int64 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.int64().toBigInt() - }; - break; - case /* repeated int64 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.int64().toBigInt()); - else - message.in.push(reader.int64().toBigInt()); - break; - case /* repeated int64 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.int64().toBigInt()); - else - message.not_in.push(reader.int64().toBigInt()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int64 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int64(message.const); - /* int64 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).int64(message.less_than.lt); - /* int64 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).int64(message.less_than.lte); - /* int64 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).int64(message.greater_than.gt); - /* int64 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).int64(message.greater_than.gte); - /* repeated int64 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.int64(message.in[i]); - writer.join(); - } - /* repeated int64 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.int64(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Int64Rules - */ -exports.Int64Rules = new Int64Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UInt32Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.UInt32Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "uint32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "uint32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "uint32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "uint32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional uint32 const */ 1: - message.const = reader.uint32(); - break; - case /* uint32 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.uint32() - }; - break; - case /* uint32 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.uint32() - }; - break; - case /* uint32 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.uint32() - }; - break; - case /* uint32 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.uint32() - }; - break; - case /* repeated uint32 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.uint32()); - else - message.in.push(reader.uint32()); - break; - case /* repeated uint32 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.uint32()); - else - message.not_in.push(reader.uint32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional uint32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).uint32(message.const); - /* uint32 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).uint32(message.less_than.lt); - /* uint32 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).uint32(message.less_than.lte); - /* uint32 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).uint32(message.greater_than.gt); - /* uint32 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).uint32(message.greater_than.gte); - /* repeated uint32 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.uint32(message.in[i]); - writer.join(); - } - /* repeated uint32 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.uint32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.UInt32Rules - */ -exports.UInt32Rules = new UInt32Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UInt64Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.UInt64Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "uint64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "uint64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "uint64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "uint64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "uint64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "uint64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "uint64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional uint64 const */ 1: - message.const = reader.uint64().toBigInt(); - break; - case /* uint64 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.uint64().toBigInt() - }; - break; - case /* uint64 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.uint64().toBigInt() - }; - break; - case /* uint64 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.uint64().toBigInt() - }; - break; - case /* uint64 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.uint64().toBigInt() - }; - break; - case /* repeated uint64 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.uint64().toBigInt()); - else - message.in.push(reader.uint64().toBigInt()); - break; - case /* repeated uint64 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.uint64().toBigInt()); - else - message.not_in.push(reader.uint64().toBigInt()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional uint64 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).uint64(message.const); - /* uint64 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).uint64(message.less_than.lt); - /* uint64 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).uint64(message.less_than.lte); - /* uint64 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).uint64(message.greater_than.gt); - /* uint64 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).uint64(message.greater_than.gte); - /* repeated uint64 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.uint64(message.in[i]); - writer.join(); - } - /* repeated uint64 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.uint64(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.UInt64Rules - */ -exports.UInt64Rules = new UInt64Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SInt32Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.SInt32Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sint32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sint32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sint32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sint32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 17 /*ScalarType.SINT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional sint32 const */ 1: - message.const = reader.sint32(); - break; - case /* sint32 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.sint32() - }; - break; - case /* sint32 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.sint32() - }; - break; - case /* sint32 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.sint32() - }; - break; - case /* sint32 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.sint32() - }; - break; - case /* repeated sint32 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.sint32()); - else - message.in.push(reader.sint32()); - break; - case /* repeated sint32 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.sint32()); - else - message.not_in.push(reader.sint32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional sint32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).sint32(message.const); - /* sint32 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).sint32(message.less_than.lt); - /* sint32 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).sint32(message.less_than.lte); - /* sint32 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).sint32(message.greater_than.gt); - /* sint32 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).sint32(message.greater_than.gte); - /* repeated sint32 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.sint32(message.in[i]); - writer.join(); - } - /* repeated sint32 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.sint32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.SInt32Rules - */ -exports.SInt32Rules = new SInt32Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SInt64Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.SInt64Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sint64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sint64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sint64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sint64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sint64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sint64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sint64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional sint64 const */ 1: - message.const = reader.sint64().toBigInt(); - break; - case /* sint64 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.sint64().toBigInt() - }; - break; - case /* sint64 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.sint64().toBigInt() - }; - break; - case /* sint64 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.sint64().toBigInt() - }; - break; - case /* sint64 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.sint64().toBigInt() - }; - break; - case /* repeated sint64 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.sint64().toBigInt()); - else - message.in.push(reader.sint64().toBigInt()); - break; - case /* repeated sint64 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.sint64().toBigInt()); - else - message.not_in.push(reader.sint64().toBigInt()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional sint64 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).sint64(message.const); - /* sint64 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Varint).sint64(message.less_than.lt); - /* sint64 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Varint).sint64(message.less_than.lte); - /* sint64 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Varint).sint64(message.greater_than.gt); - /* sint64 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Varint).sint64(message.greater_than.gte); - /* repeated sint64 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.sint64(message.in[i]); - writer.join(); - } - /* repeated sint64 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.sint64(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.SInt64Rules - */ -exports.SInt64Rules = new SInt64Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Fixed32Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Fixed32Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "fixed32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "fixed32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "fixed32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "fixed32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 7 /*ScalarType.FIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional fixed32 const */ 1: - message.const = reader.fixed32(); - break; - case /* fixed32 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.fixed32() - }; - break; - case /* fixed32 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.fixed32() - }; - break; - case /* fixed32 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.fixed32() - }; - break; - case /* fixed32 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.fixed32() - }; - break; - case /* repeated fixed32 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.fixed32()); - else - message.in.push(reader.fixed32()); - break; - case /* repeated fixed32 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.fixed32()); - else - message.not_in.push(reader.fixed32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional fixed32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit32).fixed32(message.const); - /* fixed32 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit32).fixed32(message.less_than.lt); - /* fixed32 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit32).fixed32(message.less_than.lte); - /* fixed32 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit32).fixed32(message.greater_than.gt); - /* fixed32 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit32).fixed32(message.greater_than.gte); - /* repeated fixed32 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.fixed32(message.in[i]); - writer.join(); - } - /* repeated fixed32 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.fixed32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Fixed32Rules - */ -exports.Fixed32Rules = new Fixed32Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Fixed64Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.Fixed64Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "fixed64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "fixed64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "fixed64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "fixed64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "fixed64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "fixed64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "fixed64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional fixed64 const */ 1: - message.const = reader.fixed64().toBigInt(); - break; - case /* fixed64 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.fixed64().toBigInt() - }; - break; - case /* fixed64 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.fixed64().toBigInt() - }; - break; - case /* fixed64 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.fixed64().toBigInt() - }; - break; - case /* fixed64 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.fixed64().toBigInt() - }; - break; - case /* repeated fixed64 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.fixed64().toBigInt()); - else - message.in.push(reader.fixed64().toBigInt()); - break; - case /* repeated fixed64 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.fixed64().toBigInt()); - else - message.not_in.push(reader.fixed64().toBigInt()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional fixed64 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit64).fixed64(message.const); - /* fixed64 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit64).fixed64(message.less_than.lt); - /* fixed64 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit64).fixed64(message.less_than.lte); - /* fixed64 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit64).fixed64(message.greater_than.gt); - /* fixed64 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit64).fixed64(message.greater_than.gte); - /* repeated fixed64 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.fixed64(message.in[i]); - writer.join(); - } - /* repeated fixed64 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.fixed64(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.Fixed64Rules - */ -exports.Fixed64Rules = new Fixed64Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SFixed32Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.SFixed32Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sfixed32.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed32.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed32.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sfixed32.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sfixed32.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed32.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed32.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sfixed32.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 15 /*ScalarType.SFIXED32*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed32.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional sfixed32 const */ 1: - message.const = reader.sfixed32(); - break; - case /* sfixed32 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.sfixed32() - }; - break; - case /* sfixed32 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.sfixed32() - }; - break; - case /* sfixed32 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.sfixed32() - }; - break; - case /* sfixed32 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.sfixed32() - }; - break; - case /* repeated sfixed32 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.sfixed32()); - else - message.in.push(reader.sfixed32()); - break; - case /* repeated sfixed32 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.sfixed32()); - else - message.not_in.push(reader.sfixed32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional sfixed32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit32).sfixed32(message.const); - /* sfixed32 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit32).sfixed32(message.less_than.lt); - /* sfixed32 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit32).sfixed32(message.less_than.lte); - /* sfixed32 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit32).sfixed32(message.greater_than.gt); - /* sfixed32 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit32).sfixed32(message.greater_than.gte); - /* repeated sfixed32 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.sfixed32(message.in[i]); - writer.join(); - } - /* repeated sfixed32 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.sfixed32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.SFixed32Rules - */ -exports.SFixed32Rules = new SFixed32Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SFixed64Rules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.SFixed64Rules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "lt", kind: "scalar", oneof: "less_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 3, name: "lte", kind: "scalar", oneof: "less_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 4, name: "gt", kind: "scalar", oneof: "greater_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "sfixed64.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed64.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "sfixed64.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "sfixed64.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 5, name: "gte", kind: "scalar", oneof: "greater_than", T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "sfixed64.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed64.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "sfixed64.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "sfixed64.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 6, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 7, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "sfixed64.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional sfixed64 const */ 1: - message.const = reader.sfixed64().toBigInt(); - break; - case /* sfixed64 lt */ 2: - message.less_than = { - oneofKind: "lt", - lt: reader.sfixed64().toBigInt() - }; - break; - case /* sfixed64 lte */ 3: - message.less_than = { - oneofKind: "lte", - lte: reader.sfixed64().toBigInt() - }; - break; - case /* sfixed64 gt */ 4: - message.greater_than = { - oneofKind: "gt", - gt: reader.sfixed64().toBigInt() - }; - break; - case /* sfixed64 gte */ 5: - message.greater_than = { - oneofKind: "gte", - gte: reader.sfixed64().toBigInt() - }; - break; - case /* repeated sfixed64 in */ 6: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.sfixed64().toBigInt()); - else - message.in.push(reader.sfixed64().toBigInt()); - break; - case /* repeated sfixed64 not_in */ 7: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.sfixed64().toBigInt()); - else - message.not_in.push(reader.sfixed64().toBigInt()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional sfixed64 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Bit64).sfixed64(message.const); - /* sfixed64 lt = 2; */ - if (message.less_than.oneofKind === "lt") - writer.tag(2, runtime_1.WireType.Bit64).sfixed64(message.less_than.lt); - /* sfixed64 lte = 3; */ - if (message.less_than.oneofKind === "lte") - writer.tag(3, runtime_1.WireType.Bit64).sfixed64(message.less_than.lte); - /* sfixed64 gt = 4; */ - if (message.greater_than.oneofKind === "gt") - writer.tag(4, runtime_1.WireType.Bit64).sfixed64(message.greater_than.gt); - /* sfixed64 gte = 5; */ - if (message.greater_than.oneofKind === "gte") - writer.tag(5, runtime_1.WireType.Bit64).sfixed64(message.greater_than.gte); - /* repeated sfixed64 in = 6; */ - if (message.in.length) { - writer.tag(6, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.sfixed64(message.in[i]); - writer.join(); - } - /* repeated sfixed64 not_in = 7; */ - if (message.not_in.length) { - writer.tag(7, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.sfixed64(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.SFixed64Rules - */ -exports.SFixed64Rules = new SFixed64Rules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class BoolRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.BoolRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bool.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool const */ 1: - message.const = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).bool(message.const); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.BoolRules - */ -exports.BoolRules = new BoolRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class StringRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.StringRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.const", expression: "this != rules.const ? 'value must equal `%s`'.format([rules.const]) : ''" }] } } }, - { no: 19, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.len", expression: "uint(this.size()) != rules.len ? 'value length must be %s characters'.format([rules.len]) : ''" }] } } }, - { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.min_len", expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s characters'.format([rules.min_len]) : ''" }] } } }, - { no: 3, name: "max_len", kind: "scalar", localName: "max_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.max_len", expression: "uint(this.size()) > rules.max_len ? 'value length must be at most %s characters'.format([rules.max_len]) : ''" }] } } }, - { no: 20, name: "len_bytes", kind: "scalar", localName: "len_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.len_bytes", expression: "uint(bytes(this).size()) != rules.len_bytes ? 'value length must be %s bytes'.format([rules.len_bytes]) : ''" }] } } }, - { no: 4, name: "min_bytes", kind: "scalar", localName: "min_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.min_bytes", expression: "uint(bytes(this).size()) < rules.min_bytes ? 'value length must be at least %s bytes'.format([rules.min_bytes]) : ''" }] } } }, - { no: 5, name: "max_bytes", kind: "scalar", localName: "max_bytes", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.max_bytes", expression: "uint(bytes(this).size()) > rules.max_bytes ? 'value length must be at most %s bytes'.format([rules.max_bytes]) : ''" }] } } }, - { no: 6, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.pattern", expression: "!this.matches(rules.pattern) ? 'value does not match regex pattern `%s`'.format([rules.pattern]) : ''" }] } } }, - { no: 7, name: "prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.prefix", expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix `%s`'.format([rules.prefix]) : ''" }] } } }, - { no: 8, name: "suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.suffix", expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix `%s`'.format([rules.suffix]) : ''" }] } } }, - { no: 9, name: "contains", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.contains", expression: "!this.contains(rules.contains) ? 'value does not contain substring `%s`'.format([rules.contains]) : ''" }] } } }, - { no: 23, name: "not_contains", kind: "scalar", localName: "not_contains", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.not_contains", expression: "this.contains(rules.not_contains) ? 'value contains substring `%s`'.format([rules.not_contains]) : ''" }] } } }, - { no: 10, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 11, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, - { no: 12, name: "email", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.email", message: "value must be a valid email address", expression: "this.isEmail()" }] } } }, - { no: 13, name: "hostname", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.hostname", message: "value must be a valid hostname", expression: "this.isHostname()" }] } } }, - { no: 14, name: "ip", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip", message: "value must be a valid IP address", expression: "this.isIp()" }] } } }, - { no: 15, name: "ipv4", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4", message: "value must be a valid IPv4 address", expression: "this.isIp(4)" }] } } }, - { no: 16, name: "ipv6", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6", message: "value must be a valid IPv6 address", expression: "this.isIp(6)" }] } } }, - { no: 17, name: "uri", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uri", message: "value must be a valid URI", expression: "this.isUri()" }] } } }, - { no: 18, name: "uri_ref", kind: "scalar", localName: "uri_ref", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uri_ref", message: "value must be a valid URI", expression: "this.isUriRef()" }] } } }, - { no: 21, name: "address", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.address", message: "value must be a valid hostname, or ip address", expression: "this.isHostname() || this.isIp()" }] } } }, - { no: 22, name: "uuid", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.uuid", expression: "!this.matches('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$') ? 'value must be a valid UUID' : ''" }] } } }, - { no: 26, name: "ip_with_prefixlen", kind: "scalar", localName: "ip_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip_with_prefixlen", message: "value must be a valid IP prefix", expression: "this.isIpPrefix()" }] } } }, - { no: 27, name: "ipv4_with_prefixlen", kind: "scalar", localName: "ipv4_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4_with_prefixlen", message: "value must be a valid IPv4 address with prefix length", expression: "this.isIpPrefix(4)" }] } } }, - { no: 28, name: "ipv6_with_prefixlen", kind: "scalar", localName: "ipv6_with_prefixlen", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6_with_prefixlen", message: "value must be a valid IPv6 address with prefix length", expression: "this.isIpPrefix(6)" }] } } }, - { no: 29, name: "ip_prefix", kind: "scalar", localName: "ip_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ip_prefix", message: "value must be a valid IP prefix", expression: "this.isIpPrefix(true)" }] } } }, - { no: 30, name: "ipv4_prefix", kind: "scalar", localName: "ipv4_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv4_prefix", message: "value must be a valid IPv4 prefix", expression: "this.isIpPrefix(4, true)" }] } } }, - { no: 31, name: "ipv6_prefix", kind: "scalar", localName: "ipv6_prefix", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "string.ipv6_prefix", message: "value must be a valid IPv6 prefix", expression: "this.isIpPrefix(6, true)" }] } } }, - { no: 24, name: "well_known_regex", kind: "enum", localName: "well_known_regex", oneof: "well_known", T: () => ["buf.validate.KnownRegex", KnownRegex], options: { "buf.validate.priv.field": { cel: [{ id: "string.well_known_regex.header_name", expression: "rules.well_known_regex == 1 && !this.matches(!has(rules.strict) || rules.strict ?'^:?[0-9a-zA-Z!#$%&\\'*+-.^_|~\\x60]+$' :'^[^\\u0000\\u000A\\u000D]+$') ? 'value must be a valid HTTP header name' : ''" }, { id: "string.well_known_regex.header_value", expression: "rules.well_known_regex == 2 && !this.matches(!has(rules.strict) || rules.strict ?'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$' :'^[^\\u0000\\u000A\\u000D]*$') ? 'value must be a valid HTTP header value' : ''" }] } } }, - { no: 25, name: "strict", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.in = []; - message.not_in = []; - message.well_known = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string const */ 1: - message.const = reader.string(); - break; - case /* optional uint64 len */ 19: - message.len = reader.uint64().toBigInt(); - break; - case /* optional uint64 min_len */ 2: - message.min_len = reader.uint64().toBigInt(); - break; - case /* optional uint64 max_len */ 3: - message.max_len = reader.uint64().toBigInt(); - break; - case /* optional uint64 len_bytes */ 20: - message.len_bytes = reader.uint64().toBigInt(); - break; - case /* optional uint64 min_bytes */ 4: - message.min_bytes = reader.uint64().toBigInt(); - break; - case /* optional uint64 max_bytes */ 5: - message.max_bytes = reader.uint64().toBigInt(); - break; - case /* optional string pattern */ 6: - message.pattern = reader.string(); - break; - case /* optional string prefix */ 7: - message.prefix = reader.string(); - break; - case /* optional string suffix */ 8: - message.suffix = reader.string(); - break; - case /* optional string contains */ 9: - message.contains = reader.string(); - break; - case /* optional string not_contains */ 23: - message.not_contains = reader.string(); - break; - case /* repeated string in */ 10: - message.in.push(reader.string()); - break; - case /* repeated string not_in */ 11: - message.not_in.push(reader.string()); - break; - case /* bool email */ 12: - message.well_known = { - oneofKind: "email", - email: reader.bool() - }; - break; - case /* bool hostname */ 13: - message.well_known = { - oneofKind: "hostname", - hostname: reader.bool() - }; - break; - case /* bool ip */ 14: - message.well_known = { - oneofKind: "ip", - ip: reader.bool() - }; - break; - case /* bool ipv4 */ 15: - message.well_known = { - oneofKind: "ipv4", - ipv4: reader.bool() - }; - break; - case /* bool ipv6 */ 16: - message.well_known = { - oneofKind: "ipv6", - ipv6: reader.bool() - }; - break; - case /* bool uri */ 17: - message.well_known = { - oneofKind: "uri", - uri: reader.bool() - }; - break; - case /* bool uri_ref */ 18: - message.well_known = { - oneofKind: "uri_ref", - uri_ref: reader.bool() - }; - break; - case /* bool address */ 21: - message.well_known = { - oneofKind: "address", - address: reader.bool() - }; - break; - case /* bool uuid */ 22: - message.well_known = { - oneofKind: "uuid", - uuid: reader.bool() - }; - break; - case /* bool ip_with_prefixlen */ 26: - message.well_known = { - oneofKind: "ip_with_prefixlen", - ip_with_prefixlen: reader.bool() - }; - break; - case /* bool ipv4_with_prefixlen */ 27: - message.well_known = { - oneofKind: "ipv4_with_prefixlen", - ipv4_with_prefixlen: reader.bool() - }; - break; - case /* bool ipv6_with_prefixlen */ 28: - message.well_known = { - oneofKind: "ipv6_with_prefixlen", - ipv6_with_prefixlen: reader.bool() - }; - break; - case /* bool ip_prefix */ 29: - message.well_known = { - oneofKind: "ip_prefix", - ip_prefix: reader.bool() - }; - break; - case /* bool ipv4_prefix */ 30: - message.well_known = { - oneofKind: "ipv4_prefix", - ipv4_prefix: reader.bool() - }; - break; - case /* bool ipv6_prefix */ 31: - message.well_known = { - oneofKind: "ipv6_prefix", - ipv6_prefix: reader.bool() - }; - break; - case /* buf.validate.KnownRegex well_known_regex */ 24: - message.well_known = { - oneofKind: "well_known_regex", - well_known_regex: reader.int32() - }; - break; - case /* optional bool strict */ 25: - message.strict = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.const); - /* optional uint64 len = 19; */ - if (message.len !== undefined) - writer.tag(19, runtime_1.WireType.Varint).uint64(message.len); - /* optional uint64 min_len = 2; */ - if (message.min_len !== undefined) - writer.tag(2, runtime_1.WireType.Varint).uint64(message.min_len); - /* optional uint64 max_len = 3; */ - if (message.max_len !== undefined) - writer.tag(3, runtime_1.WireType.Varint).uint64(message.max_len); - /* optional uint64 len_bytes = 20; */ - if (message.len_bytes !== undefined) - writer.tag(20, runtime_1.WireType.Varint).uint64(message.len_bytes); - /* optional uint64 min_bytes = 4; */ - if (message.min_bytes !== undefined) - writer.tag(4, runtime_1.WireType.Varint).uint64(message.min_bytes); - /* optional uint64 max_bytes = 5; */ - if (message.max_bytes !== undefined) - writer.tag(5, runtime_1.WireType.Varint).uint64(message.max_bytes); - /* optional string pattern = 6; */ - if (message.pattern !== undefined) - writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.pattern); - /* optional string prefix = 7; */ - if (message.prefix !== undefined) - writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.prefix); - /* optional string suffix = 8; */ - if (message.suffix !== undefined) - writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.suffix); - /* optional string contains = 9; */ - if (message.contains !== undefined) - writer.tag(9, runtime_1.WireType.LengthDelimited).string(message.contains); - /* optional string not_contains = 23; */ - if (message.not_contains !== undefined) - writer.tag(23, runtime_1.WireType.LengthDelimited).string(message.not_contains); - /* repeated string in = 10; */ - for (let i = 0; i < message.in.length; i++) - writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.in[i]); - /* repeated string not_in = 11; */ - for (let i = 0; i < message.not_in.length; i++) - writer.tag(11, runtime_1.WireType.LengthDelimited).string(message.not_in[i]); - /* bool email = 12; */ - if (message.well_known.oneofKind === "email") - writer.tag(12, runtime_1.WireType.Varint).bool(message.well_known.email); - /* bool hostname = 13; */ - if (message.well_known.oneofKind === "hostname") - writer.tag(13, runtime_1.WireType.Varint).bool(message.well_known.hostname); - /* bool ip = 14; */ - if (message.well_known.oneofKind === "ip") - writer.tag(14, runtime_1.WireType.Varint).bool(message.well_known.ip); - /* bool ipv4 = 15; */ - if (message.well_known.oneofKind === "ipv4") - writer.tag(15, runtime_1.WireType.Varint).bool(message.well_known.ipv4); - /* bool ipv6 = 16; */ - if (message.well_known.oneofKind === "ipv6") - writer.tag(16, runtime_1.WireType.Varint).bool(message.well_known.ipv6); - /* bool uri = 17; */ - if (message.well_known.oneofKind === "uri") - writer.tag(17, runtime_1.WireType.Varint).bool(message.well_known.uri); - /* bool uri_ref = 18; */ - if (message.well_known.oneofKind === "uri_ref") - writer.tag(18, runtime_1.WireType.Varint).bool(message.well_known.uri_ref); - /* bool address = 21; */ - if (message.well_known.oneofKind === "address") - writer.tag(21, runtime_1.WireType.Varint).bool(message.well_known.address); - /* bool uuid = 22; */ - if (message.well_known.oneofKind === "uuid") - writer.tag(22, runtime_1.WireType.Varint).bool(message.well_known.uuid); - /* bool ip_with_prefixlen = 26; */ - if (message.well_known.oneofKind === "ip_with_prefixlen") - writer.tag(26, runtime_1.WireType.Varint).bool(message.well_known.ip_with_prefixlen); - /* bool ipv4_with_prefixlen = 27; */ - if (message.well_known.oneofKind === "ipv4_with_prefixlen") - writer.tag(27, runtime_1.WireType.Varint).bool(message.well_known.ipv4_with_prefixlen); - /* bool ipv6_with_prefixlen = 28; */ - if (message.well_known.oneofKind === "ipv6_with_prefixlen") - writer.tag(28, runtime_1.WireType.Varint).bool(message.well_known.ipv6_with_prefixlen); - /* bool ip_prefix = 29; */ - if (message.well_known.oneofKind === "ip_prefix") - writer.tag(29, runtime_1.WireType.Varint).bool(message.well_known.ip_prefix); - /* bool ipv4_prefix = 30; */ - if (message.well_known.oneofKind === "ipv4_prefix") - writer.tag(30, runtime_1.WireType.Varint).bool(message.well_known.ipv4_prefix); - /* bool ipv6_prefix = 31; */ - if (message.well_known.oneofKind === "ipv6_prefix") - writer.tag(31, runtime_1.WireType.Varint).bool(message.well_known.ipv6_prefix); - /* buf.validate.KnownRegex well_known_regex = 24; */ - if (message.well_known.oneofKind === "well_known_regex") - writer.tag(24, runtime_1.WireType.Varint).int32(message.well_known.well_known_regex); - /* optional bool strict = 25; */ - if (message.strict !== undefined) - writer.tag(25, runtime_1.WireType.Varint).bool(message.strict); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.StringRules - */ -exports.StringRules = new StringRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class BytesRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.BytesRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.const", expression: "this != rules.const ? 'value must be %x'.format([rules.const]) : ''" }] } } }, - { no: 13, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.len", expression: "uint(this.size()) != rules.len ? 'value length must be %s bytes'.format([rules.len]) : ''" }] } } }, - { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.min_len", expression: "uint(this.size()) < rules.min_len ? 'value length must be at least %s bytes'.format([rules.min_len]) : ''" }] } } }, - { no: 3, name: "max_len", kind: "scalar", localName: "max_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.max_len", expression: "uint(this.size()) > rules.max_len ? 'value must be at most %s bytes'.format([rules.max_len]) : ''" }] } } }, - { no: 4, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.pattern", expression: "!string(this).matches(rules.pattern) ? 'value must match regex pattern `%s`'.format([rules.pattern]) : ''" }] } } }, - { no: 5, name: "prefix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.prefix", expression: "!this.startsWith(rules.prefix) ? 'value does not have prefix %x'.format([rules.prefix]) : ''" }] } } }, - { no: 6, name: "suffix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.suffix", expression: "!this.endsWith(rules.suffix) ? 'value does not have suffix %x'.format([rules.suffix]) : ''" }] } } }, - { no: 7, name: "contains", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.contains", expression: "!this.contains(rules.contains) ? 'value does not contain %x'.format([rules.contains]) : ''" }] } } }, - { no: 8, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.in", expression: "dyn(rules)['in'].size() > 0 && !(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 9, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } }, - { no: 10, name: "ip", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ip", expression: "this.size() != 4 && this.size() != 16 ? 'value must be a valid IP address' : ''" }] } } }, - { no: 11, name: "ipv4", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ipv4", expression: "this.size() != 4 ? 'value must be a valid IPv4 address' : ''" }] } } }, - { no: 12, name: "ipv6", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "bytes.ipv6", expression: "this.size() != 16 ? 'value must be a valid IPv6 address' : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.in = []; - message.not_in = []; - message.well_known = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bytes const */ 1: - message.const = reader.bytes(); - break; - case /* optional uint64 len */ 13: - message.len = reader.uint64().toBigInt(); - break; - case /* optional uint64 min_len */ 2: - message.min_len = reader.uint64().toBigInt(); - break; - case /* optional uint64 max_len */ 3: - message.max_len = reader.uint64().toBigInt(); - break; - case /* optional string pattern */ 4: - message.pattern = reader.string(); - break; - case /* optional bytes prefix */ 5: - message.prefix = reader.bytes(); - break; - case /* optional bytes suffix */ 6: - message.suffix = reader.bytes(); - break; - case /* optional bytes contains */ 7: - message.contains = reader.bytes(); - break; - case /* repeated bytes in */ 8: - message.in.push(reader.bytes()); - break; - case /* repeated bytes not_in */ 9: - message.not_in.push(reader.bytes()); - break; - case /* bool ip */ 10: - message.well_known = { - oneofKind: "ip", - ip: reader.bool() - }; - break; - case /* bool ipv4 */ 11: - message.well_known = { - oneofKind: "ipv4", - ipv4: reader.bool() - }; - break; - case /* bool ipv6 */ 12: - message.well_known = { - oneofKind: "ipv6", - ipv6: reader.bool() - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bytes const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.const); - /* optional uint64 len = 13; */ - if (message.len !== undefined) - writer.tag(13, runtime_1.WireType.Varint).uint64(message.len); - /* optional uint64 min_len = 2; */ - if (message.min_len !== undefined) - writer.tag(2, runtime_1.WireType.Varint).uint64(message.min_len); - /* optional uint64 max_len = 3; */ - if (message.max_len !== undefined) - writer.tag(3, runtime_1.WireType.Varint).uint64(message.max_len); - /* optional string pattern = 4; */ - if (message.pattern !== undefined) - writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.pattern); - /* optional bytes prefix = 5; */ - if (message.prefix !== undefined) - writer.tag(5, runtime_1.WireType.LengthDelimited).bytes(message.prefix); - /* optional bytes suffix = 6; */ - if (message.suffix !== undefined) - writer.tag(6, runtime_1.WireType.LengthDelimited).bytes(message.suffix); - /* optional bytes contains = 7; */ - if (message.contains !== undefined) - writer.tag(7, runtime_1.WireType.LengthDelimited).bytes(message.contains); - /* repeated bytes in = 8; */ - for (let i = 0; i < message.in.length; i++) - writer.tag(8, runtime_1.WireType.LengthDelimited).bytes(message.in[i]); - /* repeated bytes not_in = 9; */ - for (let i = 0; i < message.not_in.length; i++) - writer.tag(9, runtime_1.WireType.LengthDelimited).bytes(message.not_in[i]); - /* bool ip = 10; */ - if (message.well_known.oneofKind === "ip") - writer.tag(10, runtime_1.WireType.Varint).bool(message.well_known.ip); - /* bool ipv4 = 11; */ - if (message.well_known.oneofKind === "ipv4") - writer.tag(11, runtime_1.WireType.Varint).bool(message.well_known.ipv4); - /* bool ipv6 = 12; */ - if (message.well_known.oneofKind === "ipv6") - writer.tag(12, runtime_1.WireType.Varint).bool(message.well_known.ipv6); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.BytesRules - */ -exports.BytesRules = new BytesRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.EnumRules", [ - { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 2, name: "defined_only", kind: "scalar", localName: "defined_only", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "in", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 4, name: "not_in", kind: "scalar", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/, options: { "buf.validate.priv.field": { cel: [{ id: "enum.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 const */ 1: - message.const = reader.int32(); - break; - case /* optional bool defined_only */ 2: - message.defined_only = reader.bool(); - break; - case /* repeated int32 in */ 3: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.in.push(reader.int32()); - else - message.in.push(reader.int32()); - break; - case /* repeated int32 not_in */ 4: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.not_in.push(reader.int32()); - else - message.not_in.push(reader.int32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 const = 1; */ - if (message.const !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.const); - /* optional bool defined_only = 2; */ - if (message.defined_only !== undefined) - writer.tag(2, runtime_1.WireType.Varint).bool(message.defined_only); - /* repeated int32 in = 3; */ - if (message.in.length) { - writer.tag(3, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.in.length; i++) - writer.int32(message.in[i]); - writer.join(); - } - /* repeated int32 not_in = 4; */ - if (message.not_in.length) { - writer.tag(4, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.not_in.length; i++) - writer.int32(message.not_in[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.EnumRules - */ -exports.EnumRules = new EnumRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class RepeatedRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.RepeatedRules", [ - { no: 1, name: "min_items", kind: "scalar", localName: "min_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.min_items", expression: "uint(this.size()) < rules.min_items ? 'value must contain at least %d item(s)'.format([rules.min_items]) : ''" }] } } }, - { no: 2, name: "max_items", kind: "scalar", localName: "max_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.max_items", expression: "uint(this.size()) > rules.max_items ? 'value must contain no more than %s item(s)'.format([rules.max_items]) : ''" }] } } }, - { no: 3, name: "unique", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "repeated.unique", message: "repeated value must contain unique items", expression: "this.unique()" }] } } }, - { no: 4, name: "items", kind: "message", T: () => exports.FieldConstraints } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional uint64 min_items */ 1: - message.min_items = reader.uint64().toBigInt(); - break; - case /* optional uint64 max_items */ 2: - message.max_items = reader.uint64().toBigInt(); - break; - case /* optional bool unique */ 3: - message.unique = reader.bool(); - break; - case /* optional buf.validate.FieldConstraints items */ 4: - message.items = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.items); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional uint64 min_items = 1; */ - if (message.min_items !== undefined) - writer.tag(1, runtime_1.WireType.Varint).uint64(message.min_items); - /* optional uint64 max_items = 2; */ - if (message.max_items !== undefined) - writer.tag(2, runtime_1.WireType.Varint).uint64(message.max_items); - /* optional bool unique = 3; */ - if (message.unique !== undefined) - writer.tag(3, runtime_1.WireType.Varint).bool(message.unique); - /* optional buf.validate.FieldConstraints items = 4; */ - if (message.items) - exports.FieldConstraints.internalBinaryWrite(message.items, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.RepeatedRules - */ -exports.RepeatedRules = new RepeatedRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class MapRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.MapRules", [ - { no: 1, name: "min_pairs", kind: "scalar", localName: "min_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "map.min_pairs", expression: "uint(this.size()) < rules.min_pairs ? 'map must be at least %d entries'.format([rules.min_pairs]) : ''" }] } } }, - { no: 2, name: "max_pairs", kind: "scalar", localName: "max_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "buf.validate.priv.field": { cel: [{ id: "map.max_pairs", expression: "uint(this.size()) > rules.max_pairs ? 'map must be at most %d entries'.format([rules.max_pairs]) : ''" }] } } }, - { no: 4, name: "keys", kind: "message", T: () => exports.FieldConstraints }, - { no: 5, name: "values", kind: "message", T: () => exports.FieldConstraints } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional uint64 min_pairs */ 1: - message.min_pairs = reader.uint64().toBigInt(); - break; - case /* optional uint64 max_pairs */ 2: - message.max_pairs = reader.uint64().toBigInt(); - break; - case /* optional buf.validate.FieldConstraints keys */ 4: - message.keys = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.keys); - break; - case /* optional buf.validate.FieldConstraints values */ 5: - message.values = exports.FieldConstraints.internalBinaryRead(reader, reader.uint32(), options, message.values); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional uint64 min_pairs = 1; */ - if (message.min_pairs !== undefined) - writer.tag(1, runtime_1.WireType.Varint).uint64(message.min_pairs); - /* optional uint64 max_pairs = 2; */ - if (message.max_pairs !== undefined) - writer.tag(2, runtime_1.WireType.Varint).uint64(message.max_pairs); - /* optional buf.validate.FieldConstraints keys = 4; */ - if (message.keys) - exports.FieldConstraints.internalBinaryWrite(message.keys, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional buf.validate.FieldConstraints values = 5; */ - if (message.values) - exports.FieldConstraints.internalBinaryWrite(message.values, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.MapRules - */ -exports.MapRules = new MapRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class AnyRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.AnyRules", [ - { no: 2, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated string in */ 2: - message.in.push(reader.string()); - break; - case /* repeated string not_in */ 3: - message.not_in.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated string in = 2; */ - for (let i = 0; i < message.in.length; i++) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.in[i]); - /* repeated string not_in = 3; */ - for (let i = 0; i < message.not_in.length; i++) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.not_in[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.AnyRules - */ -exports.AnyRules = new AnyRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DurationRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.DurationRules", [ - { no: 2, name: "const", kind: "message", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 3, name: "lt", kind: "message", oneof: "less_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 4, name: "lte", kind: "message", oneof: "less_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 5, name: "gt", kind: "message", oneof: "greater_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "duration.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "duration.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "duration.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "duration.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 6, name: "gte", kind: "message", oneof: "greater_than", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "duration.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "duration.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "duration.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "duration.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 7, name: "in", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.in", expression: "!(this in dyn(rules)['in']) ? 'value must be in list %s'.format([dyn(rules)['in']]) : ''" }] } } }, - { no: 8, name: "not_in", kind: "message", localName: "not_in", repeat: 1 /*RepeatType.PACKED*/, T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "duration.not_in", expression: "this in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - message.in = []; - message.not_in = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Duration const */ 2: - message.const = duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.const); - break; - case /* google.protobuf.Duration lt */ 3: - message.less_than = { - oneofKind: "lt", - lt: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lt) - }; - break; - case /* google.protobuf.Duration lte */ 4: - message.less_than = { - oneofKind: "lte", - lte: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lte) - }; - break; - case /* google.protobuf.Duration gt */ 5: - message.greater_than = { - oneofKind: "gt", - gt: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gt) - }; - break; - case /* google.protobuf.Duration gte */ 6: - message.greater_than = { - oneofKind: "gte", - gte: duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gte) - }; - break; - case /* repeated google.protobuf.Duration in */ 7: - message.in.push(duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.Duration not_in */ 8: - message.not_in.push(duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Duration const = 2; */ - if (message.const) - duration_pb_1.Duration.internalBinaryWrite(message.const, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Duration lt = 3; */ - if (message.less_than.oneofKind === "lt") - duration_pb_1.Duration.internalBinaryWrite(message.less_than.lt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Duration lte = 4; */ - if (message.less_than.oneofKind === "lte") - duration_pb_1.Duration.internalBinaryWrite(message.less_than.lte, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Duration gt = 5; */ - if (message.greater_than.oneofKind === "gt") - duration_pb_1.Duration.internalBinaryWrite(message.greater_than.gt, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Duration gte = 6; */ - if (message.greater_than.oneofKind === "gte") - duration_pb_1.Duration.internalBinaryWrite(message.greater_than.gte, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.Duration in = 7; */ - for (let i = 0; i < message.in.length; i++) - duration_pb_1.Duration.internalBinaryWrite(message.in[i], writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.Duration not_in = 8; */ - for (let i = 0; i < message.not_in.length; i++) - duration_pb_1.Duration.internalBinaryWrite(message.not_in[i], writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.DurationRules - */ -exports.DurationRules = new DurationRules$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class TimestampRules$Type extends runtime_4.MessageType { - constructor() { - super("buf.validate.TimestampRules", [ - { no: 2, name: "const", kind: "message", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.const", expression: "this != rules.const ? 'value must equal %s'.format([rules.const]) : ''" }] } } }, - { no: 3, name: "lt", kind: "message", oneof: "less_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lt", expression: "!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''" }] } } }, - { no: 4, name: "lte", kind: "message", oneof: "less_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lte", expression: "!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''" }] } } }, - { no: 7, name: "lt_now", kind: "scalar", localName: "lt_now", oneof: "less_than", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.lt_now", expression: "this > now ? 'value must be less than now' : ''" }] } } }, - { no: 5, name: "gt", kind: "message", oneof: "greater_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gt", expression: "!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''" }, { id: "timestamp.gt_lt", expression: "has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "timestamp.gt_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''" }, { id: "timestamp.gt_lte", expression: "has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }, { id: "timestamp.gt_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''" }] } } }, - { no: 6, name: "gte", kind: "message", oneof: "greater_than", T: () => timestamp_pb_1.Timestamp, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gte", expression: "!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''" }, { id: "timestamp.gte_lt", expression: "has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "timestamp.gte_lt_exclusive", expression: "has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''" }, { id: "timestamp.gte_lte", expression: "has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }, { id: "timestamp.gte_lte_exclusive", expression: "has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''" }] } } }, - { no: 8, name: "gt_now", kind: "scalar", localName: "gt_now", oneof: "greater_than", T: 8 /*ScalarType.BOOL*/, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.gt_now", expression: "this < now ? 'value must be greater than now' : ''" }] } } }, - { no: 9, name: "within", kind: "message", T: () => duration_pb_1.Duration, options: { "buf.validate.priv.field": { cel: [{ id: "timestamp.within", expression: "this < now-rules.within || this > now+rules.within ? 'value must be within %s of now'.format([rules.within]) : ''" }] } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.less_than = { oneofKind: undefined }; - message.greater_than = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Timestamp const */ 2: - message.const = timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.const); - break; - case /* google.protobuf.Timestamp lt */ 3: - message.less_than = { - oneofKind: "lt", - lt: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lt) - }; - break; - case /* google.protobuf.Timestamp lte */ 4: - message.less_than = { - oneofKind: "lte", - lte: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.less_than.lte) - }; - break; - case /* bool lt_now */ 7: - message.less_than = { - oneofKind: "lt_now", - lt_now: reader.bool() - }; - break; - case /* google.protobuf.Timestamp gt */ 5: - message.greater_than = { - oneofKind: "gt", - gt: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gt) - }; - break; - case /* google.protobuf.Timestamp gte */ 6: - message.greater_than = { - oneofKind: "gte", - gte: timestamp_pb_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.greater_than.gte) - }; - break; - case /* bool gt_now */ 8: - message.greater_than = { - oneofKind: "gt_now", - gt_now: reader.bool() - }; - break; - case /* optional google.protobuf.Duration within */ 9: - message.within = duration_pb_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.within); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Timestamp const = 2; */ - if (message.const) - timestamp_pb_1.Timestamp.internalBinaryWrite(message.const, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Timestamp lt = 3; */ - if (message.less_than.oneofKind === "lt") - timestamp_pb_1.Timestamp.internalBinaryWrite(message.less_than.lt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Timestamp lte = 4; */ - if (message.less_than.oneofKind === "lte") - timestamp_pb_1.Timestamp.internalBinaryWrite(message.less_than.lte, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* bool lt_now = 7; */ - if (message.less_than.oneofKind === "lt_now") - writer.tag(7, runtime_1.WireType.Varint).bool(message.less_than.lt_now); - /* google.protobuf.Timestamp gt = 5; */ - if (message.greater_than.oneofKind === "gt") - timestamp_pb_1.Timestamp.internalBinaryWrite(message.greater_than.gt, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.protobuf.Timestamp gte = 6; */ - if (message.greater_than.oneofKind === "gte") - timestamp_pb_1.Timestamp.internalBinaryWrite(message.greater_than.gte, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* bool gt_now = 8; */ - if (message.greater_than.oneofKind === "gt_now") - writer.tag(8, runtime_1.WireType.Varint).bool(message.greater_than.gt_now); - /* optional google.protobuf.Duration within = 9; */ - if (message.within) - duration_pb_1.Duration.internalBinaryWrite(message.within, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message buf.validate.TimestampRules - */ -exports.TimestampRules = new TimestampRules$Type(); diff --git a/src/buf/validate/validate_pb2.py b/src/buf/validate/validate_pb2.py new file mode 100644 index 00000000..a8b2cda9 --- /dev/null +++ b/src/buf/validate/validate_pb2.py @@ -0,0 +1,386 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: buf/validate/validate.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import expression_pb2 as buf_dot_validate_dot_expression__pb2 +from buf.validate.priv import private_pb2 as buf_dot_validate_dot_priv_dot_private__pb2 +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x62uf/validate/validate.proto\x12\x0c\x62uf.validate\x1a\x1d\x62uf/validate/expression.proto\x1a\x1f\x62uf/validate/priv/private.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"n\n\x12MessageConstraints\x12\x1f\n\x08\x64isabled\x18\x01 \x01(\x08H\x00R\x08\x64isabled\x88\x01\x01\x12*\n\x03\x63\x65l\x18\x03 \x03(\x0b\x32\x18.buf.validate.ConstraintR\x03\x63\x65lB\x0b\n\t_disabled\"@\n\x10OneofConstraints\x12\x1f\n\x08required\x18\x01 \x01(\x08H\x00R\x08required\x88\x01\x01\x42\x0b\n\t_required\"\xf5\t\n\x10\x46ieldConstraints\x12*\n\x03\x63\x65l\x18\x17 \x03(\x0b\x32\x18.buf.validate.ConstraintR\x03\x63\x65l\x12\x18\n\x07skipped\x18\x18 \x01(\x08R\x07skipped\x12\x1a\n\x08required\x18\x19 \x01(\x08R\x08required\x12!\n\x0cignore_empty\x18\x1a \x01(\x08R\x0bignoreEmpty\x12\x30\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x18.buf.validate.FloatRulesH\x00R\x05\x66loat\x12\x33\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x19.buf.validate.DoubleRulesH\x00R\x06\x64ouble\x12\x30\n\x05int32\x18\x03 \x01(\x0b\x32\x18.buf.validate.Int32RulesH\x00R\x05int32\x12\x30\n\x05int64\x18\x04 \x01(\x0b\x32\x18.buf.validate.Int64RulesH\x00R\x05int64\x12\x33\n\x06uint32\x18\x05 \x01(\x0b\x32\x19.buf.validate.UInt32RulesH\x00R\x06uint32\x12\x33\n\x06uint64\x18\x06 \x01(\x0b\x32\x19.buf.validate.UInt64RulesH\x00R\x06uint64\x12\x33\n\x06sint32\x18\x07 \x01(\x0b\x32\x19.buf.validate.SInt32RulesH\x00R\x06sint32\x12\x33\n\x06sint64\x18\x08 \x01(\x0b\x32\x19.buf.validate.SInt64RulesH\x00R\x06sint64\x12\x36\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x1a.buf.validate.Fixed32RulesH\x00R\x07\x66ixed32\x12\x36\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x1a.buf.validate.Fixed64RulesH\x00R\x07\x66ixed64\x12\x39\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x1b.buf.validate.SFixed32RulesH\x00R\x08sfixed32\x12\x39\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x1b.buf.validate.SFixed64RulesH\x00R\x08sfixed64\x12-\n\x04\x62ool\x18\r \x01(\x0b\x32\x17.buf.validate.BoolRulesH\x00R\x04\x62ool\x12\x33\n\x06string\x18\x0e \x01(\x0b\x32\x19.buf.validate.StringRulesH\x00R\x06string\x12\x30\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x18.buf.validate.BytesRulesH\x00R\x05\x62ytes\x12-\n\x04\x65num\x18\x10 \x01(\x0b\x32\x17.buf.validate.EnumRulesH\x00R\x04\x65num\x12\x39\n\x08repeated\x18\x12 \x01(\x0b\x32\x1b.buf.validate.RepeatedRulesH\x00R\x08repeated\x12*\n\x03map\x18\x13 \x01(\x0b\x32\x16.buf.validate.MapRulesH\x00R\x03map\x12*\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x16.buf.validate.AnyRulesH\x00R\x03\x61ny\x12\x39\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x1b.buf.validate.DurationRulesH\x00R\x08\x64uration\x12<\n\ttimestamp\x18\x16 \x01(\x0b\x32\x1c.buf.validate.TimestampRulesH\x00R\ttimestampB\x06\n\x04type\"\xa2\x17\n\nFloatRules\x12u\n\x05\x63onst\x18\x01 \x01(\x02\x42Z\xc2HW\nU\n\x0b\x66loat.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\xa3\x01\n\x02lt\x18\x02 \x01(\x02\x42\x90\x01\xc2H\x8c\x01\n\x89\x01\n\x08\x66loat.lt\x1a}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xb4\x01\n\x03lte\x18\x03 \x01(\x02\x42\x9f\x01\xc2H\x9b\x01\n\x98\x01\n\tfloat.lte\x1a\x8a\x01!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xf3\x07\n\x02gt\x18\x04 \x01(\x02\x42\xe0\x07\xc2H\xdc\x07\n\x8d\x01\n\x08\x66loat.gt\x1a\x80\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xc3\x01\n\x0b\x66loat.gt_lt\x1a\xb3\x01has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xcd\x01\n\x15\x66loat.gt_lt_exclusive\x1a\xb3\x01has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xd3\x01\n\x0c\x66loat.gt_lte\x1a\xc2\x01has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xdd\x01\n\x16\x66loat.gt_lte_exclusive\x1a\xc2\x01has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xbf\x08\n\x03gte\x18\x05 \x01(\x02\x42\xaa\x08\xc2H\xa6\x08\n\x9b\x01\n\tfloat.gte\x1a\x8d\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xd2\x01\n\x0c\x66loat.gte_lt\x1a\xc1\x01has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xdc\x01\n\x16\x66loat.gte_lt_exclusive\x1a\xc1\x01has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xe2\x01\n\rfloat.gte_lte\x1a\xd0\x01has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xec\x01\n\x17\x66loat.gte_lte_exclusive\x1a\xd0\x01has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12y\n\x02in\x18\x06 \x03(\x02\x42i\xc2Hf\nd\n\x08\x66loat.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12}\n\x06not_in\x18\x07 \x03(\x02\x42\x66\xc2Hc\na\n\x0c\x66loat.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notIn\x12g\n\x06\x66inite\x18\x08 \x01(\x08\x42O\xc2HL\nJ\n\x0c\x66loat.finite\x1a:this.isNan() || this.isInf() ? \'value must be finite\' : \'\'R\x06\x66initeB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xb3\x17\n\x0b\x44oubleRules\x12v\n\x05\x63onst\x18\x01 \x01(\x01\x42[\xc2HX\nV\n\x0c\x64ouble.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\xa4\x01\n\x02lt\x18\x02 \x01(\x01\x42\x91\x01\xc2H\x8d\x01\n\x8a\x01\n\tdouble.lt\x1a}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xb5\x01\n\x03lte\x18\x03 \x01(\x01\x42\xa0\x01\xc2H\x9c\x01\n\x99\x01\n\ndouble.lte\x1a\x8a\x01!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xf8\x07\n\x02gt\x18\x04 \x01(\x01\x42\xe5\x07\xc2H\xe1\x07\n\x8e\x01\n\tdouble.gt\x1a\x80\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xc4\x01\n\x0c\x64ouble.gt_lt\x1a\xb3\x01has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xce\x01\n\x16\x64ouble.gt_lt_exclusive\x1a\xb3\x01has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xd4\x01\n\rdouble.gt_lte\x1a\xc2\x01has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xde\x01\n\x17\x64ouble.gt_lte_exclusive\x1a\xc2\x01has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xc4\x08\n\x03gte\x18\x05 \x01(\x01\x42\xaf\x08\xc2H\xab\x08\n\x9c\x01\n\ndouble.gte\x1a\x8d\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xd3\x01\n\rdouble.gte_lt\x1a\xc1\x01has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xdd\x01\n\x17\x64ouble.gte_lt_exclusive\x1a\xc1\x01has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xe3\x01\n\x0e\x64ouble.gte_lte\x1a\xd0\x01has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xed\x01\n\x18\x64ouble.gte_lte_exclusive\x1a\xd0\x01has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12z\n\x02in\x18\x06 \x03(\x01\x42j\xc2Hg\ne\n\tdouble.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x07 \x03(\x01\x42g\xc2Hd\nb\n\rdouble.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notIn\x12h\n\x06\x66inite\x18\x08 \x01(\x08\x42P\xc2HM\nK\n\rdouble.finite\x1a:this.isNan() || this.isInf() ? \'value must be finite\' : \'\'R\x06\x66initeB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xe2\x14\n\nInt32Rules\x12u\n\x05\x63onst\x18\x01 \x01(\x05\x42Z\xc2HW\nU\n\x0bint32.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8e\x01\n\x02lt\x18\x02 \x01(\x05\x42|\xc2Hy\nw\n\x08int32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa1\x01\n\x03lte\x18\x03 \x01(\x05\x42\x8c\x01\xc2H\x88\x01\n\x85\x01\n\tint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\x9b\x07\n\x02gt\x18\x04 \x01(\x05\x42\x88\x07\xc2H\x84\x07\nz\n\x08int32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb3\x01\n\x0bint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbb\x01\n\x15int32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc3\x01\n\x0cint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcb\x01\n\x16int32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xe8\x07\n\x03gte\x18\x05 \x01(\x05\x42\xd3\x07\xc2H\xcf\x07\n\x88\x01\n\tint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc2\x01\n\x0cint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xca\x01\n\x16int32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd2\x01\n\rint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xda\x01\n\x17int32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12y\n\x02in\x18\x06 \x03(\x05\x42i\xc2Hf\nd\n\x08int32.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12}\n\x06not_in\x18\x07 \x03(\x05\x42\x66\xc2Hc\na\n\x0cint32.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xe2\x14\n\nInt64Rules\x12u\n\x05\x63onst\x18\x01 \x01(\x03\x42Z\xc2HW\nU\n\x0bint64.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8e\x01\n\x02lt\x18\x02 \x01(\x03\x42|\xc2Hy\nw\n\x08int64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa1\x01\n\x03lte\x18\x03 \x01(\x03\x42\x8c\x01\xc2H\x88\x01\n\x85\x01\n\tint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\x9b\x07\n\x02gt\x18\x04 \x01(\x03\x42\x88\x07\xc2H\x84\x07\nz\n\x08int64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb3\x01\n\x0bint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbb\x01\n\x15int64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc3\x01\n\x0cint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcb\x01\n\x16int64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xe8\x07\n\x03gte\x18\x05 \x01(\x03\x42\xd3\x07\xc2H\xcf\x07\n\x88\x01\n\tint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc2\x01\n\x0cint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xca\x01\n\x16int64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd2\x01\n\rint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xda\x01\n\x17int64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12y\n\x02in\x18\x06 \x03(\x03\x42i\xc2Hf\nd\n\x08int64.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12}\n\x06not_in\x18\x07 \x03(\x03\x42\x66\xc2Hc\na\n\x0cint64.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xf2\x14\n\x0bUInt32Rules\x12v\n\x05\x63onst\x18\x01 \x01(\rB[\xc2HX\nV\n\x0cuint32.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8f\x01\n\x02lt\x18\x02 \x01(\rB}\xc2Hz\nx\n\tuint32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa2\x01\n\x03lte\x18\x03 \x01(\rB\x8d\x01\xc2H\x89\x01\n\x86\x01\n\nuint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa0\x07\n\x02gt\x18\x04 \x01(\rB\x8d\x07\xc2H\x89\x07\n{\n\tuint32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb4\x01\n\x0cuint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbc\x01\n\x16uint32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc4\x01\n\ruint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcc\x01\n\x17uint32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xed\x07\n\x03gte\x18\x05 \x01(\rB\xd8\x07\xc2H\xd4\x07\n\x89\x01\n\nuint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc3\x01\n\ruint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcb\x01\n\x17uint32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd3\x01\n\x0euint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdb\x01\n\x18uint32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12z\n\x02in\x18\x06 \x03(\rBj\xc2Hg\ne\n\tuint32.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x07 \x03(\rBg\xc2Hd\nb\n\ruint32.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xf2\x14\n\x0bUInt64Rules\x12v\n\x05\x63onst\x18\x01 \x01(\x04\x42[\xc2HX\nV\n\x0cuint64.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8f\x01\n\x02lt\x18\x02 \x01(\x04\x42}\xc2Hz\nx\n\tuint64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa2\x01\n\x03lte\x18\x03 \x01(\x04\x42\x8d\x01\xc2H\x89\x01\n\x86\x01\n\nuint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa0\x07\n\x02gt\x18\x04 \x01(\x04\x42\x8d\x07\xc2H\x89\x07\n{\n\tuint64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb4\x01\n\x0cuint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbc\x01\n\x16uint64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc4\x01\n\ruint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcc\x01\n\x17uint64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xed\x07\n\x03gte\x18\x05 \x01(\x04\x42\xd8\x07\xc2H\xd4\x07\n\x89\x01\n\nuint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc3\x01\n\ruint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcb\x01\n\x17uint64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd3\x01\n\x0euint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdb\x01\n\x18uint64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12z\n\x02in\x18\x06 \x03(\x04\x42j\xc2Hg\ne\n\tuint64.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x07 \x03(\x04\x42g\xc2Hd\nb\n\ruint64.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xf2\x14\n\x0bSInt32Rules\x12v\n\x05\x63onst\x18\x01 \x01(\x11\x42[\xc2HX\nV\n\x0csint32.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8f\x01\n\x02lt\x18\x02 \x01(\x11\x42}\xc2Hz\nx\n\tsint32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa2\x01\n\x03lte\x18\x03 \x01(\x11\x42\x8d\x01\xc2H\x89\x01\n\x86\x01\n\nsint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa0\x07\n\x02gt\x18\x04 \x01(\x11\x42\x8d\x07\xc2H\x89\x07\n{\n\tsint32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb4\x01\n\x0csint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbc\x01\n\x16sint32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc4\x01\n\rsint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcc\x01\n\x17sint32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xed\x07\n\x03gte\x18\x05 \x01(\x11\x42\xd8\x07\xc2H\xd4\x07\n\x89\x01\n\nsint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc3\x01\n\rsint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcb\x01\n\x17sint32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd3\x01\n\x0esint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdb\x01\n\x18sint32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12z\n\x02in\x18\x06 \x03(\x11\x42j\xc2Hg\ne\n\tsint32.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x07 \x03(\x11\x42g\xc2Hd\nb\n\rsint32.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xf2\x14\n\x0bSInt64Rules\x12v\n\x05\x63onst\x18\x01 \x01(\x12\x42[\xc2HX\nV\n\x0csint64.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x8f\x01\n\x02lt\x18\x02 \x01(\x12\x42}\xc2Hz\nx\n\tsint64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa2\x01\n\x03lte\x18\x03 \x01(\x12\x42\x8d\x01\xc2H\x89\x01\n\x86\x01\n\nsint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa0\x07\n\x02gt\x18\x04 \x01(\x12\x42\x8d\x07\xc2H\x89\x07\n{\n\tsint64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb4\x01\n\x0csint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbc\x01\n\x16sint64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc4\x01\n\rsint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcc\x01\n\x17sint64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xed\x07\n\x03gte\x18\x05 \x01(\x12\x42\xd8\x07\xc2H\xd4\x07\n\x89\x01\n\nsint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc3\x01\n\rsint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcb\x01\n\x17sint64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd3\x01\n\x0esint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdb\x01\n\x18sint64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12z\n\x02in\x18\x06 \x03(\x12\x42j\xc2Hg\ne\n\tsint64.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x07 \x03(\x12\x42g\xc2Hd\nb\n\rsint64.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\x82\x15\n\x0c\x46ixed32Rules\x12w\n\x05\x63onst\x18\x01 \x01(\x07\x42\\\xc2HY\nW\n\rfixed32.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x90\x01\n\x02lt\x18\x02 \x01(\x07\x42~\xc2H{\ny\n\nfixed32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa3\x01\n\x03lte\x18\x03 \x01(\x07\x42\x8e\x01\xc2H\x8a\x01\n\x87\x01\n\x0b\x66ixed32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa5\x07\n\x02gt\x18\x04 \x01(\x07\x42\x92\x07\xc2H\x8e\x07\n|\n\nfixed32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb5\x01\n\rfixed32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbd\x01\n\x17\x66ixed32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc5\x01\n\x0e\x66ixed32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcd\x01\n\x18\x66ixed32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xf2\x07\n\x03gte\x18\x05 \x01(\x07\x42\xdd\x07\xc2H\xd9\x07\n\x8a\x01\n\x0b\x66ixed32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc4\x01\n\x0e\x66ixed32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcc\x01\n\x18\x66ixed32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd4\x01\n\x0f\x66ixed32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdc\x01\n\x19\x66ixed32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12{\n\x02in\x18\x06 \x03(\x07\x42k\xc2Hh\nf\n\nfixed32.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12\x7f\n\x06not_in\x18\x07 \x03(\x07\x42h\xc2He\nc\n\x0e\x66ixed32.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\x82\x15\n\x0c\x46ixed64Rules\x12w\n\x05\x63onst\x18\x01 \x01(\x06\x42\\\xc2HY\nW\n\rfixed64.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x90\x01\n\x02lt\x18\x02 \x01(\x06\x42~\xc2H{\ny\n\nfixed64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa3\x01\n\x03lte\x18\x03 \x01(\x06\x42\x8e\x01\xc2H\x8a\x01\n\x87\x01\n\x0b\x66ixed64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xa5\x07\n\x02gt\x18\x04 \x01(\x06\x42\x92\x07\xc2H\x8e\x07\n|\n\nfixed64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb5\x01\n\rfixed64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbd\x01\n\x17\x66ixed64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc5\x01\n\x0e\x66ixed64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcd\x01\n\x18\x66ixed64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xf2\x07\n\x03gte\x18\x05 \x01(\x06\x42\xdd\x07\xc2H\xd9\x07\n\x8a\x01\n\x0b\x66ixed64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc4\x01\n\x0e\x66ixed64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcc\x01\n\x18\x66ixed64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd4\x01\n\x0f\x66ixed64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdc\x01\n\x19\x66ixed64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12{\n\x02in\x18\x06 \x03(\x06\x42k\xc2Hh\nf\n\nfixed64.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12\x7f\n\x06not_in\x18\x07 \x03(\x06\x42h\xc2He\nc\n\x0e\x66ixed64.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\x93\x15\n\rSFixed32Rules\x12x\n\x05\x63onst\x18\x01 \x01(\x0f\x42]\xc2HZ\nX\n\x0esfixed32.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x91\x01\n\x02lt\x18\x02 \x01(\x0f\x42\x7f\xc2H|\nz\n\x0bsfixed32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa4\x01\n\x03lte\x18\x03 \x01(\x0f\x42\x8f\x01\xc2H\x8b\x01\n\x88\x01\n\x0csfixed32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xaa\x07\n\x02gt\x18\x04 \x01(\x0f\x42\x97\x07\xc2H\x93\x07\n}\n\x0bsfixed32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb6\x01\n\x0esfixed32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbe\x01\n\x18sfixed32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc6\x01\n\x0fsfixed32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xce\x01\n\x19sfixed32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xf7\x07\n\x03gte\x18\x05 \x01(\x0f\x42\xe2\x07\xc2H\xde\x07\n\x8b\x01\n\x0csfixed32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc5\x01\n\x0fsfixed32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcd\x01\n\x19sfixed32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd5\x01\n\x10sfixed32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdd\x01\n\x1asfixed32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12|\n\x02in\x18\x06 \x03(\x0f\x42l\xc2Hi\ng\n\x0bsfixed32.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12\x80\x01\n\x06not_in\x18\x07 \x03(\x0f\x42i\xc2Hf\nd\n\x0fsfixed32.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\x93\x15\n\rSFixed64Rules\x12x\n\x05\x63onst\x18\x01 \x01(\x10\x42]\xc2HZ\nX\n\x0esfixed64.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\x91\x01\n\x02lt\x18\x02 \x01(\x10\x42\x7f\xc2H|\nz\n\x0bsfixed64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xa4\x01\n\x03lte\x18\x03 \x01(\x10\x42\x8f\x01\xc2H\x8b\x01\n\x88\x01\n\x0csfixed64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xaa\x07\n\x02gt\x18\x04 \x01(\x10\x42\x97\x07\xc2H\x93\x07\n}\n\x0bsfixed64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb6\x01\n\x0esfixed64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbe\x01\n\x18sfixed64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc6\x01\n\x0fsfixed64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xce\x01\n\x19sfixed64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\xf7\x07\n\x03gte\x18\x05 \x01(\x10\x42\xe2\x07\xc2H\xde\x07\n\x8b\x01\n\x0csfixed64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc5\x01\n\x0fsfixed64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcd\x01\n\x19sfixed64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd5\x01\n\x10sfixed64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdd\x01\n\x1asfixed64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12|\n\x02in\x18\x06 \x03(\x10\x42l\xc2Hi\ng\n\x0bsfixed64.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12\x80\x01\n\x06not_in\x18\x07 \x03(\x10\x42i\xc2Hf\nd\n\x0fsfixed64.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\x8b\x01\n\tBoolRules\x12t\n\x05\x63onst\x18\x01 \x01(\x08\x42Y\xc2HV\nT\n\nbool.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x00R\x05\x63onst\x88\x01\x01\x42\x08\n\x06_const\"\xe8$\n\x0bStringRules\x12x\n\x05\x63onst\x18\x01 \x01(\tB]\xc2HZ\nX\n\x0cstring.const\x1aHthis != rules.const ? \'value must equal `%s`\'.format([rules.const]) : \'\'H\x01R\x05\x63onst\x88\x01\x01\x12\x88\x01\n\x03len\x18\x13 \x01(\x04\x42q\xc2Hn\nl\n\nstring.len\x1a^uint(this.size()) != rules.len ? \'value length must be %s characters\'.format([rules.len]) : \'\'H\x02R\x03len\x88\x01\x01\x12\xa6\x01\n\x07min_len\x18\x02 \x01(\x04\x42\x87\x01\xc2H\x83\x01\n\x80\x01\n\x0estring.min_len\x1anuint(this.size()) < rules.min_len ? \'value length must be at least %s characters\'.format([rules.min_len]) : \'\'H\x03R\x06minLen\x88\x01\x01\x12\xa4\x01\n\x07max_len\x18\x03 \x01(\x04\x42\x85\x01\xc2H\x81\x01\n\x7f\n\x0estring.max_len\x1amuint(this.size()) > rules.max_len ? \'value length must be at most %s characters\'.format([rules.max_len]) : \'\'H\x04R\x06maxLen\x88\x01\x01\x12\xaa\x01\n\tlen_bytes\x18\x14 \x01(\x04\x42\x87\x01\xc2H\x83\x01\n\x80\x01\n\x10string.len_bytes\x1aluint(bytes(this).size()) != rules.len_bytes ? \'value length must be %s bytes\'.format([rules.len_bytes]) : \'\'H\x05R\x08lenBytes\x88\x01\x01\x12\xb2\x01\n\tmin_bytes\x18\x04 \x01(\x04\x42\x8f\x01\xc2H\x8b\x01\n\x88\x01\n\x10string.min_bytes\x1atuint(bytes(this).size()) < rules.min_bytes ? \'value length must be at least %s bytes\'.format([rules.min_bytes]) : \'\'H\x06R\x08minBytes\x88\x01\x01\x12\xb1\x01\n\tmax_bytes\x18\x05 \x01(\x04\x42\x8e\x01\xc2H\x8a\x01\n\x87\x01\n\x10string.max_bytes\x1asuint(bytes(this).size()) > rules.max_bytes ? \'value length must be at most %s bytes\'.format([rules.max_bytes]) : \'\'H\x07R\x08maxBytes\x88\x01\x01\x12\x9b\x01\n\x07pattern\x18\x06 \x01(\tB|\xc2Hy\nw\n\x0estring.pattern\x1a\x65!this.matches(rules.pattern) ? \'value does not match regex pattern `%s`\'.format([rules.pattern]) : \'\'H\x08R\x07pattern\x88\x01\x01\x12\x91\x01\n\x06prefix\x18\x07 \x01(\tBt\xc2Hq\no\n\rstring.prefix\x1a^!this.startsWith(rules.prefix) ? \'value does not have prefix `%s`\'.format([rules.prefix]) : \'\'H\tR\x06prefix\x88\x01\x01\x12\x8f\x01\n\x06suffix\x18\x08 \x01(\tBr\xc2Ho\nm\n\rstring.suffix\x1a\\!this.endsWith(rules.suffix) ? \'value does not have suffix `%s`\'.format([rules.suffix]) : \'\'H\nR\x06suffix\x88\x01\x01\x12\x9f\x01\n\x08\x63ontains\x18\t \x01(\tB~\xc2H{\ny\n\x0fstring.contains\x1a\x66!this.contains(rules.contains) ? \'value does not contain substring `%s`\'.format([rules.contains]) : \'\'H\x0bR\x08\x63ontains\x88\x01\x01\x12\xaa\x01\n\x0cnot_contains\x18\x17 \x01(\tB\x81\x01\xc2H~\n|\n\x13string.not_contains\x1a\x65this.contains(rules.not_contains) ? \'value contains substring `%s`\'.format([rules.not_contains]) : \'\'H\x0cR\x0bnotContains\x88\x01\x01\x12z\n\x02in\x18\n \x03(\tBj\xc2Hg\ne\n\tstring.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12~\n\x06not_in\x18\x0b \x03(\tBg\xc2Hd\nb\n\rstring.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notIn\x12`\n\x05\x65mail\x18\x0c \x01(\x08\x42H\xc2HE\nC\n\x0cstring.email\x12#value must be a valid email address\x1a\x0ethis.isEmail()H\x00R\x05\x65mail\x12g\n\x08hostname\x18\r \x01(\x08\x42I\xc2HF\nD\n\x0fstring.hostname\x12\x1evalue must be a valid hostname\x1a\x11this.isHostname()H\x00R\x08hostname\x12Q\n\x02ip\x18\x0e \x01(\x08\x42?\xc2H<\n:\n\tstring.ip\x12 value must be a valid IP address\x1a\x0bthis.isIp()H\x00R\x02ip\x12Z\n\x04ipv4\x18\x0f \x01(\x08\x42\x44\xc2HA\n?\n\x0bstring.ipv4\x12\"value must be a valid IPv4 address\x1a\x0cthis.isIp(4)H\x00R\x04ipv4\x12Z\n\x04ipv6\x18\x10 \x01(\x08\x42\x44\xc2HA\n?\n\x0bstring.ipv6\x12\"value must be a valid IPv6 address\x1a\x0cthis.isIp(6)H\x00R\x04ipv6\x12N\n\x03uri\x18\x11 \x01(\x08\x42:\xc2H7\n5\n\nstring.uri\x12\x19value must be a valid URI\x1a\x0cthis.isUri()H\x00R\x03uri\x12\\\n\x07uri_ref\x18\x12 \x01(\x08\x42\x41\xc2H>\n<\n\x0estring.uri_ref\x12\x19value must be a valid URI\x1a\x0fthis.isUriRef()H\x00R\x06uriRef\x12\x82\x01\n\x07\x61\x64\x64ress\x18\x15 \x01(\x08\x42\x66\xc2Hc\na\n\x0estring.address\x12-value must be a valid hostname, or ip address\x1a this.isHostname() || this.isIp()H\x00R\x07\x61\x64\x64ress\x12\xb0\x01\n\x04uuid\x18\x16 \x01(\x08\x42\x99\x01\xc2H\x95\x01\n\x92\x01\n\x0bstring.uuid\x1a\x82\x01!this.matches(\'^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\') ? \'value must be a valid UUID\' : \'\'H\x00R\x04uuid\x12\x81\x01\n\x11ip_with_prefixlen\x18\x1a \x01(\x08\x42S\xc2HP\nN\n\x18string.ip_with_prefixlen\x12\x1fvalue must be a valid IP prefix\x1a\x11this.isIpPrefix()H\x00R\x0fipWithPrefixlen\x12\x9e\x01\n\x13ipv4_with_prefixlen\x18\x1b \x01(\x08\x42l\xc2Hi\ng\n\x1astring.ipv4_with_prefixlen\x12\x35value must be a valid IPv4 address with prefix length\x1a\x12this.isIpPrefix(4)H\x00R\x11ipv4WithPrefixlen\x12\x9e\x01\n\x13ipv6_with_prefixlen\x18\x1c \x01(\x08\x42l\xc2Hi\ng\n\x1astring.ipv6_with_prefixlen\x12\x35value must be a valid IPv6 address with prefix length\x1a\x12this.isIpPrefix(6)H\x00R\x11ipv6WithPrefixlen\x12n\n\tip_prefix\x18\x1d \x01(\x08\x42O\xc2HL\nJ\n\x10string.ip_prefix\x12\x1fvalue must be a valid IP prefix\x1a\x15this.isIpPrefix(true)H\x00R\x08ipPrefix\x12y\n\x0bipv4_prefix\x18\x1e \x01(\x08\x42V\xc2HS\nQ\n\x12string.ipv4_prefix\x12!value must be a valid IPv4 prefix\x1a\x18this.isIpPrefix(4, true)H\x00R\nipv4Prefix\x12y\n\x0bipv6_prefix\x18\x1f \x01(\x08\x42V\xc2HS\nQ\n\x12string.ipv6_prefix\x12!value must be a valid IPv6 prefix\x1a\x18this.isIpPrefix(6, true)H\x00R\nipv6Prefix\x12\xac\x04\n\x10well_known_regex\x18\x18 \x01(\x0e\x32\x18.buf.validate.KnownRegexB\xe5\x03\xc2H\xe1\x03\n\xeb\x01\n#string.well_known_regex.header_name\x1a\xc3\x01rules.well_known_regex == 1 && !this.matches(!has(rules.strict) || rules.strict ?\'^:?[0-9a-zA-Z!#$%&\\\'*+-.^_|~\\x60]+$\' :\'^[^\\u0000\\u000A\\u000D]+$\') ? \'value must be a valid HTTP header name\' : \'\'\n\xf0\x01\n$string.well_known_regex.header_value\x1a\xc7\x01rules.well_known_regex == 2 && !this.matches(!has(rules.strict) || rules.strict ?\'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$\' :\'^[^\\u0000\\u000A\\u000D]*$\') ? \'value must be a valid HTTP header value\' : \'\'H\x00R\x0ewellKnownRegex\x12\x1b\n\x06strict\x18\x19 \x01(\x08H\rR\x06strict\x88\x01\x01\x42\x0c\n\nwell_knownB\x08\n\x06_constB\x06\n\x04_lenB\n\n\x08_min_lenB\n\n\x08_max_lenB\x0c\n\n_len_bytesB\x0c\n\n_min_bytesB\x0c\n\n_max_bytesB\n\n\x08_patternB\t\n\x07_prefixB\t\n\x07_suffixB\x0b\n\t_containsB\x0f\n\r_not_containsB\t\n\x07_strict\"\xda\x0e\n\nBytesRules\x12r\n\x05\x63onst\x18\x01 \x01(\x0c\x42W\xc2HT\nR\n\x0b\x62ytes.const\x1a\x43this != rules.const ? \'value must be %x\'.format([rules.const]) : \'\'H\x01R\x05\x63onst\x88\x01\x01\x12\x82\x01\n\x03len\x18\r \x01(\x04\x42k\xc2Hh\nf\n\tbytes.len\x1aYuint(this.size()) != rules.len ? \'value length must be %s bytes\'.format([rules.len]) : \'\'H\x02R\x03len\x88\x01\x01\x12\x9d\x01\n\x07min_len\x18\x02 \x01(\x04\x42\x7f\xc2H|\nz\n\rbytes.min_len\x1aiuint(this.size()) < rules.min_len ? \'value length must be at least %s bytes\'.format([rules.min_len]) : \'\'H\x03R\x06minLen\x88\x01\x01\x12\x95\x01\n\x07max_len\x18\x03 \x01(\x04\x42w\xc2Ht\nr\n\rbytes.max_len\x1a\x61uint(this.size()) > rules.max_len ? \'value must be at most %s bytes\'.format([rules.max_len]) : \'\'H\x04R\x06maxLen\x88\x01\x01\x12\x9e\x01\n\x07pattern\x18\x04 \x01(\tB\x7f\xc2H|\nz\n\rbytes.pattern\x1ai!string(this).matches(rules.pattern) ? \'value must match regex pattern `%s`\'.format([rules.pattern]) : \'\'H\x05R\x07pattern\x88\x01\x01\x12\x8e\x01\n\x06prefix\x18\x05 \x01(\x0c\x42q\xc2Hn\nl\n\x0c\x62ytes.prefix\x1a\\!this.startsWith(rules.prefix) ? \'value does not have prefix %x\'.format([rules.prefix]) : \'\'H\x06R\x06prefix\x88\x01\x01\x12\x8c\x01\n\x06suffix\x18\x06 \x01(\x0c\x42o\xc2Hl\nj\n\x0c\x62ytes.suffix\x1aZ!this.endsWith(rules.suffix) ? \'value does not have suffix %x\'.format([rules.suffix]) : \'\'H\x07R\x06suffix\x88\x01\x01\x12\x92\x01\n\x08\x63ontains\x18\x07 \x01(\x0c\x42q\xc2Hn\nl\n\x0e\x62ytes.contains\x1aZ!this.contains(rules.contains) ? \'value does not contain %x\'.format([rules.contains]) : \'\'H\x08R\x08\x63ontains\x88\x01\x01\x12\x9b\x01\n\x02in\x18\x08 \x03(\x0c\x42\x8a\x01\xc2H\x86\x01\n\x83\x01\n\x08\x62ytes.in\x1awdyn(rules)[\'in\'].size() > 0 && !(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12}\n\x06not_in\x18\t \x03(\x0c\x42\x66\xc2Hc\na\n\x0c\x62ytes.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notIn\x12r\n\x02ip\x18\n \x01(\x08\x42`\xc2H]\n[\n\x08\x62ytes.ip\x1aOthis.size() != 4 && this.size() != 16 ? \'value must be a valid IP address\' : \'\'H\x00R\x02ip\x12\x65\n\x04ipv4\x18\x0b \x01(\x08\x42O\xc2HL\nJ\n\nbytes.ipv4\x1a rules.max_items ? \'value must contain no more than %s item(s)\'.format([rules.max_items]) : \'\'H\x01R\x08maxItems\x88\x01\x01\x12l\n\x06unique\x18\x03 \x01(\x08\x42O\xc2HL\nJ\n\x0frepeated.unique\x12(repeated value must contain unique items\x1a\rthis.unique()H\x02R\x06unique\x88\x01\x01\x12\x39\n\x05items\x18\x04 \x01(\x0b\x32\x1e.buf.validate.FieldConstraintsH\x03R\x05items\x88\x01\x01\x42\x0c\n\n_min_itemsB\x0c\n\n_max_itemsB\t\n\x07_uniqueB\x08\n\x06_items\"\xf1\x03\n\x08MapRules\x12\x9e\x01\n\tmin_pairs\x18\x01 \x01(\x04\x42|\xc2Hy\nw\n\rmap.min_pairs\x1a\x66uint(this.size()) < rules.min_pairs ? \'map must be at least %d entries\'.format([rules.min_pairs]) : \'\'H\x00R\x08minPairs\x88\x01\x01\x12\x9d\x01\n\tmax_pairs\x18\x02 \x01(\x04\x42{\xc2Hx\nv\n\rmap.max_pairs\x1a\x65uint(this.size()) > rules.max_pairs ? \'map must be at most %d entries\'.format([rules.max_pairs]) : \'\'H\x01R\x08maxPairs\x88\x01\x01\x12\x37\n\x04keys\x18\x04 \x01(\x0b\x32\x1e.buf.validate.FieldConstraintsH\x02R\x04keys\x88\x01\x01\x12;\n\x06values\x18\x05 \x01(\x0b\x32\x1e.buf.validate.FieldConstraintsH\x03R\x06values\x88\x01\x01\x42\x0c\n\n_min_pairsB\x0c\n\n_max_pairsB\x07\n\x05_keysB\t\n\x07_values\"1\n\x08\x41nyRules\x12\x0e\n\x02in\x18\x02 \x03(\tR\x02in\x12\x15\n\x06not_in\x18\x03 \x03(\tR\x05notIn\"\xd2\x16\n\rDurationRules\x12\x93\x01\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB]\xc2HZ\nX\n\x0e\x64uration.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\xac\x01\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x7f\xc2H|\nz\n\x0b\x64uration.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xbf\x01\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x8f\x01\xc2H\x8b\x01\n\x88\x01\n\x0c\x64uration.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\xc5\x07\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x97\x07\xc2H\x93\x07\n}\n\x0b\x64uration.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb6\x01\n\x0e\x64uration.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbe\x01\n\x18\x64uration.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc6\x01\n\x0f\x64uration.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xce\x01\n\x19\x64uration.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\x92\x08\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\xe2\x07\xc2H\xde\x07\n\x8b\x01\n\x0c\x64uration.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc5\x01\n\x0f\x64uration.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xcd\x01\n\x19\x64uration.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd5\x01\n\x10\x64uration.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xdd\x01\n\x1a\x64uration.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12\x97\x01\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.DurationBl\xc2Hi\ng\n\x0b\x64uration.in\x1aX!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'R\x02in\x12\x9b\x01\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.DurationBi\xc2Hf\nd\n\x0f\x64uration.not_in\x1aQthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'R\x05notInB\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_const\"\xca\x17\n\x0eTimestampRules\x12\x95\x01\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB^\xc2H[\nY\n\x0ftimestamp.const\x1a\x46this != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'H\x02R\x05\x63onst\x88\x01\x01\x12\xaf\x01\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x80\x01\xc2H}\n{\n\x0ctimestamp.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'H\x00R\x02lt\x12\xc1\x01\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x90\x01\xc2H\x8c\x01\n\x89\x01\n\rtimestamp.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'H\x00R\x03lte\x12\x61\n\x06lt_now\x18\x07 \x01(\x08\x42H\xc2HE\nC\n\x10timestamp.lt_now\x1a/this > now ? \'value must be less than now\' : \'\'H\x00R\x05ltNow\x12\xcb\x07\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x9c\x07\xc2H\x98\x07\n~\n\x0ctimestamp.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\xb7\x01\n\x0ftimestamp.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xbf\x01\n\x19timestamp.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\xc7\x01\n\x10timestamp.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\xcf\x01\n\x1atimestamp.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'H\x01R\x02gt\x12\x98\x08\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\xe7\x07\xc2H\xe3\x07\n\x8c\x01\n\rtimestamp.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\xc6\x01\n\x10timestamp.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xce\x01\n\x1atimestamp.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\xd6\x01\n\x11timestamp.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\xde\x01\n\x1btimestamp.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'H\x01R\x03gte\x12\x64\n\x06gt_now\x18\x08 \x01(\x08\x42K\xc2HH\nF\n\x10timestamp.gt_now\x1a\x32this < now ? \'value must be greater than now\' : \'\'H\x01R\x05gtNow\x12\xc5\x01\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x8c\x01\xc2H\x88\x01\n\x85\x01\n\x10timestamp.within\x1aqthis < now-rules.within || this > now+rules.within ? \'value must be within %s of now\'.format([rules.within]) : \'\'H\x03R\x06within\x88\x01\x01\x42\x0b\n\tless_thanB\x0e\n\x0cgreater_thanB\x08\n\x06_constB\t\n\x07_within*n\n\nKnownRegex\x12\x1b\n\x17KNOWN_REGEX_UNSPECIFIED\x10\x00\x12 \n\x1cKNOWN_REGEX_HTTP_HEADER_NAME\x10\x01\x12!\n\x1dKNOWN_REGEX_HTTP_HEADER_VALUE\x10\x02:_\n\x07message\x12\x1f.google.protobuf.MessageOptions\x18\x87\t \x01(\x0b\x32 .buf.validate.MessageConstraintsR\x07message\x88\x01\x01:W\n\x05oneof\x12\x1d.google.protobuf.OneofOptions\x18\x87\t \x01(\x0b\x32\x1e.buf.validate.OneofConstraintsR\x05oneof\x88\x01\x01:W\n\x05\x66ield\x12\x1d.google.protobuf.FieldOptions\x18\x87\t \x01(\x0b\x32\x1e.buf.validate.FieldConstraintsR\x05\x66ield\x88\x01\x01\x42n\n\x12\x62uild.buf.validateB\rValidateProtoP\x01ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validateb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.validate_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022build.buf.validateB\rValidateProtoP\001ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate' + _globals['_FLOATRULES'].fields_by_name['const']._options = None + _globals['_FLOATRULES'].fields_by_name['const']._serialized_options = b'\302HW\nU\n\013float.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['lt']._options = None + _globals['_FLOATRULES'].fields_by_name['lt']._serialized_options = b'\302H\214\001\n\211\001\n\010float.lt\032}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['lte']._options = None + _globals['_FLOATRULES'].fields_by_name['lte']._serialized_options = b'\302H\233\001\n\230\001\n\tfloat.lte\032\212\001!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['gt']._options = None + _globals['_FLOATRULES'].fields_by_name['gt']._serialized_options = b'\302H\334\007\n\215\001\n\010float.gt\032\200\001!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\303\001\n\013float.gt_lt\032\263\001has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\315\001\n\025float.gt_lt_exclusive\032\263\001has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\323\001\n\014float.gt_lte\032\302\001has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\335\001\n\026float.gt_lte_exclusive\032\302\001has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['gte']._options = None + _globals['_FLOATRULES'].fields_by_name['gte']._serialized_options = b'\302H\246\010\n\233\001\n\tfloat.gte\032\215\001!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\322\001\n\014float.gte_lt\032\301\001has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\334\001\n\026float.gte_lt_exclusive\032\301\001has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\342\001\n\rfloat.gte_lte\032\320\001has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\354\001\n\027float.gte_lte_exclusive\032\320\001has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['in']._options = None + _globals['_FLOATRULES'].fields_by_name['in']._serialized_options = b'\302Hf\nd\n\010float.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['not_in']._options = None + _globals['_FLOATRULES'].fields_by_name['not_in']._serialized_options = b'\302Hc\na\n\014float.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_FLOATRULES'].fields_by_name['finite']._options = None + _globals['_FLOATRULES'].fields_by_name['finite']._serialized_options = b'\302HL\nJ\n\014float.finite\032:this.isNan() || this.isInf() ? \'value must be finite\' : \'\'' + _globals['_DOUBLERULES'].fields_by_name['const']._options = None + _globals['_DOUBLERULES'].fields_by_name['const']._serialized_options = b'\302HX\nV\n\014double.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['lt']._options = None + _globals['_DOUBLERULES'].fields_by_name['lt']._serialized_options = b'\302H\215\001\n\212\001\n\tdouble.lt\032}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['lte']._options = None + _globals['_DOUBLERULES'].fields_by_name['lte']._serialized_options = b'\302H\234\001\n\231\001\n\ndouble.lte\032\212\001!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['gt']._options = None + _globals['_DOUBLERULES'].fields_by_name['gt']._serialized_options = b'\302H\341\007\n\216\001\n\tdouble.gt\032\200\001!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\304\001\n\014double.gt_lt\032\263\001has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\316\001\n\026double.gt_lt_exclusive\032\263\001has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\324\001\n\rdouble.gt_lte\032\302\001has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\336\001\n\027double.gt_lte_exclusive\032\302\001has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['gte']._options = None + _globals['_DOUBLERULES'].fields_by_name['gte']._serialized_options = b'\302H\253\010\n\234\001\n\ndouble.gte\032\215\001!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\323\001\n\rdouble.gte_lt\032\301\001has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\335\001\n\027double.gte_lt_exclusive\032\301\001has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\343\001\n\016double.gte_lte\032\320\001has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\355\001\n\030double.gte_lte_exclusive\032\320\001has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['in']._options = None + _globals['_DOUBLERULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tdouble.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['not_in']._options = None + _globals['_DOUBLERULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\rdouble.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_DOUBLERULES'].fields_by_name['finite']._options = None + _globals['_DOUBLERULES'].fields_by_name['finite']._serialized_options = b'\302HM\nK\n\rdouble.finite\032:this.isNan() || this.isInf() ? \'value must be finite\' : \'\'' + _globals['_INT32RULES'].fields_by_name['const']._options = None + _globals['_INT32RULES'].fields_by_name['const']._serialized_options = b'\302HW\nU\n\013int32.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_INT32RULES'].fields_by_name['lt']._options = None + _globals['_INT32RULES'].fields_by_name['lt']._serialized_options = b'\302Hy\nw\n\010int32.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_INT32RULES'].fields_by_name['lte']._options = None + _globals['_INT32RULES'].fields_by_name['lte']._serialized_options = b'\302H\210\001\n\205\001\n\tint32.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_INT32RULES'].fields_by_name['gt']._options = None + _globals['_INT32RULES'].fields_by_name['gt']._serialized_options = b'\302H\204\007\nz\n\010int32.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\263\001\n\013int32.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\273\001\n\025int32.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\303\001\n\014int32.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\313\001\n\026int32.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_INT32RULES'].fields_by_name['gte']._options = None + _globals['_INT32RULES'].fields_by_name['gte']._serialized_options = b'\302H\317\007\n\210\001\n\tint32.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\302\001\n\014int32.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\312\001\n\026int32.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\322\001\n\rint32.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\332\001\n\027int32.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_INT32RULES'].fields_by_name['in']._options = None + _globals['_INT32RULES'].fields_by_name['in']._serialized_options = b'\302Hf\nd\n\010int32.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_INT32RULES'].fields_by_name['not_in']._options = None + _globals['_INT32RULES'].fields_by_name['not_in']._serialized_options = b'\302Hc\na\n\014int32.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_INT64RULES'].fields_by_name['const']._options = None + _globals['_INT64RULES'].fields_by_name['const']._serialized_options = b'\302HW\nU\n\013int64.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_INT64RULES'].fields_by_name['lt']._options = None + _globals['_INT64RULES'].fields_by_name['lt']._serialized_options = b'\302Hy\nw\n\010int64.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_INT64RULES'].fields_by_name['lte']._options = None + _globals['_INT64RULES'].fields_by_name['lte']._serialized_options = b'\302H\210\001\n\205\001\n\tint64.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_INT64RULES'].fields_by_name['gt']._options = None + _globals['_INT64RULES'].fields_by_name['gt']._serialized_options = b'\302H\204\007\nz\n\010int64.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\263\001\n\013int64.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\273\001\n\025int64.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\303\001\n\014int64.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\313\001\n\026int64.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_INT64RULES'].fields_by_name['gte']._options = None + _globals['_INT64RULES'].fields_by_name['gte']._serialized_options = b'\302H\317\007\n\210\001\n\tint64.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\302\001\n\014int64.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\312\001\n\026int64.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\322\001\n\rint64.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\332\001\n\027int64.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_INT64RULES'].fields_by_name['in']._options = None + _globals['_INT64RULES'].fields_by_name['in']._serialized_options = b'\302Hf\nd\n\010int64.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_INT64RULES'].fields_by_name['not_in']._options = None + _globals['_INT64RULES'].fields_by_name['not_in']._serialized_options = b'\302Hc\na\n\014int64.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['const']._options = None + _globals['_UINT32RULES'].fields_by_name['const']._serialized_options = b'\302HX\nV\n\014uint32.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['lt']._options = None + _globals['_UINT32RULES'].fields_by_name['lt']._serialized_options = b'\302Hz\nx\n\tuint32.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['lte']._options = None + _globals['_UINT32RULES'].fields_by_name['lte']._serialized_options = b'\302H\211\001\n\206\001\n\nuint32.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['gt']._options = None + _globals['_UINT32RULES'].fields_by_name['gt']._serialized_options = b'\302H\211\007\n{\n\tuint32.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\264\001\n\014uint32.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\274\001\n\026uint32.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\304\001\n\ruint32.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\314\001\n\027uint32.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['gte']._options = None + _globals['_UINT32RULES'].fields_by_name['gte']._serialized_options = b'\302H\324\007\n\211\001\n\nuint32.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\303\001\n\ruint32.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\313\001\n\027uint32.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\323\001\n\016uint32.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\333\001\n\030uint32.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['in']._options = None + _globals['_UINT32RULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tuint32.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_UINT32RULES'].fields_by_name['not_in']._options = None + _globals['_UINT32RULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\ruint32.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['const']._options = None + _globals['_UINT64RULES'].fields_by_name['const']._serialized_options = b'\302HX\nV\n\014uint64.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['lt']._options = None + _globals['_UINT64RULES'].fields_by_name['lt']._serialized_options = b'\302Hz\nx\n\tuint64.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['lte']._options = None + _globals['_UINT64RULES'].fields_by_name['lte']._serialized_options = b'\302H\211\001\n\206\001\n\nuint64.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['gt']._options = None + _globals['_UINT64RULES'].fields_by_name['gt']._serialized_options = b'\302H\211\007\n{\n\tuint64.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\264\001\n\014uint64.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\274\001\n\026uint64.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\304\001\n\ruint64.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\314\001\n\027uint64.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['gte']._options = None + _globals['_UINT64RULES'].fields_by_name['gte']._serialized_options = b'\302H\324\007\n\211\001\n\nuint64.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\303\001\n\ruint64.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\313\001\n\027uint64.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\323\001\n\016uint64.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\333\001\n\030uint64.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['in']._options = None + _globals['_UINT64RULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tuint64.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_UINT64RULES'].fields_by_name['not_in']._options = None + _globals['_UINT64RULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\ruint64.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['const']._options = None + _globals['_SINT32RULES'].fields_by_name['const']._serialized_options = b'\302HX\nV\n\014sint32.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['lt']._options = None + _globals['_SINT32RULES'].fields_by_name['lt']._serialized_options = b'\302Hz\nx\n\tsint32.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['lte']._options = None + _globals['_SINT32RULES'].fields_by_name['lte']._serialized_options = b'\302H\211\001\n\206\001\n\nsint32.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['gt']._options = None + _globals['_SINT32RULES'].fields_by_name['gt']._serialized_options = b'\302H\211\007\n{\n\tsint32.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\264\001\n\014sint32.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\274\001\n\026sint32.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\304\001\n\rsint32.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\314\001\n\027sint32.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['gte']._options = None + _globals['_SINT32RULES'].fields_by_name['gte']._serialized_options = b'\302H\324\007\n\211\001\n\nsint32.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\303\001\n\rsint32.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\313\001\n\027sint32.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\323\001\n\016sint32.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\333\001\n\030sint32.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['in']._options = None + _globals['_SINT32RULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tsint32.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_SINT32RULES'].fields_by_name['not_in']._options = None + _globals['_SINT32RULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\rsint32.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['const']._options = None + _globals['_SINT64RULES'].fields_by_name['const']._serialized_options = b'\302HX\nV\n\014sint64.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['lt']._options = None + _globals['_SINT64RULES'].fields_by_name['lt']._serialized_options = b'\302Hz\nx\n\tsint64.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['lte']._options = None + _globals['_SINT64RULES'].fields_by_name['lte']._serialized_options = b'\302H\211\001\n\206\001\n\nsint64.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['gt']._options = None + _globals['_SINT64RULES'].fields_by_name['gt']._serialized_options = b'\302H\211\007\n{\n\tsint64.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\264\001\n\014sint64.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\274\001\n\026sint64.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\304\001\n\rsint64.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\314\001\n\027sint64.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['gte']._options = None + _globals['_SINT64RULES'].fields_by_name['gte']._serialized_options = b'\302H\324\007\n\211\001\n\nsint64.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\303\001\n\rsint64.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\313\001\n\027sint64.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\323\001\n\016sint64.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\333\001\n\030sint64.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['in']._options = None + _globals['_SINT64RULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tsint64.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_SINT64RULES'].fields_by_name['not_in']._options = None + _globals['_SINT64RULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\rsint64.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['const']._options = None + _globals['_FIXED32RULES'].fields_by_name['const']._serialized_options = b'\302HY\nW\n\rfixed32.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['lt']._options = None + _globals['_FIXED32RULES'].fields_by_name['lt']._serialized_options = b'\302H{\ny\n\nfixed32.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['lte']._options = None + _globals['_FIXED32RULES'].fields_by_name['lte']._serialized_options = b'\302H\212\001\n\207\001\n\013fixed32.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['gt']._options = None + _globals['_FIXED32RULES'].fields_by_name['gt']._serialized_options = b'\302H\216\007\n|\n\nfixed32.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\265\001\n\rfixed32.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\275\001\n\027fixed32.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\305\001\n\016fixed32.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\315\001\n\030fixed32.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['gte']._options = None + _globals['_FIXED32RULES'].fields_by_name['gte']._serialized_options = b'\302H\331\007\n\212\001\n\013fixed32.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\304\001\n\016fixed32.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\314\001\n\030fixed32.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\324\001\n\017fixed32.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\334\001\n\031fixed32.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['in']._options = None + _globals['_FIXED32RULES'].fields_by_name['in']._serialized_options = b'\302Hh\nf\n\nfixed32.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_FIXED32RULES'].fields_by_name['not_in']._options = None + _globals['_FIXED32RULES'].fields_by_name['not_in']._serialized_options = b'\302He\nc\n\016fixed32.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['const']._options = None + _globals['_FIXED64RULES'].fields_by_name['const']._serialized_options = b'\302HY\nW\n\rfixed64.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['lt']._options = None + _globals['_FIXED64RULES'].fields_by_name['lt']._serialized_options = b'\302H{\ny\n\nfixed64.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['lte']._options = None + _globals['_FIXED64RULES'].fields_by_name['lte']._serialized_options = b'\302H\212\001\n\207\001\n\013fixed64.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['gt']._options = None + _globals['_FIXED64RULES'].fields_by_name['gt']._serialized_options = b'\302H\216\007\n|\n\nfixed64.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\265\001\n\rfixed64.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\275\001\n\027fixed64.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\305\001\n\016fixed64.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\315\001\n\030fixed64.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['gte']._options = None + _globals['_FIXED64RULES'].fields_by_name['gte']._serialized_options = b'\302H\331\007\n\212\001\n\013fixed64.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\304\001\n\016fixed64.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\314\001\n\030fixed64.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\324\001\n\017fixed64.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\334\001\n\031fixed64.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['in']._options = None + _globals['_FIXED64RULES'].fields_by_name['in']._serialized_options = b'\302Hh\nf\n\nfixed64.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_FIXED64RULES'].fields_by_name['not_in']._options = None + _globals['_FIXED64RULES'].fields_by_name['not_in']._serialized_options = b'\302He\nc\n\016fixed64.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['const']._options = None + _globals['_SFIXED32RULES'].fields_by_name['const']._serialized_options = b'\302HZ\nX\n\016sfixed32.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['lt']._options = None + _globals['_SFIXED32RULES'].fields_by_name['lt']._serialized_options = b'\302H|\nz\n\013sfixed32.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['lte']._options = None + _globals['_SFIXED32RULES'].fields_by_name['lte']._serialized_options = b'\302H\213\001\n\210\001\n\014sfixed32.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['gt']._options = None + _globals['_SFIXED32RULES'].fields_by_name['gt']._serialized_options = b'\302H\223\007\n}\n\013sfixed32.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\266\001\n\016sfixed32.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\276\001\n\030sfixed32.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\306\001\n\017sfixed32.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\316\001\n\031sfixed32.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['gte']._options = None + _globals['_SFIXED32RULES'].fields_by_name['gte']._serialized_options = b'\302H\336\007\n\213\001\n\014sfixed32.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\305\001\n\017sfixed32.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\315\001\n\031sfixed32.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\325\001\n\020sfixed32.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\335\001\n\032sfixed32.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['in']._options = None + _globals['_SFIXED32RULES'].fields_by_name['in']._serialized_options = b'\302Hi\ng\n\013sfixed32.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_SFIXED32RULES'].fields_by_name['not_in']._options = None + _globals['_SFIXED32RULES'].fields_by_name['not_in']._serialized_options = b'\302Hf\nd\n\017sfixed32.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['const']._options = None + _globals['_SFIXED64RULES'].fields_by_name['const']._serialized_options = b'\302HZ\nX\n\016sfixed64.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['lt']._options = None + _globals['_SFIXED64RULES'].fields_by_name['lt']._serialized_options = b'\302H|\nz\n\013sfixed64.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['lte']._options = None + _globals['_SFIXED64RULES'].fields_by_name['lte']._serialized_options = b'\302H\213\001\n\210\001\n\014sfixed64.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['gt']._options = None + _globals['_SFIXED64RULES'].fields_by_name['gt']._serialized_options = b'\302H\223\007\n}\n\013sfixed64.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\266\001\n\016sfixed64.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\276\001\n\030sfixed64.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\306\001\n\017sfixed64.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\316\001\n\031sfixed64.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['gte']._options = None + _globals['_SFIXED64RULES'].fields_by_name['gte']._serialized_options = b'\302H\336\007\n\213\001\n\014sfixed64.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\305\001\n\017sfixed64.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\315\001\n\031sfixed64.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\325\001\n\020sfixed64.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\335\001\n\032sfixed64.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['in']._options = None + _globals['_SFIXED64RULES'].fields_by_name['in']._serialized_options = b'\302Hi\ng\n\013sfixed64.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_SFIXED64RULES'].fields_by_name['not_in']._options = None + _globals['_SFIXED64RULES'].fields_by_name['not_in']._serialized_options = b'\302Hf\nd\n\017sfixed64.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_BOOLRULES'].fields_by_name['const']._options = None + _globals['_BOOLRULES'].fields_by_name['const']._serialized_options = b'\302HV\nT\n\nbool.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['const']._options = None + _globals['_STRINGRULES'].fields_by_name['const']._serialized_options = b'\302HZ\nX\n\014string.const\032Hthis != rules.const ? \'value must equal `%s`\'.format([rules.const]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['len']._options = None + _globals['_STRINGRULES'].fields_by_name['len']._serialized_options = b'\302Hn\nl\n\nstring.len\032^uint(this.size()) != rules.len ? \'value length must be %s characters\'.format([rules.len]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['min_len']._options = None + _globals['_STRINGRULES'].fields_by_name['min_len']._serialized_options = b'\302H\203\001\n\200\001\n\016string.min_len\032nuint(this.size()) < rules.min_len ? \'value length must be at least %s characters\'.format([rules.min_len]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['max_len']._options = None + _globals['_STRINGRULES'].fields_by_name['max_len']._serialized_options = b'\302H\201\001\n\177\n\016string.max_len\032muint(this.size()) > rules.max_len ? \'value length must be at most %s characters\'.format([rules.max_len]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['len_bytes']._options = None + _globals['_STRINGRULES'].fields_by_name['len_bytes']._serialized_options = b'\302H\203\001\n\200\001\n\020string.len_bytes\032luint(bytes(this).size()) != rules.len_bytes ? \'value length must be %s bytes\'.format([rules.len_bytes]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['min_bytes']._options = None + _globals['_STRINGRULES'].fields_by_name['min_bytes']._serialized_options = b'\302H\213\001\n\210\001\n\020string.min_bytes\032tuint(bytes(this).size()) < rules.min_bytes ? \'value length must be at least %s bytes\'.format([rules.min_bytes]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['max_bytes']._options = None + _globals['_STRINGRULES'].fields_by_name['max_bytes']._serialized_options = b'\302H\212\001\n\207\001\n\020string.max_bytes\032suint(bytes(this).size()) > rules.max_bytes ? \'value length must be at most %s bytes\'.format([rules.max_bytes]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['pattern']._options = None + _globals['_STRINGRULES'].fields_by_name['pattern']._serialized_options = b'\302Hy\nw\n\016string.pattern\032e!this.matches(rules.pattern) ? \'value does not match regex pattern `%s`\'.format([rules.pattern]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['prefix']._options = None + _globals['_STRINGRULES'].fields_by_name['prefix']._serialized_options = b'\302Hq\no\n\rstring.prefix\032^!this.startsWith(rules.prefix) ? \'value does not have prefix `%s`\'.format([rules.prefix]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['suffix']._options = None + _globals['_STRINGRULES'].fields_by_name['suffix']._serialized_options = b'\302Ho\nm\n\rstring.suffix\032\\!this.endsWith(rules.suffix) ? \'value does not have suffix `%s`\'.format([rules.suffix]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['contains']._options = None + _globals['_STRINGRULES'].fields_by_name['contains']._serialized_options = b'\302H{\ny\n\017string.contains\032f!this.contains(rules.contains) ? \'value does not contain substring `%s`\'.format([rules.contains]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['not_contains']._options = None + _globals['_STRINGRULES'].fields_by_name['not_contains']._serialized_options = b'\302H~\n|\n\023string.not_contains\032ethis.contains(rules.not_contains) ? \'value contains substring `%s`\'.format([rules.not_contains]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['in']._options = None + _globals['_STRINGRULES'].fields_by_name['in']._serialized_options = b'\302Hg\ne\n\tstring.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['not_in']._options = None + _globals['_STRINGRULES'].fields_by_name['not_in']._serialized_options = b'\302Hd\nb\n\rstring.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_STRINGRULES'].fields_by_name['email']._options = None + _globals['_STRINGRULES'].fields_by_name['email']._serialized_options = b'\302HE\nC\n\014string.email\022#value must be a valid email address\032\016this.isEmail()' + _globals['_STRINGRULES'].fields_by_name['hostname']._options = None + _globals['_STRINGRULES'].fields_by_name['hostname']._serialized_options = b'\302HF\nD\n\017string.hostname\022\036value must be a valid hostname\032\021this.isHostname()' + _globals['_STRINGRULES'].fields_by_name['ip']._options = None + _globals['_STRINGRULES'].fields_by_name['ip']._serialized_options = b'\302H<\n:\n\tstring.ip\022 value must be a valid IP address\032\013this.isIp()' + _globals['_STRINGRULES'].fields_by_name['ipv4']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv4']._serialized_options = b'\302HA\n?\n\013string.ipv4\022\"value must be a valid IPv4 address\032\014this.isIp(4)' + _globals['_STRINGRULES'].fields_by_name['ipv6']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv6']._serialized_options = b'\302HA\n?\n\013string.ipv6\022\"value must be a valid IPv6 address\032\014this.isIp(6)' + _globals['_STRINGRULES'].fields_by_name['uri']._options = None + _globals['_STRINGRULES'].fields_by_name['uri']._serialized_options = b'\302H7\n5\n\nstring.uri\022\031value must be a valid URI\032\014this.isUri()' + _globals['_STRINGRULES'].fields_by_name['uri_ref']._options = None + _globals['_STRINGRULES'].fields_by_name['uri_ref']._serialized_options = b'\302H>\n<\n\016string.uri_ref\022\031value must be a valid URI\032\017this.isUriRef()' + _globals['_STRINGRULES'].fields_by_name['address']._options = None + _globals['_STRINGRULES'].fields_by_name['address']._serialized_options = b'\302Hc\na\n\016string.address\022-value must be a valid hostname, or ip address\032 this.isHostname() || this.isIp()' + _globals['_STRINGRULES'].fields_by_name['uuid']._options = None + _globals['_STRINGRULES'].fields_by_name['uuid']._serialized_options = b'\302H\225\001\n\222\001\n\013string.uuid\032\202\001!this.matches(\'^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\') ? \'value must be a valid UUID\' : \'\'' + _globals['_STRINGRULES'].fields_by_name['ip_with_prefixlen']._options = None + _globals['_STRINGRULES'].fields_by_name['ip_with_prefixlen']._serialized_options = b'\302HP\nN\n\030string.ip_with_prefixlen\022\037value must be a valid IP prefix\032\021this.isIpPrefix()' + _globals['_STRINGRULES'].fields_by_name['ipv4_with_prefixlen']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv4_with_prefixlen']._serialized_options = b'\302Hi\ng\n\032string.ipv4_with_prefixlen\0225value must be a valid IPv4 address with prefix length\032\022this.isIpPrefix(4)' + _globals['_STRINGRULES'].fields_by_name['ipv6_with_prefixlen']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv6_with_prefixlen']._serialized_options = b'\302Hi\ng\n\032string.ipv6_with_prefixlen\0225value must be a valid IPv6 address with prefix length\032\022this.isIpPrefix(6)' + _globals['_STRINGRULES'].fields_by_name['ip_prefix']._options = None + _globals['_STRINGRULES'].fields_by_name['ip_prefix']._serialized_options = b'\302HL\nJ\n\020string.ip_prefix\022\037value must be a valid IP prefix\032\025this.isIpPrefix(true)' + _globals['_STRINGRULES'].fields_by_name['ipv4_prefix']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv4_prefix']._serialized_options = b'\302HS\nQ\n\022string.ipv4_prefix\022!value must be a valid IPv4 prefix\032\030this.isIpPrefix(4, true)' + _globals['_STRINGRULES'].fields_by_name['ipv6_prefix']._options = None + _globals['_STRINGRULES'].fields_by_name['ipv6_prefix']._serialized_options = b'\302HS\nQ\n\022string.ipv6_prefix\022!value must be a valid IPv6 prefix\032\030this.isIpPrefix(6, true)' + _globals['_STRINGRULES'].fields_by_name['well_known_regex']._options = None + _globals['_STRINGRULES'].fields_by_name['well_known_regex']._serialized_options = b'\302H\341\003\n\353\001\n#string.well_known_regex.header_name\032\303\001rules.well_known_regex == 1 && !this.matches(!has(rules.strict) || rules.strict ?\'^:?[0-9a-zA-Z!#$%&\\\'*+-.^_|~\\x60]+$\' :\'^[^\\u0000\\u000A\\u000D]+$\') ? \'value must be a valid HTTP header name\' : \'\'\n\360\001\n$string.well_known_regex.header_value\032\307\001rules.well_known_regex == 2 && !this.matches(!has(rules.strict) || rules.strict ?\'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$\' :\'^[^\\u0000\\u000A\\u000D]*$\') ? \'value must be a valid HTTP header value\' : \'\'' + _globals['_BYTESRULES'].fields_by_name['const']._options = None + _globals['_BYTESRULES'].fields_by_name['const']._serialized_options = b'\302HT\nR\n\013bytes.const\032Cthis != rules.const ? \'value must be %x\'.format([rules.const]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['len']._options = None + _globals['_BYTESRULES'].fields_by_name['len']._serialized_options = b'\302Hh\nf\n\tbytes.len\032Yuint(this.size()) != rules.len ? \'value length must be %s bytes\'.format([rules.len]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['min_len']._options = None + _globals['_BYTESRULES'].fields_by_name['min_len']._serialized_options = b'\302H|\nz\n\rbytes.min_len\032iuint(this.size()) < rules.min_len ? \'value length must be at least %s bytes\'.format([rules.min_len]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['max_len']._options = None + _globals['_BYTESRULES'].fields_by_name['max_len']._serialized_options = b'\302Ht\nr\n\rbytes.max_len\032auint(this.size()) > rules.max_len ? \'value must be at most %s bytes\'.format([rules.max_len]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['pattern']._options = None + _globals['_BYTESRULES'].fields_by_name['pattern']._serialized_options = b'\302H|\nz\n\rbytes.pattern\032i!string(this).matches(rules.pattern) ? \'value must match regex pattern `%s`\'.format([rules.pattern]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['prefix']._options = None + _globals['_BYTESRULES'].fields_by_name['prefix']._serialized_options = b'\302Hn\nl\n\014bytes.prefix\032\\!this.startsWith(rules.prefix) ? \'value does not have prefix %x\'.format([rules.prefix]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['suffix']._options = None + _globals['_BYTESRULES'].fields_by_name['suffix']._serialized_options = b'\302Hl\nj\n\014bytes.suffix\032Z!this.endsWith(rules.suffix) ? \'value does not have suffix %x\'.format([rules.suffix]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['contains']._options = None + _globals['_BYTESRULES'].fields_by_name['contains']._serialized_options = b'\302Hn\nl\n\016bytes.contains\032Z!this.contains(rules.contains) ? \'value does not contain %x\'.format([rules.contains]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['in']._options = None + _globals['_BYTESRULES'].fields_by_name['in']._serialized_options = b'\302H\206\001\n\203\001\n\010bytes.in\032wdyn(rules)[\'in\'].size() > 0 && !(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['not_in']._options = None + _globals['_BYTESRULES'].fields_by_name['not_in']._serialized_options = b'\302Hc\na\n\014bytes.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_BYTESRULES'].fields_by_name['ip']._options = None + _globals['_BYTESRULES'].fields_by_name['ip']._serialized_options = b'\302H]\n[\n\010bytes.ip\032Othis.size() != 4 && this.size() != 16 ? \'value must be a valid IP address\' : \'\'' + _globals['_BYTESRULES'].fields_by_name['ipv4']._options = None + _globals['_BYTESRULES'].fields_by_name['ipv4']._serialized_options = b'\302HL\nJ\n\nbytes.ipv4\032 rules.max_items ? \'value must contain no more than %s item(s)\'.format([rules.max_items]) : \'\'' + _globals['_REPEATEDRULES'].fields_by_name['unique']._options = None + _globals['_REPEATEDRULES'].fields_by_name['unique']._serialized_options = b'\302HL\nJ\n\017repeated.unique\022(repeated value must contain unique items\032\rthis.unique()' + _globals['_MAPRULES'].fields_by_name['min_pairs']._options = None + _globals['_MAPRULES'].fields_by_name['min_pairs']._serialized_options = b'\302Hy\nw\n\rmap.min_pairs\032fuint(this.size()) < rules.min_pairs ? \'map must be at least %d entries\'.format([rules.min_pairs]) : \'\'' + _globals['_MAPRULES'].fields_by_name['max_pairs']._options = None + _globals['_MAPRULES'].fields_by_name['max_pairs']._serialized_options = b'\302Hx\nv\n\rmap.max_pairs\032euint(this.size()) > rules.max_pairs ? \'map must be at most %d entries\'.format([rules.max_pairs]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['const']._options = None + _globals['_DURATIONRULES'].fields_by_name['const']._serialized_options = b'\302HZ\nX\n\016duration.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['lt']._options = None + _globals['_DURATIONRULES'].fields_by_name['lt']._serialized_options = b'\302H|\nz\n\013duration.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['lte']._options = None + _globals['_DURATIONRULES'].fields_by_name['lte']._serialized_options = b'\302H\213\001\n\210\001\n\014duration.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['gt']._options = None + _globals['_DURATIONRULES'].fields_by_name['gt']._serialized_options = b'\302H\223\007\n}\n\013duration.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\266\001\n\016duration.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\276\001\n\030duration.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\306\001\n\017duration.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\316\001\n\031duration.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['gte']._options = None + _globals['_DURATIONRULES'].fields_by_name['gte']._serialized_options = b'\302H\336\007\n\213\001\n\014duration.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\305\001\n\017duration.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\315\001\n\031duration.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\325\001\n\020duration.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\335\001\n\032duration.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['in']._options = None + _globals['_DURATIONRULES'].fields_by_name['in']._serialized_options = b'\302Hi\ng\n\013duration.in\032X!(this in dyn(rules)[\'in\']) ? \'value must be in list %s\'.format([dyn(rules)[\'in\']]) : \'\'' + _globals['_DURATIONRULES'].fields_by_name['not_in']._options = None + _globals['_DURATIONRULES'].fields_by_name['not_in']._serialized_options = b'\302Hf\nd\n\017duration.not_in\032Qthis in rules.not_in ? \'value must not be in list %s\'.format([rules.not_in]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['const']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['const']._serialized_options = b'\302H[\nY\n\017timestamp.const\032Fthis != rules.const ? \'value must equal %s\'.format([rules.const]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['lt']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['lt']._serialized_options = b'\302H}\n{\n\014timestamp.lt\032k!has(rules.gte) && !has(rules.gt) && this >= rules.lt? \'value must be less than %s\'.format([rules.lt]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['lte']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['lte']._serialized_options = b'\302H\214\001\n\211\001\n\rtimestamp.lte\032x!has(rules.gte) && !has(rules.gt) && this > rules.lte? \'value must be less than or equal to %s\'.format([rules.lte]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['lt_now']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['lt_now']._serialized_options = b'\302HE\nC\n\020timestamp.lt_now\032/this > now ? \'value must be less than now\' : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['gt']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['gt']._serialized_options = b'\302H\230\007\n~\n\014timestamp.gt\032n!has(rules.lt) && !has(rules.lte) && this <= rules.gt? \'value must be greater than %s\'.format([rules.gt]) : \'\'\n\267\001\n\017timestamp.gt_lt\032\243\001has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? \'value must be greater than %s and less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\277\001\n\031timestamp.gt_lt_exclusive\032\241\001has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? \'value must be greater than %s or less than %s\'.format([rules.gt, rules.lt]) : \'\'\n\307\001\n\020timestamp.gt_lte\032\262\001has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? \'value must be greater than %s and less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'\n\317\001\n\032timestamp.gt_lte_exclusive\032\260\001has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? \'value must be greater than %s or less than or equal to %s\'.format([rules.gt, rules.lte]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['gte']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['gte']._serialized_options = b'\302H\343\007\n\214\001\n\rtimestamp.gte\032{!has(rules.lt) && !has(rules.lte) && this < rules.gte? \'value must be greater than or equal to %s\'.format([rules.gte]) : \'\'\n\306\001\n\020timestamp.gte_lt\032\261\001has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? \'value must be greater than or equal to %s and less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\316\001\n\032timestamp.gte_lt_exclusive\032\257\001has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? \'value must be greater than or equal to %s or less than %s\'.format([rules.gte, rules.lt]) : \'\'\n\326\001\n\021timestamp.gte_lte\032\300\001has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? \'value must be greater than or equal to %s and less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'\n\336\001\n\033timestamp.gte_lte_exclusive\032\276\001has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? \'value must be greater than or equal to %s or less than or equal to %s\'.format([rules.gte, rules.lte]) : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['gt_now']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['gt_now']._serialized_options = b'\302HH\nF\n\020timestamp.gt_now\0322this < now ? \'value must be greater than now\' : \'\'' + _globals['_TIMESTAMPRULES'].fields_by_name['within']._options = None + _globals['_TIMESTAMPRULES'].fields_by_name['within']._serialized_options = b'\302H\210\001\n\205\001\n\020timestamp.within\032qthis < now-rules.within || this > now+rules.within ? \'value must be within %s of now\'.format([rules.within]) : \'\'' + _globals['_KNOWNREGEX']._serialized_start=48727 + _globals['_KNOWNREGEX']._serialized_end=48837 + _globals['_MESSAGECONSTRAINTS']._serialized_start=208 + _globals['_MESSAGECONSTRAINTS']._serialized_end=318 + _globals['_ONEOFCONSTRAINTS']._serialized_start=320 + _globals['_ONEOFCONSTRAINTS']._serialized_end=384 + _globals['_FIELDCONSTRAINTS']._serialized_start=387 + _globals['_FIELDCONSTRAINTS']._serialized_end=1656 + _globals['_FLOATRULES']._serialized_start=1659 + _globals['_FLOATRULES']._serialized_end=4637 + _globals['_DOUBLERULES']._serialized_start=4640 + _globals['_DOUBLERULES']._serialized_end=7635 + _globals['_INT32RULES']._serialized_start=7638 + _globals['_INT32RULES']._serialized_end=10296 + _globals['_INT64RULES']._serialized_start=10299 + _globals['_INT64RULES']._serialized_end=12957 + _globals['_UINT32RULES']._serialized_start=12960 + _globals['_UINT32RULES']._serialized_end=15634 + _globals['_UINT64RULES']._serialized_start=15637 + _globals['_UINT64RULES']._serialized_end=18311 + _globals['_SINT32RULES']._serialized_start=18314 + _globals['_SINT32RULES']._serialized_end=20988 + _globals['_SINT64RULES']._serialized_start=20991 + _globals['_SINT64RULES']._serialized_end=23665 + _globals['_FIXED32RULES']._serialized_start=23668 + _globals['_FIXED32RULES']._serialized_end=26358 + _globals['_FIXED64RULES']._serialized_start=26361 + _globals['_FIXED64RULES']._serialized_end=29051 + _globals['_SFIXED32RULES']._serialized_start=29054 + _globals['_SFIXED32RULES']._serialized_end=31761 + _globals['_SFIXED64RULES']._serialized_start=31764 + _globals['_SFIXED64RULES']._serialized_end=34471 + _globals['_BOOLRULES']._serialized_start=34474 + _globals['_BOOLRULES']._serialized_end=34613 + _globals['_STRINGRULES']._serialized_start=34616 + _globals['_STRINGRULES']._serialized_end=39328 + _globals['_BYTESRULES']._serialized_start=39331 + _globals['_BYTESRULES']._serialized_end=41213 + _globals['_ENUMRULES']._serialized_start=41216 + _globals['_ENUMRULES']._serialized_end=41660 + _globals['_REPEATEDRULES']._serialized_start=41663 + _globals['_REPEATEDRULES']._serialized_end=42252 + _globals['_MAPRULES']._serialized_start=42255 + _globals['_MAPRULES']._serialized_end=42752 + _globals['_ANYRULES']._serialized_start=42754 + _globals['_ANYRULES']._serialized_end=42803 + _globals['_DURATIONRULES']._serialized_start=42806 + _globals['_DURATIONRULES']._serialized_end=45704 + _globals['_TIMESTAMPRULES']._serialized_start=45707 + _globals['_TIMESTAMPRULES']._serialized_end=48725 +# @@protoc_insertion_point(module_scope) diff --git a/src/buf/validate/validate_pb2_grpc.py b/src/buf/validate/validate_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/buf/validate/validate_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/google/api/annotations_pb2.py b/src/google/api/annotations_pb2.py new file mode 100644 index 00000000..1ee2e417 --- /dev/null +++ b/src/google/api/annotations_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/api/annotations.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import http_pb2 as google_dot_api_dot_http__pb2 +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleR\x04httpBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.annotations_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI' +# @@protoc_insertion_point(module_scope) diff --git a/src/google/api/annotations_pb2_grpc.py b/src/google/api/annotations_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/google/api/annotations_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/google/api/http_pb.d.ts b/src/google/api/http_pb.d.ts deleted file mode 100644 index 2e73beb0..00000000 --- a/src/google/api/http_pb.d.ts +++ /dev/null @@ -1,479 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Google LLC -// -// 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. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * Defines the HTTP configuration for an API service. It contains a list of - * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method - * to one or more HTTP REST API methods. - * - * @generated from protobuf message google.api.Http - */ -export interface Http { - /** - * A list of HTTP configuration rules that apply to individual API methods. - * - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * @generated from protobuf field: repeated google.api.HttpRule rules = 1; - */ - rules: HttpRule[]; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * @generated from protobuf field: bool fully_decode_reserved_expansion = 2; - */ - fully_decode_reserved_expansion: boolean; -} -/** - * # gRPC Transcoding - * - * gRPC Transcoding is a feature for mapping between a gRPC method and one or - * more HTTP REST endpoints. It allows developers to build a single API service - * that supports both gRPC APIs and REST APIs. Many systems, including [Google - * APIs](https://github.com/googleapis/googleapis), - * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - * and use it for large scale production services. - * - * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - * how different portions of the gRPC request message are mapped to the URL - * path, URL query parameters, and HTTP request body. It also controls how the - * gRPC response message is mapped to the HTTP response body. `HttpRule` is - * typically specified as an `google.api.http` annotation on the gRPC method. - * - * Each mapping specifies a URL path template and an HTTP method. The path - * template may refer to one or more fields in the gRPC request message, as long - * as each field is a non-repeated field with a primitive (non-message) type. - * The path template controls how fields of the request message are mapped to - * the URL path. - * - * Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/{name=messages/*}" - * }; - * } - * } - * message GetMessageRequest { - * string name = 1; // Mapped to URL path. - * } - * message Message { - * string text = 1; // The resource content. - * } - * - * This enables an HTTP REST to gRPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - * - * Any fields in the request message which are not bound by the path template - * automatically become HTTP query parameters if there is no HTTP request body. - * For example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get:"/v1/messages/{message_id}" - * }; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // Mapped to URL path. - * int64 revision = 2; // Mapped to URL query parameter `revision`. - * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - * } - * - * This enables a HTTP JSON to RPC mapping as below: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - * "foo"))` - * - * Note that fields which are mapped to URL query parameters must have a - * primitive type or a repeated primitive type or a non-repeated message type. - * In the case of a repeated type, the parameter can be repeated in the URL - * as `...?param=A¶m=B`. In the case of a message type, each field of the - * message is mapped to a separate parameter, such as - * `...?foo.a=A&foo.b=B&foo.c=C`. - * - * For HTTP methods that allow a request body, the `body` field - * specifies the mapping. Consider a REST update method on the - * message resource collection: - * - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * - * The following HTTP JSON to RPC mapping is enabled, where the - * representation of the JSON in the request body is determined by - * protos JSON encoding: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" message { text: "Hi!" })` - * - * The special name `*` can be used in the body mapping to define that - * every field not bound by the path template should be mapped to the - * request body. This enables the following alternative definition of - * the update method: - * - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * patch: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * - * - * The following HTTP JSON to RPC mapping is enabled: - * - * HTTP | gRPC - * -----|----- - * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: - * "123456" text: "Hi!")` - * - * Note that when using `*` in the body mapping, it is not possible to - * have HTTP parameters, as all fields not bound by the path end in - * the body. This makes this option more rarely used in practice when - * defining REST APIs. The common usage of `*` is in custom methods - * which don't use the URL at all for transferring data. - * - * It is possible to define multiple HTTP methods for one RPC by using - * the `additional_bindings` option. Example: - * - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" - * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * - * This enables the following two alternative HTTP JSON to RPC mappings: - * - * HTTP | gRPC - * -----|----- - * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - * "123456")` - * - * ## Rules for HTTP mapping - * - * 1. Leaf request fields (recursive expansion nested messages in the request - * message) are classified into three categories: - * - Fields referred by the path template. They are passed via the URL path. - * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They - * are passed via the HTTP - * request body. - * - All other fields are passed via the URL query parameters, and the - * parameter name is the field path in the request message. A repeated - * field can be represented as multiple query parameters under the same - * name. - * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL - * query parameter, all fields - * are passed via URL path and HTTP request body. - * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP - * request body, all - * fields are passed via URL path and URL query parameters. - * - * ### Path template syntax - * - * Template = "/" Segments [ Verb ] ; - * Segments = Segment { "/" Segment } ; - * Segment = "*" | "**" | LITERAL | Variable ; - * Variable = "{" FieldPath [ "=" Segments ] "}" ; - * FieldPath = IDENT { "." IDENT } ; - * Verb = ":" LITERAL ; - * - * The syntax `*` matches a single URL path segment. The syntax `**` matches - * zero or more URL path segments, which must be the last part of the URL path - * except the `Verb`. - * - * The syntax `Variable` matches part of the URL path as specified by its - * template. A variable template must not contain other variables. If a variable - * matches a single path segment, its template may be omitted, e.g. `{var}` - * is equivalent to `{var=*}`. - * - * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - * contains any reserved character, such characters should be percent-encoded - * before the matching. - * - * If a variable contains exactly one path segment, such as `"{var}"` or - * `"{var=*}"`, when such a variable is expanded into a URL path on the client - * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - * server side does the reverse decoding. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{var}`. - * - * If a variable contains multiple path segments, such as `"{var=foo/*}"` - * or `"{var=**}"`, when such a variable is expanded into a URL path on the - * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - * The server side does the reverse decoding, except "%2F" and "%2f" are left - * unchanged. Such variables show up in the - * [Discovery - * Document](https://developers.google.com/discovery/v1/reference/apis) as - * `{+var}`. - * - * ## Using gRPC API Service Configuration - * - * gRPC API Service Configuration (service config) is a configuration language - * for configuring a gRPC service to become a user-facing product. The - * service config is simply the YAML representation of the `google.api.Service` - * proto message. - * - * As an alternative to annotating your proto file, you can configure gRPC - * transcoding in your service config YAML files. You do this by specifying a - * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - * effect as the proto annotation. This can be particularly useful if you - * have a proto that is reused in multiple services. Note that any transcoding - * specified in the service config will override any matching transcoding - * configuration in the proto. - * - * Example: - * - * http: - * rules: - * # Selects a gRPC method and applies HttpRule to it. - * - selector: example.v1.Messaging.GetMessage - * get: /v1/messages/{message_id}/{sub.subfield} - * - * ## Special notes - * - * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - * proto to JSON conversion must follow the [proto3 - * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). - * - * While the single segment variable follows the semantics of - * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - * Expansion, the multi segment variable **does not** follow RFC 6570 Section - * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - * does not expand special characters like `?` and `#`, which would lead - * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - * for multi segment variables. - * - * The path variables **must not** refer to any repeated or mapped field, - * because client libraries are not capable of handling such variable expansion. - * - * The path variables **must not** capture the leading "/" character. The reason - * is that the most common use case "{var}" does not capture the leading "/" - * character. For consistency, all path variables must share the same behavior. - * - * Repeated message fields must not be mapped to URL query parameters, because - * no client library can support such complicated mapping. - * - * If an API needs to use a JSON array for request or response body, it can map - * the request or response body to a repeated field. However, some gRPC - * Transcoding implementations may not support this feature. - * - * @generated from protobuf message google.api.HttpRule - */ -export interface HttpRule { - /** - * Selects a method to which this rule applies. - * - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * @generated from protobuf field: string selector = 1; - */ - selector: string; - /** - * @generated from protobuf oneof: pattern - */ - pattern: { - oneofKind: "get"; - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * @generated from protobuf field: string get = 2; - */ - get: string; - } | { - oneofKind: "put"; - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * @generated from protobuf field: string put = 3; - */ - put: string; - } | { - oneofKind: "post"; - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * @generated from protobuf field: string post = 4; - */ - post: string; - } | { - oneofKind: "delete"; - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * @generated from protobuf field: string delete = 5; - */ - delete: string; - } | { - oneofKind: "patch"; - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * @generated from protobuf field: string patch = 6; - */ - patch: string; - } | { - oneofKind: "custom"; - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * @generated from protobuf field: google.api.CustomHttpPattern custom = 8; - */ - custom: CustomHttpPattern; - } | { - oneofKind: undefined; - }; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * @generated from protobuf field: string body = 7; - */ - body: string; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * @generated from protobuf field: string response_body = 12; - */ - response_body: string; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11; - */ - additional_bindings: HttpRule[]; -} -/** - * A custom pattern is used for defining custom HTTP verb. - * - * @generated from protobuf message google.api.CustomHttpPattern - */ -export interface CustomHttpPattern { - /** - * The name of this custom HTTP verb. - * - * @generated from protobuf field: string kind = 1; - */ - kind: string; - /** - * The path matched by this custom verb. - * - * @generated from protobuf field: string path = 2; - */ - path: string; -} -declare class Http$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Http; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Http): Http; - internalBinaryWrite(message: Http, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.api.Http - */ -export declare const Http: Http$Type; -declare class HttpRule$Type extends MessageType { - constructor(); - create(value?: PartialMessage): HttpRule; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpRule): HttpRule; - internalBinaryWrite(message: HttpRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.api.HttpRule - */ -export declare const HttpRule: HttpRule$Type; -declare class CustomHttpPattern$Type extends MessageType { - constructor(); - create(value?: PartialMessage): CustomHttpPattern; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomHttpPattern): CustomHttpPattern; - internalBinaryWrite(message: CustomHttpPattern, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.api.CustomHttpPattern - */ -export declare const CustomHttpPattern: CustomHttpPattern$Type; -export {}; diff --git a/src/google/api/http_pb.js b/src/google/api/http_pb.js deleted file mode 100644 index 5624bf58..00000000 --- a/src/google/api/http_pb.js +++ /dev/null @@ -1,269 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2023 Google LLC -// -// 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. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CustomHttpPattern = exports.HttpRule = exports.Http = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class Http$Type extends runtime_4.MessageType { - constructor() { - super("google.api.Http", [ - { no: 1, name: "rules", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.HttpRule }, - { no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", localName: "fully_decode_reserved_expansion", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.rules = []; - message.fully_decode_reserved_expansion = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.api.HttpRule rules */ 1: - message.rules.push(exports.HttpRule.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* bool fully_decode_reserved_expansion */ 2: - message.fully_decode_reserved_expansion = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.api.HttpRule rules = 1; */ - for (let i = 0; i < message.rules.length; i++) - exports.HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* bool fully_decode_reserved_expansion = 2; */ - if (message.fully_decode_reserved_expansion !== false) - writer.tag(2, runtime_1.WireType.Varint).bool(message.fully_decode_reserved_expansion); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.api.Http - */ -exports.Http = new Http$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class HttpRule$Type extends runtime_4.MessageType { - constructor() { - super("google.api.HttpRule", [ - { no: 1, name: "selector", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "get", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "put", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "post", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "delete", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ }, - { no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => exports.CustomHttpPattern }, - { no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 12, name: "response_body", kind: "scalar", localName: "response_body", T: 9 /*ScalarType.STRING*/ }, - { no: 11, name: "additional_bindings", kind: "message", localName: "additional_bindings", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.HttpRule } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.selector = ""; - message.pattern = { oneofKind: undefined }; - message.body = ""; - message.response_body = ""; - message.additional_bindings = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string selector */ 1: - message.selector = reader.string(); - break; - case /* string get */ 2: - message.pattern = { - oneofKind: "get", - get: reader.string() - }; - break; - case /* string put */ 3: - message.pattern = { - oneofKind: "put", - put: reader.string() - }; - break; - case /* string post */ 4: - message.pattern = { - oneofKind: "post", - post: reader.string() - }; - break; - case /* string delete */ 5: - message.pattern = { - oneofKind: "delete", - delete: reader.string() - }; - break; - case /* string patch */ 6: - message.pattern = { - oneofKind: "patch", - patch: reader.string() - }; - break; - case /* google.api.CustomHttpPattern custom */ 8: - message.pattern = { - oneofKind: "custom", - custom: exports.CustomHttpPattern.internalBinaryRead(reader, reader.uint32(), options, message.pattern.custom) - }; - break; - case /* string body */ 7: - message.body = reader.string(); - break; - case /* string response_body */ 12: - message.response_body = reader.string(); - break; - case /* repeated google.api.HttpRule additional_bindings */ 11: - message.additional_bindings.push(exports.HttpRule.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string selector = 1; */ - if (message.selector !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.selector); - /* string get = 2; */ - if (message.pattern.oneofKind === "get") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.pattern.get); - /* string put = 3; */ - if (message.pattern.oneofKind === "put") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.pattern.put); - /* string post = 4; */ - if (message.pattern.oneofKind === "post") - writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.pattern.post); - /* string delete = 5; */ - if (message.pattern.oneofKind === "delete") - writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.pattern.delete); - /* string patch = 6; */ - if (message.pattern.oneofKind === "patch") - writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.pattern.patch); - /* google.api.CustomHttpPattern custom = 8; */ - if (message.pattern.oneofKind === "custom") - exports.CustomHttpPattern.internalBinaryWrite(message.pattern.custom, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* string body = 7; */ - if (message.body !== "") - writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.body); - /* string response_body = 12; */ - if (message.response_body !== "") - writer.tag(12, runtime_1.WireType.LengthDelimited).string(message.response_body); - /* repeated google.api.HttpRule additional_bindings = 11; */ - for (let i = 0; i < message.additional_bindings.length; i++) - exports.HttpRule.internalBinaryWrite(message.additional_bindings[i], writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.api.HttpRule - */ -exports.HttpRule = new HttpRule$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CustomHttpPattern$Type extends runtime_4.MessageType { - constructor() { - super("google.api.CustomHttpPattern", [ - { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.kind = ""; - message.path = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string kind */ 1: - message.kind = reader.string(); - break; - case /* string path */ 2: - message.path = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string kind = 1; */ - if (message.kind !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.kind); - /* string path = 2; */ - if (message.path !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.path); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.api.CustomHttpPattern - */ -exports.CustomHttpPattern = new CustomHttpPattern$Type(); diff --git a/src/google/api/http_pb2.py b/src/google/api/http_pb2.py new file mode 100644 index 00000000..919c4242 --- /dev/null +++ b/src/google/api/http_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/api/http.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRuleR\x05rules\x12\x45\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08R\x1c\x66ullyDecodeReservedExpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12\x12\n\x03get\x18\x02 \x01(\tH\x00R\x03get\x12\x12\n\x03put\x18\x03 \x01(\tH\x00R\x03put\x12\x14\n\x04post\x18\x04 \x01(\tH\x00R\x04post\x12\x18\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00R\x06\x64\x65lete\x12\x16\n\x05patch\x18\x06 \x01(\tH\x00R\x05patch\x12\x37\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00R\x06\x63ustom\x12\x12\n\x04\x62ody\x18\x07 \x01(\tR\x04\x62ody\x12#\n\rresponse_body\x18\x0c \x01(\tR\x0cresponseBody\x12\x45\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleR\x12\x61\x64\x64itionalBindingsB\t\n\x07pattern\";\n\x11\x43ustomHttpPattern\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n\x04path\x18\x02 \x01(\tR\x04pathBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.http_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI' + _globals['_HTTP']._serialized_start=37 + _globals['_HTTP']._serialized_end=158 + _globals['_HTTPRULE']._serialized_start=161 + _globals['_HTTPRULE']._serialized_end=507 + _globals['_CUSTOMHTTPPATTERN']._serialized_start=509 + _globals['_CUSTOMHTTPPATTERN']._serialized_end=568 +# @@protoc_insertion_point(module_scope) diff --git a/src/google/api/http_pb2_grpc.py b/src/google/api/http_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/google/api/http_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/google/protobuf/any_pb.d.ts b/src/google/protobuf/any_pb.d.ts deleted file mode 100644 index 95db01b5..00000000 --- a/src/google/protobuf/any_pb.d.ts +++ /dev/null @@ -1,216 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import type { JsonValue } from "@protobuf-ts/runtime"; -import type { JsonReadOptions } from "@protobuf-ts/runtime"; -import type { JsonWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IMessageType } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * // or ... - * if (any.isSameTypeAs(Foo.getDefaultInstance())) { - * foo = any.unpack(Foo.getDefaultInstance()); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * @generated from protobuf message google.protobuf.Any - */ -export interface Any { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. As of May 2023, there are no widely used type server - * implementations and no plans to implement one. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - * - * - * @generated from protobuf field: string type_url = 1; - */ - type_url: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * - * @generated from protobuf field: bytes value = 2; - */ - value: Uint8Array; -} -declare class Any$Type extends MessageType { - constructor(); - /** - * Pack the message into a new `Any`. - * - * Uses 'type.googleapis.com/full.type.name' as the type URL. - */ - pack(message: T, type: IMessageType): Any; - /** - * Unpack the message from the `Any`. - */ - unpack(any: Any, type: IMessageType, options?: Partial): T; - /** - * Does the given `Any` contain a packed message of the given type? - */ - contains(any: Any, type: IMessageType | string): boolean; - /** - * Convert the message to canonical JSON value. - * - * You have to provide the `typeRegistry` option so that the - * packed message can be converted to JSON. - * - * The `typeRegistry` option is also required to read - * `google.protobuf.Any` from JSON format. - */ - internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue; - internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any; - typeNameToUrl(name: string): string; - typeUrlToName(url: string): string; - create(value?: PartialMessage): Any; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any; - internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.Any - */ -export declare const Any: Any$Type; -export {}; diff --git a/src/google/protobuf/any_pb.js b/src/google/protobuf/any_pb.js deleted file mode 100644 index 6e86f1ce..00000000 --- a/src/google/protobuf/any_pb.js +++ /dev/null @@ -1,190 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Any = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const runtime_5 = require("@protobuf-ts/runtime"); -const runtime_6 = require("@protobuf-ts/runtime"); -const runtime_7 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class Any$Type extends runtime_7.MessageType { - constructor() { - super("google.protobuf.Any", [ - { no: 1, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ } - ]); - } - /** - * Pack the message into a new `Any`. - * - * Uses 'type.googleapis.com/full.type.name' as the type URL. - */ - pack(message, type) { - return { - type_url: this.typeNameToUrl(type.typeName), value: type.toBinary(message), - }; - } - /** - * Unpack the message from the `Any`. - */ - unpack(any, type, options) { - if (!this.contains(any, type)) - throw new Error("Cannot unpack google.protobuf.Any with type_url '" + any.type_url + "' as " + type.typeName + "."); - return type.fromBinary(any.value, options); - } - /** - * Does the given `Any` contain a packed message of the given type? - */ - contains(any, type) { - if (!any.type_url.length) - return false; - let wants = typeof type == "string" ? type : type.typeName; - let has = this.typeUrlToName(any.type_url); - return wants === has; - } - /** - * Convert the message to canonical JSON value. - * - * You have to provide the `typeRegistry` option so that the - * packed message can be converted to JSON. - * - * The `typeRegistry` option is also required to read - * `google.protobuf.Any` from JSON format. - */ - internalJsonWrite(any, options) { - if (any.type_url === "") - return {}; - let typeName = this.typeUrlToName(any.type_url); - let opt = runtime_6.jsonWriteOptions(options); - let type = opt.typeRegistry?.find(t => t.typeName === typeName); - if (!type) - throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.type_url + "' to JSON. The specified type " + typeName + " is not available in the type registry."); - let value = type.fromBinary(any.value, { readUnknownField: false }); - let json = type.internalJsonWrite(value, opt); - if (typeName.startsWith("google.protobuf.") || !runtime_4.isJsonObject(json)) - json = { value: json }; - json["@type"] = any.type_url; - return json; - } - internalJsonRead(json, options, target) { - if (!runtime_4.isJsonObject(json)) - throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + runtime_5.typeofJsonValue(json) + "."); - if (typeof json["@type"] != "string" || json["@type"] == "") - return this.create(); - let typeName = this.typeUrlToName(json["@type"]); - let type = options?.typeRegistry?.find(t => t.typeName == typeName); - if (!type) - throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry."); - let value; - if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value")) - value = type.fromJson(json["value"], options); - else { - let copy = Object.assign({}, json); - delete copy["@type"]; - value = type.fromJson(copy, options); - } - if (target === undefined) - target = this.create(); - target.type_url = json["@type"]; - target.value = type.toBinary(value); - return target; - } - typeNameToUrl(name) { - if (!name.length) - throw new Error("invalid type name: " + name); - return "type.googleapis.com/" + name; - } - typeUrlToName(url) { - if (!url.length) - throw new Error("invalid type url: " + url); - let slash = url.lastIndexOf("/"); - let name = slash > 0 ? url.substring(slash + 1) : url; - if (!name.length) - throw new Error("invalid type url: " + url); - return name; - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.type_url = ""; - message.value = new Uint8Array(0); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string type_url */ 1: - message.type_url = reader.string(); - break; - case /* bytes value */ 2: - message.value = reader.bytes(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string type_url = 1; */ - if (message.type_url !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.type_url); - /* bytes value = 2; */ - if (message.value.length) - writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.value); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.Any - */ -exports.Any = new Any$Type(); diff --git a/src/google/protobuf/descriptor_pb.d.ts b/src/google/protobuf/descriptor_pb.d.ts deleted file mode 100644 index a792698d..00000000 --- a/src/google/protobuf/descriptor_pb.d.ts +++ /dev/null @@ -1,2307 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * @generated from protobuf message google.protobuf.FileDescriptorSet - */ -export interface FileDescriptorSet { - /** - * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1; - */ - file: FileDescriptorProto[]; -} -/** - * Describes a complete .proto file. - * - * @generated from protobuf message google.protobuf.FileDescriptorProto - */ -export interface FileDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: optional string package = 2; - */ - package?: string; - /** - * Names of files imported by this file. - * - * @generated from protobuf field: repeated string dependency = 3; - */ - dependency: string[]; - /** - * Indexes of the public imported files in the dependency list above. - * - * @generated from protobuf field: repeated int32 public_dependency = 10; - */ - public_dependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - * - * @generated from protobuf field: repeated int32 weak_dependency = 11; - */ - weak_dependency: number[]; - /** - * All top-level definitions in this file. - * - * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4; - */ - message_type: DescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; - */ - enum_type: EnumDescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6; - */ - service: ServiceDescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from protobuf field: optional google.protobuf.FileOptions options = 8; - */ - options?: FileOptions; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - * - * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9; - */ - source_code_info?: SourceCodeInfo; - /** - * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". - * - * @generated from protobuf field: optional string syntax = 12; - */ - syntax?: string; - /** - * The edition of the proto file. - * - * @generated from protobuf field: optional google.protobuf.Edition edition = 14; - */ - edition?: Edition; -} -/** - * Describes a message type. - * - * @generated from protobuf message google.protobuf.DescriptorProto - */ -export interface DescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2; - */ - field: FieldDescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6; - */ - extension: FieldDescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3; - */ - nested_type: DescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; - */ - enum_type: EnumDescriptorProto[]; - /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - extension_range: DescriptorProto_ExtensionRange[]; - /** - * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - oneof_decl: OneofDescriptorProto[]; - /** - * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7; - */ - options?: MessageOptions; - /** - * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - reserved_range: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - * - * @generated from protobuf field: repeated string reserved_name = 10; - */ - reserved_name: string[]; -} -/** - * @generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange - */ -export interface DescriptorProto_ExtensionRange { - /** - * @generated from protobuf field: optional int32 start = 1; - */ - start?: number; - /** - * @generated from protobuf field: optional int32 end = 2; - */ - end?: number; - /** - * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3; - */ - options?: ExtensionRangeOptions; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - * - * @generated from protobuf message google.protobuf.DescriptorProto.ReservedRange - */ -export interface DescriptorProto_ReservedRange { - /** - * @generated from protobuf field: optional int32 start = 1; - */ - start?: number; - /** - * @generated from protobuf field: optional int32 end = 2; - */ - end?: number; -} -/** - * @generated from protobuf message google.protobuf.ExtensionRangeOptions - */ -export interface ExtensionRangeOptions { - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration: ExtensionRangeOptions_Declaration[]; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; - */ - verification?: ExtensionRangeOptions_VerificationState; -} -/** - * @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -export interface ExtensionRangeOptions_Declaration { - /** - * The extension number declared within the extension range. - * - * @generated from protobuf field: optional int32 number = 1; - */ - number?: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from protobuf field: optional string full_name = 2; - */ - full_name?: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from protobuf field: optional string type = 3; - */ - type?: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from protobuf field: optional bool reserved = 5; - */ - reserved?: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from protobuf field: optional bool repeated = 6; - */ - repeated?: boolean; -} -/** - * The verification state of the extension range. - * - * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export declare enum ExtensionRangeOptions_VerificationState { - /** - * All the extensions of the range must be declared. - * - * @generated from protobuf enum value: DECLARATION = 0; - */ - DECLARATION = 0, - /** - * @generated from protobuf enum value: UNVERIFIED = 1; - */ - UNVERIFIED = 1 -} -/** - * Describes a field within a message. - * - * @generated from protobuf message google.protobuf.FieldDescriptorProto - */ -export interface FieldDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: optional int32 number = 3; - */ - number?: number; - /** - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4; - */ - label?: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - * - * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5; - */ - type?: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - * - * @generated from protobuf field: optional string type_name = 6; - */ - type_name?: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - * - * @generated from protobuf field: optional string extendee = 2; - */ - extendee?: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - * - * @generated from protobuf field: optional string default_value = 7; - */ - default_value?: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - * - * @generated from protobuf field: optional int32 oneof_index = 9; - */ - oneof_index?: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - * - * @generated from protobuf field: optional string json_name = 10; - */ - json_name?: string; - /** - * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8; - */ - options?: FieldOptions; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - * - * @generated from protobuf field: optional bool proto3_optional = 17; - */ - proto3_optional?: boolean; -} -/** - * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type - */ -export declare enum FieldDescriptorProto_Type { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - UNSPECIFIED$ = 0, - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from protobuf enum value: TYPE_DOUBLE = 1; - */ - TYPE_DOUBLE = 1, - /** - * @generated from protobuf enum value: TYPE_FLOAT = 2; - */ - TYPE_FLOAT = 2, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from protobuf enum value: TYPE_INT64 = 3; - */ - TYPE_INT64 = 3, - /** - * @generated from protobuf enum value: TYPE_UINT64 = 4; - */ - TYPE_UINT64 = 4, - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from protobuf enum value: TYPE_INT32 = 5; - */ - TYPE_INT32 = 5, - /** - * @generated from protobuf enum value: TYPE_FIXED64 = 6; - */ - TYPE_FIXED64 = 6, - /** - * @generated from protobuf enum value: TYPE_FIXED32 = 7; - */ - TYPE_FIXED32 = 7, - /** - * @generated from protobuf enum value: TYPE_BOOL = 8; - */ - TYPE_BOOL = 8, - /** - * @generated from protobuf enum value: TYPE_STRING = 9; - */ - TYPE_STRING = 9, - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from protobuf enum value: TYPE_GROUP = 10; - */ - TYPE_GROUP = 10, - /** - * Length-delimited aggregate. - * - * @generated from protobuf enum value: TYPE_MESSAGE = 11; - */ - TYPE_MESSAGE = 11, - /** - * New in version 2. - * - * @generated from protobuf enum value: TYPE_BYTES = 12; - */ - TYPE_BYTES = 12, - /** - * @generated from protobuf enum value: TYPE_UINT32 = 13; - */ - TYPE_UINT32 = 13, - /** - * @generated from protobuf enum value: TYPE_ENUM = 14; - */ - TYPE_ENUM = 14, - /** - * @generated from protobuf enum value: TYPE_SFIXED32 = 15; - */ - TYPE_SFIXED32 = 15, - /** - * @generated from protobuf enum value: TYPE_SFIXED64 = 16; - */ - TYPE_SFIXED64 = 16, - /** - * Uses ZigZag encoding. - * - * @generated from protobuf enum value: TYPE_SINT32 = 17; - */ - TYPE_SINT32 = 17, - /** - * Uses ZigZag encoding. - * - * @generated from protobuf enum value: TYPE_SINT64 = 18; - */ - TYPE_SINT64 = 18 -} -/** - * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label - */ -export declare enum FieldDescriptorProto_Label { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - UNSPECIFIED$ = 0, - /** - * 0 is reserved for errors - * - * @generated from protobuf enum value: LABEL_OPTIONAL = 1; - */ - LABEL_OPTIONAL = 1, - /** - * @generated from protobuf enum value: LABEL_REPEATED = 3; - */ - LABEL_REPEATED = 3, - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from protobuf enum value: LABEL_REQUIRED = 2; - */ - LABEL_REQUIRED = 2 -} -/** - * Describes a oneof. - * - * @generated from protobuf message google.protobuf.OneofDescriptorProto - */ -export interface OneofDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2; - */ - options?: OneofOptions; -} -/** - * Describes an enum type. - * - * @generated from protobuf message google.protobuf.EnumDescriptorProto - */ -export interface EnumDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2; - */ - value: EnumValueDescriptorProto[]; - /** - * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3; - */ - options?: EnumOptions; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - * - * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - */ - reserved_range: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - * - * @generated from protobuf field: repeated string reserved_name = 5; - */ - reserved_name: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - * - * @generated from protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** - * @generated from protobuf field: optional int32 start = 1; - */ - start?: number; - /** - * @generated from protobuf field: optional int32 end = 2; - */ - end?: number; -} -/** - * Describes a value within an enum. - * - * @generated from protobuf message google.protobuf.EnumValueDescriptorProto - */ -export interface EnumValueDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: optional int32 number = 2; - */ - number?: number; - /** - * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3; - */ - options?: EnumValueOptions; -} -/** - * Describes a service. - * - * @generated from protobuf message google.protobuf.ServiceDescriptorProto - */ -export interface ServiceDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2; - */ - method: MethodDescriptorProto[]; - /** - * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3; - */ - options?: ServiceOptions; -} -/** - * Describes a method of a service. - * - * @generated from protobuf message google.protobuf.MethodDescriptorProto - */ -export interface MethodDescriptorProto { - /** - * @generated from protobuf field: optional string name = 1; - */ - name?: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - * - * @generated from protobuf field: optional string input_type = 2; - */ - input_type?: string; - /** - * @generated from protobuf field: optional string output_type = 3; - */ - output_type?: string; - /** - * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4; - */ - options?: MethodOptions; - /** - * Identifies if client streams multiple client messages - * - * @generated from protobuf field: optional bool client_streaming = 5; - */ - client_streaming?: boolean; - /** - * Identifies if server streams multiple server messages - * - * @generated from protobuf field: optional bool server_streaming = 6; - */ - server_streaming?: boolean; -} -/** - * @generated from protobuf message google.protobuf.FileOptions - */ -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - * - * @generated from protobuf field: optional string java_package = 1; - */ - java_package?: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - * - * @generated from protobuf field: optional string java_outer_classname = 8; - */ - java_outer_classname?: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - * - * @generated from protobuf field: optional bool java_multiple_files = 10; - */ - java_multiple_files?: boolean; - /** - * This option does nothing. - * - * @deprecated - * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - */ - java_generate_equals_and_hash?: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - * - * @generated from protobuf field: optional bool java_string_check_utf8 = 27; - */ - java_string_check_utf8?: boolean; - /** - * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; - */ - optimize_for?: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - * - * @generated from protobuf field: optional string go_package = 11; - */ - go_package?: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - * - * @generated from protobuf field: optional bool cc_generic_services = 16; - */ - cc_generic_services?: boolean; - /** - * @generated from protobuf field: optional bool java_generic_services = 17; - */ - java_generic_services?: boolean; - /** - * @generated from protobuf field: optional bool py_generic_services = 18; - */ - py_generic_services?: boolean; - /** - * @generated from protobuf field: optional bool php_generic_services = 42; - */ - php_generic_services?: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - * - * @generated from protobuf field: optional bool deprecated = 23; - */ - deprecated?: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - * - * @generated from protobuf field: optional bool cc_enable_arenas = 31; - */ - cc_enable_arenas?: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - * - * @generated from protobuf field: optional string objc_class_prefix = 36; - */ - objc_class_prefix?: string; - /** - * Namespace for generated classes; defaults to the package. - * - * @generated from protobuf field: optional string csharp_namespace = 37; - */ - csharp_namespace?: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - * - * @generated from protobuf field: optional string swift_prefix = 39; - */ - swift_prefix?: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - * - * @generated from protobuf field: optional string php_class_prefix = 40; - */ - php_class_prefix?: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - * - * @generated from protobuf field: optional string php_namespace = 41; - */ - php_namespace?: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - * - * @generated from protobuf field: optional string php_metadata_namespace = 44; - */ - php_metadata_namespace?: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - * - * @generated from protobuf field: optional string ruby_package = 45; - */ - ruby_package?: string; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from protobuf enum google.protobuf.FileOptions.OptimizeMode - */ -export declare enum FileOptions_OptimizeMode { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - UNSPECIFIED$ = 0, - /** - * Generate complete code for parsing, serialization, - * - * @generated from protobuf enum value: SPEED = 1; - */ - SPEED = 1, - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from protobuf enum value: CODE_SIZE = 2; - */ - CODE_SIZE = 2, - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from protobuf enum value: LITE_RUNTIME = 3; - */ - LITE_RUNTIME = 3 -} -/** - * @generated from protobuf message google.protobuf.MessageOptions - */ -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - * - * @generated from protobuf field: optional bool message_set_wire_format = 1; - */ - message_set_wire_format?: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - * - * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2; - */ - no_standard_descriptor_accessor?: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - * - * @generated from protobuf field: optional bool deprecated = 3; - */ - deprecated?: boolean; - /** - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * @generated from protobuf field: optional bool map_entry = 7; - */ - map_entry?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @deprecated - * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - */ - deprecated_legacy_json_field_conflicts?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.FieldOptions - */ -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release -- sorry, we'll try to include - * other types in a future version! - * - * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1; - */ - ctype?: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. - * - * @generated from protobuf field: optional bool packed = 2; - */ - packed?: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - * - * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6; - */ - jstype?: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. - * - * @generated from protobuf field: optional bool lazy = 5; - */ - lazy?: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - * - * @generated from protobuf field: optional bool unverified_lazy = 15; - */ - unverified_lazy?: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - * - * @generated from protobuf field: optional bool deprecated = 3; - */ - deprecated?: boolean; - /** - * For Google-internal migration only. Do not use. - * - * @generated from protobuf field: optional bool weak = 10; - */ - weak?: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from protobuf field: optional bool debug_redact = 16; - */ - debug_redact?: boolean; - /** - * @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention?: FieldOptions_OptionRetention; - /** - * @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets: FieldOptions_OptionTargetType[]; - /** - * @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - edition_defaults: FieldOptions_EditionDefault[]; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.FieldOptions.EditionDefault - */ -export interface FieldOptions_EditionDefault { - /** - * @generated from protobuf field: optional google.protobuf.Edition edition = 3; - */ - edition?: Edition; - /** - * @generated from protobuf field: optional string value = 2; - */ - value?: string; -} -/** - * @generated from protobuf enum google.protobuf.FieldOptions.CType - */ -export declare enum FieldOptions_CType { - /** - * Default mode. - * - * @generated from protobuf enum value: STRING = 0; - */ - STRING = 0, - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from protobuf enum value: CORD = 1; - */ - CORD = 1, - /** - * @generated from protobuf enum value: STRING_PIECE = 2; - */ - STRING_PIECE = 2 -} -/** - * @generated from protobuf enum google.protobuf.FieldOptions.JSType - */ -export declare enum FieldOptions_JSType { - /** - * Use the default type. - * - * @generated from protobuf enum value: JS_NORMAL = 0; - */ - JS_NORMAL = 0, - /** - * Use JavaScript strings. - * - * @generated from protobuf enum value: JS_STRING = 1; - */ - JS_STRING = 1, - /** - * Use JavaScript numbers. - * - * @generated from protobuf enum value: JS_NUMBER = 2; - */ - JS_NUMBER = 2 -} -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention - */ -export declare enum FieldOptions_OptionRetention { - /** - * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; - */ - RETENTION_UNKNOWN = 0, - /** - * @generated from protobuf enum value: RETENTION_RUNTIME = 1; - */ - RETENTION_RUNTIME = 1, - /** - * @generated from protobuf enum value: RETENTION_SOURCE = 2; - */ - RETENTION_SOURCE = 2 -} -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType - */ -export declare enum FieldOptions_OptionTargetType { - /** - * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; - */ - TARGET_TYPE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; - */ - TARGET_TYPE_FILE = 1, - /** - * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - TARGET_TYPE_EXTENSION_RANGE = 2, - /** - * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; - */ - TARGET_TYPE_MESSAGE = 3, - /** - * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; - */ - TARGET_TYPE_FIELD = 4, - /** - * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; - */ - TARGET_TYPE_ONEOF = 5, - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; - */ - TARGET_TYPE_ENUM = 6, - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - TARGET_TYPE_ENUM_ENTRY = 7, - /** - * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; - */ - TARGET_TYPE_SERVICE = 8, - /** - * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; - */ - TARGET_TYPE_METHOD = 9 -} -/** - * @generated from protobuf message google.protobuf.OneofOptions - */ -export interface OneofOptions { - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.EnumOptions - */ -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - * - * @generated from protobuf field: optional bool allow_alias = 2; - */ - allow_alias?: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - * - * @generated from protobuf field: optional bool deprecated = 3; - */ - deprecated?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @deprecated - * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - */ - deprecated_legacy_json_field_conflicts?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.EnumValueOptions - */ -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - * - * @generated from protobuf field: optional bool deprecated = 1; - */ - deprecated?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSet; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from protobuf field: optional bool debug_redact = 3; - */ - debug_redact?: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.ServiceOptions - */ -export interface ServiceOptions { - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSet; - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - * - * @generated from protobuf field: optional bool deprecated = 33; - */ - deprecated?: boolean; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * @generated from protobuf message google.protobuf.MethodOptions - */ -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - * - * @generated from protobuf field: optional bool deprecated = 33; - */ - deprecated?: boolean; - /** - * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; - */ - idempotency_level?: MethodOptions_IdempotencyLevel; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSet; - /** - * The parser stores options it doesn't recognize here. See above. - * - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - uninterpreted_option: UninterpretedOption[]; -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from protobuf enum google.protobuf.MethodOptions.IdempotencyLevel - */ -export declare enum MethodOptions_IdempotencyLevel { - /** - * @generated from protobuf enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - IDEMPOTENCY_UNKNOWN = 0, - /** - * implies idempotent - * - * @generated from protobuf enum value: NO_SIDE_EFFECTS = 1; - */ - NO_SIDE_EFFECTS = 1, - /** - * idempotent, but may have side effects - * - * @generated from protobuf enum value: IDEMPOTENT = 2; - */ - IDEMPOTENT = 2 -} -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - * - * @generated from protobuf message google.protobuf.UninterpretedOption - */ -export interface UninterpretedOption { - /** - * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; - */ - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - * - * @generated from protobuf field: optional string identifier_value = 3; - */ - identifier_value?: string; - /** - * @generated from protobuf field: optional uint64 positive_int_value = 4; - */ - positive_int_value?: bigint; - /** - * @generated from protobuf field: optional int64 negative_int_value = 5; - */ - negative_int_value?: bigint; - /** - * @generated from protobuf field: optional double double_value = 6; - */ - double_value?: number; - /** - * @generated from protobuf field: optional bytes string_value = 7; - */ - string_value?: Uint8Array; - /** - * @generated from protobuf field: optional string aggregate_value = 8; - */ - aggregate_value?: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - * - * @generated from protobuf message google.protobuf.UninterpretedOption.NamePart - */ -export interface UninterpretedOption_NamePart { - /** - * @generated from protobuf field: string name_part = 1; - */ - name_part: string; - /** - * @generated from protobuf field: bool is_extension = 2; - */ - is_extension: boolean; -} -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from protobuf message google.protobuf.FeatureSet - */ -export interface FeatureSet { - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - field_presence?: FeatureSet_FieldPresence; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enum_type?: FeatureSet_EnumType; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeated_field_encoding?: FeatureSet_RepeatedFieldEncoding; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8_validation?: FeatureSet_Utf8Validation; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - message_encoding?: FeatureSet_MessageEncoding; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - json_format?: FeatureSet_JsonFormat; -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence - */ -export declare enum FeatureSet_FieldPresence { - /** - * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FIELD_PRESENCE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: EXPLICIT = 1; - */ - EXPLICIT = 1, - /** - * @generated from protobuf enum value: IMPLICIT = 2; - */ - IMPLICIT = 2, - /** - * @generated from protobuf enum value: LEGACY_REQUIRED = 3; - */ - LEGACY_REQUIRED = 3 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.EnumType - */ -export declare enum FeatureSet_EnumType { - /** - * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; - */ - ENUM_TYPE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: OPEN = 1; - */ - OPEN = 1, - /** - * @generated from protobuf enum value: CLOSED = 2; - */ - CLOSED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export declare enum FeatureSet_RepeatedFieldEncoding { - /** - * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - /** - * @generated from protobuf enum value: PACKED = 1; - */ - PACKED = 1, - /** - * @generated from protobuf enum value: EXPANDED = 2; - */ - EXPANDED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation - */ -export declare enum FeatureSet_Utf8Validation { - /** - * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * @generated from protobuf enum value: NONE = 1; - */ - NONE = 1, - /** - * @generated from protobuf enum value: VERIFY = 2; - */ - VERIFY = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding - */ -export declare enum FeatureSet_MessageEncoding { - /** - * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - MESSAGE_ENCODING_UNKNOWN = 0, - /** - * @generated from protobuf enum value: LENGTH_PREFIXED = 1; - */ - LENGTH_PREFIXED = 1, - /** - * @generated from protobuf enum value: DELIMITED = 2; - */ - DELIMITED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat - */ -export declare enum FeatureSet_JsonFormat { - /** - * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; - */ - JSON_FORMAT_UNKNOWN = 0, - /** - * @generated from protobuf enum value: ALLOW = 1; - */ - ALLOW = 1, - /** - * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; - */ - LEGACY_BEST_EFFORT = 2 -} -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from protobuf message google.protobuf.FeatureSetDefaults - */ -export interface FeatureSetDefaults { - /** - * @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimum_edition?: Edition; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximum_edition?: Edition; -} -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export interface FeatureSetDefaults_FeatureSetEditionDefault { - /** - * @generated from protobuf field: optional google.protobuf.Edition edition = 3; - */ - edition?: Edition; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSet; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - * - * @generated from protobuf message google.protobuf.SourceCodeInfo - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - * - * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1; - */ - location: SourceCodeInfo_Location[]; -} -/** - * @generated from protobuf message google.protobuf.SourceCodeInfo.Location - */ -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition occurs. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - * - * @generated from protobuf field: repeated int32 span = 2 [packed = true]; - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. *\/ - * /* Block comment attached to - * * grault. *\/ - * optional int32 grault = 6; - * - * // ignored detached comments. - * - * @generated from protobuf field: optional string leading_comments = 3; - */ - leading_comments?: string; - /** - * @generated from protobuf field: optional string trailing_comments = 4; - */ - trailing_comments?: string; - /** - * @generated from protobuf field: repeated string leading_detached_comments = 6; - */ - leading_detached_comments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - * - * @generated from protobuf message google.protobuf.GeneratedCodeInfo - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - * - * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -/** - * @generated from protobuf message google.protobuf.GeneratedCodeInfo.Annotation - */ -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - * - * @generated from protobuf field: repeated int32 path = 1 [packed = true]; - */ - path: number[]; - /** - * Identifies the filesystem path to the original source .proto. - * - * @generated from protobuf field: optional string source_file = 2; - */ - source_file?: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - * - * @generated from protobuf field: optional int32 begin = 3; - */ - begin?: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - * - * @generated from protobuf field: optional int32 end = 4; - */ - end?: number; - /** - * @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic?: GeneratedCodeInfo_Annotation_Semantic; -} -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export declare enum GeneratedCodeInfo_Annotation_Semantic { - /** - * There is no effect or the effect is indescribable. - * - * @generated from protobuf enum value: NONE = 0; - */ - NONE = 0, - /** - * The element is set or otherwise mutated. - * - * @generated from protobuf enum value: SET = 1; - */ - SET = 1, - /** - * An alias to the element is returned. - * - * @generated from protobuf enum value: ALIAS = 2; - */ - ALIAS = 2 -} -/** - * The full set of known editions. - * - * @generated from protobuf enum google.protobuf.Edition - */ -export declare enum Edition { - /** - * A placeholder for an unknown edition value. - * - * @generated from protobuf enum value: EDITION_UNKNOWN = 0; - */ - EDITION_UNKNOWN = 0, - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from protobuf enum value: EDITION_PROTO2 = 998; - */ - EDITION_PROTO2 = 998, - /** - * @generated from protobuf enum value: EDITION_PROTO3 = 999; - */ - EDITION_PROTO3 = 999, - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from protobuf enum value: EDITION_2023 = 1000; - */ - EDITION_2023 = 1000, - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relyed on outside of tests. - * - * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; - */ - EDITION_1_TEST_ONLY = 1, - /** - * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; - */ - EDITION_2_TEST_ONLY = 2, - /** - * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; - */ - EDITION_99997_TEST_ONLY = 99997, - /** - * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; - */ - EDITION_99998_TEST_ONLY = 99998, - /** - * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; - */ - EDITION_99999_TEST_ONLY = 99999 -} -declare class FileDescriptorSet$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FileDescriptorSet; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorSet): FileDescriptorSet; - internalBinaryWrite(message: FileDescriptorSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FileDescriptorSet - */ -export declare const FileDescriptorSet: FileDescriptorSet$Type; -declare class FileDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FileDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorProto): FileDescriptorProto; - internalBinaryWrite(message: FileDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FileDescriptorProto - */ -export declare const FileDescriptorProto: FileDescriptorProto$Type; -declare class DescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): DescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto): DescriptorProto; - internalBinaryWrite(message: DescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto - */ -export declare const DescriptorProto: DescriptorProto$Type; -declare class DescriptorProto_ExtensionRange$Type extends MessageType { - constructor(); - create(value?: PartialMessage): DescriptorProto_ExtensionRange; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRange; - internalBinaryWrite(message: DescriptorProto_ExtensionRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange - */ -export declare const DescriptorProto_ExtensionRange: DescriptorProto_ExtensionRange$Type; -declare class DescriptorProto_ReservedRange$Type extends MessageType { - constructor(); - create(value?: PartialMessage): DescriptorProto_ReservedRange; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ReservedRange): DescriptorProto_ReservedRange; - internalBinaryWrite(message: DescriptorProto_ReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange - */ -export declare const DescriptorProto_ReservedRange: DescriptorProto_ReservedRange$Type; -declare class ExtensionRangeOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): ExtensionRangeOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions): ExtensionRangeOptions; - internalBinaryWrite(message: ExtensionRangeOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions - */ -export declare const ExtensionRangeOptions: ExtensionRangeOptions$Type; -declare class ExtensionRangeOptions_Declaration$Type extends MessageType { - constructor(); - create(value?: PartialMessage): ExtensionRangeOptions_Declaration; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration; - internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -export declare const ExtensionRangeOptions_Declaration: ExtensionRangeOptions_Declaration$Type; -declare class FieldDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldDescriptorProto): FieldDescriptorProto; - internalBinaryWrite(message: FieldDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldDescriptorProto - */ -export declare const FieldDescriptorProto: FieldDescriptorProto$Type; -declare class OneofDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): OneofDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofDescriptorProto): OneofDescriptorProto; - internalBinaryWrite(message: OneofDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.OneofDescriptorProto - */ -export declare const OneofDescriptorProto: OneofDescriptorProto$Type; -declare class EnumDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto): EnumDescriptorProto; - internalBinaryWrite(message: EnumDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto - */ -export declare const EnumDescriptorProto: EnumDescriptorProto$Type; -declare class EnumDescriptorProto_EnumReservedRange$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumDescriptorProto_EnumReservedRange; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRange; - internalBinaryWrite(message: EnumDescriptorProto_EnumReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -export declare const EnumDescriptorProto_EnumReservedRange: EnumDescriptorProto_EnumReservedRange$Type; -declare class EnumValueDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumValueDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueDescriptorProto): EnumValueDescriptorProto; - internalBinaryWrite(message: EnumValueDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumValueDescriptorProto - */ -export declare const EnumValueDescriptorProto: EnumValueDescriptorProto$Type; -declare class ServiceDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): ServiceDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceDescriptorProto): ServiceDescriptorProto; - internalBinaryWrite(message: ServiceDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.ServiceDescriptorProto - */ -export declare const ServiceDescriptorProto: ServiceDescriptorProto$Type; -declare class MethodDescriptorProto$Type extends MessageType { - constructor(); - create(value?: PartialMessage): MethodDescriptorProto; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodDescriptorProto): MethodDescriptorProto; - internalBinaryWrite(message: MethodDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.MethodDescriptorProto - */ -export declare const MethodDescriptorProto: MethodDescriptorProto$Type; -declare class FileOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FileOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileOptions): FileOptions; - internalBinaryWrite(message: FileOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FileOptions - */ -export declare const FileOptions: FileOptions$Type; -declare class MessageOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): MessageOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageOptions): MessageOptions; - internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.MessageOptions - */ -export declare const MessageOptions: MessageOptions$Type; -declare class FieldOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions): FieldOptions; - internalBinaryWrite(message: FieldOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions - */ -export declare const FieldOptions: FieldOptions$Type; -declare class FieldOptions_EditionDefault$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldOptions_EditionDefault; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault; - internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault - */ -export declare const FieldOptions_EditionDefault: FieldOptions_EditionDefault$Type; -declare class OneofOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): OneofOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofOptions): OneofOptions; - internalBinaryWrite(message: OneofOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.OneofOptions - */ -export declare const OneofOptions: OneofOptions$Type; -declare class EnumOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumOptions): EnumOptions; - internalBinaryWrite(message: EnumOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumOptions - */ -export declare const EnumOptions: EnumOptions$Type; -declare class EnumValueOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): EnumValueOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueOptions): EnumValueOptions; - internalBinaryWrite(message: EnumValueOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumValueOptions - */ -export declare const EnumValueOptions: EnumValueOptions$Type; -declare class ServiceOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): ServiceOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceOptions): ServiceOptions; - internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.ServiceOptions - */ -export declare const ServiceOptions: ServiceOptions$Type; -declare class MethodOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): MethodOptions; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodOptions): MethodOptions; - internalBinaryWrite(message: MethodOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.MethodOptions - */ -export declare const MethodOptions: MethodOptions$Type; -declare class UninterpretedOption$Type extends MessageType { - constructor(); - create(value?: PartialMessage): UninterpretedOption; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption): UninterpretedOption; - internalBinaryWrite(message: UninterpretedOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.UninterpretedOption - */ -export declare const UninterpretedOption: UninterpretedOption$Type; -declare class UninterpretedOption_NamePart$Type extends MessageType { - constructor(); - create(value?: PartialMessage): UninterpretedOption_NamePart; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption_NamePart): UninterpretedOption_NamePart; - internalBinaryWrite(message: UninterpretedOption_NamePart, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart - */ -export declare const UninterpretedOption_NamePart: UninterpretedOption_NamePart$Type; -declare class FeatureSet$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSet; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet; - internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSet - */ -export declare const FeatureSet: FeatureSet$Type; -declare class FeatureSetDefaults$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSetDefaults; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults; - internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults - */ -export declare const FeatureSetDefaults: FeatureSetDefaults$Type; -declare class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSetDefaults_FeatureSetEditionDefault; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault; - internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export declare const FeatureSetDefaults_FeatureSetEditionDefault: FeatureSetDefaults_FeatureSetEditionDefault$Type; -declare class SourceCodeInfo$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SourceCodeInfo; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo): SourceCodeInfo; - internalBinaryWrite(message: SourceCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo - */ -export declare const SourceCodeInfo: SourceCodeInfo$Type; -declare class SourceCodeInfo_Location$Type extends MessageType { - constructor(); - create(value?: PartialMessage): SourceCodeInfo_Location; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo_Location): SourceCodeInfo_Location; - internalBinaryWrite(message: SourceCodeInfo_Location, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo.Location - */ -export declare const SourceCodeInfo_Location: SourceCodeInfo_Location$Type; -declare class GeneratedCodeInfo$Type extends MessageType { - constructor(); - create(value?: PartialMessage): GeneratedCodeInfo; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo): GeneratedCodeInfo; - internalBinaryWrite(message: GeneratedCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo - */ -export declare const GeneratedCodeInfo: GeneratedCodeInfo$Type; -declare class GeneratedCodeInfo_Annotation$Type extends MessageType { - constructor(); - create(value?: PartialMessage): GeneratedCodeInfo_Annotation; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_Annotation; - internalBinaryWrite(message: GeneratedCodeInfo_Annotation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation - */ -export declare const GeneratedCodeInfo_Annotation: GeneratedCodeInfo_Annotation$Type; -export {}; diff --git a/src/google/protobuf/descriptor_pb.js b/src/google/protobuf/descriptor_pb.js deleted file mode 100644 index fd855be0..00000000 --- a/src/google/protobuf/descriptor_pb.js +++ /dev/null @@ -1,3056 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.Edition = exports.GeneratedCodeInfo_Annotation_Semantic = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.ExtensionRangeOptions_VerificationState = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -/** - * The verification state of the extension range. - * - * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -var ExtensionRangeOptions_VerificationState; -(function (ExtensionRangeOptions_VerificationState) { - /** - * All the extensions of the range must be declared. - * - * @generated from protobuf enum value: DECLARATION = 0; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION"; - /** - * @generated from protobuf enum value: UNVERIFIED = 1; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED"; -})(ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = {})); -/** - * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type - */ -var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; - /** - * 0 is reserved for errors. - * Order is weird for historical reasons. - * - * @generated from protobuf enum value: TYPE_DOUBLE = 1; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - /** - * @generated from protobuf enum value: TYPE_FLOAT = 2; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - * - * @generated from protobuf enum value: TYPE_INT64 = 3; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; - /** - * @generated from protobuf enum value: TYPE_UINT64 = 4; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - * - * @generated from protobuf enum value: TYPE_INT32 = 5; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; - /** - * @generated from protobuf enum value: TYPE_FIXED64 = 6; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - /** - * @generated from protobuf enum value: TYPE_FIXED32 = 7; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - /** - * @generated from protobuf enum value: TYPE_BOOL = 8; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - /** - * @generated from protobuf enum value: TYPE_STRING = 9; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. - * - * @generated from protobuf enum value: TYPE_GROUP = 10; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - /** - * Length-delimited aggregate. - * - * @generated from protobuf enum value: TYPE_MESSAGE = 11; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** - * New in version 2. - * - * @generated from protobuf enum value: TYPE_BYTES = 12; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - /** - * @generated from protobuf enum value: TYPE_UINT32 = 13; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - /** - * @generated from protobuf enum value: TYPE_ENUM = 14; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - /** - * @generated from protobuf enum value: TYPE_SFIXED32 = 15; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - /** - * @generated from protobuf enum value: TYPE_SFIXED64 = 16; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** - * Uses ZigZag encoding. - * - * @generated from protobuf enum value: TYPE_SINT32 = 17; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** - * Uses ZigZag encoding. - * - * @generated from protobuf enum value: TYPE_SINT64 = 18; - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; -})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {})); -/** - * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label - */ -var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; - /** - * 0 is reserved for errors - * - * @generated from protobuf enum value: LABEL_OPTIONAL = 1; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; - /** - * @generated from protobuf enum value: LABEL_REPEATED = 3; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from protobuf enum value: LABEL_REQUIRED = 2; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; -})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {})); -/** - * Generated classes can be optimized for speed or code size. - * - * @generated from protobuf enum google.protobuf.FileOptions.OptimizeMode - */ -var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** - * @generated synthetic value - protobuf-ts requires all enums to have a 0 value - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNSPECIFIED$"] = 0] = "UNSPECIFIED$"; - /** - * Generate complete code for parsing, serialization, - * - * @generated from protobuf enum value: SPEED = 1; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** - * etc. - * - * Use ReflectionOps to implement these methods. - * - * @generated from protobuf enum value: CODE_SIZE = 2; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** - * Generate code using MessageLite and the lite runtime. - * - * @generated from protobuf enum value: LITE_RUNTIME = 3; - */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; -})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {})); -/** - * @generated from protobuf enum google.protobuf.FieldOptions.CType - */ -var FieldOptions_CType; -(function (FieldOptions_CType) { - /** - * Default mode. - * - * @generated from protobuf enum value: STRING = 0; - */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * - * @generated from protobuf enum value: CORD = 1; - */ - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - /** - * @generated from protobuf enum value: STRING_PIECE = 2; - */ - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; -})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {})); -/** - * @generated from protobuf enum google.protobuf.FieldOptions.JSType - */ -var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** - * Use the default type. - * - * @generated from protobuf enum value: JS_NORMAL = 0; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** - * Use JavaScript strings. - * - * @generated from protobuf enum value: JS_STRING = 1; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** - * Use JavaScript numbers. - * - * @generated from protobuf enum value: JS_NUMBER = 2; - */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; -})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {})); -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention - */ -var FieldOptions_OptionRetention; -(function (FieldOptions_OptionRetention) { - /** - * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN"; - /** - * @generated from protobuf enum value: RETENTION_RUNTIME = 1; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME"; - /** - * @generated from protobuf enum value: RETENTION_SOURCE = 2; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE"; -})(FieldOptions_OptionRetention = exports.FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = {})); -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType - */ -var FieldOptions_OptionTargetType; -(function (FieldOptions_OptionTargetType) { - /** - * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN"; - /** - * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY"; - /** - * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD"; -})(FieldOptions_OptionTargetType = exports.FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = {})); -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - * - * @generated from protobuf enum google.protobuf.MethodOptions.IdempotencyLevel - */ -var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - /** - * @generated from protobuf enum value: IDEMPOTENCY_UNKNOWN = 0; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** - * implies idempotent - * - * @generated from protobuf enum value: NO_SIDE_EFFECTS = 1; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** - * idempotent, but may have side effects - * - * @generated from protobuf enum value: IDEMPOTENT = 2; - */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; -})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence - */ -var FeatureSet_FieldPresence; -(function (FeatureSet_FieldPresence) { - /** - * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN"; - /** - * @generated from protobuf enum value: EXPLICIT = 1; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT"; - /** - * @generated from protobuf enum value: IMPLICIT = 2; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT"; - /** - * @generated from protobuf enum value: LEGACY_REQUIRED = 3; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED"; -})(FeatureSet_FieldPresence = exports.FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.EnumType - */ -var FeatureSet_EnumType; -(function (FeatureSet_EnumType) { - /** - * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; - */ - FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN"; - /** - * @generated from protobuf enum value: OPEN = 1; - */ - FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN"; - /** - * @generated from protobuf enum value: CLOSED = 2; - */ - FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED"; -})(FeatureSet_EnumType = exports.FeatureSet_EnumType || (exports.FeatureSet_EnumType = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -var FeatureSet_RepeatedFieldEncoding; -(function (FeatureSet_RepeatedFieldEncoding) { - /** - * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN"; - /** - * @generated from protobuf enum value: PACKED = 1; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED"; - /** - * @generated from protobuf enum value: EXPANDED = 2; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED"; -})(FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation - */ -var FeatureSet_Utf8Validation; -(function (FeatureSet_Utf8Validation) { - /** - * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * @generated from protobuf enum value: NONE = 1; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 1] = "NONE"; - /** - * @generated from protobuf enum value: VERIFY = 2; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY"; -})(FeatureSet_Utf8Validation = exports.FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding - */ -var FeatureSet_MessageEncoding; -(function (FeatureSet_MessageEncoding) { - /** - * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN"; - /** - * @generated from protobuf enum value: LENGTH_PREFIXED = 1; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED"; - /** - * @generated from protobuf enum value: DELIMITED = 2; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED"; -})(FeatureSet_MessageEncoding = exports.FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat - */ -var FeatureSet_JsonFormat; -(function (FeatureSet_JsonFormat) { - /** - * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN"; - /** - * @generated from protobuf enum value: ALLOW = 1; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW"; - /** - * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT"; -})(FeatureSet_JsonFormat = exports.FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = {})); -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -var GeneratedCodeInfo_Annotation_Semantic; -(function (GeneratedCodeInfo_Annotation_Semantic) { - /** - * There is no effect or the effect is indescribable. - * - * @generated from protobuf enum value: NONE = 0; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE"; - /** - * The element is set or otherwise mutated. - * - * @generated from protobuf enum value: SET = 1; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET"; - /** - * An alias to the element is returned. - * - * @generated from protobuf enum value: ALIAS = 2; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS"; -})(GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = {})); -/** - * The full set of known editions. - * - * @generated from protobuf enum google.protobuf.Edition - */ -var Edition; -(function (Edition) { - /** - * A placeholder for an unknown edition value. - * - * @generated from protobuf enum value: EDITION_UNKNOWN = 0; - */ - Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN"; - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from protobuf enum value: EDITION_PROTO2 = 998; - */ - Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2"; - /** - * @generated from protobuf enum value: EDITION_PROTO3 = 999; - */ - Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3"; - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from protobuf enum value: EDITION_2023 = 1000; - */ - Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023"; - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relyed on outside of tests. - * - * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; - */ - Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; - */ - Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; - */ - Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; - */ - Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; - */ - Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY"; -})(Edition = exports.Edition || (exports.Edition = {})); -// @generated message type with reflection information, may provide speed optimized methods -class FileDescriptorSet$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FileDescriptorSet", [ - { no: 1, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FileDescriptorProto } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.file = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.FileDescriptorProto file */ 1: - message.file.push(exports.FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.FileDescriptorProto file = 1; */ - for (let i = 0; i < message.file.length; i++) - exports.FileDescriptorProto.internalBinaryWrite(message.file[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FileDescriptorSet - */ -exports.FileDescriptorSet = new FileDescriptorSet$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FileDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FileDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 10, name: "public_dependency", kind: "scalar", localName: "public_dependency", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 11, name: "weak_dependency", kind: "scalar", localName: "weak_dependency", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 4, name: "message_type", kind: "message", localName: "message_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto }, - { no: 5, name: "enum_type", kind: "message", localName: "enum_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto }, - { no: 6, name: "service", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.ServiceDescriptorProto }, - { no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, - { no: 8, name: "options", kind: "message", T: () => exports.FileOptions }, - { no: 9, name: "source_code_info", kind: "message", localName: "source_code_info", T: () => exports.SourceCodeInfo }, - { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.dependency = []; - message.public_dependency = []; - message.weak_dependency = []; - message.message_type = []; - message.enum_type = []; - message.service = []; - message.extension = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* optional string package */ 2: - message.package = reader.string(); - break; - case /* repeated string dependency */ 3: - message.dependency.push(reader.string()); - break; - case /* repeated int32 public_dependency */ 10: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.public_dependency.push(reader.int32()); - else - message.public_dependency.push(reader.int32()); - break; - case /* repeated int32 weak_dependency */ 11: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.weak_dependency.push(reader.int32()); - else - message.weak_dependency.push(reader.int32()); - break; - case /* repeated google.protobuf.DescriptorProto message_type */ 4: - message.message_type.push(exports.DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 5: - message.enum_type.push(exports.EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.ServiceDescriptorProto service */ 6: - message.service.push(exports.ServiceDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.FieldDescriptorProto extension */ 7: - message.extension.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.FileOptions options */ 8: - message.options = exports.FileOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - case /* optional google.protobuf.SourceCodeInfo source_code_info */ 9: - message.source_code_info = exports.SourceCodeInfo.internalBinaryRead(reader, reader.uint32(), options, message.source_code_info); - break; - case /* optional string syntax */ 12: - message.syntax = reader.string(); - break; - case /* optional google.protobuf.Edition edition */ 14: - message.edition = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* optional string package = 2; */ - if (message.package !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.package); - /* repeated string dependency = 3; */ - for (let i = 0; i < message.dependency.length; i++) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.dependency[i]); - /* repeated int32 public_dependency = 10; */ - for (let i = 0; i < message.public_dependency.length; i++) - writer.tag(10, runtime_1.WireType.Varint).int32(message.public_dependency[i]); - /* repeated int32 weak_dependency = 11; */ - for (let i = 0; i < message.weak_dependency.length; i++) - writer.tag(11, runtime_1.WireType.Varint).int32(message.weak_dependency[i]); - /* repeated google.protobuf.DescriptorProto message_type = 4; */ - for (let i = 0; i < message.message_type.length; i++) - exports.DescriptorProto.internalBinaryWrite(message.message_type[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.EnumDescriptorProto enum_type = 5; */ - for (let i = 0; i < message.enum_type.length; i++) - exports.EnumDescriptorProto.internalBinaryWrite(message.enum_type[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.ServiceDescriptorProto service = 6; */ - for (let i = 0; i < message.service.length; i++) - exports.ServiceDescriptorProto.internalBinaryWrite(message.service[i], writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.FieldDescriptorProto extension = 7; */ - for (let i = 0; i < message.extension.length; i++) - exports.FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FileOptions options = 8; */ - if (message.options) - exports.FileOptions.internalBinaryWrite(message.options, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.SourceCodeInfo source_code_info = 9; */ - if (message.source_code_info) - exports.SourceCodeInfo.internalBinaryWrite(message.source_code_info, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional string syntax = 12; */ - if (message.syntax !== undefined) - writer.tag(12, runtime_1.WireType.LengthDelimited).string(message.syntax); - /* optional google.protobuf.Edition edition = 14; */ - if (message.edition !== undefined) - writer.tag(14, runtime_1.WireType.Varint).int32(message.edition); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FileDescriptorProto - */ -exports.FileDescriptorProto = new FileDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.DescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "field", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, - { no: 6, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldDescriptorProto }, - { no: 3, name: "nested_type", kind: "message", localName: "nested_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto }, - { no: 4, name: "enum_type", kind: "message", localName: "enum_type", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto }, - { no: 5, name: "extension_range", kind: "message", localName: "extension_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto_ExtensionRange }, - { no: 8, name: "oneof_decl", kind: "message", localName: "oneof_decl", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.OneofDescriptorProto }, - { no: 7, name: "options", kind: "message", T: () => exports.MessageOptions }, - { no: 9, name: "reserved_range", kind: "message", localName: "reserved_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.DescriptorProto_ReservedRange }, - { no: 10, name: "reserved_name", kind: "scalar", localName: "reserved_name", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.field = []; - message.extension = []; - message.nested_type = []; - message.enum_type = []; - message.extension_range = []; - message.oneof_decl = []; - message.reserved_range = []; - message.reserved_name = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* repeated google.protobuf.FieldDescriptorProto field */ 2: - message.field.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.FieldDescriptorProto extension */ 6: - message.extension.push(exports.FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.DescriptorProto nested_type */ 3: - message.nested_type.push(exports.DescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 4: - message.enum_type.push(exports.EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range */ 5: - message.extension_range.push(exports.DescriptorProto_ExtensionRange.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.OneofDescriptorProto oneof_decl */ 8: - message.oneof_decl.push(exports.OneofDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.MessageOptions options */ 7: - message.options = exports.MessageOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - case /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range */ 9: - message.reserved_range.push(exports.DescriptorProto_ReservedRange.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated string reserved_name */ 10: - message.reserved_name.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* repeated google.protobuf.FieldDescriptorProto field = 2; */ - for (let i = 0; i < message.field.length; i++) - exports.FieldDescriptorProto.internalBinaryWrite(message.field[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.FieldDescriptorProto extension = 6; */ - for (let i = 0; i < message.extension.length; i++) - exports.FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.DescriptorProto nested_type = 3; */ - for (let i = 0; i < message.nested_type.length; i++) - exports.DescriptorProto.internalBinaryWrite(message.nested_type[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.EnumDescriptorProto enum_type = 4; */ - for (let i = 0; i < message.enum_type.length; i++) - exports.EnumDescriptorProto.internalBinaryWrite(message.enum_type[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ - for (let i = 0; i < message.extension_range.length; i++) - exports.DescriptorProto_ExtensionRange.internalBinaryWrite(message.extension_range[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ - for (let i = 0; i < message.oneof_decl.length; i++) - exports.OneofDescriptorProto.internalBinaryWrite(message.oneof_decl[i], writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.MessageOptions options = 7; */ - if (message.options) - exports.MessageOptions.internalBinaryWrite(message.options, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ - for (let i = 0; i < message.reserved_range.length; i++) - exports.DescriptorProto_ReservedRange.internalBinaryWrite(message.reserved_range[i], writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated string reserved_name = 10; */ - for (let i = 0; i < message.reserved_name.length; i++) - writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.reserved_name[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto - */ -exports.DescriptorProto = new DescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DescriptorProto_ExtensionRange$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.DescriptorProto.ExtensionRange", [ - { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 3, name: "options", kind: "message", T: () => exports.ExtensionRangeOptions } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 start */ 1: - message.start = reader.int32(); - break; - case /* optional int32 end */ 2: - message.end = reader.int32(); - break; - case /* optional google.protobuf.ExtensionRangeOptions options */ 3: - message.options = exports.ExtensionRangeOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 start = 1; */ - if (message.start !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.start); - /* optional int32 end = 2; */ - if (message.end !== undefined) - writer.tag(2, runtime_1.WireType.Varint).int32(message.end); - /* optional google.protobuf.ExtensionRangeOptions options = 3; */ - if (message.options) - exports.ExtensionRangeOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange - */ -exports.DescriptorProto_ExtensionRange = new DescriptorProto_ExtensionRange$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class DescriptorProto_ReservedRange$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.DescriptorProto.ReservedRange", [ - { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 start */ 1: - message.start = reader.int32(); - break; - case /* optional int32 end */ 2: - message.end = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 start = 1; */ - if (message.start !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.start); - /* optional int32 end = 2; */ - if (message.end !== undefined) - writer.tag(2, runtime_1.WireType.Varint).int32(message.end); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange - */ -exports.DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ExtensionRangeOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.ExtensionRangeOptions", [ - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption }, - { no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.ExtensionRangeOptions_Declaration }, - { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - message.declaration = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2: - message.declaration.push(exports.ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.FeatureSet features */ 50: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification */ 3: - message.verification = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ - for (let i = 0; i < message.declaration.length; i++) - exports.ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FeatureSet features = 50; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(50, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; */ - if (message.verification !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.verification); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions - */ -exports.ExtensionRangeOptions = new ExtensionRangeOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ExtensionRangeOptions_Declaration$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.ExtensionRangeOptions.Declaration", [ - { no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "full_name", kind: "scalar", localName: "full_name", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 number */ 1: - message.number = reader.int32(); - break; - case /* optional string full_name */ 2: - message.full_name = reader.string(); - break; - case /* optional string type */ 3: - message.type = reader.string(); - break; - case /* optional bool reserved */ 5: - message.reserved = reader.bool(); - break; - case /* optional bool repeated */ 6: - message.repeated = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 number = 1; */ - if (message.number !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.number); - /* optional string full_name = 2; */ - if (message.full_name !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.full_name); - /* optional string type = 3; */ - if (message.type !== undefined) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.type); - /* optional bool reserved = 5; */ - if (message.reserved !== undefined) - writer.tag(5, runtime_1.WireType.Varint).bool(message.reserved); - /* optional bool repeated = 6; */ - if (message.repeated !== undefined) - writer.tag(6, runtime_1.WireType.Varint).bool(message.repeated); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -exports.ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FieldDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FieldDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 4, name: "label", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Label", FieldDescriptorProto_Label] }, - { no: 5, name: "type", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Type", FieldDescriptorProto_Type] }, - { no: 6, name: "type_name", kind: "scalar", localName: "type_name", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "extendee", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "default_value", kind: "scalar", localName: "default_value", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "oneof_index", kind: "scalar", localName: "oneof_index", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 10, name: "json_name", kind: "scalar", localName: "json_name", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 8, name: "options", kind: "message", T: () => exports.FieldOptions }, - { no: 17, name: "proto3_optional", kind: "scalar", localName: "proto3_optional", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* optional int32 number */ 3: - message.number = reader.int32(); - break; - case /* optional google.protobuf.FieldDescriptorProto.Label label */ 4: - message.label = reader.int32(); - break; - case /* optional google.protobuf.FieldDescriptorProto.Type type */ 5: - message.type = reader.int32(); - break; - case /* optional string type_name */ 6: - message.type_name = reader.string(); - break; - case /* optional string extendee */ 2: - message.extendee = reader.string(); - break; - case /* optional string default_value */ 7: - message.default_value = reader.string(); - break; - case /* optional int32 oneof_index */ 9: - message.oneof_index = reader.int32(); - break; - case /* optional string json_name */ 10: - message.json_name = reader.string(); - break; - case /* optional google.protobuf.FieldOptions options */ 8: - message.options = exports.FieldOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - case /* optional bool proto3_optional */ 17: - message.proto3_optional = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* optional int32 number = 3; */ - if (message.number !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.number); - /* optional google.protobuf.FieldDescriptorProto.Label label = 4; */ - if (message.label !== undefined) - writer.tag(4, runtime_1.WireType.Varint).int32(message.label); - /* optional google.protobuf.FieldDescriptorProto.Type type = 5; */ - if (message.type !== undefined) - writer.tag(5, runtime_1.WireType.Varint).int32(message.type); - /* optional string type_name = 6; */ - if (message.type_name !== undefined) - writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.type_name); - /* optional string extendee = 2; */ - if (message.extendee !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.extendee); - /* optional string default_value = 7; */ - if (message.default_value !== undefined) - writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.default_value); - /* optional int32 oneof_index = 9; */ - if (message.oneof_index !== undefined) - writer.tag(9, runtime_1.WireType.Varint).int32(message.oneof_index); - /* optional string json_name = 10; */ - if (message.json_name !== undefined) - writer.tag(10, runtime_1.WireType.LengthDelimited).string(message.json_name); - /* optional google.protobuf.FieldOptions options = 8; */ - if (message.options) - exports.FieldOptions.internalBinaryWrite(message.options, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional bool proto3_optional = 17; */ - if (message.proto3_optional !== undefined) - writer.tag(17, runtime_1.WireType.Varint).bool(message.proto3_optional); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldDescriptorProto - */ -exports.FieldDescriptorProto = new FieldDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class OneofDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.OneofDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "options", kind: "message", T: () => exports.OneofOptions } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* optional google.protobuf.OneofOptions options */ 2: - message.options = exports.OneofOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* optional google.protobuf.OneofOptions options = 2; */ - if (message.options) - exports.OneofOptions.internalBinaryWrite(message.options, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.OneofDescriptorProto - */ -exports.OneofDescriptorProto = new OneofDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.EnumDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "value", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumValueDescriptorProto }, - { no: 3, name: "options", kind: "message", T: () => exports.EnumOptions }, - { no: 4, name: "reserved_range", kind: "message", localName: "reserved_range", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.EnumDescriptorProto_EnumReservedRange }, - { no: 5, name: "reserved_name", kind: "scalar", localName: "reserved_name", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.value = []; - message.reserved_range = []; - message.reserved_name = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* repeated google.protobuf.EnumValueDescriptorProto value */ 2: - message.value.push(exports.EnumValueDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.EnumOptions options */ 3: - message.options = exports.EnumOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - case /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range */ 4: - message.reserved_range.push(exports.EnumDescriptorProto_EnumReservedRange.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated string reserved_name */ 5: - message.reserved_name.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* repeated google.protobuf.EnumValueDescriptorProto value = 2; */ - for (let i = 0; i < message.value.length; i++) - exports.EnumValueDescriptorProto.internalBinaryWrite(message.value[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.EnumOptions options = 3; */ - if (message.options) - exports.EnumOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */ - for (let i = 0; i < message.reserved_range.length; i++) - exports.EnumDescriptorProto_EnumReservedRange.internalBinaryWrite(message.reserved_range[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated string reserved_name = 5; */ - for (let i = 0; i < message.reserved_name.length; i++) - writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.reserved_name[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto - */ -exports.EnumDescriptorProto = new EnumDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumDescriptorProto_EnumReservedRange$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.EnumDescriptorProto.EnumReservedRange", [ - { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 start */ 1: - message.start = reader.int32(); - break; - case /* optional int32 end */ 2: - message.end = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 start = 1; */ - if (message.start !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.start); - /* optional int32 end = 2; */ - if (message.end !== undefined) - writer.tag(2, runtime_1.WireType.Varint).int32(message.end); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange - */ -exports.EnumDescriptorProto_EnumReservedRange = new EnumDescriptorProto_EnumReservedRange$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumValueDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.EnumValueDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 3, name: "options", kind: "message", T: () => exports.EnumValueOptions } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* optional int32 number */ 2: - message.number = reader.int32(); - break; - case /* optional google.protobuf.EnumValueOptions options */ 3: - message.options = exports.EnumValueOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* optional int32 number = 2; */ - if (message.number !== undefined) - writer.tag(2, runtime_1.WireType.Varint).int32(message.number); - /* optional google.protobuf.EnumValueOptions options = 3; */ - if (message.options) - exports.EnumValueOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumValueDescriptorProto - */ -exports.EnumValueDescriptorProto = new EnumValueDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ServiceDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.ServiceDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "method", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.MethodDescriptorProto }, - { no: 3, name: "options", kind: "message", T: () => exports.ServiceOptions } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.method = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* repeated google.protobuf.MethodDescriptorProto method */ 2: - message.method.push(exports.MethodDescriptorProto.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.ServiceOptions options */ 3: - message.options = exports.ServiceOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* repeated google.protobuf.MethodDescriptorProto method = 2; */ - for (let i = 0; i < message.method.length; i++) - exports.MethodDescriptorProto.internalBinaryWrite(message.method[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.ServiceOptions options = 3; */ - if (message.options) - exports.ServiceOptions.internalBinaryWrite(message.options, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.ServiceDescriptorProto - */ -exports.ServiceDescriptorProto = new ServiceDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class MethodDescriptorProto$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.MethodDescriptorProto", [ - { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "input_type", kind: "scalar", localName: "input_type", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "output_type", kind: "scalar", localName: "output_type", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "options", kind: "message", T: () => exports.MethodOptions }, - { no: 5, name: "client_streaming", kind: "scalar", localName: "client_streaming", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "server_streaming", kind: "scalar", localName: "server_streaming", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string name */ 1: - message.name = reader.string(); - break; - case /* optional string input_type */ 2: - message.input_type = reader.string(); - break; - case /* optional string output_type */ 3: - message.output_type = reader.string(); - break; - case /* optional google.protobuf.MethodOptions options */ 4: - message.options = exports.MethodOptions.internalBinaryRead(reader, reader.uint32(), options, message.options); - break; - case /* optional bool client_streaming */ 5: - message.client_streaming = reader.bool(); - break; - case /* optional bool server_streaming */ 6: - message.server_streaming = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string name = 1; */ - if (message.name !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* optional string input_type = 2; */ - if (message.input_type !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.input_type); - /* optional string output_type = 3; */ - if (message.output_type !== undefined) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.output_type); - /* optional google.protobuf.MethodOptions options = 4; */ - if (message.options) - exports.MethodOptions.internalBinaryWrite(message.options, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional bool client_streaming = 5; */ - if (message.client_streaming !== undefined) - writer.tag(5, runtime_1.WireType.Varint).bool(message.client_streaming); - /* optional bool server_streaming = 6; */ - if (message.server_streaming !== undefined) - writer.tag(6, runtime_1.WireType.Varint).bool(message.server_streaming); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.MethodDescriptorProto - */ -exports.MethodDescriptorProto = new MethodDescriptorProto$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FileOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FileOptions", [ - { no: 1, name: "java_package", kind: "scalar", localName: "java_package", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 8, name: "java_outer_classname", kind: "scalar", localName: "java_outer_classname", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 10, name: "java_multiple_files", kind: "scalar", localName: "java_multiple_files", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", localName: "java_generate_equals_and_hash", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 27, name: "java_string_check_utf8", kind: "scalar", localName: "java_string_check_utf8", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 9, name: "optimize_for", kind: "enum", localName: "optimize_for", opt: true, T: () => ["google.protobuf.FileOptions.OptimizeMode", FileOptions_OptimizeMode] }, - { no: 11, name: "go_package", kind: "scalar", localName: "go_package", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 16, name: "cc_generic_services", kind: "scalar", localName: "cc_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 17, name: "java_generic_services", kind: "scalar", localName: "java_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 18, name: "py_generic_services", kind: "scalar", localName: "py_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 42, name: "php_generic_services", kind: "scalar", localName: "php_generic_services", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 31, name: "cc_enable_arenas", kind: "scalar", localName: "cc_enable_arenas", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 36, name: "objc_class_prefix", kind: "scalar", localName: "objc_class_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 37, name: "csharp_namespace", kind: "scalar", localName: "csharp_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 39, name: "swift_prefix", kind: "scalar", localName: "swift_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 40, name: "php_class_prefix", kind: "scalar", localName: "php_class_prefix", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 41, name: "php_namespace", kind: "scalar", localName: "php_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 44, name: "php_metadata_namespace", kind: "scalar", localName: "php_metadata_namespace", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 45, name: "ruby_package", kind: "scalar", localName: "ruby_package", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional string java_package */ 1: - message.java_package = reader.string(); - break; - case /* optional string java_outer_classname */ 8: - message.java_outer_classname = reader.string(); - break; - case /* optional bool java_multiple_files */ 10: - message.java_multiple_files = reader.bool(); - break; - case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true];*/ 20: - message.java_generate_equals_and_hash = reader.bool(); - break; - case /* optional bool java_string_check_utf8 */ 27: - message.java_string_check_utf8 = reader.bool(); - break; - case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for */ 9: - message.optimize_for = reader.int32(); - break; - case /* optional string go_package */ 11: - message.go_package = reader.string(); - break; - case /* optional bool cc_generic_services */ 16: - message.cc_generic_services = reader.bool(); - break; - case /* optional bool java_generic_services */ 17: - message.java_generic_services = reader.bool(); - break; - case /* optional bool py_generic_services */ 18: - message.py_generic_services = reader.bool(); - break; - case /* optional bool php_generic_services */ 42: - message.php_generic_services = reader.bool(); - break; - case /* optional bool deprecated */ 23: - message.deprecated = reader.bool(); - break; - case /* optional bool cc_enable_arenas */ 31: - message.cc_enable_arenas = reader.bool(); - break; - case /* optional string objc_class_prefix */ 36: - message.objc_class_prefix = reader.string(); - break; - case /* optional string csharp_namespace */ 37: - message.csharp_namespace = reader.string(); - break; - case /* optional string swift_prefix */ 39: - message.swift_prefix = reader.string(); - break; - case /* optional string php_class_prefix */ 40: - message.php_class_prefix = reader.string(); - break; - case /* optional string php_namespace */ 41: - message.php_namespace = reader.string(); - break; - case /* optional string php_metadata_namespace */ 44: - message.php_metadata_namespace = reader.string(); - break; - case /* optional string ruby_package */ 45: - message.ruby_package = reader.string(); - break; - case /* optional google.protobuf.FeatureSet features */ 50: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional string java_package = 1; */ - if (message.java_package !== undefined) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.java_package); - /* optional string java_outer_classname = 8; */ - if (message.java_outer_classname !== undefined) - writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.java_outer_classname); - /* optional bool java_multiple_files = 10; */ - if (message.java_multiple_files !== undefined) - writer.tag(10, runtime_1.WireType.Varint).bool(message.java_multiple_files); - /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ - if (message.java_generate_equals_and_hash !== undefined) - writer.tag(20, runtime_1.WireType.Varint).bool(message.java_generate_equals_and_hash); - /* optional bool java_string_check_utf8 = 27; */ - if (message.java_string_check_utf8 !== undefined) - writer.tag(27, runtime_1.WireType.Varint).bool(message.java_string_check_utf8); - /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; */ - if (message.optimize_for !== undefined) - writer.tag(9, runtime_1.WireType.Varint).int32(message.optimize_for); - /* optional string go_package = 11; */ - if (message.go_package !== undefined) - writer.tag(11, runtime_1.WireType.LengthDelimited).string(message.go_package); - /* optional bool cc_generic_services = 16; */ - if (message.cc_generic_services !== undefined) - writer.tag(16, runtime_1.WireType.Varint).bool(message.cc_generic_services); - /* optional bool java_generic_services = 17; */ - if (message.java_generic_services !== undefined) - writer.tag(17, runtime_1.WireType.Varint).bool(message.java_generic_services); - /* optional bool py_generic_services = 18; */ - if (message.py_generic_services !== undefined) - writer.tag(18, runtime_1.WireType.Varint).bool(message.py_generic_services); - /* optional bool php_generic_services = 42; */ - if (message.php_generic_services !== undefined) - writer.tag(42, runtime_1.WireType.Varint).bool(message.php_generic_services); - /* optional bool deprecated = 23; */ - if (message.deprecated !== undefined) - writer.tag(23, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional bool cc_enable_arenas = 31; */ - if (message.cc_enable_arenas !== undefined) - writer.tag(31, runtime_1.WireType.Varint).bool(message.cc_enable_arenas); - /* optional string objc_class_prefix = 36; */ - if (message.objc_class_prefix !== undefined) - writer.tag(36, runtime_1.WireType.LengthDelimited).string(message.objc_class_prefix); - /* optional string csharp_namespace = 37; */ - if (message.csharp_namespace !== undefined) - writer.tag(37, runtime_1.WireType.LengthDelimited).string(message.csharp_namespace); - /* optional string swift_prefix = 39; */ - if (message.swift_prefix !== undefined) - writer.tag(39, runtime_1.WireType.LengthDelimited).string(message.swift_prefix); - /* optional string php_class_prefix = 40; */ - if (message.php_class_prefix !== undefined) - writer.tag(40, runtime_1.WireType.LengthDelimited).string(message.php_class_prefix); - /* optional string php_namespace = 41; */ - if (message.php_namespace !== undefined) - writer.tag(41, runtime_1.WireType.LengthDelimited).string(message.php_namespace); - /* optional string php_metadata_namespace = 44; */ - if (message.php_metadata_namespace !== undefined) - writer.tag(44, runtime_1.WireType.LengthDelimited).string(message.php_metadata_namespace); - /* optional string ruby_package = 45; */ - if (message.ruby_package !== undefined) - writer.tag(45, runtime_1.WireType.LengthDelimited).string(message.ruby_package); - /* optional google.protobuf.FeatureSet features = 50; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(50, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FileOptions - */ -exports.FileOptions = new FileOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class MessageOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.MessageOptions", [ - { no: 1, name: "message_set_wire_format", kind: "scalar", localName: "message_set_wire_format", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", localName: "no_standard_descriptor_accessor", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 7, name: "map_entry", kind: "scalar", localName: "map_entry", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", localName: "deprecated_legacy_json_field_conflicts", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 12, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool message_set_wire_format */ 1: - message.message_set_wire_format = reader.bool(); - break; - case /* optional bool no_standard_descriptor_accessor */ 2: - message.no_standard_descriptor_accessor = reader.bool(); - break; - case /* optional bool deprecated */ 3: - message.deprecated = reader.bool(); - break; - case /* optional bool map_entry */ 7: - message.map_entry = reader.bool(); - break; - case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];*/ 11: - message.deprecated_legacy_json_field_conflicts = reader.bool(); - break; - case /* optional google.protobuf.FeatureSet features */ 12: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool message_set_wire_format = 1; */ - if (message.message_set_wire_format !== undefined) - writer.tag(1, runtime_1.WireType.Varint).bool(message.message_set_wire_format); - /* optional bool no_standard_descriptor_accessor = 2; */ - if (message.no_standard_descriptor_accessor !== undefined) - writer.tag(2, runtime_1.WireType.Varint).bool(message.no_standard_descriptor_accessor); - /* optional bool deprecated = 3; */ - if (message.deprecated !== undefined) - writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional bool map_entry = 7; */ - if (message.map_entry !== undefined) - writer.tag(7, runtime_1.WireType.Varint).bool(message.map_entry); - /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */ - if (message.deprecated_legacy_json_field_conflicts !== undefined) - writer.tag(11, runtime_1.WireType.Varint).bool(message.deprecated_legacy_json_field_conflicts); - /* optional google.protobuf.FeatureSet features = 12; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.MessageOptions - */ -exports.MessageOptions = new MessageOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FieldOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FieldOptions", [ - { no: 1, name: "ctype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.CType", FieldOptions_CType] }, - { no: 2, name: "packed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "jstype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.JSType", FieldOptions_JSType] }, - { no: 5, name: "lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 15, name: "unverified_lazy", kind: "scalar", localName: "unverified_lazy", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 16, name: "debug_redact", kind: "scalar", localName: "debug_redact", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] }, - { no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] }, - { no: 20, name: "edition_defaults", kind: "message", localName: "edition_defaults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FieldOptions_EditionDefault }, - { no: 21, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.targets = []; - message.edition_defaults = []; - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.FieldOptions.CType ctype */ 1: - message.ctype = reader.int32(); - break; - case /* optional bool packed */ 2: - message.packed = reader.bool(); - break; - case /* optional google.protobuf.FieldOptions.JSType jstype */ 6: - message.jstype = reader.int32(); - break; - case /* optional bool lazy */ 5: - message.lazy = reader.bool(); - break; - case /* optional bool unverified_lazy */ 15: - message.unverified_lazy = reader.bool(); - break; - case /* optional bool deprecated */ 3: - message.deprecated = reader.bool(); - break; - case /* optional bool weak */ 10: - message.weak = reader.bool(); - break; - case /* optional bool debug_redact */ 16: - message.debug_redact = reader.bool(); - break; - case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17: - message.retention = reader.int32(); - break; - case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.targets.push(reader.int32()); - else - message.targets.push(reader.int32()); - break; - case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20: - message.edition_defaults.push(exports.FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.FeatureSet features */ 21: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FieldOptions.CType ctype = 1; */ - if (message.ctype !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.ctype); - /* optional bool packed = 2; */ - if (message.packed !== undefined) - writer.tag(2, runtime_1.WireType.Varint).bool(message.packed); - /* optional google.protobuf.FieldOptions.JSType jstype = 6; */ - if (message.jstype !== undefined) - writer.tag(6, runtime_1.WireType.Varint).int32(message.jstype); - /* optional bool lazy = 5; */ - if (message.lazy !== undefined) - writer.tag(5, runtime_1.WireType.Varint).bool(message.lazy); - /* optional bool unverified_lazy = 15; */ - if (message.unverified_lazy !== undefined) - writer.tag(15, runtime_1.WireType.Varint).bool(message.unverified_lazy); - /* optional bool deprecated = 3; */ - if (message.deprecated !== undefined) - writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional bool weak = 10; */ - if (message.weak !== undefined) - writer.tag(10, runtime_1.WireType.Varint).bool(message.weak); - /* optional bool debug_redact = 16; */ - if (message.debug_redact !== undefined) - writer.tag(16, runtime_1.WireType.Varint).bool(message.debug_redact); - /* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ - if (message.retention !== undefined) - writer.tag(17, runtime_1.WireType.Varint).int32(message.retention); - /* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ - for (let i = 0; i < message.targets.length; i++) - writer.tag(19, runtime_1.WireType.Varint).int32(message.targets[i]); - /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ - for (let i = 0; i < message.edition_defaults.length; i++) - exports.FieldOptions_EditionDefault.internalBinaryWrite(message.edition_defaults[i], writer.tag(20, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FeatureSet features = 21; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(21, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions - */ -exports.FieldOptions = new FieldOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FieldOptions_EditionDefault$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FieldOptions.EditionDefault", [ - { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Edition edition */ 3: - message.edition = reader.int32(); - break; - case /* optional string value */ 2: - message.value = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Edition edition = 3; */ - if (message.edition !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.edition); - /* optional string value = 2; */ - if (message.value !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.value); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault - */ -exports.FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class OneofOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.OneofOptions", [ - { no: 1, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.FeatureSet features */ 1: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet features = 1; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.OneofOptions - */ -exports.OneofOptions = new OneofOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.EnumOptions", [ - { no: 2, name: "allow_alias", kind: "scalar", localName: "allow_alias", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", localName: "deprecated_legacy_json_field_conflicts", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 7, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool allow_alias */ 2: - message.allow_alias = reader.bool(); - break; - case /* optional bool deprecated */ 3: - message.deprecated = reader.bool(); - break; - case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];*/ 6: - message.deprecated_legacy_json_field_conflicts = reader.bool(); - break; - case /* optional google.protobuf.FeatureSet features */ 7: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool allow_alias = 2; */ - if (message.allow_alias !== undefined) - writer.tag(2, runtime_1.WireType.Varint).bool(message.allow_alias); - /* optional bool deprecated = 3; */ - if (message.deprecated !== undefined) - writer.tag(3, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */ - if (message.deprecated_legacy_json_field_conflicts !== undefined) - writer.tag(6, runtime_1.WireType.Varint).bool(message.deprecated_legacy_json_field_conflicts); - /* optional google.protobuf.FeatureSet features = 7; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumOptions - */ -exports.EnumOptions = new EnumOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class EnumValueOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.EnumValueOptions", [ - { no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 3, name: "debug_redact", kind: "scalar", localName: "debug_redact", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool deprecated */ 1: - message.deprecated = reader.bool(); - break; - case /* optional google.protobuf.FeatureSet features */ 2: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional bool debug_redact */ 3: - message.debug_redact = reader.bool(); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool deprecated = 1; */ - if (message.deprecated !== undefined) - writer.tag(1, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional google.protobuf.FeatureSet features = 2; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional bool debug_redact = 3; */ - if (message.debug_redact !== undefined) - writer.tag(3, runtime_1.WireType.Varint).bool(message.debug_redact); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.EnumValueOptions - */ -exports.EnumValueOptions = new EnumValueOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class ServiceOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.ServiceOptions", [ - { no: 34, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.FeatureSet features */ 34: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional bool deprecated */ 33: - message.deprecated = reader.bool(); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet features = 34; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(34, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional bool deprecated = 33; */ - if (message.deprecated !== undefined) - writer.tag(33, runtime_1.WireType.Varint).bool(message.deprecated); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.ServiceOptions - */ -exports.ServiceOptions = new ServiceOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class MethodOptions$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.MethodOptions", [ - { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 34, name: "idempotency_level", kind: "enum", localName: "idempotency_level", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] }, - { no: 35, name: "features", kind: "message", T: () => exports.FeatureSet }, - { no: 999, name: "uninterpreted_option", kind: "message", localName: "uninterpreted_option", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uninterpreted_option = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional bool deprecated */ 33: - message.deprecated = reader.bool(); - break; - case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34: - message.idempotency_level = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet features */ 35: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: - message.uninterpreted_option.push(exports.UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional bool deprecated = 33; */ - if (message.deprecated !== undefined) - writer.tag(33, runtime_1.WireType.Varint).bool(message.deprecated); - /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ - if (message.idempotency_level !== undefined) - writer.tag(34, runtime_1.WireType.Varint).int32(message.idempotency_level); - /* optional google.protobuf.FeatureSet features = 35; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(35, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ - for (let i = 0; i < message.uninterpreted_option.length; i++) - exports.UninterpretedOption.internalBinaryWrite(message.uninterpreted_option[i], writer.tag(999, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.MethodOptions - */ -exports.MethodOptions = new MethodOptions$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UninterpretedOption$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.UninterpretedOption", [ - { no: 2, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UninterpretedOption_NamePart }, - { no: 3, name: "identifier_value", kind: "scalar", localName: "identifier_value", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "positive_int_value", kind: "scalar", localName: "positive_int_value", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 5, name: "negative_int_value", kind: "scalar", localName: "negative_int_value", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 6, name: "double_value", kind: "scalar", localName: "double_value", opt: true, T: 1 /*ScalarType.DOUBLE*/ }, - { no: 7, name: "string_value", kind: "scalar", localName: "string_value", opt: true, T: 12 /*ScalarType.BYTES*/ }, - { no: 8, name: "aggregate_value", kind: "scalar", localName: "aggregate_value", opt: true, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.UninterpretedOption.NamePart name */ 2: - message.name.push(exports.UninterpretedOption_NamePart.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional string identifier_value */ 3: - message.identifier_value = reader.string(); - break; - case /* optional uint64 positive_int_value */ 4: - message.positive_int_value = reader.uint64().toBigInt(); - break; - case /* optional int64 negative_int_value */ 5: - message.negative_int_value = reader.int64().toBigInt(); - break; - case /* optional double double_value */ 6: - message.double_value = reader.double(); - break; - case /* optional bytes string_value */ 7: - message.string_value = reader.bytes(); - break; - case /* optional string aggregate_value */ 8: - message.aggregate_value = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.UninterpretedOption.NamePart name = 2; */ - for (let i = 0; i < message.name.length; i++) - exports.UninterpretedOption_NamePart.internalBinaryWrite(message.name[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional string identifier_value = 3; */ - if (message.identifier_value !== undefined) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.identifier_value); - /* optional uint64 positive_int_value = 4; */ - if (message.positive_int_value !== undefined) - writer.tag(4, runtime_1.WireType.Varint).uint64(message.positive_int_value); - /* optional int64 negative_int_value = 5; */ - if (message.negative_int_value !== undefined) - writer.tag(5, runtime_1.WireType.Varint).int64(message.negative_int_value); - /* optional double double_value = 6; */ - if (message.double_value !== undefined) - writer.tag(6, runtime_1.WireType.Bit64).double(message.double_value); - /* optional bytes string_value = 7; */ - if (message.string_value !== undefined) - writer.tag(7, runtime_1.WireType.LengthDelimited).bytes(message.string_value); - /* optional string aggregate_value = 8; */ - if (message.aggregate_value !== undefined) - writer.tag(8, runtime_1.WireType.LengthDelimited).string(message.aggregate_value); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.UninterpretedOption - */ -exports.UninterpretedOption = new UninterpretedOption$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class UninterpretedOption_NamePart$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.UninterpretedOption.NamePart", [ - { no: 1, name: "name_part", kind: "scalar", localName: "name_part", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "is_extension", kind: "scalar", localName: "is_extension", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name_part = ""; - message.is_extension = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name_part */ 1: - message.name_part = reader.string(); - break; - case /* bool is_extension */ 2: - message.is_extension = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name_part = 1; */ - if (message.name_part !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name_part); - /* bool is_extension = 2; */ - if (message.is_extension !== false) - writer.tag(2, runtime_1.WireType.Varint).bool(message.is_extension); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart - */ -exports.UninterpretedOption_NamePart = new UninterpretedOption_NamePart$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FeatureSet$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FeatureSet", [ - { no: 1, name: "field_presence", kind: "enum", localName: "field_presence", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] }, - { no: 2, name: "enum_type", kind: "enum", localName: "enum_type", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] }, - { no: 3, name: "repeated_field_encoding", kind: "enum", localName: "repeated_field_encoding", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] }, - { no: 4, name: "utf8_validation", kind: "enum", localName: "utf8_validation", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] }, - { no: 5, name: "message_encoding", kind: "enum", localName: "message_encoding", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] }, - { no: 6, name: "json_format", kind: "enum", localName: "json_format", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1: - message.field_presence = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2: - message.enum_type = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3: - message.repeated_field_encoding = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4: - message.utf8_validation = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5: - message.message_encoding = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6: - message.json_format = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ - if (message.field_presence !== undefined) - writer.tag(1, runtime_1.WireType.Varint).int32(message.field_presence); - /* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ - if (message.enum_type !== undefined) - writer.tag(2, runtime_1.WireType.Varint).int32(message.enum_type); - /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ - if (message.repeated_field_encoding !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.repeated_field_encoding); - /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ - if (message.utf8_validation !== undefined) - writer.tag(4, runtime_1.WireType.Varint).int32(message.utf8_validation); - /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ - if (message.message_encoding !== undefined) - writer.tag(5, runtime_1.WireType.Varint).int32(message.message_encoding); - /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ - if (message.json_format !== undefined) - writer.tag(6, runtime_1.WireType.Varint).int32(message.json_format); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSet - */ -exports.FeatureSet = new FeatureSet$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FeatureSetDefaults$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FeatureSetDefaults", [ - { no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.FeatureSetDefaults_FeatureSetEditionDefault }, - { no: 4, name: "minimum_edition", kind: "enum", localName: "minimum_edition", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 5, name: "maximum_edition", kind: "enum", localName: "maximum_edition", opt: true, T: () => ["google.protobuf.Edition", Edition] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.defaults = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1: - message.defaults.push(exports.FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.Edition minimum_edition */ 4: - message.minimum_edition = reader.int32(); - break; - case /* optional google.protobuf.Edition maximum_edition */ 5: - message.maximum_edition = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ - for (let i = 0; i < message.defaults.length; i++) - exports.FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.Edition minimum_edition = 4; */ - if (message.minimum_edition !== undefined) - writer.tag(4, runtime_1.WireType.Varint).int32(message.minimum_edition); - /* optional google.protobuf.Edition maximum_edition = 5; */ - if (message.maximum_edition !== undefined) - writer.tag(5, runtime_1.WireType.Varint).int32(message.maximum_edition); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults - */ -exports.FeatureSetDefaults = new FeatureSetDefaults$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FeatureSetDefaults_FeatureSetEditionDefault$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [ - { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Edition edition */ 3: - message.edition = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet features */ 2: - message.features = exports.FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Edition edition = 3; */ - if (message.edition !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.edition); - /* optional google.protobuf.FeatureSet features = 2; */ - if (message.features) - exports.FeatureSet.internalBinaryWrite(message.features, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -exports.FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SourceCodeInfo$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.SourceCodeInfo", [ - { no: 1, name: "location", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.SourceCodeInfo_Location } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.location = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.SourceCodeInfo.Location location */ 1: - message.location.push(exports.SourceCodeInfo_Location.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.SourceCodeInfo.Location location = 1; */ - for (let i = 0; i < message.location.length; i++) - exports.SourceCodeInfo_Location.internalBinaryWrite(message.location[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo - */ -exports.SourceCodeInfo = new SourceCodeInfo$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class SourceCodeInfo_Location$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.SourceCodeInfo.Location", [ - { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "span", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 3, name: "leading_comments", kind: "scalar", localName: "leading_comments", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "trailing_comments", kind: "scalar", localName: "trailing_comments", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "leading_detached_comments", kind: "scalar", localName: "leading_detached_comments", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.path = []; - message.span = []; - message.leading_detached_comments = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated int32 path = 1 [packed = true];*/ 1: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.path.push(reader.int32()); - else - message.path.push(reader.int32()); - break; - case /* repeated int32 span = 2 [packed = true];*/ 2: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.span.push(reader.int32()); - else - message.span.push(reader.int32()); - break; - case /* optional string leading_comments */ 3: - message.leading_comments = reader.string(); - break; - case /* optional string trailing_comments */ 4: - message.trailing_comments = reader.string(); - break; - case /* repeated string leading_detached_comments */ 6: - message.leading_detached_comments.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated int32 path = 1 [packed = true]; */ - if (message.path.length) { - writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.path.length; i++) - writer.int32(message.path[i]); - writer.join(); - } - /* repeated int32 span = 2 [packed = true]; */ - if (message.span.length) { - writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.span.length; i++) - writer.int32(message.span[i]); - writer.join(); - } - /* optional string leading_comments = 3; */ - if (message.leading_comments !== undefined) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.leading_comments); - /* optional string trailing_comments = 4; */ - if (message.trailing_comments !== undefined) - writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.trailing_comments); - /* repeated string leading_detached_comments = 6; */ - for (let i = 0; i < message.leading_detached_comments.length; i++) - writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.leading_detached_comments[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo.Location - */ -exports.SourceCodeInfo_Location = new SourceCodeInfo_Location$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GeneratedCodeInfo$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.GeneratedCodeInfo", [ - { no: 1, name: "annotation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.GeneratedCodeInfo_Annotation } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.annotation = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation */ 1: - message.annotation.push(exports.GeneratedCodeInfo_Annotation.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ - for (let i = 0; i < message.annotation.length; i++) - exports.GeneratedCodeInfo_Annotation.internalBinaryWrite(message.annotation[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo - */ -exports.GeneratedCodeInfo = new GeneratedCodeInfo$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class GeneratedCodeInfo_Annotation$Type extends runtime_4.MessageType { - constructor() { - super("google.protobuf.GeneratedCodeInfo.Annotation", [ - { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "source_file", kind: "scalar", localName: "source_file", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "begin", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 5, name: "semantic", kind: "enum", opt: true, T: () => ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.path = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated int32 path = 1 [packed = true];*/ 1: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.path.push(reader.int32()); - else - message.path.push(reader.int32()); - break; - case /* optional string source_file */ 2: - message.source_file = reader.string(); - break; - case /* optional int32 begin */ 3: - message.begin = reader.int32(); - break; - case /* optional int32 end */ 4: - message.end = reader.int32(); - break; - case /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic */ 5: - message.semantic = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated int32 path = 1 [packed = true]; */ - if (message.path.length) { - writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.path.length; i++) - writer.int32(message.path[i]); - writer.join(); - } - /* optional string source_file = 2; */ - if (message.source_file !== undefined) - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.source_file); - /* optional int32 begin = 3; */ - if (message.begin !== undefined) - writer.tag(3, runtime_1.WireType.Varint).int32(message.begin); - /* optional int32 end = 4; */ - if (message.end !== undefined) - writer.tag(4, runtime_1.WireType.Varint).int32(message.end); - /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */ - if (message.semantic !== undefined) - writer.tag(5, runtime_1.WireType.Varint).int32(message.semantic); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation - */ -exports.GeneratedCodeInfo_Annotation = new GeneratedCodeInfo_Annotation$Type(); diff --git a/src/google/protobuf/duration_pb.d.ts b/src/google/protobuf/duration_pb.d.ts deleted file mode 100644 index d0aac685..00000000 --- a/src/google/protobuf/duration_pb.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import type { JsonValue } from "@protobuf-ts/runtime"; -import type { JsonReadOptions } from "@protobuf-ts/runtime"; -import type { JsonWriteOptions } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * A Duration represents a signed, fixed-length span of time represented - * as a count of seconds and fractions of seconds at nanosecond - * resolution. It is independent of any calendar and concepts like "day" - * or "month". It is related to Timestamp in that the difference between - * two Timestamp values is a Duration and it can be added or subtracted - * from a Timestamp. Range is approximately +-10,000 years. - * - * # Examples - * - * Example 1: Compute Duration from two Timestamps in pseudo code. - * - * Timestamp start = ...; - * Timestamp end = ...; - * Duration duration = ...; - * - * duration.seconds = end.seconds - start.seconds; - * duration.nanos = end.nanos - start.nanos; - * - * if (duration.seconds < 0 && duration.nanos > 0) { - * duration.seconds += 1; - * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { - * duration.seconds -= 1; - * duration.nanos += 1000000000; - * } - * - * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - * - * Timestamp start = ...; - * Duration duration = ...; - * Timestamp end = ...; - * - * end.seconds = start.seconds + duration.seconds; - * end.nanos = start.nanos + duration.nanos; - * - * if (end.nanos < 0) { - * end.seconds -= 1; - * end.nanos += 1000000000; - * } else if (end.nanos >= 1000000000) { - * end.seconds += 1; - * end.nanos -= 1000000000; - * } - * - * Example 3: Compute Duration from datetime.timedelta in Python. - * - * td = datetime.timedelta(days=3, minutes=10) - * duration = Duration() - * duration.FromTimedelta(td) - * - * # JSON Mapping - * - * In JSON format, the Duration type is encoded as a string rather than an - * object, where the string ends in the suffix "s" (indicating seconds) and - * is preceded by the number of seconds, with nanoseconds expressed as - * fractional seconds. For example, 3 seconds with 0 nanoseconds should be - * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - * microsecond should be expressed in JSON format as "3.000001s". - * - * - * @generated from protobuf message google.protobuf.Duration - */ -export interface Duration { - /** - * Signed seconds of the span of time. Must be from -315,576,000,000 - * to +315,576,000,000 inclusive. Note: these bounds are computed from: - * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - * - * @generated from protobuf field: int64 seconds = 1; - */ - seconds: bigint; - /** - * Signed fractions of a second at nanosecond resolution of the span - * of time. Durations less than one second are represented with a 0 - * `seconds` field and a positive or negative `nanos` field. For durations - * of one second or more, a non-zero value for the `nanos` field must be - * of the same sign as the `seconds` field. Must be from -999,999,999 - * to +999,999,999 inclusive. - * - * @generated from protobuf field: int32 nanos = 2; - */ - nanos: number; -} -declare class Duration$Type extends MessageType { - constructor(); - /** - * Encode `Duration` to JSON string like "3.000001s". - */ - internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue; - /** - * Decode `Duration` from JSON string like "3.000001s" - */ - internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration; - create(value?: PartialMessage): Duration; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration; - internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.Duration - */ -export declare const Duration: Duration$Type; -export {}; diff --git a/src/google/protobuf/duration_pb.js b/src/google/protobuf/duration_pb.js deleted file mode 100644 index 9be202f8..00000000 --- a/src/google/protobuf/duration_pb.js +++ /dev/null @@ -1,143 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Duration = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const runtime_5 = require("@protobuf-ts/runtime"); -const runtime_6 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class Duration$Type extends runtime_6.MessageType { - constructor() { - super("google.protobuf.Duration", [ - { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ } - ]); - } - /** - * Encode `Duration` to JSON string like "3.000001s". - */ - internalJsonWrite(message, options) { - let s = runtime_5.PbLong.from(message.seconds).toNumber(); - if (s > 315576000000 || s < -315576000000) - throw new Error("Duration value out of range."); - let text = message.seconds.toString(); - if (s === 0 && message.nanos < 0) - text = "-" + text; - if (message.nanos !== 0) { - let nanosStr = Math.abs(message.nanos).toString(); - nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr; - if (nanosStr.substring(3) === "000000") - nanosStr = nanosStr.substring(0, 3); - else if (nanosStr.substring(6) === "000") - nanosStr = nanosStr.substring(0, 6); - text += "." + nanosStr; - } - return text + "s"; - } - /** - * Decode `Duration` from JSON string like "3.000001s" - */ - internalJsonRead(json, options, target) { - if (typeof json !== "string") - throw new Error("Unable to parse Duration from JSON " + runtime_4.typeofJsonValue(json) + ". Expected string."); - let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/); - if (match === null) - throw new Error("Unable to parse Duration from JSON string. Invalid format."); - if (!target) - target = this.create(); - let [, sign, secs, nanos] = match; - let longSeconds = runtime_5.PbLong.from(sign + secs); - if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000) - throw new Error("Unable to parse Duration from JSON string. Value out of range."); - target.seconds = longSeconds.toBigInt(); - if (typeof nanos == "string") { - let nanosStr = sign + nanos + "0".repeat(9 - nanos.length); - target.nanos = parseInt(nanosStr); - } - return target; - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.seconds = 0n; - message.nanos = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* int64 seconds */ 1: - message.seconds = reader.int64().toBigInt(); - break; - case /* int32 nanos */ 2: - message.nanos = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* int64 seconds = 1; */ - if (message.seconds !== 0n) - writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds); - /* int32 nanos = 2; */ - if (message.nanos !== 0) - writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.Duration - */ -exports.Duration = new Duration$Type(); diff --git a/src/google/protobuf/timestamp_pb.d.ts b/src/google/protobuf/timestamp_pb.d.ts deleted file mode 100644 index d64151ea..00000000 --- a/src/google/protobuf/timestamp_pb.d.ts +++ /dev/null @@ -1,191 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import type { JsonValue } from "@protobuf-ts/runtime"; -import type { JsonReadOptions } from "@protobuf-ts/runtime"; -import type { JsonWriteOptions } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - * ) to obtain a formatter capable of generating timestamps in this format. - * - * - * @generated from protobuf message google.protobuf.Timestamp - */ -export interface Timestamp { - /** - * 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. - * - * @generated from protobuf field: int64 seconds = 1; - */ - seconds: bigint; - /** - * 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. - * - * @generated from protobuf field: int32 nanos = 2; - */ - nanos: number; -} -declare class Timestamp$Type extends MessageType { - constructor(); - /** - * Creates a new `Timestamp` for the current time. - */ - now(): Timestamp; - /** - * Converts a `Timestamp` to a JavaScript Date. - */ - toDate(message: Timestamp): Date; - /** - * Converts a JavaScript Date to a `Timestamp`. - */ - fromDate(date: Date): Timestamp; - /** - * In JSON format, the `Timestamp` type is encoded as a string - * in the RFC 3339 format. - */ - internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue; - /** - * In JSON format, the `Timestamp` type is encoded as a string - * in the RFC 3339 format. - */ - internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp; - create(value?: PartialMessage): Timestamp; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp; - internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.Timestamp - */ -export declare const Timestamp: Timestamp$Type; -export {}; diff --git a/src/google/protobuf/timestamp_pb.js b/src/google/protobuf/timestamp_pb.js deleted file mode 100644 index 926325a3..00000000 --- a/src/google/protobuf/timestamp_pb.js +++ /dev/null @@ -1,171 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const runtime_5 = require("@protobuf-ts/runtime"); -const runtime_6 = require("@protobuf-ts/runtime"); -// @generated message type with reflection information, may provide speed optimized methods -class Timestamp$Type extends runtime_6.MessageType { - constructor() { - super("google.protobuf.Timestamp", [ - { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ } - ]); - } - /** - * Creates a new `Timestamp` for the current time. - */ - now() { - const msg = this.create(); - const ms = Date.now(); - msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt(); - msg.nanos = (ms % 1000) * 1000000; - return msg; - } - /** - * Converts a `Timestamp` to a JavaScript Date. - */ - toDate(message) { - return new Date(runtime_5.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000)); - } - /** - * Converts a JavaScript Date to a `Timestamp`. - */ - fromDate(date) { - const msg = this.create(); - const ms = date.getTime(); - msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toBigInt(); - msg.nanos = (ms % 1000) * 1000000; - return msg; - } - /** - * In JSON format, the `Timestamp` type is encoded as a string - * in the RFC 3339 format. - */ - internalJsonWrite(message, options) { - let ms = runtime_5.PbLong.from(message.seconds).toNumber() * 1000; - if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) - throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."); - if (message.nanos < 0) - throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative."); - let z = "Z"; - if (message.nanos > 0) { - let nanosStr = (message.nanos + 1000000000).toString().substring(1); - if (nanosStr.substring(3) === "000000") - z = "." + nanosStr.substring(0, 3) + "Z"; - else if (nanosStr.substring(6) === "000") - z = "." + nanosStr.substring(0, 6) + "Z"; - else - z = "." + nanosStr + "Z"; - } - return new Date(ms).toISOString().replace(".000Z", z); - } - /** - * In JSON format, the `Timestamp` type is encoded as a string - * in the RFC 3339 format. - */ - internalJsonRead(json, options, target) { - if (typeof json !== "string") - throw new Error("Unable to parse Timestamp from JSON " + runtime_4.typeofJsonValue(json) + "."); - let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/); - if (!matches) - throw new Error("Unable to parse Timestamp from JSON. Invalid format."); - let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z")); - if (Number.isNaN(ms)) - throw new Error("Unable to parse Timestamp from JSON. Invalid value."); - if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z")) - throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive."); - if (!target) - target = this.create(); - target.seconds = runtime_5.PbLong.from(ms / 1000).toBigInt(); - target.nanos = 0; - if (matches[7]) - target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000); - return target; - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.seconds = 0n; - message.nanos = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* int64 seconds */ 1: - message.seconds = reader.int64().toBigInt(); - break; - case /* int32 nanos */ 2: - message.nanos = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* int64 seconds = 1; */ - if (message.seconds !== 0n) - writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds); - /* int32 nanos = 2; */ - if (message.nanos !== 0) - writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.Timestamp - */ -exports.Timestamp = new Timestamp$Type(); diff --git a/src/google/rpc/status_pb.d.ts b/src/google/rpc/status_pb.d.ts deleted file mode 100644 index 1d5354bb..00000000 --- a/src/google/rpc/status_pb.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2022 Google LLC -// -// 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. -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -import { Any } from "../protobuf/any_pb"; -/** - * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). Each `Status` message contains - * three pieces of data: error code, error message, and error details. - * - * You can find out more about this error model and how to work with it in the - * [API Design Guide](https://cloud.google.com/apis/design/errors). - * - * @generated from protobuf message google.rpc.Status - */ -export interface Status { - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * @generated from protobuf field: int32 code = 1; - */ - code: number; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * @generated from protobuf field: string message = 2; - */ - message: string; - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * @generated from protobuf field: repeated google.protobuf.Any details = 3; - */ - details: Any[]; -} -declare class Status$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Status; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Status): Status; - internalBinaryWrite(message: Status, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.rpc.Status - */ -export declare const Status: Status$Type; -export {}; diff --git a/src/google/rpc/status_pb.js b/src/google/rpc/status_pb.js deleted file mode 100644 index ace407ea..00000000 --- a/src/google/rpc/status_pb.js +++ /dev/null @@ -1,91 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// Copyright 2022 Google LLC -// -// 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. -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Status = void 0; -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const any_pb_1 = require("../protobuf/any_pb"); -// @generated message type with reflection information, may provide speed optimized methods -class Status$Type extends runtime_4.MessageType { - constructor() { - super("google.rpc.Status", [ - { no: 1, name: "code", kind: "scalar", T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "details", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => any_pb_1.Any } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.code = 0; - message.message = ""; - message.details = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* int32 code */ 1: - message.code = reader.int32(); - break; - case /* string message */ 2: - message.message = reader.string(); - break; - case /* repeated google.protobuf.Any details */ 3: - message.details.push(any_pb_1.Any.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* int32 code = 1; */ - if (message.code !== 0) - writer.tag(1, runtime_1.WireType.Varint).int32(message.code); - /* string message = 2; */ - if (message.message !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.message); - /* repeated google.protobuf.Any details = 3; */ - for (let i = 0; i < message.details.length; i++) - any_pb_1.Any.internalBinaryWrite(message.details[i], writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.rpc.Status - */ -exports.Status = new Status$Type(); diff --git a/src/google/rpc/status_pb2.py b/src/google/rpc/status_pb2.py new file mode 100644 index 00000000..bfa4ca19 --- /dev/null +++ b/src/google/rpc/status_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/rpc/status.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17google/rpc/status.proto\x12\ngoogle.rpc\x1a\x19google/protobuf/any.proto\"f\n\x06Status\x12\x12\n\x04\x63ode\x18\x01 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12.\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyR\x07\x64\x65tailsBa\n\x0e\x63om.google.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xf8\x01\x01\xa2\x02\x03RPCb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.rpc.status_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.rpcB\013StatusProtoP\001Z7google.golang.org/genproto/googleapis/rpc/status;status\370\001\001\242\002\003RPC' + _globals['_STATUS']._serialized_start=66 + _globals['_STATUS']._serialized_end=168 +# @@protoc_insertion_point(module_scope) diff --git a/src/google/rpc/status_pb2_grpc.py b/src/google/rpc/status_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/google/rpc/status_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/test.py b/src/test.py new file mode 100644 index 00000000..bde9704c --- /dev/null +++ b/src/test.py @@ -0,0 +1,15 @@ +import unittest + +from tests import test_e2e + + +class SequentialTestLoader(unittest.TestLoader): + def getTestCaseNames(self, testCaseClass): + test_names = super().getTestCaseNames(testCaseClass) + testcase_methods = list(testCaseClass.__dict__.keys()) + test_names.sort(key=testcase_methods.index) + return test_names + + +if __name__ == "__main__": + unittest.main(test_e2e, testLoader=SequentialTestLoader()) diff --git a/src/tests/test_e2e.py b/src/tests/test_e2e.py new file mode 100644 index 00000000..f73e6598 --- /dev/null +++ b/src/tests/test_e2e.py @@ -0,0 +1,287 @@ +import unittest +import json +import time + +import grpc +from vald.v1.agent.core import agent_pb2_grpc +from vald.v1.vald import insert_pb2_grpc +from vald.v1.vald import search_pb2_grpc +from vald.v1.vald import update_pb2_grpc +from vald.v1.vald import upsert_pb2_grpc +from vald.v1.vald import remove_pb2_grpc +from vald.v1.vald import object_pb2_grpc +from vald.v1.payload import payload_pb2 + + +class TestValdE2E(unittest.TestCase): + """e2e test for vald-client-python + """ + + def __init__(self, *args, **kwargs): + super(TestValdE2E, self).__init__(*args, **kwargs) + self.data = json.load(open("wordvecs1000.json", "r")) + + def setUp(self): + options = [("grpc.keepalive_time_ms", 10000), + ("grpc.keepalive_timeout_ms", 5000), + ("grpc.client_channel_backup_poll_interval_ms", 100)] + self.channel = grpc.insecure_channel( + target="localhost:8081", options=options) + + def tearDown(self): + self.channel.close() + + def test_insert(self): + stub = insert_pb2_grpc.InsertStub(self.channel) + vec = payload_pb2.Object.Vector( + id=self.data[0]["id"], vector=self.data[0]["vector"]) + cfg = payload_pb2.Insert.Config(skip_strict_exist_check=True) + result = stub.Insert( + payload_pb2.Insert.Request(vector=vec, config=cfg)) + self.assertIsInstance(result, payload_pb2.Object.Location) + + def test_multi_insert(self): + stub = insert_pb2_grpc.InsertStub(self.channel) + cfg = payload_pb2.Insert.Config(skip_strict_exist_check=True) + requests = [] + for i in range(1, 10): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i]["vector"]) + requests.append(payload_pb2.Insert.Request( + vector=vec, config=cfg)) + results = stub.MultiInsert( + payload_pb2.Insert.MultiRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Object.Locations) + + def test_stream_insert(self): + stub = insert_pb2_grpc.InsertStub(self.channel) + cfg = payload_pb2.Insert.Config(skip_strict_exist_check=True) + requests = [] + for i in range(11, 100): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i]["vector"]) + requests.append(payload_pb2.Insert.Request( + vector=vec, config=cfg)) + results = stub.StreamInsert(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Object.StreamLocation) + self.assertEqual(result.status.code, 0) + + def test_create_index(self): + stub = agent_pb2_grpc.AgentStub(self.channel) + result = stub.CreateIndex( + payload_pb2.Control.CreateIndexRequest(pool_size=10000)) + self.assertIsInstance(result, payload_pb2.Empty) + + def test_save_index(self): + stub = agent_pb2_grpc.AgentStub(self.channel) + result = stub.SaveIndex(payload_pb2.Empty()) + self.assertIsInstance(result, payload_pb2.Empty) + + def test_index_info(self): + stub = agent_pb2_grpc.AgentStub(self.channel) + result = stub.IndexInfo(payload_pb2.Empty()) + self.assertIsInstance(result, payload_pb2.Info.Index.Count) + self.assertEqual(result.stored, 99) + self.assertEqual(result.uncommitted, 0) + + def test_exists(self): + stub = object_pb2_grpc.ObjectStub(self.channel) + result = stub.Exists( + payload_pb2.Object.ID(id=self.data[0]["id"])) + self.assertIsInstance(result, payload_pb2.Object.ID) + + def test_get_object(self): + stub = object_pb2_grpc.ObjectStub(self.channel) + req = payload_pb2.Object.VectorRequest( + id=payload_pb2.Object.ID(id=self.data[0]["id"])) + result = stub.GetObject(req) + self.assertIsInstance(result, payload_pb2.Object.Vector) + self.assertEqual(result.id, self.data[0]["id"]) + + def test_stream_get_object(self): + stub = object_pb2_grpc.ObjectStub(self.channel) + requests = [] + for i in range(0, 10): + requests.append(payload_pb2.Object.VectorRequest( + id=payload_pb2.Object.ID(id=self.data[i]["id"]))) + results = stub.StreamGetObject(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Object.StreamVector) + + def test_search(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + result = stub.Search(payload_pb2.Search.Request( + vector=self.data[0]["vector"], config=cfg)) + self.assertIsInstance(result, payload_pb2.Search.Response) + self.assertEqual(len(result.results), 3) + + def test_multi_search(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + requests = [] + for i in range(1, 10): + requests.append(payload_pb2.Search.Request( + vector=self.data[i]["vector"], config=cfg)) + results = stub.MultiSearch( + payload_pb2.Search.MultiRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Search.Responses) + for response in results.responses: + self.assertIsInstance(response, payload_pb2.Search.Response) + self.assertEqual(len(response.results), 3) + + def test_stream_search(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + requests = [] + for i in range(11, 20): + requests.append(payload_pb2.Search.Request( + vector=self.data[i]["vector"], config=cfg)) + results = stub.StreamSearch(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Search.StreamResponse) + self.assertIsNotNone(result.response) + + def test_search_id(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + result = stub.SearchByID(payload_pb2.Search.IDRequest( + id=self.data[0]["id"], config=cfg)) + self.assertIsInstance(result, payload_pb2.Search.Response) + self.assertEqual(len(result.results), 3) + + def test_multi_search_id(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + requests = [] + for i in range(1, 10): + requests.append(payload_pb2.Search.IDRequest( + id=self.data[i]["id"], config=cfg)) + results = stub.MultiSearchByID( + payload_pb2.Search.MultiIDRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Search.Responses) + for response in results.responses: + self.assertIsInstance(response, payload_pb2.Search.Response) + self.assertEqual(len(response.results), 3) + + def test_stream_search_id(self): + stub = search_pb2_grpc.SearchStub(self.channel) + cfg = payload_pb2.Search.Config( + num=3, radius=-1.0, epsilon=0.1, timeout=3000000000) + requests = [] + for i in range(11, 20): + requests.append(payload_pb2.Search.IDRequest( + id=self.data[i]["id"], config=cfg)) + results = stub.StreamSearchByID(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Search.StreamResponse) + self.assertIsNotNone(result.response) + + def test_update(self): + stub = update_pb2_grpc.UpdateStub(self.channel) + vec = payload_pb2.Object.Vector( + id=self.data[0]["id"], vector=self.data[1]["vector"]) + cfg = payload_pb2.Update.Config(skip_strict_exist_check=True) + result = stub.Update( + payload_pb2.Update.Request(vector=vec, config=cfg)) + self.assertIsInstance(result, payload_pb2.Object.Location) + + def test_multi_update(self): + stub = update_pb2_grpc.UpdateStub(self.channel) + cfg = payload_pb2.Update.Config(skip_strict_exist_check=True) + requests = [] + for i in range(1, 10): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i+1]["vector"]) + requests.append(payload_pb2.Update.Request( + vector=vec, config=cfg)) + results = stub.MultiUpdate( + payload_pb2.Update.MultiRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Object.Locations) + + def test_stream_update(self): + stub = update_pb2_grpc.UpdateStub(self.channel) + cfg = payload_pb2.Update.Config(skip_strict_exist_check=True) + requests = [] + for i in range(11, 20): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i+1]["vector"]) + requests.append(payload_pb2.Update.Request( + vector=vec, config=cfg)) + results = stub.StreamUpdate(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Object.StreamLocation) + self.assertEqual(result.status.code, 0) + + def test_upsert(self): + stub = upsert_pb2_grpc.UpsertStub(self.channel) + vec = payload_pb2.Object.Vector( + id=self.data[0]["id"], vector=self.data[0]["vector"]) + cfg = payload_pb2.Upsert.Config(skip_strict_exist_check=True) + result = stub.Upsert( + payload_pb2.Upsert.Request(vector=vec, config=cfg)) + self.assertIsInstance(result, payload_pb2.Object.Location) + + def test_multi_upsert(self): + stub = upsert_pb2_grpc.UpsertStub(self.channel) + cfg = payload_pb2.Upsert.Config(skip_strict_exist_check=True) + requests = [] + for i in range(1, 10): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i]["vector"]) + requests.append(payload_pb2.Upsert.Request( + vector=vec, config=cfg)) + results = stub.MultiUpsert( + payload_pb2.Upsert.MultiRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Object.Locations) + + def test_stream_upsert(self): + stub = upsert_pb2_grpc.UpsertStub(self.channel) + cfg = payload_pb2.Upsert.Config(skip_strict_exist_check=True) + requests = [] + for i in range(11, 20): + vec = payload_pb2.Object.Vector( + id=self.data[i]["id"], vector=self.data[i]["vector"]) + requests.append(payload_pb2.Upsert.Request( + vector=vec, config=cfg)) + results = stub.StreamUpsert(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Object.StreamLocation) + self.assertEqual(result.status.code, 0) + + def test_remove(self): + stub = remove_pb2_grpc.RemoveStub(self.channel) + cfg = payload_pb2.Remove.Config(skip_strict_exist_check=True) + result = stub.Remove( + payload_pb2.Remove.Request( + id=payload_pb2.Object.ID(id=self.data[0]["id"]), config=cfg)) + self.assertIsInstance(result, payload_pb2.Object.Location) + + def test_multi_remove(self): + stub = remove_pb2_grpc.RemoveStub(self.channel) + cfg = payload_pb2.Remove.Config(skip_strict_exist_check=True) + requests = [] + for i in range(1, 10): + requests.append(payload_pb2.Remove.Request( + id=payload_pb2.Object.ID(id=self.data[i]["id"]), config=cfg)) + results = stub.MultiRemove( + payload_pb2.Remove.MultiRequest(requests=requests)) + self.assertIsInstance(results, payload_pb2.Object.Locations) + + def test_stream_remove(self): + stub = remove_pb2_grpc.RemoveStub(self.channel) + cfg = payload_pb2.Remove.Config(skip_strict_exist_check=True) + requests = [] + for i in range(11, 20): + requests.append(payload_pb2.Remove.Request( + id=payload_pb2.Object.ID(id=self.data[i]["id"]), config=cfg)) + results = stub.StreamRemove(iter(requests)) + for result in results: + self.assertIsInstance(result, payload_pb2.Object.StreamLocation) + self.assertEqual(result.status.code, 0) diff --git a/src/vald/v1/agent/core/agent_pb.d.ts b/src/vald/v1/agent/core/agent_pb.d.ts deleted file mode 100644 index 1ed77d68..00000000 --- a/src/vald/v1/agent/core/agent_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service core.v1.Agent - */ -export declare const Agent: any; diff --git a/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts b/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts deleted file mode 100644 index c6260844..00000000 --- a/src/vald/v1/agent/core/agent_pb.grpc-client.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Object_Timestamp } from "../../payload/payload_pb"; -import type { Object_GetTimestampRequest } from "../../payload/payload_pb"; -import type { Info_Index_Count } from "../../payload/payload_pb"; -import type { Empty } from "../../payload/payload_pb"; -import type { Control_CreateIndexRequest } from "../../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Represent the agent service. - * - * @generated from protobuf service core.v1.Agent - */ -export interface IAgentClient { - /** - * Represent the creating index RPC. - * - * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createIndex(input: Control_CreateIndexRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createIndex(input: Control_CreateIndexRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - /** - * Represent the saving index RPC. - * - * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); - */ - saveIndex(input: Empty, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - saveIndex(input: Empty, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - saveIndex(input: Empty, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - saveIndex(input: Empty, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - /** - * Represent the creating and saving index RPC. - * - * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createAndSaveIndex(input: Control_CreateIndexRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - createAndSaveIndex(input: Control_CreateIndexRequest, callback: (err: grpc.ServiceError | null, value?: Empty) => void): grpc.ClientUnaryCall; - /** - * Represent the RPC to get the agent index information. - * - * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); - */ - indexInfo(input: Empty, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; - indexInfo(input: Empty, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; - indexInfo(input: Empty, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; - indexInfo(input: Empty, callback: (err: grpc.ServiceError | null, value?: Info_Index_Count) => void): grpc.ClientUnaryCall; - /** - * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process - * - * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); - */ - getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; - getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; - getTimestamp(input: Object_GetTimestampRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; - getTimestamp(input: Object_GetTimestampRequest, callback: (err: grpc.ServiceError | null, value?: Object_Timestamp) => void): grpc.ClientUnaryCall; -} -/** - * Represent the agent service. - * - * @generated from protobuf service core.v1.Agent - */ -export declare class AgentClient extends grpc.Client implements IAgentClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * Represent the creating index RPC. - * - * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; - /** - * Represent the saving index RPC. - * - * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); - */ - saveIndex(input: Empty, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; - /** - * Represent the creating and saving index RPC. - * - * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createAndSaveIndex(input: Control_CreateIndexRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Empty) => void), callback?: ((err: grpc.ServiceError | null, value?: Empty) => void)): grpc.ClientUnaryCall; - /** - * Represent the RPC to get the agent index information. - * - * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); - */ - indexInfo(input: Empty, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void), callback?: ((err: grpc.ServiceError | null, value?: Info_Index_Count) => void)): grpc.ClientUnaryCall; - /** - * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process - * - * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); - */ - getTimestamp(input: Object_GetTimestampRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Timestamp) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/agent/core/agent_pb.grpc-client.js b/src/vald/v1/agent/core/agent_pb.grpc-client.js deleted file mode 100644 index 153528eb..00000000 --- a/src/vald/v1/agent/core/agent_pb.grpc-client.js +++ /dev/null @@ -1,106 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AgentClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const agent_pb_1 = require("./agent_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Represent the agent service. - * - * @generated from protobuf service core.v1.Agent - */ -class AgentClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * Represent the creating index RPC. - * - * @generated from protobuf rpc: CreateIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createIndex(input, metadata, options, callback) { - const method = agent_pb_1.Agent.methods[0]; - return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * Represent the saving index RPC. - * - * @generated from protobuf rpc: SaveIndex(payload.v1.Empty) returns (payload.v1.Empty); - */ - saveIndex(input, metadata, options, callback) { - const method = agent_pb_1.Agent.methods[1]; - return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * Represent the creating and saving index RPC. - * - * @generated from protobuf rpc: CreateAndSaveIndex(payload.v1.Control.CreateIndexRequest) returns (payload.v1.Empty); - */ - createAndSaveIndex(input, metadata, options, callback) { - const method = agent_pb_1.Agent.methods[2]; - return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * Represent the RPC to get the agent index information. - * - * @generated from protobuf rpc: IndexInfo(payload.v1.Empty) returns (payload.v1.Info.Index.Count); - */ - indexInfo(input, metadata, options, callback) { - const method = agent_pb_1.Agent.methods[3]; - return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process - * - * @generated from protobuf rpc: GetTimestamp(payload.v1.Object.GetTimestampRequest) returns (payload.v1.Object.Timestamp); - */ - getTimestamp(input, metadata, options, callback) { - const method = agent_pb_1.Agent.methods[4]; - return this.makeUnaryRequest(`/${agent_pb_1.Agent.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.AgentClient = AgentClient; diff --git a/src/vald/v1/agent/core/agent_pb.js b/src/vald/v1/agent/core/agent_pb.js deleted file mode 100644 index c9300918..00000000 --- a/src/vald/v1/agent/core/agent_pb.js +++ /dev/null @@ -1,63 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Agent = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/agent/core/agent.proto" (package "core.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../../payload/payload_pb"); -const payload_pb_2 = require("../../payload/payload_pb"); -const payload_pb_3 = require("../../payload/payload_pb"); -const payload_pb_4 = require("../../payload/payload_pb"); -const payload_pb_5 = require("../../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service core.v1.Agent - */ -exports.Agent = new runtime_rpc_1.ServiceType("core.v1.Agent", [ - { name: "CreateIndex", options: { "google.api.http": { get: "/index/create" } }, I: payload_pb_5.Control_CreateIndexRequest, O: payload_pb_4.Empty }, - { name: "SaveIndex", options: { "google.api.http": { get: "/index/save" } }, I: payload_pb_4.Empty, O: payload_pb_4.Empty }, - { name: "CreateAndSaveIndex", options: { "google.api.http": { get: "/index/createandsave" } }, I: payload_pb_5.Control_CreateIndexRequest, O: payload_pb_4.Empty }, - { name: "IndexInfo", options: { "google.api.http": { get: "/index/info" } }, I: payload_pb_4.Empty, O: payload_pb_3.Info_Index_Count }, - { name: "GetTimestamp", options: { "google.api.http": { get: "/object/meta" } }, I: payload_pb_2.Object_GetTimestampRequest, O: payload_pb_1.Object_Timestamp } -]); diff --git a/src/vald/v1/agent/core/agent_pb2.py b/src/vald/v1/agent/core/agent_pb2.py new file mode 100644 index 00000000..17b9e027 --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/agent/core/agent.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1evald/v1/agent/core/agent.proto\x12\x07\x63ore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\xde\x03\n\x05\x41gent\x12_\n\x0b\x43reateIndex\x12&.payload.v1.Control.CreateIndexRequest\x1a\x11.payload.v1.Empty\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/index/create\x12\x46\n\tSaveIndex\x12\x11.payload.v1.Empty\x1a\x11.payload.v1.Empty\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/index/save\x12m\n\x12\x43reateAndSaveIndex\x12&.payload.v1.Control.CreateIndexRequest\x1a\x11.payload.v1.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/index/createandsave\x12Q\n\tIndexInfo\x12\x11.payload.v1.Empty\x1a\x1c.payload.v1.Info.Index.Count\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/index/info\x12j\n\x0cGetTimestamp\x12&.payload.v1.Object.GetTimestampRequest\x1a\x1c.payload.v1.Object.Timestamp\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/object/metaBc\n org.vdaas.vald.api.v1.agent.coreB\tValdAgentP\x01Z2github.com/vdaas/vald/apis/grpc/v1/agent/core;coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.agent.core.agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n org.vdaas.vald.api.v1.agent.coreB\tValdAgentP\001Z2github.com/vdaas/vald/apis/grpc/v1/agent/core;core' + _globals['_AGENT'].methods_by_name['CreateIndex']._options = None + _globals['_AGENT'].methods_by_name['CreateIndex']._serialized_options = b'\202\323\344\223\002\017\022\r/index/create' + _globals['_AGENT'].methods_by_name['SaveIndex']._options = None + _globals['_AGENT'].methods_by_name['SaveIndex']._serialized_options = b'\202\323\344\223\002\r\022\013/index/save' + _globals['_AGENT'].methods_by_name['CreateAndSaveIndex']._options = None + _globals['_AGENT'].methods_by_name['CreateAndSaveIndex']._serialized_options = b'\202\323\344\223\002\026\022\024/index/createandsave' + _globals['_AGENT'].methods_by_name['IndexInfo']._options = None + _globals['_AGENT'].methods_by_name['IndexInfo']._serialized_options = b'\202\323\344\223\002\r\022\013/index/info' + _globals['_AGENT'].methods_by_name['GetTimestamp']._options = None + _globals['_AGENT'].methods_by_name['GetTimestamp']._serialized_options = b'\202\323\344\223\002\016\022\014/object/meta' + _globals['_AGENT']._serialized_start=105 + _globals['_AGENT']._serialized_end=583 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/agent/core/agent_pb2_grpc.py b/src/vald/v1/agent/core/agent_pb2_grpc.py new file mode 100644 index 00000000..54642f5e --- /dev/null +++ b/src/vald/v1/agent/core/agent_pb2_grpc.py @@ -0,0 +1,206 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class AgentStub(object): + """Represent the agent service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateIndex = channel.unary_unary( + '/core.v1.Agent/CreateIndex', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + ) + self.SaveIndex = channel.unary_unary( + '/core.v1.Agent/SaveIndex', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + ) + self.CreateAndSaveIndex = channel.unary_unary( + '/core.v1.Agent/CreateAndSaveIndex', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + ) + self.IndexInfo = channel.unary_unary( + '/core.v1.Agent/IndexInfo', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Info.Index.Count.FromString, + ) + self.GetTimestamp = channel.unary_unary( + '/core.v1.Agent/GetTimestamp', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.GetTimestampRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Timestamp.FromString, + ) + + +class AgentServicer(object): + """Represent the agent service. + """ + + def CreateIndex(self, request, context): + """Represent the creating index RPC. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SaveIndex(self, request, context): + """Represent the saving index RPC. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAndSaveIndex(self, request, context): + """Represent the creating and saving index RPC. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IndexInfo(self, request, context): + """Represent the RPC to get the agent index information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimestamp(self, request, context): + """Represent the RPC to get the vector metadata. This RPC is mainly used for index correction process + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AgentServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateIndex': grpc.unary_unary_rpc_method_handler( + servicer.CreateIndex, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + ), + 'SaveIndex': grpc.unary_unary_rpc_method_handler( + servicer.SaveIndex, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + ), + 'CreateAndSaveIndex': grpc.unary_unary_rpc_method_handler( + servicer.CreateAndSaveIndex, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + ), + 'IndexInfo': grpc.unary_unary_rpc_method_handler( + servicer.IndexInfo, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Info.Index.Count.SerializeToString, + ), + 'GetTimestamp': grpc.unary_unary_rpc_method_handler( + servicer.GetTimestamp, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.GetTimestampRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Timestamp.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'core.v1.Agent', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Agent(object): + """Represent the agent service. + """ + + @staticmethod + def CreateIndex(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.v1.Agent/CreateIndex', + vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SaveIndex(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.v1.Agent/SaveIndex', + vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAndSaveIndex(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.v1.Agent/CreateAndSaveIndex', + vald_dot_v1_dot_payload_dot_payload__pb2.Control.CreateIndexRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Empty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IndexInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.v1.Agent/IndexInfo', + vald_dot_v1_dot_payload_dot_payload__pb2.Empty.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Info.Index.Count.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimestamp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/core.v1.Agent/GetTimestamp', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.GetTimestampRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Timestamp.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/agent/core/index.d.ts b/src/vald/v1/agent/core/index.d.ts deleted file mode 100644 index 61ccccfe..00000000 --- a/src/vald/v1/agent/core/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import agent = require("./agent_pb"); -import agent_grpc = require("./agent_pb.grpc-client"); -declare const _default: { - agent: typeof agent, - agent_grpc: typeof agent_grpc, -}; -export = _default; diff --git a/src/vald/v1/agent/core/index.js b/src/vald/v1/agent/core/index.js deleted file mode 100644 index b823dcbb..00000000 --- a/src/vald/v1/agent/core/index.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports.agent = require("./agent_pb"); -module.exports.agent_grpc = require("./agent_pb.grpc-client"); diff --git a/src/vald/v1/filter/egress/egress_filter_pb2.py b/src/vald/v1/filter/egress/egress_filter_pb2.py new file mode 100644 index 00000000..15adc96f --- /dev/null +++ b/src/vald/v1/filter/egress/egress_filter_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/filter/egress/egress_filter.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)vald/v1/filter/egress/egress_filter.proto\x12\x10\x66ilter.egress.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\xe0\x01\n\x06\x46ilter\x12n\n\x0e\x46ilterDistance\x12\x1b.payload.v1.Object.Distance\x1a\x1b.payload.v1.Object.Distance\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/filter/egress/distance:\x01*\x12\x66\n\x0c\x46ilterVector\x12\x19.payload.v1.Object.Vector\x1a\x19.payload.v1.Object.Vector\" \x82\xd3\xe4\x93\x02\x1a\"\x15/filter/egress/vector:\x01*Bk\n#org.vdaas.vald.api.v1.filter.egressB\x10ValdEgressFilterP\x01Z0github.com/vdaas/vald/apis/grpc/v1/filter/egressb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.filter.egress.egress_filter_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n#org.vdaas.vald.api.v1.filter.egressB\020ValdEgressFilterP\001Z0github.com/vdaas/vald/apis/grpc/v1/filter/egress' + _globals['_FILTER'].methods_by_name['FilterDistance']._options = None + _globals['_FILTER'].methods_by_name['FilterDistance']._serialized_options = b'\202\323\344\223\002\034\"\027/filter/egress/distance:\001*' + _globals['_FILTER'].methods_by_name['FilterVector']._options = None + _globals['_FILTER'].methods_by_name['FilterVector']._serialized_options = b'\202\323\344\223\002\032\"\025/filter/egress/vector:\001*' + _globals['_FILTER']._serialized_start=125 + _globals['_FILTER']._serialized_end=349 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/filter/egress/egress_filter_pb2_grpc.py b/src/vald/v1/filter/egress/egress_filter_pb2_grpc.py new file mode 100644 index 00000000..2b4f14b5 --- /dev/null +++ b/src/vald/v1/filter/egress/egress_filter_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class FilterStub(object): + """Represent the egress filter service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.FilterDistance = channel.unary_unary( + '/filter.egress.v1.Filter/FilterDistance', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.FromString, + ) + self.FilterVector = channel.unary_unary( + '/filter.egress.v1.Filter/FilterVector', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + ) + + +class FilterServicer(object): + """Represent the egress filter service. + """ + + def FilterDistance(self, request, context): + """Represent the RPC to filter the distance. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FilterVector(self, request, context): + """Represent the RPC to filter the vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FilterServicer_to_server(servicer, server): + rpc_method_handlers = { + 'FilterDistance': grpc.unary_unary_rpc_method_handler( + servicer.FilterDistance, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.SerializeToString, + ), + 'FilterVector': grpc.unary_unary_rpc_method_handler( + servicer.FilterVector, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'filter.egress.v1.Filter', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Filter(object): + """Represent the egress filter service. + """ + + @staticmethod + def FilterDistance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/filter.egress.v1.Filter/FilterDistance', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Distance.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FilterVector(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/filter.egress.v1.Filter/FilterVector', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/filter/ingress/ingress_filter_pb2.py b/src/vald/v1/filter/ingress/ingress_filter_pb2.py new file mode 100644 index 00000000..ff15168d --- /dev/null +++ b/src/vald/v1/filter/ingress/ingress_filter_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/filter/ingress/ingress_filter.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+vald/v1/filter/ingress/ingress_filter.proto\x12\x11\x66ilter.ingress.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\xd5\x01\n\x06\x46ilter\x12\x62\n\tGenVector\x12\x17.payload.v1.Object.Blob\x1a\x19.payload.v1.Object.Vector\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/filter/ingress/object:\x01*\x12g\n\x0c\x46ilterVector\x12\x19.payload.v1.Object.Vector\x1a\x19.payload.v1.Object.Vector\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/filter/ingress/vector:\x01*Bn\n$org.vdaas.vald.api.v1.filter.ingressB\x11ValdIngressFilterP\x01Z1github.com/vdaas/vald/apis/grpc/v1/filter/ingressb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.filter.ingress.ingress_filter_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n$org.vdaas.vald.api.v1.filter.ingressB\021ValdIngressFilterP\001Z1github.com/vdaas/vald/apis/grpc/v1/filter/ingress' + _globals['_FILTER'].methods_by_name['GenVector']._options = None + _globals['_FILTER'].methods_by_name['GenVector']._serialized_options = b'\202\323\344\223\002\033\"\026/filter/ingress/object:\001*' + _globals['_FILTER'].methods_by_name['FilterVector']._options = None + _globals['_FILTER'].methods_by_name['FilterVector']._serialized_options = b'\202\323\344\223\002\033\"\026/filter/ingress/vector:\001*' + _globals['_FILTER']._serialized_start=128 + _globals['_FILTER']._serialized_end=341 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/filter/ingress/ingress_filter_pb2_grpc.py b/src/vald/v1/filter/ingress/ingress_filter_pb2_grpc.py new file mode 100644 index 00000000..fa4cb3f5 --- /dev/null +++ b/src/vald/v1/filter/ingress/ingress_filter_pb2_grpc.py @@ -0,0 +1,104 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class FilterStub(object): + """Represent the ingress filter service. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GenVector = channel.unary_unary( + '/filter.ingress.v1.Filter/GenVector', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Blob.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + ) + self.FilterVector = channel.unary_unary( + '/filter.ingress.v1.Filter/FilterVector', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + ) + + +class FilterServicer(object): + """Represent the ingress filter service. + """ + + def GenVector(self, request, context): + """Represent the RPC to generate the vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FilterVector(self, request, context): + """Represent the RPC to filter the vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FilterServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GenVector': grpc.unary_unary_rpc_method_handler( + servicer.GenVector, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Blob.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + ), + 'FilterVector': grpc.unary_unary_rpc_method_handler( + servicer.FilterVector, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'filter.ingress.v1.Filter', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Filter(object): + """Represent the ingress filter service. + """ + + @staticmethod + def GenVector(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/filter.ingress.v1.Filter/GenVector', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Blob.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FilterVector(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/filter.ingress.v1.Filter/FilterVector', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/payload/index.d.ts b/src/vald/v1/payload/index.d.ts deleted file mode 100644 index 539ef9dc..00000000 --- a/src/vald/v1/payload/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import payload = require("./payload_pb"); -declare const _default: { - payload: typeof payload, -}; -export = _default; diff --git a/src/vald/v1/payload/index.js b/src/vald/v1/payload/index.js deleted file mode 100644 index 409df91f..00000000 --- a/src/vald/v1/payload/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports.payload = require("./payload_pb"); diff --git a/src/vald/v1/payload/payload_pb.d.ts b/src/vald/v1/payload/payload_pb.d.ts deleted file mode 100644 index 4e23e4a2..00000000 --- a/src/vald/v1/payload/payload_pb.d.ts +++ /dev/null @@ -1,2438 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; -import { Status } from "../../../google/rpc/status_pb"; -/** - * Search related messages. - * - * @generated from protobuf message payload.v1.Search - */ -export interface Search { -} -/** - * Represent a search request. - * - * @generated from protobuf message payload.v1.Search.Request - */ -export interface Search_Request { - /** - * The vector to be searched. - * - * @generated from protobuf field: repeated float vector = 1; - */ - vector: number[]; - /** - * The configuration of the search request. - * - * @generated from protobuf field: payload.v1.Search.Config config = 2; - */ - config?: Search_Config; -} -/** - * Represent the multiple search request. - * - * @generated from protobuf message payload.v1.Search.MultiRequest - */ -export interface Search_MultiRequest { - /** - * Represent the multiple search request content. - * - * @generated from protobuf field: repeated payload.v1.Search.Request requests = 1; - */ - requests: Search_Request[]; -} -/** - * Represent a search by ID request. - * - * @generated from protobuf message payload.v1.Search.IDRequest - */ -export interface Search_IDRequest { - /** - * The vector ID to be searched. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * The configuration of the search request. - * - * @generated from protobuf field: payload.v1.Search.Config config = 2; - */ - config?: Search_Config; -} -/** - * Represent the multiple search by ID request. - * - * @generated from protobuf message payload.v1.Search.MultiIDRequest - */ -export interface Search_MultiIDRequest { - /** - * Represent the multiple search by ID request content. - * - * @generated from protobuf field: repeated payload.v1.Search.IDRequest requests = 1; - */ - requests: Search_IDRequest[]; -} -/** - * Represent a search by binary object request. - * - * @generated from protobuf message payload.v1.Search.ObjectRequest - */ -export interface Search_ObjectRequest { - /** - * The binary object to be searched. - * - * @generated from protobuf field: bytes object = 1; - */ - object: Uint8Array; - /** - * The configuration of the search request. - * - * @generated from protobuf field: payload.v1.Search.Config config = 2; - */ - config?: Search_Config; - /** - * Filter configuration. - * - * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; - */ - vectorizer?: Filter_Target; -} -/** - * Represent the multiple search by binary object request. - * - * @generated from protobuf message payload.v1.Search.MultiObjectRequest - */ -export interface Search_MultiObjectRequest { - /** - * Represent the multiple search by binary object request content. - * - * @generated from protobuf field: repeated payload.v1.Search.ObjectRequest requests = 1; - */ - requests: Search_ObjectRequest[]; -} -/** - * Represent search configuration. - * - * @generated from protobuf message payload.v1.Search.Config - */ -export interface Search_Config { - /** - * Unique request ID. - * - * @generated from protobuf field: string request_id = 1; - */ - request_id: string; - /** - * Maximum number of result to be returned. - * - * @generated from protobuf field: uint32 num = 2; - */ - num: number; - /** - * Search radius. - * - * @generated from protobuf field: float radius = 3; - */ - radius: number; - /** - * Search coefficient. - * - * @generated from protobuf field: float epsilon = 4; - */ - epsilon: number; - /** - * Search timeout in nanoseconds. - * - * @generated from protobuf field: int64 timeout = 5; - */ - timeout: bigint; - /** - * Ingress filter configurations. - * - * @generated from protobuf field: payload.v1.Filter.Config ingress_filters = 6; - */ - ingress_filters?: Filter_Config; - /** - * Egress filter configurations. - * - * @generated from protobuf field: payload.v1.Filter.Config egress_filters = 7; - */ - egress_filters?: Filter_Config; - /** - * Minimum number of result to be returned. - * - * @generated from protobuf field: uint32 min_num = 8; - */ - min_num: number; - /** - * Aggregation Algorithm - * - * @generated from protobuf field: payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9; - */ - aggregation_algorithm: Search_AggregationAlgorithm; -} -/** - * Represent a search response. - * - * @generated from protobuf message payload.v1.Search.Response - */ -export interface Search_Response { - /** - * The unique request ID. - * - * @generated from protobuf field: string request_id = 1; - */ - request_id: string; - /** - * Search results. - * - * @generated from protobuf field: repeated payload.v1.Object.Distance results = 2; - */ - results: Object_Distance[]; -} -/** - * Represent multiple search responses. - * - * @generated from protobuf message payload.v1.Search.Responses - */ -export interface Search_Responses { - /** - * Represent the multiple search response content. - * - * @generated from protobuf field: repeated payload.v1.Search.Response responses = 1; - */ - responses: Search_Response[]; -} -/** - * Represent stream search response. - * - * @generated from protobuf message payload.v1.Search.StreamResponse - */ -export interface Search_StreamResponse { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "response"; - /** - * Represent the search response. - * - * @generated from protobuf field: payload.v1.Search.Response response = 1; - */ - response: Search_Response; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * AggregationAlgorithm is enum of each aggregation algorithms - * - * @generated from protobuf enum payload.v1.Search.AggregationAlgorithm - */ -export declare enum Search_AggregationAlgorithm { - /** - * @generated from protobuf enum value: Unknown = 0; - */ - Unknown = 0, - /** - * @generated from protobuf enum value: ConcurrentQueue = 1; - */ - ConcurrentQueue = 1, - /** - * @generated from protobuf enum value: SortSlice = 2; - */ - SortSlice = 2, - /** - * @generated from protobuf enum value: SortPoolSlice = 3; - */ - SortPoolSlice = 3, - /** - * @generated from protobuf enum value: PairingHeap = 4; - */ - PairingHeap = 4 -} -/** - * Filter related messages. - * - * @generated from protobuf message payload.v1.Filter - */ -export interface Filter { -} -/** - * Represent the target filter server. - * - * @generated from protobuf message payload.v1.Filter.Target - */ -export interface Filter_Target { - /** - * The target hostname. - * - * @generated from protobuf field: string host = 1; - */ - host: string; - /** - * The target port. - * - * @generated from protobuf field: uint32 port = 2; - */ - port: number; -} -/** - * Represent filter configuration. - * - * @generated from protobuf message payload.v1.Filter.Config - */ -export interface Filter_Config { - /** - * Represent the filter target configuration. - * - * @generated from protobuf field: repeated payload.v1.Filter.Target targets = 1; - */ - targets: Filter_Target[]; -} -/** - * Insert related messages. - * - * @generated from protobuf message payload.v1.Insert - */ -export interface Insert { -} -/** - * Represent the insert request. - * - * @generated from protobuf message payload.v1.Insert.Request - */ -export interface Insert_Request { - /** - * The vector to be inserted. - * - * @generated from protobuf field: payload.v1.Object.Vector vector = 1; - */ - vector?: Object_Vector; - /** - * The configuration of the insert request. - * - * @generated from protobuf field: payload.v1.Insert.Config config = 2; - */ - config?: Insert_Config; -} -/** - * Represent the multiple insert request. - * - * @generated from protobuf message payload.v1.Insert.MultiRequest - */ -export interface Insert_MultiRequest { - /** - * Represent multiple insert request content. - * - * @generated from protobuf field: repeated payload.v1.Insert.Request requests = 1; - */ - requests: Insert_Request[]; -} -/** - * Represent the insert by binary object request. - * - * @generated from protobuf message payload.v1.Insert.ObjectRequest - */ -export interface Insert_ObjectRequest { - /** - * The binary object to be inserted. - * - * @generated from protobuf field: payload.v1.Object.Blob object = 1; - */ - object?: Object_Blob; - /** - * The configuration of the insert request. - * - * @generated from protobuf field: payload.v1.Insert.Config config = 2; - */ - config?: Insert_Config; - /** - * Filter configurations. - * - * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; - */ - vectorizer?: Filter_Target; -} -/** - * Represent the multiple insert by binary object request. - * - * @generated from protobuf message payload.v1.Insert.MultiObjectRequest - */ -export interface Insert_MultiObjectRequest { - /** - * Represent multiple insert by object content. - * - * @generated from protobuf field: repeated payload.v1.Insert.ObjectRequest requests = 1; - */ - requests: Insert_ObjectRequest[]; -} -/** - * Represent insert configurations. - * - * @generated from protobuf message payload.v1.Insert.Config - */ -export interface Insert_Config { - /** - * A flag to skip exist check during insert operation. - * - * @generated from protobuf field: bool skip_strict_exist_check = 1; - */ - skip_strict_exist_check: boolean; - /** - * Filter configurations. - * - * @generated from protobuf field: payload.v1.Filter.Config filters = 2; - */ - filters?: Filter_Config; - /** - * Insert timestamp. - * - * @generated from protobuf field: int64 timestamp = 3; - */ - timestamp: bigint; -} -/** - * Update related messages - * - * @generated from protobuf message payload.v1.Update - */ -export interface Update { -} -/** - * Represent the update request. - * - * @generated from protobuf message payload.v1.Update.Request - */ -export interface Update_Request { - /** - * The vector to be updated. - * - * @generated from protobuf field: payload.v1.Object.Vector vector = 1; - */ - vector?: Object_Vector; - /** - * The configuration of the update request. - * - * @generated from protobuf field: payload.v1.Update.Config config = 2; - */ - config?: Update_Config; -} -/** - * Represent the multiple update request. - * - * @generated from protobuf message payload.v1.Update.MultiRequest - */ -export interface Update_MultiRequest { - /** - * Represent the multiple update request content. - * - * @generated from protobuf field: repeated payload.v1.Update.Request requests = 1; - */ - requests: Update_Request[]; -} -/** - * Represent the update binary object request. - * - * @generated from protobuf message payload.v1.Update.ObjectRequest - */ -export interface Update_ObjectRequest { - /** - * The binary object to be updated. - * - * @generated from protobuf field: payload.v1.Object.Blob object = 1; - */ - object?: Object_Blob; - /** - * The configuration of the update request. - * - * @generated from protobuf field: payload.v1.Update.Config config = 2; - */ - config?: Update_Config; - /** - * Filter target. - * - * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; - */ - vectorizer?: Filter_Target; -} -/** - * Represent the multiple update binary object request. - * - * @generated from protobuf message payload.v1.Update.MultiObjectRequest - */ -export interface Update_MultiObjectRequest { - /** - * Represent the multiple update object request content. - * - * @generated from protobuf field: repeated payload.v1.Update.ObjectRequest requests = 1; - */ - requests: Update_ObjectRequest[]; -} -/** - * Represent the update configuration. - * - * @generated from protobuf message payload.v1.Update.Config - */ -export interface Update_Config { - /** - * A flag to skip exist check during update operation. - * - * @generated from protobuf field: bool skip_strict_exist_check = 1; - */ - skip_strict_exist_check: boolean; - /** - * Filter configuration. - * - * @generated from protobuf field: payload.v1.Filter.Config filters = 2; - */ - filters?: Filter_Config; - /** - * Update timestamp. - * - * @generated from protobuf field: int64 timestamp = 3; - */ - timestamp: bigint; - /** - * A flag to disable balanced update (split remove -> insert operation) - * during update operation. - * - * @generated from protobuf field: bool disable_balanced_update = 4; - */ - disable_balanced_update: boolean; -} -/** - * Upsert related messages. - * - * @generated from protobuf message payload.v1.Upsert - */ -export interface Upsert { -} -/** - * Represent the upsert request. - * - * @generated from protobuf message payload.v1.Upsert.Request - */ -export interface Upsert_Request { - /** - * The vector to be upserted. - * - * @generated from protobuf field: payload.v1.Object.Vector vector = 1; - */ - vector?: Object_Vector; - /** - * The configuration of the upsert request. - * - * @generated from protobuf field: payload.v1.Upsert.Config config = 2; - */ - config?: Upsert_Config; -} -/** - * Represent mthe ultiple upsert request. - * - * @generated from protobuf message payload.v1.Upsert.MultiRequest - */ -export interface Upsert_MultiRequest { - /** - * Represent the multiple upsert request content. - * - * @generated from protobuf field: repeated payload.v1.Upsert.Request requests = 1; - */ - requests: Upsert_Request[]; -} -/** - * Represent the upsert binary object request. - * - * @generated from protobuf message payload.v1.Upsert.ObjectRequest - */ -export interface Upsert_ObjectRequest { - /** - * The binary object to be upserted. - * - * @generated from protobuf field: payload.v1.Object.Blob object = 1; - */ - object?: Object_Blob; - /** - * The configuration of the upsert request. - * - * @generated from protobuf field: payload.v1.Upsert.Config config = 2; - */ - config?: Upsert_Config; - /** - * Filter target. - * - * @generated from protobuf field: payload.v1.Filter.Target vectorizer = 3; - */ - vectorizer?: Filter_Target; -} -/** - * Represent the multiple upsert binary object request. - * - * @generated from protobuf message payload.v1.Upsert.MultiObjectRequest - */ -export interface Upsert_MultiObjectRequest { - /** - * Represent the multiple upsert object request content. - * - * @generated from protobuf field: repeated payload.v1.Upsert.ObjectRequest requests = 1; - */ - requests: Upsert_ObjectRequest[]; -} -/** - * Represent the upsert configuration. - * - * @generated from protobuf message payload.v1.Upsert.Config - */ -export interface Upsert_Config { - /** - * A flag to skip exist check during upsert operation. - * - * @generated from protobuf field: bool skip_strict_exist_check = 1; - */ - skip_strict_exist_check: boolean; - /** - * Filter configuration. - * - * @generated from protobuf field: payload.v1.Filter.Config filters = 2; - */ - filters?: Filter_Config; - /** - * Upsert timestamp. - * - * @generated from protobuf field: int64 timestamp = 3; - */ - timestamp: bigint; - /** - * A flag to disable balanced update (split remove -> insert operation) - * during update operation. - * - * @generated from protobuf field: bool disable_balanced_update = 4; - */ - disable_balanced_update: boolean; -} -/** - * Remove related messages. - * - * @generated from protobuf message payload.v1.Remove - */ -export interface Remove { -} -/** - * Represent the remove request. - * - * @generated from protobuf message payload.v1.Remove.Request - */ -export interface Remove_Request { - /** - * The object ID to be removed. - * - * @generated from protobuf field: payload.v1.Object.ID id = 1; - */ - id?: Object_ID; - /** - * The configuration of the remove request. - * - * @generated from protobuf field: payload.v1.Remove.Config config = 2; - */ - config?: Remove_Config; -} -/** - * Represent the multiple remove request. - * - * @generated from protobuf message payload.v1.Remove.MultiRequest - */ -export interface Remove_MultiRequest { - /** - * Represent the multiple remove request content. - * - * @generated from protobuf field: repeated payload.v1.Remove.Request requests = 1; - */ - requests: Remove_Request[]; -} -/** - * Represent the remove request based on timestamp. - * - * @generated from protobuf message payload.v1.Remove.TimestampRequest - */ -export interface Remove_TimestampRequest { - /** - * The timestamp comparison list. If more than one is specified, the `AND` search is applied. - * - * @generated from protobuf field: repeated payload.v1.Remove.Timestamp timestamps = 1; - */ - timestamps: Remove_Timestamp[]; -} -/** - * Represent the timestamp comparison. - * - * @generated from protobuf message payload.v1.Remove.Timestamp - */ -export interface Remove_Timestamp { - /** - * The timestamp. - * - * @generated from protobuf field: int64 timestamp = 1; - */ - timestamp: bigint; - /** - * The conditional operator. - * - * @generated from protobuf field: payload.v1.Remove.Timestamp.Operator operator = 2; - */ - operator: Remove_Timestamp_Operator; -} -/** - * Operator is enum of each conditional operator. - * - * @generated from protobuf enum payload.v1.Remove.Timestamp.Operator - */ -export declare enum Remove_Timestamp_Operator { - /** - * The timestamp is equal to the specified value in the request. - * - * @generated from protobuf enum value: Eq = 0; - */ - Eq = 0, - /** - * The timestamp is not equal to the specified value in the request. - * - * @generated from protobuf enum value: Ne = 1; - */ - Ne = 1, - /** - * The timestamp is greater than or equal to the specified value in the request. - * - * @generated from protobuf enum value: Ge = 2; - */ - Ge = 2, - /** - * The timestamp is greater than the specified value in the request. - * - * @generated from protobuf enum value: Gt = 3; - */ - Gt = 3, - /** - * The timestamp is less than or equal to the specified value in the request. - * - * @generated from protobuf enum value: Le = 4; - */ - Le = 4, - /** - * The timestamp is less than the specified value in the request. - * - * @generated from protobuf enum value: Lt = 5; - */ - Lt = 5 -} -/** - * Represent the remove configuration. - * - * @generated from protobuf message payload.v1.Remove.Config - */ -export interface Remove_Config { - /** - * A flag to skip exist check during upsert operation. - * - * @generated from protobuf field: bool skip_strict_exist_check = 1; - */ - skip_strict_exist_check: boolean; - /** - * Remove timestamp. - * - * @generated from protobuf field: int64 timestamp = 3; - */ - timestamp: bigint; -} -/** - * Common messages. - * - * @generated from protobuf message payload.v1.Object - */ -export interface Object { -} -/** - * Represent a request to fetch raw vector. - * - * @generated from protobuf message payload.v1.Object.VectorRequest - */ -export interface Object_VectorRequest { - /** - * The vector ID to be fetched. - * - * @generated from protobuf field: payload.v1.Object.ID id = 1; - */ - id?: Object_ID; - /** - * Filter configurations. - * - * @generated from protobuf field: payload.v1.Filter.Config filters = 2; - */ - filters?: Filter_Config; -} -/** - * Represent the ID and distance pair. - * - * @generated from protobuf message payload.v1.Object.Distance - */ -export interface Object_Distance { - /** - * The vector ID. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * The distance. - * - * @generated from protobuf field: float distance = 2; - */ - distance: number; -} -/** - * Represent stream response of distances. - * - * @generated from protobuf message payload.v1.Object.StreamDistance - */ -export interface Object_StreamDistance { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "distance"; - /** - * The distance. - * - * @generated from protobuf field: payload.v1.Object.Distance distance = 1; - */ - distance: Object_Distance; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * Represent the vector ID. - * - * @generated from protobuf message payload.v1.Object.ID - */ -export interface Object_ID { - /** - * @generated from protobuf field: string id = 1; - */ - id: string; -} -/** - * Represent multiple vector IDs. - * - * @generated from protobuf message payload.v1.Object.IDs - */ -export interface Object_IDs { - /** - * @generated from protobuf field: repeated string ids = 1; - */ - ids: string[]; -} -/** - * Represent a vector. - * - * @generated from protobuf message payload.v1.Object.Vector - */ -export interface Object_Vector { - /** - * The vector ID. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * The vector. - * - * @generated from protobuf field: repeated float vector = 2; - */ - vector: number[]; - /** - * timestamp represents when this vector inserted. - * - * @generated from protobuf field: int64 timestamp = 3; - */ - timestamp: bigint; -} -/** - * Represent a request to fetch vector meta data. - * - * @generated from protobuf message payload.v1.Object.GetTimestampRequest - */ -export interface Object_GetTimestampRequest { - /** - * The vector ID to be fetched. - * - * @generated from protobuf field: payload.v1.Object.ID id = 1; - */ - id?: Object_ID; -} -/** - * Represent a vector meta data. - * - * @generated from protobuf message payload.v1.Object.Timestamp - */ -export interface Object_Timestamp { - /** - * The vector ID. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * timestamp represents when this vector inserted. - * - * @generated from protobuf field: int64 timestamp = 2; - */ - timestamp: bigint; -} -/** - * Represent multiple vectors. - * - * @generated from protobuf message payload.v1.Object.Vectors - */ -export interface Object_Vectors { - /** - * @generated from protobuf field: repeated payload.v1.Object.Vector vectors = 1; - */ - vectors: Object_Vector[]; -} -/** - * Represent stream response of the vector. - * - * @generated from protobuf message payload.v1.Object.StreamVector - */ -export interface Object_StreamVector { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "vector"; - /** - * The vector. - * - * @generated from protobuf field: payload.v1.Object.Vector vector = 1; - */ - vector: Object_Vector; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * Represent reshape vector. - * - * @generated from protobuf message payload.v1.Object.ReshapeVector - */ -export interface Object_ReshapeVector { - /** - * The binary object. - * - * @generated from protobuf field: bytes object = 1; - */ - object: Uint8Array; - /** - * The new shape. - * - * @generated from protobuf field: repeated int32 shape = 2; - */ - shape: number[]; -} -/** - * Represent the binary object. - * - * @generated from protobuf message payload.v1.Object.Blob - */ -export interface Object_Blob { - /** - * The object ID. - * - * @generated from protobuf field: string id = 1; - */ - id: string; - /** - * The binary object. - * - * @generated from protobuf field: bytes object = 2; - */ - object: Uint8Array; -} -/** - * Represent stream response of binary objects. - * - * @generated from protobuf message payload.v1.Object.StreamBlob - */ -export interface Object_StreamBlob { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "blob"; - /** - * The binary object. - * - * @generated from protobuf field: payload.v1.Object.Blob blob = 1; - */ - blob: Object_Blob; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * Represent the vector location. - * - * @generated from protobuf message payload.v1.Object.Location - */ -export interface Object_Location { - /** - * The name of the location. - * - * @generated from protobuf field: string name = 1; - */ - name: string; - /** - * The UUID of the vector. - * - * @generated from protobuf field: string uuid = 2; - */ - uuid: string; - /** - * The IP list. - * - * @generated from protobuf field: repeated string ips = 3; - */ - ips: string[]; -} -/** - * Represent the stream response of the vector location. - * - * @generated from protobuf message payload.v1.Object.StreamLocation - */ -export interface Object_StreamLocation { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "location"; - /** - * The vector location. - * - * @generated from protobuf field: payload.v1.Object.Location location = 1; - */ - location: Object_Location; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * Represent multiple vector locations. - * - * @generated from protobuf message payload.v1.Object.Locations - */ -export interface Object_Locations { - /** - * @generated from protobuf field: repeated payload.v1.Object.Location locations = 1; - */ - locations: Object_Location[]; -} -/** - * Represent the list object vector stream request and response. - * - * @generated from protobuf message payload.v1.Object.List - */ -export interface Object_List { -} -/** - * @generated from protobuf message payload.v1.Object.List.Request - */ -export interface Object_List_Request { -} -/** - * @generated from protobuf message payload.v1.Object.List.Response - */ -export interface Object_List_Response { - /** - * @generated from protobuf oneof: payload - */ - payload: { - oneofKind: "vector"; - /** - * The vector - * - * @generated from protobuf field: payload.v1.Object.Vector vector = 1; - */ - vector: Object_Vector; - } | { - oneofKind: "status"; - /** - * The RPC error status. - * - * @generated from protobuf field: google.rpc.Status status = 2; - */ - status: Status; - } | { - oneofKind: undefined; - }; -} -/** - * Control related messages. - * - * @generated from protobuf message payload.v1.Control - */ -export interface Control { -} -/** - * Represent the create index request. - * - * @generated from protobuf message payload.v1.Control.CreateIndexRequest - */ -export interface Control_CreateIndexRequest { - /** - * The pool size of the create index operation. - * - * @generated from protobuf field: uint32 pool_size = 1; - */ - pool_size: number; -} -/** - * Discoverer related messages. - * - * @generated from protobuf message payload.v1.Discoverer - */ -export interface Discoverer { -} -/** - * Represent the dicoverer request. - * - * @generated from protobuf message payload.v1.Discoverer.Request - */ -export interface Discoverer_Request { - /** - * The agent name to be discovered. - * - * @generated from protobuf field: string name = 1; - */ - name: string; - /** - * The namespace to be discovered. - * - * @generated from protobuf field: string namespace = 2; - */ - namespace: string; - /** - * The node to be discovered. - * - * @generated from protobuf field: string node = 3; - */ - node: string; -} -/** - * Info related messages. - * - * @generated from protobuf message payload.v1.Info - */ -export interface Info { -} -/** - * Represent the index information messages. - * - * @generated from protobuf message payload.v1.Info.Index - */ -export interface Info_Index { -} -/** - * Represent the index count message. - * - * @generated from protobuf message payload.v1.Info.Index.Count - */ -export interface Info_Index_Count { - /** - * The stored index count. - * - * @generated from protobuf field: uint32 stored = 1; - */ - stored: number; - /** - * The uncommitted index count. - * - * @generated from protobuf field: uint32 uncommitted = 2; - */ - uncommitted: number; - /** - * The indexing index count. - * - * @generated from protobuf field: bool indexing = 3; - */ - indexing: boolean; - /** - * The saving index count. - * - * @generated from protobuf field: bool saving = 4; - */ - saving: boolean; -} -/** - * Represent the UUID message. - * - * @generated from protobuf message payload.v1.Info.Index.UUID - */ -export interface Info_Index_UUID { -} -/** - * The committed UUID. - * - * @generated from protobuf message payload.v1.Info.Index.UUID.Committed - */ -export interface Info_Index_UUID_Committed { - /** - * @generated from protobuf field: string uuid = 1; - */ - uuid: string; -} -/** - * The uncommitted UUID. - * - * @generated from protobuf message payload.v1.Info.Index.UUID.Uncommitted - */ -export interface Info_Index_UUID_Uncommitted { - /** - * @generated from protobuf field: string uuid = 1; - */ - uuid: string; -} -/** - * Represent the pod information message. - * - * @generated from protobuf message payload.v1.Info.Pod - */ -export interface Info_Pod { - /** - * The app name of the pod on the label. - * - * @generated from protobuf field: string app_name = 1; - */ - app_name: string; - /** - * The name of the pod. - * - * @generated from protobuf field: string name = 2; - */ - name: string; - /** - * The namespace of the pod. - * - * @generated from protobuf field: string namespace = 3; - */ - namespace: string; - /** - * The IP of the pod. - * - * @generated from protobuf field: string ip = 4; - */ - ip: string; - /** - * The CPU information of the pod. - * - * @generated from protobuf field: payload.v1.Info.CPU cpu = 5; - */ - cpu?: Info_CPU; - /** - * The memory information of the pod. - * - * @generated from protobuf field: payload.v1.Info.Memory memory = 6; - */ - memory?: Info_Memory; - /** - * The node information of the pod. - * - * @generated from protobuf field: payload.v1.Info.Node node = 7; - */ - node?: Info_Node; -} -/** - * Represent the node information message. - * - * @generated from protobuf message payload.v1.Info.Node - */ -export interface Info_Node { - /** - * The name of the node. - * - * @generated from protobuf field: string name = 1; - */ - name: string; - /** - * The internal IP address of the node. - * - * @generated from protobuf field: string internal_addr = 2; - */ - internal_addr: string; - /** - * The external IP address of the node. - * - * @generated from protobuf field: string external_addr = 3; - */ - external_addr: string; - /** - * The CPU information of the node. - * - * @generated from protobuf field: payload.v1.Info.CPU cpu = 4; - */ - cpu?: Info_CPU; - /** - * The memory information of the node. - * - * @generated from protobuf field: payload.v1.Info.Memory memory = 5; - */ - memory?: Info_Memory; - /** - * The pod information of the node. - * - * @generated from protobuf field: payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; - */ - Pods?: Info_Pods; -} -/** - * Represent the service information message. - * - * @generated from protobuf message payload.v1.Info.Service - */ -export interface Info_Service { - /** - * The name of the svc. - * - * @generated from protobuf field: string name = 1; - */ - name: string; - /** - * The cluster ip of the svc. - * - * @generated from protobuf field: string cluster_ip = 2; - */ - cluster_ip: string; - /** - * The cluster ips of the svc. - * - * @generated from protobuf field: repeated string cluster_ips = 3; - */ - cluster_ips: string[]; - /** - * The port of the svc. - * - * @generated from protobuf field: repeated payload.v1.Info.ServicePort ports = 4; - */ - ports: Info_ServicePort[]; - /** - * The labels of the service. - * - * @generated from protobuf field: payload.v1.Info.Labels labels = 5; - */ - labels?: Info_Labels; - /** - * The annotations of the service. - * - * @generated from protobuf field: payload.v1.Info.Annotations annotations = 6; - */ - annotations?: Info_Annotations; -} -/** - * Represets the service port information message. - * - * @generated from protobuf message payload.v1.Info.ServicePort - */ -export interface Info_ServicePort { - /** - * The name of the port. - * - * @generated from protobuf field: string name = 1; - */ - name: string; - /** - * The port number - * - * @generated from protobuf field: int32 port = 2; - */ - port: number; -} -/** - * Represent the kubernetes labels. - * - * @generated from protobuf message payload.v1.Info.Labels - */ -export interface Info_Labels { - /** - * @generated from protobuf field: map labels = 1; - */ - labels: { - [key: string]: string; - }; -} -/** - * Represent the kubernetes annotations. - * - * @generated from protobuf message payload.v1.Info.Annotations - */ -export interface Info_Annotations { - /** - * @generated from protobuf field: map annotations = 1; - */ - annotations: { - [key: string]: string; - }; -} -/** - * Represent the CPU information message. - * - * @generated from protobuf message payload.v1.Info.CPU - */ -export interface Info_CPU { - /** - * The CPU resource limit. - * - * @generated from protobuf field: double limit = 1; - */ - limit: number; - /** - * The CPU resource requested. - * - * @generated from protobuf field: double request = 2; - */ - request: number; - /** - * The CPU usage. - * - * @generated from protobuf field: double usage = 3; - */ - usage: number; -} -/** - * Represent the memory information message. - * - * @generated from protobuf message payload.v1.Info.Memory - */ -export interface Info_Memory { - /** - * The memory limit. - * - * @generated from protobuf field: double limit = 1; - */ - limit: number; - /** - * The memory requested. - * - * @generated from protobuf field: double request = 2; - */ - request: number; - /** - * The memory usage. - * - * @generated from protobuf field: double usage = 3; - */ - usage: number; -} -/** - * Represent the multiple pod information message. - * - * @generated from protobuf message payload.v1.Info.Pods - */ -export interface Info_Pods { - /** - * The multiple pod information. - * - * @generated from protobuf field: repeated payload.v1.Info.Pod pods = 1; - */ - pods: Info_Pod[]; -} -/** - * Represent the multiple node information message. - * - * @generated from protobuf message payload.v1.Info.Nodes - */ -export interface Info_Nodes { - /** - * The multiple node information. - * - * @generated from protobuf field: repeated payload.v1.Info.Node nodes = 1; - */ - nodes: Info_Node[]; -} -/** - * Represent the multiple service information message. - * - * @generated from protobuf message payload.v1.Info.Services - */ -export interface Info_Services { - /** - * The multiple service information. - * - * @generated from protobuf field: repeated payload.v1.Info.Service services = 1; - */ - services: Info_Service[]; -} -/** - * Represent the multiple IP message. - * - * @generated from protobuf message payload.v1.Info.IPs - */ -export interface Info_IPs { - /** - * @generated from protobuf field: repeated string ip = 1; - */ - ip: string[]; -} -/** - * Mirror related messages. - * - * @generated from protobuf message payload.v1.Mirror - */ -export interface Mirror { -} -/** - * Represent server information. - * - * @generated from protobuf message payload.v1.Mirror.Target - */ -export interface Mirror_Target { - /** - * The target hostname. - * - * @generated from protobuf field: string host = 1; - */ - host: string; - /** - * The target port. - * - * @generated from protobuf field: uint32 port = 2; - */ - port: number; -} -/** - * Represent the multiple Target message. - * - * @generated from protobuf message payload.v1.Mirror.Targets - */ -export interface Mirror_Targets { - /** - * The multiple target information. - * - * @generated from protobuf field: repeated payload.v1.Mirror.Target targets = 1; - */ - targets: Mirror_Target[]; -} -/** - * Represent an empty message. - * - * @generated from protobuf message payload.v1.Empty - */ -export interface Empty { -} -declare class Search$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search): Search; - internalBinaryWrite(message: Search, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search - */ -export declare const Search: Search$Type; -declare class Search_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Request): Search_Request; - internalBinaryWrite(message: Search_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Request - */ -export declare const Search_Request: Search_Request$Type; -declare class Search_MultiRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_MultiRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiRequest): Search_MultiRequest; - internalBinaryWrite(message: Search_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiRequest - */ -export declare const Search_MultiRequest: Search_MultiRequest$Type; -declare class Search_IDRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_IDRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_IDRequest): Search_IDRequest; - internalBinaryWrite(message: Search_IDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.IDRequest - */ -export declare const Search_IDRequest: Search_IDRequest$Type; -declare class Search_MultiIDRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_MultiIDRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiIDRequest): Search_MultiIDRequest; - internalBinaryWrite(message: Search_MultiIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiIDRequest - */ -export declare const Search_MultiIDRequest: Search_MultiIDRequest$Type; -declare class Search_ObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_ObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_ObjectRequest): Search_ObjectRequest; - internalBinaryWrite(message: Search_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.ObjectRequest - */ -export declare const Search_ObjectRequest: Search_ObjectRequest$Type; -declare class Search_MultiObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_MultiObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_MultiObjectRequest): Search_MultiObjectRequest; - internalBinaryWrite(message: Search_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiObjectRequest - */ -export declare const Search_MultiObjectRequest: Search_MultiObjectRequest$Type; -declare class Search_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Config): Search_Config; - internalBinaryWrite(message: Search_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Config - */ -export declare const Search_Config: Search_Config$Type; -declare class Search_Response$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_Response; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Response): Search_Response; - internalBinaryWrite(message: Search_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Response - */ -export declare const Search_Response: Search_Response$Type; -declare class Search_Responses$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_Responses; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_Responses): Search_Responses; - internalBinaryWrite(message: Search_Responses, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Responses - */ -export declare const Search_Responses: Search_Responses$Type; -declare class Search_StreamResponse$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Search_StreamResponse; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Search_StreamResponse): Search_StreamResponse; - internalBinaryWrite(message: Search_StreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Search.StreamResponse - */ -export declare const Search_StreamResponse: Search_StreamResponse$Type; -declare class Filter$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Filter; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter): Filter; - internalBinaryWrite(message: Filter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Filter - */ -export declare const Filter: Filter$Type; -declare class Filter_Target$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Filter_Target; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter_Target): Filter_Target; - internalBinaryWrite(message: Filter_Target, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Filter.Target - */ -export declare const Filter_Target: Filter_Target$Type; -declare class Filter_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Filter_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Filter_Config): Filter_Config; - internalBinaryWrite(message: Filter_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Filter.Config - */ -export declare const Filter_Config: Filter_Config$Type; -declare class Insert$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert): Insert; - internalBinaryWrite(message: Insert, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert - */ -export declare const Insert: Insert$Type; -declare class Insert_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_Request): Insert_Request; - internalBinaryWrite(message: Insert_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.Request - */ -export declare const Insert_Request: Insert_Request$Type; -declare class Insert_MultiRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert_MultiRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_MultiRequest): Insert_MultiRequest; - internalBinaryWrite(message: Insert_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.MultiRequest - */ -export declare const Insert_MultiRequest: Insert_MultiRequest$Type; -declare class Insert_ObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert_ObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_ObjectRequest): Insert_ObjectRequest; - internalBinaryWrite(message: Insert_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.ObjectRequest - */ -export declare const Insert_ObjectRequest: Insert_ObjectRequest$Type; -declare class Insert_MultiObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert_MultiObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_MultiObjectRequest): Insert_MultiObjectRequest; - internalBinaryWrite(message: Insert_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.MultiObjectRequest - */ -export declare const Insert_MultiObjectRequest: Insert_MultiObjectRequest$Type; -declare class Insert_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Insert_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Insert_Config): Insert_Config; - internalBinaryWrite(message: Insert_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.Config - */ -export declare const Insert_Config: Insert_Config$Type; -declare class Update$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update): Update; - internalBinaryWrite(message: Update, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update - */ -export declare const Update: Update$Type; -declare class Update_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_Request): Update_Request; - internalBinaryWrite(message: Update_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update.Request - */ -export declare const Update_Request: Update_Request$Type; -declare class Update_MultiRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update_MultiRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_MultiRequest): Update_MultiRequest; - internalBinaryWrite(message: Update_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update.MultiRequest - */ -export declare const Update_MultiRequest: Update_MultiRequest$Type; -declare class Update_ObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update_ObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_ObjectRequest): Update_ObjectRequest; - internalBinaryWrite(message: Update_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update.ObjectRequest - */ -export declare const Update_ObjectRequest: Update_ObjectRequest$Type; -declare class Update_MultiObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update_MultiObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_MultiObjectRequest): Update_MultiObjectRequest; - internalBinaryWrite(message: Update_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update.MultiObjectRequest - */ -export declare const Update_MultiObjectRequest: Update_MultiObjectRequest$Type; -declare class Update_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Update_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Update_Config): Update_Config; - internalBinaryWrite(message: Update_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Update.Config - */ -export declare const Update_Config: Update_Config$Type; -declare class Upsert$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert): Upsert; - internalBinaryWrite(message: Upsert, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert - */ -export declare const Upsert: Upsert$Type; -declare class Upsert_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_Request): Upsert_Request; - internalBinaryWrite(message: Upsert_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.Request - */ -export declare const Upsert_Request: Upsert_Request$Type; -declare class Upsert_MultiRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert_MultiRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_MultiRequest): Upsert_MultiRequest; - internalBinaryWrite(message: Upsert_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.MultiRequest - */ -export declare const Upsert_MultiRequest: Upsert_MultiRequest$Type; -declare class Upsert_ObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert_ObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_ObjectRequest): Upsert_ObjectRequest; - internalBinaryWrite(message: Upsert_ObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.ObjectRequest - */ -export declare const Upsert_ObjectRequest: Upsert_ObjectRequest$Type; -declare class Upsert_MultiObjectRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert_MultiObjectRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_MultiObjectRequest): Upsert_MultiObjectRequest; - internalBinaryWrite(message: Upsert_MultiObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.MultiObjectRequest - */ -export declare const Upsert_MultiObjectRequest: Upsert_MultiObjectRequest$Type; -declare class Upsert_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Upsert_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Upsert_Config): Upsert_Config; - internalBinaryWrite(message: Upsert_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.Config - */ -export declare const Upsert_Config: Upsert_Config$Type; -declare class Remove$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove): Remove; - internalBinaryWrite(message: Remove, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove - */ -export declare const Remove: Remove$Type; -declare class Remove_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Request): Remove_Request; - internalBinaryWrite(message: Remove_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Request - */ -export declare const Remove_Request: Remove_Request$Type; -declare class Remove_MultiRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove_MultiRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_MultiRequest): Remove_MultiRequest; - internalBinaryWrite(message: Remove_MultiRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.MultiRequest - */ -export declare const Remove_MultiRequest: Remove_MultiRequest$Type; -declare class Remove_TimestampRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove_TimestampRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_TimestampRequest): Remove_TimestampRequest; - internalBinaryWrite(message: Remove_TimestampRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.TimestampRequest - */ -export declare const Remove_TimestampRequest: Remove_TimestampRequest$Type; -declare class Remove_Timestamp$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove_Timestamp; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Timestamp): Remove_Timestamp; - internalBinaryWrite(message: Remove_Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Timestamp - */ -export declare const Remove_Timestamp: Remove_Timestamp$Type; -declare class Remove_Config$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Remove_Config; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Remove_Config): Remove_Config; - internalBinaryWrite(message: Remove_Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Config - */ -export declare const Remove_Config: Remove_Config$Type; -declare class Object$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object): Object; - internalBinaryWrite(message: Object, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object - */ -export declare const Object: Object$Type; -declare class Object_VectorRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_VectorRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_VectorRequest): Object_VectorRequest; - internalBinaryWrite(message: Object_VectorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.VectorRequest - */ -export declare const Object_VectorRequest: Object_VectorRequest$Type; -declare class Object_Distance$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Distance; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Distance): Object_Distance; - internalBinaryWrite(message: Object_Distance, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Distance - */ -export declare const Object_Distance: Object_Distance$Type; -declare class Object_StreamDistance$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_StreamDistance; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamDistance): Object_StreamDistance; - internalBinaryWrite(message: Object_StreamDistance, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamDistance - */ -export declare const Object_StreamDistance: Object_StreamDistance$Type; -declare class Object_ID$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_ID; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_ID): Object_ID; - internalBinaryWrite(message: Object_ID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.ID - */ -export declare const Object_ID: Object_ID$Type; -declare class Object_IDs$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_IDs; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_IDs): Object_IDs; - internalBinaryWrite(message: Object_IDs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.IDs - */ -export declare const Object_IDs: Object_IDs$Type; -declare class Object_Vector$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Vector; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Vector): Object_Vector; - internalBinaryWrite(message: Object_Vector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Vector - */ -export declare const Object_Vector: Object_Vector$Type; -declare class Object_GetTimestampRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_GetTimestampRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_GetTimestampRequest): Object_GetTimestampRequest; - internalBinaryWrite(message: Object_GetTimestampRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.GetTimestampRequest - */ -export declare const Object_GetTimestampRequest: Object_GetTimestampRequest$Type; -declare class Object_Timestamp$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Timestamp; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Timestamp): Object_Timestamp; - internalBinaryWrite(message: Object_Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Timestamp - */ -export declare const Object_Timestamp: Object_Timestamp$Type; -declare class Object_Vectors$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Vectors; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Vectors): Object_Vectors; - internalBinaryWrite(message: Object_Vectors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Vectors - */ -export declare const Object_Vectors: Object_Vectors$Type; -declare class Object_StreamVector$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_StreamVector; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamVector): Object_StreamVector; - internalBinaryWrite(message: Object_StreamVector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamVector - */ -export declare const Object_StreamVector: Object_StreamVector$Type; -declare class Object_ReshapeVector$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_ReshapeVector; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_ReshapeVector): Object_ReshapeVector; - internalBinaryWrite(message: Object_ReshapeVector, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.ReshapeVector - */ -export declare const Object_ReshapeVector: Object_ReshapeVector$Type; -declare class Object_Blob$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Blob; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Blob): Object_Blob; - internalBinaryWrite(message: Object_Blob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Blob - */ -export declare const Object_Blob: Object_Blob$Type; -declare class Object_StreamBlob$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_StreamBlob; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamBlob): Object_StreamBlob; - internalBinaryWrite(message: Object_StreamBlob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamBlob - */ -export declare const Object_StreamBlob: Object_StreamBlob$Type; -declare class Object_Location$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Location; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Location): Object_Location; - internalBinaryWrite(message: Object_Location, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Location - */ -export declare const Object_Location: Object_Location$Type; -declare class Object_StreamLocation$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_StreamLocation; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_StreamLocation): Object_StreamLocation; - internalBinaryWrite(message: Object_StreamLocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamLocation - */ -export declare const Object_StreamLocation: Object_StreamLocation$Type; -declare class Object_Locations$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_Locations; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_Locations): Object_Locations; - internalBinaryWrite(message: Object_Locations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Locations - */ -export declare const Object_Locations: Object_Locations$Type; -declare class Object_List$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_List; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List): Object_List; - internalBinaryWrite(message: Object_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List - */ -export declare const Object_List: Object_List$Type; -declare class Object_List_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_List_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List_Request): Object_List_Request; - internalBinaryWrite(message: Object_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List.Request - */ -export declare const Object_List_Request: Object_List_Request$Type; -declare class Object_List_Response$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Object_List_Response; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Object_List_Response): Object_List_Response; - internalBinaryWrite(message: Object_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List.Response - */ -export declare const Object_List_Response: Object_List_Response$Type; -declare class Control$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Control; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Control): Control; - internalBinaryWrite(message: Control, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Control - */ -export declare const Control: Control$Type; -declare class Control_CreateIndexRequest$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Control_CreateIndexRequest; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Control_CreateIndexRequest): Control_CreateIndexRequest; - internalBinaryWrite(message: Control_CreateIndexRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Control.CreateIndexRequest - */ -export declare const Control_CreateIndexRequest: Control_CreateIndexRequest$Type; -declare class Discoverer$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Discoverer; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Discoverer): Discoverer; - internalBinaryWrite(message: Discoverer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Discoverer - */ -export declare const Discoverer: Discoverer$Type; -declare class Discoverer_Request$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Discoverer_Request; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Discoverer_Request): Discoverer_Request; - internalBinaryWrite(message: Discoverer_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Discoverer.Request - */ -export declare const Discoverer_Request: Discoverer_Request$Type; -declare class Info$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info): Info; - internalBinaryWrite(message: Info, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info - */ -export declare const Info: Info$Type; -declare class Info_Index$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Index; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index): Info_Index; - internalBinaryWrite(message: Info_Index, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index - */ -export declare const Info_Index: Info_Index$Type; -declare class Info_Index_Count$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Index_Count; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_Count): Info_Index_Count; - internalBinaryWrite(message: Info_Index_Count, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.Count - */ -export declare const Info_Index_Count: Info_Index_Count$Type; -declare class Info_Index_UUID$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Index_UUID; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID): Info_Index_UUID; - internalBinaryWrite(message: Info_Index_UUID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID - */ -export declare const Info_Index_UUID: Info_Index_UUID$Type; -declare class Info_Index_UUID_Committed$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Index_UUID_Committed; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID_Committed): Info_Index_UUID_Committed; - internalBinaryWrite(message: Info_Index_UUID_Committed, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Committed - */ -export declare const Info_Index_UUID_Committed: Info_Index_UUID_Committed$Type; -declare class Info_Index_UUID_Uncommitted$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Index_UUID_Uncommitted; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Index_UUID_Uncommitted): Info_Index_UUID_Uncommitted; - internalBinaryWrite(message: Info_Index_UUID_Uncommitted, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Uncommitted - */ -export declare const Info_Index_UUID_Uncommitted: Info_Index_UUID_Uncommitted$Type; -declare class Info_Pod$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Pod; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Pod): Info_Pod; - internalBinaryWrite(message: Info_Pod, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Pod - */ -export declare const Info_Pod: Info_Pod$Type; -declare class Info_Node$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Node; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Node): Info_Node; - internalBinaryWrite(message: Info_Node, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Node - */ -export declare const Info_Node: Info_Node$Type; -declare class Info_Service$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Service; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Service): Info_Service; - internalBinaryWrite(message: Info_Service, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Service - */ -export declare const Info_Service: Info_Service$Type; -declare class Info_ServicePort$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_ServicePort; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_ServicePort): Info_ServicePort; - internalBinaryWrite(message: Info_ServicePort, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.ServicePort - */ -export declare const Info_ServicePort: Info_ServicePort$Type; -declare class Info_Labels$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Labels; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Labels): Info_Labels; - private binaryReadMap1; - internalBinaryWrite(message: Info_Labels, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Labels - */ -export declare const Info_Labels: Info_Labels$Type; -declare class Info_Annotations$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Annotations; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Annotations): Info_Annotations; - private binaryReadMap1; - internalBinaryWrite(message: Info_Annotations, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Annotations - */ -export declare const Info_Annotations: Info_Annotations$Type; -declare class Info_CPU$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_CPU; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_CPU): Info_CPU; - internalBinaryWrite(message: Info_CPU, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.CPU - */ -export declare const Info_CPU: Info_CPU$Type; -declare class Info_Memory$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Memory; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Memory): Info_Memory; - internalBinaryWrite(message: Info_Memory, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Memory - */ -export declare const Info_Memory: Info_Memory$Type; -declare class Info_Pods$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Pods; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Pods): Info_Pods; - internalBinaryWrite(message: Info_Pods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Pods - */ -export declare const Info_Pods: Info_Pods$Type; -declare class Info_Nodes$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Nodes; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Nodes): Info_Nodes; - internalBinaryWrite(message: Info_Nodes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Nodes - */ -export declare const Info_Nodes: Info_Nodes$Type; -declare class Info_Services$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_Services; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_Services): Info_Services; - internalBinaryWrite(message: Info_Services, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Services - */ -export declare const Info_Services: Info_Services$Type; -declare class Info_IPs$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Info_IPs; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info_IPs): Info_IPs; - internalBinaryWrite(message: Info_IPs, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Info.IPs - */ -export declare const Info_IPs: Info_IPs$Type; -declare class Mirror$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Mirror; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror): Mirror; - internalBinaryWrite(message: Mirror, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror - */ -export declare const Mirror: Mirror$Type; -declare class Mirror_Target$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Mirror_Target; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror_Target): Mirror_Target; - internalBinaryWrite(message: Mirror_Target, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror.Target - */ -export declare const Mirror_Target: Mirror_Target$Type; -declare class Mirror_Targets$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Mirror_Targets; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Mirror_Targets): Mirror_Targets; - internalBinaryWrite(message: Mirror_Targets, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror.Targets - */ -export declare const Mirror_Targets: Mirror_Targets$Type; -declare class Empty$Type extends MessageType { - constructor(); - create(value?: PartialMessage): Empty; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty; - internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message payload.v1.Empty - */ -export declare const Empty: Empty$Type; -export {}; diff --git a/src/vald/v1/payload/payload_pb.js b/src/vald/v1/payload/payload_pb.js deleted file mode 100644 index ed736ac4..00000000 --- a/src/vald/v1/payload/payload_pb.js +++ /dev/null @@ -1,4377 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Empty = exports.Mirror_Targets = exports.Mirror_Target = exports.Mirror = exports.Info_IPs = exports.Info_Services = exports.Info_Nodes = exports.Info_Pods = exports.Info_Memory = exports.Info_CPU = exports.Info_Annotations = exports.Info_Labels = exports.Info_ServicePort = exports.Info_Service = exports.Info_Node = exports.Info_Pod = exports.Info_Index_UUID_Uncommitted = exports.Info_Index_UUID_Committed = exports.Info_Index_UUID = exports.Info_Index_Count = exports.Info_Index = exports.Info = exports.Discoverer_Request = exports.Discoverer = exports.Control_CreateIndexRequest = exports.Control = exports.Object_List_Response = exports.Object_List_Request = exports.Object_List = exports.Object_Locations = exports.Object_StreamLocation = exports.Object_Location = exports.Object_StreamBlob = exports.Object_Blob = exports.Object_ReshapeVector = exports.Object_StreamVector = exports.Object_Vectors = exports.Object_Timestamp = exports.Object_GetTimestampRequest = exports.Object_Vector = exports.Object_IDs = exports.Object_ID = exports.Object_StreamDistance = exports.Object_Distance = exports.Object_VectorRequest = exports.Object = exports.Remove_Config = exports.Remove_Timestamp = exports.Remove_TimestampRequest = exports.Remove_MultiRequest = exports.Remove_Request = exports.Remove = exports.Upsert_Config = exports.Upsert_MultiObjectRequest = exports.Upsert_ObjectRequest = exports.Upsert_MultiRequest = exports.Upsert_Request = exports.Upsert = exports.Update_Config = exports.Update_MultiObjectRequest = exports.Update_ObjectRequest = exports.Update_MultiRequest = exports.Update_Request = exports.Update = exports.Insert_Config = exports.Insert_MultiObjectRequest = exports.Insert_ObjectRequest = exports.Insert_MultiRequest = exports.Insert_Request = exports.Insert = exports.Filter_Config = exports.Filter_Target = exports.Filter = exports.Search_StreamResponse = exports.Search_Responses = exports.Search_Response = exports.Search_Config = exports.Search_MultiObjectRequest = exports.Search_ObjectRequest = exports.Search_MultiIDRequest = exports.Search_IDRequest = exports.Search_MultiRequest = exports.Search_Request = exports.Search = exports.Remove_Timestamp_Operator = exports.Search_AggregationAlgorithm = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/payload/payload.proto" (package "payload.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const runtime_1 = require("@protobuf-ts/runtime"); -const runtime_2 = require("@protobuf-ts/runtime"); -const runtime_3 = require("@protobuf-ts/runtime"); -const runtime_4 = require("@protobuf-ts/runtime"); -const status_pb_1 = require("../../../google/rpc/status_pb"); -/** - * AggregationAlgorithm is enum of each aggregation algorithms - * - * @generated from protobuf enum payload.v1.Search.AggregationAlgorithm - */ -var Search_AggregationAlgorithm; -(function (Search_AggregationAlgorithm) { - /** - * @generated from protobuf enum value: Unknown = 0; - */ - Search_AggregationAlgorithm[Search_AggregationAlgorithm["Unknown"] = 0] = "Unknown"; - /** - * @generated from protobuf enum value: ConcurrentQueue = 1; - */ - Search_AggregationAlgorithm[Search_AggregationAlgorithm["ConcurrentQueue"] = 1] = "ConcurrentQueue"; - /** - * @generated from protobuf enum value: SortSlice = 2; - */ - Search_AggregationAlgorithm[Search_AggregationAlgorithm["SortSlice"] = 2] = "SortSlice"; - /** - * @generated from protobuf enum value: SortPoolSlice = 3; - */ - Search_AggregationAlgorithm[Search_AggregationAlgorithm["SortPoolSlice"] = 3] = "SortPoolSlice"; - /** - * @generated from protobuf enum value: PairingHeap = 4; - */ - Search_AggregationAlgorithm[Search_AggregationAlgorithm["PairingHeap"] = 4] = "PairingHeap"; -})(Search_AggregationAlgorithm = exports.Search_AggregationAlgorithm || (exports.Search_AggregationAlgorithm = {})); -/** - * Operator is enum of each conditional operator. - * - * @generated from protobuf enum payload.v1.Remove.Timestamp.Operator - */ -var Remove_Timestamp_Operator; -(function (Remove_Timestamp_Operator) { - /** - * The timestamp is equal to the specified value in the request. - * - * @generated from protobuf enum value: Eq = 0; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Eq"] = 0] = "Eq"; - /** - * The timestamp is not equal to the specified value in the request. - * - * @generated from protobuf enum value: Ne = 1; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Ne"] = 1] = "Ne"; - /** - * The timestamp is greater than or equal to the specified value in the request. - * - * @generated from protobuf enum value: Ge = 2; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Ge"] = 2] = "Ge"; - /** - * The timestamp is greater than the specified value in the request. - * - * @generated from protobuf enum value: Gt = 3; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Gt"] = 3] = "Gt"; - /** - * The timestamp is less than or equal to the specified value in the request. - * - * @generated from protobuf enum value: Le = 4; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Le"] = 4] = "Le"; - /** - * The timestamp is less than the specified value in the request. - * - * @generated from protobuf enum value: Lt = 5; - */ - Remove_Timestamp_Operator[Remove_Timestamp_Operator["Lt"] = 5] = "Lt"; -})(Remove_Timestamp_Operator = exports.Remove_Timestamp_Operator || (exports.Remove_Timestamp_Operator = {})); -// @generated message type with reflection information, may provide speed optimized methods -class Search$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search - */ -exports.Search = new Search$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.Request", [ - { no: 1, name: "vector", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 2, name: "config", kind: "message", T: () => exports.Search_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.vector = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated float vector */ 1: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.vector.push(reader.float()); - else - message.vector.push(reader.float()); - break; - case /* payload.v1.Search.Config config */ 2: - message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated float vector = 1; */ - if (message.vector.length) { - writer.tag(1, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.vector.length; i++) - writer.float(message.vector[i]); - writer.join(); - } - /* payload.v1.Search.Config config = 2; */ - if (message.config) - exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Request - */ -exports.Search_Request = new Search_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_MultiRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.MultiRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_Request } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Search.Request requests */ 1: - message.requests.push(exports.Search_Request.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Search.Request requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Search_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiRequest - */ -exports.Search_MultiRequest = new Search_MultiRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_IDRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.IDRequest", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "config", kind: "message", T: () => exports.Search_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* payload.v1.Search.Config config */ 2: - message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* payload.v1.Search.Config config = 2; */ - if (message.config) - exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.IDRequest - */ -exports.Search_IDRequest = new Search_IDRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_MultiIDRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.MultiIDRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_IDRequest } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Search.IDRequest requests */ 1: - message.requests.push(exports.Search_IDRequest.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Search.IDRequest requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Search_IDRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiIDRequest - */ -exports.Search_MultiIDRequest = new Search_MultiIDRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_ObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.ObjectRequest", [ - { no: 1, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }, - { no: 2, name: "config", kind: "message", T: () => exports.Search_Config }, - { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.object = new Uint8Array(0); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bytes object */ 1: - message.object = reader.bytes(); - break; - case /* payload.v1.Search.Config config */ 2: - message.config = exports.Search_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - case /* payload.v1.Filter.Target vectorizer */ 3: - message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bytes object = 1; */ - if (message.object.length) - writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.object); - /* payload.v1.Search.Config config = 2; */ - if (message.config) - exports.Search_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Target vectorizer = 3; */ - if (message.vectorizer) - exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.ObjectRequest - */ -exports.Search_ObjectRequest = new Search_ObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_MultiObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.MultiObjectRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_ObjectRequest } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Search.ObjectRequest requests */ 1: - message.requests.push(exports.Search_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Search.ObjectRequest requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Search_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.MultiObjectRequest - */ -exports.Search_MultiObjectRequest = new Search_MultiObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.Config", [ - { no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "num", kind: "scalar", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 1 } } } }, - { no: 3, name: "radius", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }, - { no: 4, name: "epsilon", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }, - { no: 5, name: "timeout", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 6, name: "ingress_filters", kind: "message", localName: "ingress_filters", T: () => exports.Filter_Config }, - { no: 7, name: "egress_filters", kind: "message", localName: "egress_filters", T: () => exports.Filter_Config }, - { no: 8, name: "min_num", kind: "scalar", localName: "min_num", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 0 } } } }, - { no: 9, name: "aggregation_algorithm", kind: "enum", localName: "aggregation_algorithm", T: () => ["payload.v1.Search.AggregationAlgorithm", Search_AggregationAlgorithm] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.request_id = ""; - message.num = 0; - message.radius = 0; - message.epsilon = 0; - message.timeout = 0n; - message.min_num = 0; - message.aggregation_algorithm = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string request_id */ 1: - message.request_id = reader.string(); - break; - case /* uint32 num */ 2: - message.num = reader.uint32(); - break; - case /* float radius */ 3: - message.radius = reader.float(); - break; - case /* float epsilon */ 4: - message.epsilon = reader.float(); - break; - case /* int64 timeout */ 5: - message.timeout = reader.int64().toBigInt(); - break; - case /* payload.v1.Filter.Config ingress_filters */ 6: - message.ingress_filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.ingress_filters); - break; - case /* payload.v1.Filter.Config egress_filters */ 7: - message.egress_filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.egress_filters); - break; - case /* uint32 min_num */ 8: - message.min_num = reader.uint32(); - break; - case /* payload.v1.Search.AggregationAlgorithm aggregation_algorithm */ 9: - message.aggregation_algorithm = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string request_id = 1; */ - if (message.request_id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.request_id); - /* uint32 num = 2; */ - if (message.num !== 0) - writer.tag(2, runtime_1.WireType.Varint).uint32(message.num); - /* float radius = 3; */ - if (message.radius !== 0) - writer.tag(3, runtime_1.WireType.Bit32).float(message.radius); - /* float epsilon = 4; */ - if (message.epsilon !== 0) - writer.tag(4, runtime_1.WireType.Bit32).float(message.epsilon); - /* int64 timeout = 5; */ - if (message.timeout !== 0n) - writer.tag(5, runtime_1.WireType.Varint).int64(message.timeout); - /* payload.v1.Filter.Config ingress_filters = 6; */ - if (message.ingress_filters) - exports.Filter_Config.internalBinaryWrite(message.ingress_filters, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Config egress_filters = 7; */ - if (message.egress_filters) - exports.Filter_Config.internalBinaryWrite(message.egress_filters, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* uint32 min_num = 8; */ - if (message.min_num !== 0) - writer.tag(8, runtime_1.WireType.Varint).uint32(message.min_num); - /* payload.v1.Search.AggregationAlgorithm aggregation_algorithm = 9; */ - if (message.aggregation_algorithm !== 0) - writer.tag(9, runtime_1.WireType.Varint).int32(message.aggregation_algorithm); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Config - */ -exports.Search_Config = new Search_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_Response$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.Response", [ - { no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "results", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Distance } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.request_id = ""; - message.results = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string request_id */ 1: - message.request_id = reader.string(); - break; - case /* repeated payload.v1.Object.Distance results */ 2: - message.results.push(exports.Object_Distance.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string request_id = 1; */ - if (message.request_id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.request_id); - /* repeated payload.v1.Object.Distance results = 2; */ - for (let i = 0; i < message.results.length; i++) - exports.Object_Distance.internalBinaryWrite(message.results[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Response - */ -exports.Search_Response = new Search_Response$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_Responses$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.Responses", [ - { no: 1, name: "responses", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Search_Response } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.responses = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Search.Response responses */ 1: - message.responses.push(exports.Search_Response.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Search.Response responses = 1; */ - for (let i = 0; i < message.responses.length; i++) - exports.Search_Response.internalBinaryWrite(message.responses[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.Responses - */ -exports.Search_Responses = new Search_Responses$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Search_StreamResponse$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Search.StreamResponse", [ - { no: 1, name: "response", kind: "message", oneof: "payload", T: () => exports.Search_Response }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Search.Response response */ 1: - message.payload = { - oneofKind: "response", - response: exports.Search_Response.internalBinaryRead(reader, reader.uint32(), options, message.payload.response) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Search.Response response = 1; */ - if (message.payload.oneofKind === "response") - exports.Search_Response.internalBinaryWrite(message.payload.response, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Search.StreamResponse - */ -exports.Search_StreamResponse = new Search_StreamResponse$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Filter$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Filter", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Filter - */ -exports.Filter = new Filter$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Filter_Target$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Filter.Target", [ - { no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.host = ""; - message.port = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string host */ 1: - message.host = reader.string(); - break; - case /* uint32 port */ 2: - message.port = reader.uint32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string host = 1; */ - if (message.host !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.host); - /* uint32 port = 2; */ - if (message.port !== 0) - writer.tag(2, runtime_1.WireType.Varint).uint32(message.port); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Filter.Target - */ -exports.Filter_Target = new Filter_Target$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Filter_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Filter.Config", [ - { no: 1, name: "targets", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Filter_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.targets = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Filter.Target targets */ 1: - message.targets.push(exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Filter.Target targets = 1; */ - for (let i = 0; i < message.targets.length; i++) - exports.Filter_Target.internalBinaryWrite(message.targets[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Filter.Config - */ -exports.Filter_Config = new Filter_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert - */ -exports.Insert = new Insert$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert.Request", [ - { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 2, name: "config", kind: "message", T: () => exports.Insert_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Vector vector */ 1: - message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); - break; - case /* payload.v1.Insert.Config config */ 2: - message.config = exports.Insert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Vector vector = 1; */ - if (message.vector) - exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Insert.Config config = 2; */ - if (message.config) - exports.Insert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.Request - */ -exports.Insert_Request = new Insert_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert_MultiRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert.MultiRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Insert_Request } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Insert.Request requests */ 1: - message.requests.push(exports.Insert_Request.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Insert.Request requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Insert_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.MultiRequest - */ -exports.Insert_MultiRequest = new Insert_MultiRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert_ObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert.ObjectRequest", [ - { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, - { no: 2, name: "config", kind: "message", T: () => exports.Insert_Config }, - { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Blob object */ 1: - message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); - break; - case /* payload.v1.Insert.Config config */ 2: - message.config = exports.Insert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - case /* payload.v1.Filter.Target vectorizer */ 3: - message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Blob object = 1; */ - if (message.object) - exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Insert.Config config = 2; */ - if (message.config) - exports.Insert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Target vectorizer = 3; */ - if (message.vectorizer) - exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.ObjectRequest - */ -exports.Insert_ObjectRequest = new Insert_ObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert_MultiObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert.MultiObjectRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Insert_ObjectRequest } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Insert.ObjectRequest requests */ 1: - message.requests.push(exports.Insert_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Insert.ObjectRequest requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Insert_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.MultiObjectRequest - */ -exports.Insert_MultiObjectRequest = new Insert_MultiObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Insert_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Insert.Config", [ - { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, - { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.skip_strict_exist_check = false; - message.timestamp = 0n; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bool skip_strict_exist_check */ 1: - message.skip_strict_exist_check = reader.bool(); - break; - case /* payload.v1.Filter.Config filters */ 2: - message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); - break; - case /* int64 timestamp */ 3: - message.timestamp = reader.int64().toBigInt(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bool skip_strict_exist_check = 1; */ - if (message.skip_strict_exist_check !== false) - writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); - /* payload.v1.Filter.Config filters = 2; */ - if (message.filters) - exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* int64 timestamp = 3; */ - if (message.timestamp !== 0n) - writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Insert.Config - */ -exports.Insert_Config = new Insert_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update - */ -exports.Update = new Update$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update.Request", [ - { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 2, name: "config", kind: "message", T: () => exports.Update_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Vector vector */ 1: - message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); - break; - case /* payload.v1.Update.Config config */ 2: - message.config = exports.Update_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Vector vector = 1; */ - if (message.vector) - exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Update.Config config = 2; */ - if (message.config) - exports.Update_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update.Request - */ -exports.Update_Request = new Update_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update_MultiRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update.MultiRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Update_Request } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Update.Request requests */ 1: - message.requests.push(exports.Update_Request.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Update.Request requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Update_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update.MultiRequest - */ -exports.Update_MultiRequest = new Update_MultiRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update_ObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update.ObjectRequest", [ - { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, - { no: 2, name: "config", kind: "message", T: () => exports.Update_Config }, - { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Blob object */ 1: - message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); - break; - case /* payload.v1.Update.Config config */ 2: - message.config = exports.Update_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - case /* payload.v1.Filter.Target vectorizer */ 3: - message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Blob object = 1; */ - if (message.object) - exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Update.Config config = 2; */ - if (message.config) - exports.Update_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Target vectorizer = 3; */ - if (message.vectorizer) - exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update.ObjectRequest - */ -exports.Update_ObjectRequest = new Update_ObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update_MultiObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update.MultiObjectRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Update_ObjectRequest } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Update.ObjectRequest requests */ 1: - message.requests.push(exports.Update_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Update.ObjectRequest requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Update_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update.MultiObjectRequest - */ -exports.Update_MultiObjectRequest = new Update_MultiObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Update_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Update.Config", [ - { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, - { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 4, name: "disable_balanced_update", kind: "scalar", localName: "disable_balanced_update", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.skip_strict_exist_check = false; - message.timestamp = 0n; - message.disable_balanced_update = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bool skip_strict_exist_check */ 1: - message.skip_strict_exist_check = reader.bool(); - break; - case /* payload.v1.Filter.Config filters */ 2: - message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); - break; - case /* int64 timestamp */ 3: - message.timestamp = reader.int64().toBigInt(); - break; - case /* bool disable_balanced_update */ 4: - message.disable_balanced_update = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bool skip_strict_exist_check = 1; */ - if (message.skip_strict_exist_check !== false) - writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); - /* payload.v1.Filter.Config filters = 2; */ - if (message.filters) - exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* int64 timestamp = 3; */ - if (message.timestamp !== 0n) - writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); - /* bool disable_balanced_update = 4; */ - if (message.disable_balanced_update !== false) - writer.tag(4, runtime_1.WireType.Varint).bool(message.disable_balanced_update); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Update.Config - */ -exports.Update_Config = new Update_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert - */ -exports.Upsert = new Upsert$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert.Request", [ - { no: 1, name: "vector", kind: "message", T: () => exports.Object_Vector, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 2, name: "config", kind: "message", T: () => exports.Upsert_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Vector vector */ 1: - message.vector = exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.vector); - break; - case /* payload.v1.Upsert.Config config */ 2: - message.config = exports.Upsert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Vector vector = 1; */ - if (message.vector) - exports.Object_Vector.internalBinaryWrite(message.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Upsert.Config config = 2; */ - if (message.config) - exports.Upsert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.Request - */ -exports.Upsert_Request = new Upsert_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert_MultiRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert.MultiRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Upsert_Request } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Upsert.Request requests */ 1: - message.requests.push(exports.Upsert_Request.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Upsert.Request requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Upsert_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.MultiRequest - */ -exports.Upsert_MultiRequest = new Upsert_MultiRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert_ObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert.ObjectRequest", [ - { no: 1, name: "object", kind: "message", T: () => exports.Object_Blob }, - { no: 2, name: "config", kind: "message", T: () => exports.Upsert_Config }, - { no: 3, name: "vectorizer", kind: "message", T: () => exports.Filter_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Blob object */ 1: - message.object = exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.object); - break; - case /* payload.v1.Upsert.Config config */ 2: - message.config = exports.Upsert_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - case /* payload.v1.Filter.Target vectorizer */ 3: - message.vectorizer = exports.Filter_Target.internalBinaryRead(reader, reader.uint32(), options, message.vectorizer); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Blob object = 1; */ - if (message.object) - exports.Object_Blob.internalBinaryWrite(message.object, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Upsert.Config config = 2; */ - if (message.config) - exports.Upsert_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Target vectorizer = 3; */ - if (message.vectorizer) - exports.Filter_Target.internalBinaryWrite(message.vectorizer, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.ObjectRequest - */ -exports.Upsert_ObjectRequest = new Upsert_ObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert_MultiObjectRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert.MultiObjectRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Upsert_ObjectRequest } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Upsert.ObjectRequest requests */ 1: - message.requests.push(exports.Upsert_ObjectRequest.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Upsert.ObjectRequest requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Upsert_ObjectRequest.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.MultiObjectRequest - */ -exports.Upsert_MultiObjectRequest = new Upsert_MultiObjectRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Upsert_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Upsert.Config", [ - { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config }, - { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 4, name: "disable_balanced_update", kind: "scalar", localName: "disable_balanced_update", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.skip_strict_exist_check = false; - message.timestamp = 0n; - message.disable_balanced_update = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bool skip_strict_exist_check */ 1: - message.skip_strict_exist_check = reader.bool(); - break; - case /* payload.v1.Filter.Config filters */ 2: - message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); - break; - case /* int64 timestamp */ 3: - message.timestamp = reader.int64().toBigInt(); - break; - case /* bool disable_balanced_update */ 4: - message.disable_balanced_update = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bool skip_strict_exist_check = 1; */ - if (message.skip_strict_exist_check !== false) - writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); - /* payload.v1.Filter.Config filters = 2; */ - if (message.filters) - exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* int64 timestamp = 3; */ - if (message.timestamp !== 0n) - writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); - /* bool disable_balanced_update = 4; */ - if (message.disable_balanced_update !== false) - writer.tag(4, runtime_1.WireType.Varint).bool(message.disable_balanced_update); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Upsert.Config - */ -exports.Upsert_Config = new Upsert_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove - */ -exports.Remove = new Remove$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove.Request", [ - { no: 1, name: "id", kind: "message", T: () => exports.Object_ID }, - { no: 2, name: "config", kind: "message", T: () => exports.Remove_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.ID id */ 1: - message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); - break; - case /* payload.v1.Remove.Config config */ 2: - message.config = exports.Remove_Config.internalBinaryRead(reader, reader.uint32(), options, message.config); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.ID id = 1; */ - if (message.id) - exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Remove.Config config = 2; */ - if (message.config) - exports.Remove_Config.internalBinaryWrite(message.config, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Request - */ -exports.Remove_Request = new Remove_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove_MultiRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove.MultiRequest", [ - { no: 1, name: "requests", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Remove_Request } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.requests = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Remove.Request requests */ 1: - message.requests.push(exports.Remove_Request.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Remove.Request requests = 1; */ - for (let i = 0; i < message.requests.length; i++) - exports.Remove_Request.internalBinaryWrite(message.requests[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.MultiRequest - */ -exports.Remove_MultiRequest = new Remove_MultiRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove_TimestampRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove.TimestampRequest", [ - { no: 1, name: "timestamps", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Remove_Timestamp } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.timestamps = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Remove.Timestamp timestamps */ 1: - message.timestamps.push(exports.Remove_Timestamp.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Remove.Timestamp timestamps = 1; */ - for (let i = 0; i < message.timestamps.length; i++) - exports.Remove_Timestamp.internalBinaryWrite(message.timestamps[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.TimestampRequest - */ -exports.Remove_TimestampRequest = new Remove_TimestampRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove_Timestamp$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove.Timestamp", [ - { no: 1, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 2, name: "operator", kind: "enum", T: () => ["payload.v1.Remove.Timestamp.Operator", Remove_Timestamp_Operator] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.timestamp = 0n; - message.operator = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* int64 timestamp */ 1: - message.timestamp = reader.int64().toBigInt(); - break; - case /* payload.v1.Remove.Timestamp.Operator operator */ 2: - message.operator = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* int64 timestamp = 1; */ - if (message.timestamp !== 0n) - writer.tag(1, runtime_1.WireType.Varint).int64(message.timestamp); - /* payload.v1.Remove.Timestamp.Operator operator = 2; */ - if (message.operator !== 0) - writer.tag(2, runtime_1.WireType.Varint).int32(message.operator); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Timestamp - */ -exports.Remove_Timestamp = new Remove_Timestamp$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Remove_Config$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Remove.Config", [ - { no: 1, name: "skip_strict_exist_check", kind: "scalar", localName: "skip_strict_exist_check", T: 8 /*ScalarType.BOOL*/ }, - { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.skip_strict_exist_check = false; - message.timestamp = 0n; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bool skip_strict_exist_check */ 1: - message.skip_strict_exist_check = reader.bool(); - break; - case /* int64 timestamp */ 3: - message.timestamp = reader.int64().toBigInt(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bool skip_strict_exist_check = 1; */ - if (message.skip_strict_exist_check !== false) - writer.tag(1, runtime_1.WireType.Varint).bool(message.skip_strict_exist_check); - /* int64 timestamp = 3; */ - if (message.timestamp !== 0n) - writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Remove.Config - */ -exports.Remove_Config = new Remove_Config$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object - */ -exports.Object = new Object$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_VectorRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.VectorRequest", [ - { no: 1, name: "id", kind: "message", T: () => exports.Object_ID, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 2, name: "filters", kind: "message", T: () => exports.Filter_Config } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.ID id */ 1: - message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); - break; - case /* payload.v1.Filter.Config filters */ 2: - message.filters = exports.Filter_Config.internalBinaryRead(reader, reader.uint32(), options, message.filters); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.ID id = 1; */ - if (message.id) - exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Filter.Config filters = 2; */ - if (message.filters) - exports.Filter_Config.internalBinaryWrite(message.filters, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.VectorRequest - */ -exports.Object_VectorRequest = new Object_VectorRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Distance$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Distance", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "distance", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.distance = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* float distance */ 2: - message.distance = reader.float(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* float distance = 2; */ - if (message.distance !== 0) - writer.tag(2, runtime_1.WireType.Bit32).float(message.distance); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Distance - */ -exports.Object_Distance = new Object_Distance$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_StreamDistance$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.StreamDistance", [ - { no: 1, name: "distance", kind: "message", oneof: "payload", T: () => exports.Object_Distance }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Distance distance */ 1: - message.payload = { - oneofKind: "distance", - distance: exports.Object_Distance.internalBinaryRead(reader, reader.uint32(), options, message.payload.distance) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Distance distance = 1; */ - if (message.payload.oneofKind === "distance") - exports.Object_Distance.internalBinaryWrite(message.payload.distance, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamDistance - */ -exports.Object_StreamDistance = new Object_StreamDistance$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_ID$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.ID", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.ID - */ -exports.Object_ID = new Object_ID$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_IDs$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.IDs", [ - { no: 1, name: "ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.ids = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated string ids */ 1: - message.ids.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated string ids = 1; */ - for (let i = 0; i < message.ids.length; i++) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.ids[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.IDs - */ -exports.Object_IDs = new Object_IDs$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Vector$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Vector", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, - { no: 2, name: "vector", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "buf.validate.field": { repeated: { minItems: "2" } } } }, - { no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.vector = []; - message.timestamp = 0n; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* repeated float vector */ 2: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.vector.push(reader.float()); - else - message.vector.push(reader.float()); - break; - case /* int64 timestamp */ 3: - message.timestamp = reader.int64().toBigInt(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* repeated float vector = 2; */ - if (message.vector.length) { - writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.vector.length; i++) - writer.float(message.vector[i]); - writer.join(); - } - /* int64 timestamp = 3; */ - if (message.timestamp !== 0n) - writer.tag(3, runtime_1.WireType.Varint).int64(message.timestamp); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Vector - */ -exports.Object_Vector = new Object_Vector$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_GetTimestampRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.GetTimestampRequest", [ - { no: 1, name: "id", kind: "message", T: () => exports.Object_ID, options: { "buf.validate.field": { repeated: { minItems: "2" } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.ID id */ 1: - message.id = exports.Object_ID.internalBinaryRead(reader, reader.uint32(), options, message.id); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.ID id = 1; */ - if (message.id) - exports.Object_ID.internalBinaryWrite(message.id, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.GetTimestampRequest - */ -exports.Object_GetTimestampRequest = new Object_GetTimestampRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Timestamp$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Timestamp", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.timestamp = 0n; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* int64 timestamp */ 2: - message.timestamp = reader.int64().toBigInt(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* int64 timestamp = 2; */ - if (message.timestamp !== 0n) - writer.tag(2, runtime_1.WireType.Varint).int64(message.timestamp); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Timestamp - */ -exports.Object_Timestamp = new Object_Timestamp$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Vectors$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Vectors", [ - { no: 1, name: "vectors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Vector } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.vectors = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Object.Vector vectors */ 1: - message.vectors.push(exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Object.Vector vectors = 1; */ - for (let i = 0; i < message.vectors.length; i++) - exports.Object_Vector.internalBinaryWrite(message.vectors[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Vectors - */ -exports.Object_Vectors = new Object_Vectors$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_StreamVector$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.StreamVector", [ - { no: 1, name: "vector", kind: "message", oneof: "payload", T: () => exports.Object_Vector }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Vector vector */ 1: - message.payload = { - oneofKind: "vector", - vector: exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.payload.vector) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Vector vector = 1; */ - if (message.payload.oneofKind === "vector") - exports.Object_Vector.internalBinaryWrite(message.payload.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamVector - */ -exports.Object_StreamVector = new Object_StreamVector$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_ReshapeVector$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.ReshapeVector", [ - { no: 1, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }, - { no: 2, name: "shape", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.object = new Uint8Array(0); - message.shape = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bytes object */ 1: - message.object = reader.bytes(); - break; - case /* repeated int32 shape */ 2: - if (wireType === runtime_1.WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.shape.push(reader.int32()); - else - message.shape.push(reader.int32()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* bytes object = 1; */ - if (message.object.length) - writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.object); - /* repeated int32 shape = 2; */ - if (message.shape.length) { - writer.tag(2, runtime_1.WireType.LengthDelimited).fork(); - for (let i = 0; i < message.shape.length; i++) - writer.int32(message.shape[i]); - writer.join(); - } - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.ReshapeVector - */ -exports.Object_ReshapeVector = new Object_ReshapeVector$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Blob$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Blob", [ - { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, - { no: 2, name: "object", kind: "scalar", T: 12 /*ScalarType.BYTES*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.id = ""; - message.object = new Uint8Array(0); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string id */ 1: - message.id = reader.string(); - break; - case /* bytes object */ 2: - message.object = reader.bytes(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string id = 1; */ - if (message.id !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.id); - /* bytes object = 2; */ - if (message.object.length) - writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.object); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Blob - */ -exports.Object_Blob = new Object_Blob$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_StreamBlob$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.StreamBlob", [ - { no: 1, name: "blob", kind: "message", oneof: "payload", T: () => exports.Object_Blob }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Blob blob */ 1: - message.payload = { - oneofKind: "blob", - blob: exports.Object_Blob.internalBinaryRead(reader, reader.uint32(), options, message.payload.blob) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Blob blob = 1; */ - if (message.payload.oneofKind === "blob") - exports.Object_Blob.internalBinaryWrite(message.payload.blob, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamBlob - */ -exports.Object_StreamBlob = new Object_StreamBlob$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Location$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Location", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "ips", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = ""; - message.uuid = ""; - message.ips = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name */ 1: - message.name = reader.string(); - break; - case /* string uuid */ 2: - message.uuid = reader.string(); - break; - case /* repeated string ips */ 3: - message.ips.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name = 1; */ - if (message.name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* string uuid = 2; */ - if (message.uuid !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.uuid); - /* repeated string ips = 3; */ - for (let i = 0; i < message.ips.length; i++) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.ips[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Location - */ -exports.Object_Location = new Object_Location$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_StreamLocation$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.StreamLocation", [ - { no: 1, name: "location", kind: "message", oneof: "payload", T: () => exports.Object_Location }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Location location */ 1: - message.payload = { - oneofKind: "location", - location: exports.Object_Location.internalBinaryRead(reader, reader.uint32(), options, message.payload.location) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Location location = 1; */ - if (message.payload.oneofKind === "location") - exports.Object_Location.internalBinaryWrite(message.payload.location, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.StreamLocation - */ -exports.Object_StreamLocation = new Object_StreamLocation$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_Locations$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.Locations", [ - { no: 1, name: "locations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Object_Location } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.locations = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Object.Location locations */ 1: - message.locations.push(exports.Object_Location.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Object.Location locations = 1; */ - for (let i = 0; i < message.locations.length; i++) - exports.Object_Location.internalBinaryWrite(message.locations[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.Locations - */ -exports.Object_Locations = new Object_Locations$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_List$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.List", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List - */ -exports.Object_List = new Object_List$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_List_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.List.Request", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List.Request - */ -exports.Object_List_Request = new Object_List_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Object_List_Response$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Object.List.Response", [ - { no: 1, name: "vector", kind: "message", oneof: "payload", T: () => exports.Object_Vector }, - { no: 2, name: "status", kind: "message", oneof: "payload", T: () => status_pb_1.Status } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.payload = { oneofKind: undefined }; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* payload.v1.Object.Vector vector */ 1: - message.payload = { - oneofKind: "vector", - vector: exports.Object_Vector.internalBinaryRead(reader, reader.uint32(), options, message.payload.vector) - }; - break; - case /* google.rpc.Status status */ 2: - message.payload = { - oneofKind: "status", - status: status_pb_1.Status.internalBinaryRead(reader, reader.uint32(), options, message.payload.status) - }; - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* payload.v1.Object.Vector vector = 1; */ - if (message.payload.oneofKind === "vector") - exports.Object_Vector.internalBinaryWrite(message.payload.vector, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* google.rpc.Status status = 2; */ - if (message.payload.oneofKind === "status") - status_pb_1.Status.internalBinaryWrite(message.payload.status, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Object.List.Response - */ -exports.Object_List_Response = new Object_List_Response$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Control$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Control", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Control - */ -exports.Control = new Control$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Control_CreateIndexRequest$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Control.CreateIndexRequest", [ - { no: 1, name: "pool_size", kind: "scalar", localName: "pool_size", T: 13 /*ScalarType.UINT32*/, options: { "buf.validate.field": { uint32: { gte: 0 } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.pool_size = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* uint32 pool_size */ 1: - message.pool_size = reader.uint32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* uint32 pool_size = 1; */ - if (message.pool_size !== 0) - writer.tag(1, runtime_1.WireType.Varint).uint32(message.pool_size); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Control.CreateIndexRequest - */ -exports.Control_CreateIndexRequest = new Control_CreateIndexRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Discoverer$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Discoverer", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Discoverer - */ -exports.Discoverer = new Discoverer$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Discoverer_Request$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Discoverer.Request", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1" } } } }, - { no: 2, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "node", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = ""; - message.namespace = ""; - message.node = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name */ 1: - message.name = reader.string(); - break; - case /* string namespace */ 2: - message.namespace = reader.string(); - break; - case /* string node */ 3: - message.node = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name = 1; */ - if (message.name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* string namespace = 2; */ - if (message.namespace !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.namespace); - /* string node = 3; */ - if (message.node !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.node); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Discoverer.Request - */ -exports.Discoverer_Request = new Discoverer_Request$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info - */ -exports.Info = new Info$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Index$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Index", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index - */ -exports.Info_Index = new Info_Index$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Index_Count$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Index.Count", [ - { no: 1, name: "stored", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, - { no: 2, name: "uncommitted", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, - { no: 3, name: "indexing", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 4, name: "saving", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.stored = 0; - message.uncommitted = 0; - message.indexing = false; - message.saving = false; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* uint32 stored */ 1: - message.stored = reader.uint32(); - break; - case /* uint32 uncommitted */ 2: - message.uncommitted = reader.uint32(); - break; - case /* bool indexing */ 3: - message.indexing = reader.bool(); - break; - case /* bool saving */ 4: - message.saving = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* uint32 stored = 1; */ - if (message.stored !== 0) - writer.tag(1, runtime_1.WireType.Varint).uint32(message.stored); - /* uint32 uncommitted = 2; */ - if (message.uncommitted !== 0) - writer.tag(2, runtime_1.WireType.Varint).uint32(message.uncommitted); - /* bool indexing = 3; */ - if (message.indexing !== false) - writer.tag(3, runtime_1.WireType.Varint).bool(message.indexing); - /* bool saving = 4; */ - if (message.saving !== false) - writer.tag(4, runtime_1.WireType.Varint).bool(message.saving); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.Count - */ -exports.Info_Index_Count = new Info_Index_Count$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Index_UUID$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Index.UUID", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID - */ -exports.Info_Index_UUID = new Info_Index_UUID$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Index_UUID_Committed$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Index.UUID.Committed", [ - { no: 1, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uuid = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string uuid */ 1: - message.uuid = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string uuid = 1; */ - if (message.uuid !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.uuid); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Committed - */ -exports.Info_Index_UUID_Committed = new Info_Index_UUID_Committed$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Index_UUID_Uncommitted$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Index.UUID.Uncommitted", [ - { no: 1, name: "uuid", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.uuid = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string uuid */ 1: - message.uuid = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string uuid = 1; */ - if (message.uuid !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.uuid); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Index.UUID.Uncommitted - */ -exports.Info_Index_UUID_Uncommitted = new Info_Index_UUID_Uncommitted$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Pod$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Pod", [ - { no: 1, name: "app_name", kind: "scalar", localName: "app_name", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "ip", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { ipv4: true } } } }, - { no: 5, name: "cpu", kind: "message", T: () => exports.Info_CPU }, - { no: 6, name: "memory", kind: "message", T: () => exports.Info_Memory }, - { no: 7, name: "node", kind: "message", T: () => exports.Info_Node } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.app_name = ""; - message.name = ""; - message.namespace = ""; - message.ip = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string app_name */ 1: - message.app_name = reader.string(); - break; - case /* string name */ 2: - message.name = reader.string(); - break; - case /* string namespace */ 3: - message.namespace = reader.string(); - break; - case /* string ip */ 4: - message.ip = reader.string(); - break; - case /* payload.v1.Info.CPU cpu */ 5: - message.cpu = exports.Info_CPU.internalBinaryRead(reader, reader.uint32(), options, message.cpu); - break; - case /* payload.v1.Info.Memory memory */ 6: - message.memory = exports.Info_Memory.internalBinaryRead(reader, reader.uint32(), options, message.memory); - break; - case /* payload.v1.Info.Node node */ 7: - message.node = exports.Info_Node.internalBinaryRead(reader, reader.uint32(), options, message.node); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string app_name = 1; */ - if (message.app_name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.app_name); - /* string name = 2; */ - if (message.name !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.name); - /* string namespace = 3; */ - if (message.namespace !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.namespace); - /* string ip = 4; */ - if (message.ip !== "") - writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.ip); - /* payload.v1.Info.CPU cpu = 5; */ - if (message.cpu) - exports.Info_CPU.internalBinaryWrite(message.cpu, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Memory memory = 6; */ - if (message.memory) - exports.Info_Memory.internalBinaryWrite(message.memory, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Node node = 7; */ - if (message.node) - exports.Info_Node.internalBinaryWrite(message.node, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Pod - */ -exports.Info_Pod = new Info_Pod$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Node$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Node", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "internal_addr", kind: "scalar", localName: "internal_addr", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "external_addr", kind: "scalar", localName: "external_addr", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "cpu", kind: "message", T: () => exports.Info_CPU }, - { no: 5, name: "memory", kind: "message", T: () => exports.Info_Memory }, - { no: 6, name: "Pods", kind: "message", localName: "Pods", jsonName: "Pods", T: () => exports.Info_Pods } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = ""; - message.internal_addr = ""; - message.external_addr = ""; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name */ 1: - message.name = reader.string(); - break; - case /* string internal_addr */ 2: - message.internal_addr = reader.string(); - break; - case /* string external_addr */ 3: - message.external_addr = reader.string(); - break; - case /* payload.v1.Info.CPU cpu */ 4: - message.cpu = exports.Info_CPU.internalBinaryRead(reader, reader.uint32(), options, message.cpu); - break; - case /* payload.v1.Info.Memory memory */ 5: - message.memory = exports.Info_Memory.internalBinaryRead(reader, reader.uint32(), options, message.memory); - break; - case /* payload.v1.Info.Pods Pods = 6 [json_name = "Pods"];*/ 6: - message.Pods = exports.Info_Pods.internalBinaryRead(reader, reader.uint32(), options, message.Pods); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name = 1; */ - if (message.name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* string internal_addr = 2; */ - if (message.internal_addr !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.internal_addr); - /* string external_addr = 3; */ - if (message.external_addr !== "") - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.external_addr); - /* payload.v1.Info.CPU cpu = 4; */ - if (message.cpu) - exports.Info_CPU.internalBinaryWrite(message.cpu, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Memory memory = 5; */ - if (message.memory) - exports.Info_Memory.internalBinaryWrite(message.memory, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Pods Pods = 6 [json_name = "Pods"]; */ - if (message.Pods) - exports.Info_Pods.internalBinaryWrite(message.Pods, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Node - */ -exports.Info_Node = new Info_Node$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Service$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Service", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "cluster_ip", kind: "scalar", localName: "cluster_ip", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "cluster_ips", kind: "scalar", localName: "cluster_ips", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "ports", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_ServicePort }, - { no: 5, name: "labels", kind: "message", T: () => exports.Info_Labels }, - { no: 6, name: "annotations", kind: "message", T: () => exports.Info_Annotations } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = ""; - message.cluster_ip = ""; - message.cluster_ips = []; - message.ports = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name */ 1: - message.name = reader.string(); - break; - case /* string cluster_ip */ 2: - message.cluster_ip = reader.string(); - break; - case /* repeated string cluster_ips */ 3: - message.cluster_ips.push(reader.string()); - break; - case /* repeated payload.v1.Info.ServicePort ports */ 4: - message.ports.push(exports.Info_ServicePort.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* payload.v1.Info.Labels labels */ 5: - message.labels = exports.Info_Labels.internalBinaryRead(reader, reader.uint32(), options, message.labels); - break; - case /* payload.v1.Info.Annotations annotations */ 6: - message.annotations = exports.Info_Annotations.internalBinaryRead(reader, reader.uint32(), options, message.annotations); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name = 1; */ - if (message.name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* string cluster_ip = 2; */ - if (message.cluster_ip !== "") - writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.cluster_ip); - /* repeated string cluster_ips = 3; */ - for (let i = 0; i < message.cluster_ips.length; i++) - writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.cluster_ips[i]); - /* repeated payload.v1.Info.ServicePort ports = 4; */ - for (let i = 0; i < message.ports.length; i++) - exports.Info_ServicePort.internalBinaryWrite(message.ports[i], writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Labels labels = 5; */ - if (message.labels) - exports.Info_Labels.internalBinaryWrite(message.labels, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join(); - /* payload.v1.Info.Annotations annotations = 6; */ - if (message.annotations) - exports.Info_Annotations.internalBinaryWrite(message.annotations, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Service - */ -exports.Info_Service = new Info_Service$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_ServicePort$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.ServicePort", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "port", kind: "scalar", T: 5 /*ScalarType.INT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.name = ""; - message.port = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string name */ 1: - message.name = reader.string(); - break; - case /* int32 port */ 2: - message.port = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string name = 1; */ - if (message.name !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.name); - /* int32 port = 2; */ - if (message.port !== 0) - writer.tag(2, runtime_1.WireType.Varint).int32(message.port); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.ServicePort - */ -exports.Info_ServicePort = new Info_ServicePort$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Labels$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Labels", [ - { no: 1, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.labels = {}; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* map labels */ 1: - this.binaryReadMap1(message.labels, reader, options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - binaryReadMap1(map, reader, options) { - let len = reader.uint32(), end = reader.pos + len, key, val; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case 1: - key = reader.string(); - break; - case 2: - val = reader.string(); - break; - default: throw new globalThis.Error("unknown map entry field for field payload.v1.Info.Labels.labels"); - } - } - map[key ?? ""] = val ?? ""; - } - internalBinaryWrite(message, writer, options) { - /* map labels = 1; */ - for (let k of globalThis.Object.keys(message.labels)) - writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.LengthDelimited).string(message.labels[k]).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Labels - */ -exports.Info_Labels = new Info_Labels$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Annotations$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Annotations", [ - { no: 1, name: "annotations", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.annotations = {}; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* map annotations */ 1: - this.binaryReadMap1(message.annotations, reader, options); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - binaryReadMap1(map, reader, options) { - let len = reader.uint32(), end = reader.pos + len, key, val; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case 1: - key = reader.string(); - break; - case 2: - val = reader.string(); - break; - default: throw new globalThis.Error("unknown map entry field for field payload.v1.Info.Annotations.annotations"); - } - } - map[key ?? ""] = val ?? ""; - } - internalBinaryWrite(message, writer, options) { - /* map annotations = 1; */ - for (let k of globalThis.Object.keys(message.annotations)) - writer.tag(1, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.LengthDelimited).string(message.annotations[k]).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Annotations - */ -exports.Info_Annotations = new Info_Annotations$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_CPU$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.CPU", [ - { no: 1, name: "limit", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, - { no: 2, name: "request", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, - { no: 3, name: "usage", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.limit = 0; - message.request = 0; - message.usage = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* double limit */ 1: - message.limit = reader.double(); - break; - case /* double request */ 2: - message.request = reader.double(); - break; - case /* double usage */ 3: - message.usage = reader.double(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* double limit = 1; */ - if (message.limit !== 0) - writer.tag(1, runtime_1.WireType.Bit64).double(message.limit); - /* double request = 2; */ - if (message.request !== 0) - writer.tag(2, runtime_1.WireType.Bit64).double(message.request); - /* double usage = 3; */ - if (message.usage !== 0) - writer.tag(3, runtime_1.WireType.Bit64).double(message.usage); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.CPU - */ -exports.Info_CPU = new Info_CPU$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Memory$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Memory", [ - { no: 1, name: "limit", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, - { no: 2, name: "request", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }, - { no: 3, name: "usage", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.limit = 0; - message.request = 0; - message.usage = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* double limit */ 1: - message.limit = reader.double(); - break; - case /* double request */ 2: - message.request = reader.double(); - break; - case /* double usage */ 3: - message.usage = reader.double(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* double limit = 1; */ - if (message.limit !== 0) - writer.tag(1, runtime_1.WireType.Bit64).double(message.limit); - /* double request = 2; */ - if (message.request !== 0) - writer.tag(2, runtime_1.WireType.Bit64).double(message.request); - /* double usage = 3; */ - if (message.usage !== 0) - writer.tag(3, runtime_1.WireType.Bit64).double(message.usage); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Memory - */ -exports.Info_Memory = new Info_Memory$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Pods$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Pods", [ - { no: 1, name: "pods", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Pod, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.pods = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Info.Pod pods */ 1: - message.pods.push(exports.Info_Pod.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Info.Pod pods = 1; */ - for (let i = 0; i < message.pods.length; i++) - exports.Info_Pod.internalBinaryWrite(message.pods[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Pods - */ -exports.Info_Pods = new Info_Pods$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Nodes$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Nodes", [ - { no: 1, name: "nodes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Node, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.nodes = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Info.Node nodes */ 1: - message.nodes.push(exports.Info_Node.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Info.Node nodes = 1; */ - for (let i = 0; i < message.nodes.length; i++) - exports.Info_Node.internalBinaryWrite(message.nodes[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Nodes - */ -exports.Info_Nodes = new Info_Nodes$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_Services$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.Services", [ - { no: 1, name: "services", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Info_Service, options: { "buf.validate.field": { repeated: { minItems: "1" } } } } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.services = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Info.Service services */ 1: - message.services.push(exports.Info_Service.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Info.Service services = 1; */ - for (let i = 0; i < message.services.length; i++) - exports.Info_Service.internalBinaryWrite(message.services[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.Services - */ -exports.Info_Services = new Info_Services$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Info_IPs$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Info.IPs", [ - { no: 1, name: "ip", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.ip = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated string ip */ 1: - message.ip.push(reader.string()); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated string ip = 1; */ - for (let i = 0; i < message.ip.length; i++) - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.ip[i]); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Info.IPs - */ -exports.Info_IPs = new Info_IPs$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Mirror$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Mirror", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror - */ -exports.Mirror = new Mirror$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Mirror_Target$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Mirror.Target", [ - { no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.host = ""; - message.port = 0; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* string host */ 1: - message.host = reader.string(); - break; - case /* uint32 port */ 2: - message.port = reader.uint32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* string host = 1; */ - if (message.host !== "") - writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.host); - /* uint32 port = 2; */ - if (message.port !== 0) - writer.tag(2, runtime_1.WireType.Varint).uint32(message.port); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror.Target - */ -exports.Mirror_Target = new Mirror_Target$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Mirror_Targets$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Mirror.Targets", [ - { no: 1, name: "targets", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.Mirror_Target } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.targets = []; - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated payload.v1.Mirror.Target targets */ 1: - message.targets.push(exports.Mirror_Target.internalBinaryRead(reader, reader.uint32(), options)); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated payload.v1.Mirror.Target targets = 1; */ - for (let i = 0; i < message.targets.length; i++) - exports.Mirror_Target.internalBinaryWrite(message.targets[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Mirror.Targets - */ -exports.Mirror_Targets = new Mirror_Targets$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class Empty$Type extends runtime_4.MessageType { - constructor() { - super("payload.v1.Empty", []); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - runtime_3.reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - return target ?? this.create(); - } - internalBinaryWrite(message, writer, options) { - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message payload.v1.Empty - */ -exports.Empty = new Empty$Type(); diff --git a/src/vald/v1/payload/payload_pb2.py b/src/vald/v1/payload/payload_pb2.py new file mode 100644 index 00000000..9f24809d --- /dev/null +++ b/src/vald/v1/payload/payload_pb2.py @@ -0,0 +1,245 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/payload/payload.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dvald/v1/payload/payload.proto\x12\npayload.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x17google/rpc/status.proto\"\xed\n\n\x06Search\x1a^\n\x07Request\x12 \n\x06vector\x18\x01 \x03(\x02\x42\x08\xbaH\x05\x92\x01\x02\x08\x02R\x06vector\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Search.ConfigR\x06\x63onfig\x1a\x46\n\x0cMultiRequest\x12\x36\n\x08requests\x18\x01 \x03(\x0b\x32\x1a.payload.v1.Search.RequestR\x08requests\x1aN\n\tIDRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Search.ConfigR\x06\x63onfig\x1aJ\n\x0eMultiIDRequest\x12\x38\n\x08requests\x18\x01 \x03(\x0b\x32\x1c.payload.v1.Search.IDRequestR\x08requests\x1a\x95\x01\n\rObjectRequest\x12\x16\n\x06object\x18\x01 \x01(\x0cR\x06object\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Search.ConfigR\x06\x63onfig\x12\x39\n\nvectorizer\x18\x03 \x01(\x0b\x32\x19.payload.v1.Filter.TargetR\nvectorizer\x1aR\n\x12MultiObjectRequest\x12<\n\x08requests\x18\x01 \x03(\x0b\x32 .payload.v1.Search.ObjectRequestR\x08requests\x1a\x94\x03\n\x06\x43onfig\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x19\n\x03num\x18\x02 \x01(\rB\x07\xbaH\x04*\x02(\x01R\x03num\x12\x16\n\x06radius\x18\x03 \x01(\x02R\x06radius\x12\x18\n\x07\x65psilon\x18\x04 \x01(\x02R\x07\x65psilon\x12\x18\n\x07timeout\x18\x05 \x01(\x03R\x07timeout\x12\x42\n\x0fingress_filters\x18\x06 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\x0eingressFilters\x12@\n\x0e\x65gress_filters\x18\x07 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\regressFilters\x12 \n\x07min_num\x18\x08 \x01(\rB\x07\xbaH\x04*\x02(\x00R\x06minNum\x12\\\n\x15\x61ggregation_algorithm\x18\t \x01(\x0e\x32\'.payload.v1.Search.AggregationAlgorithmR\x14\x61ggregationAlgorithm\x1a`\n\x08Response\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x35\n\x07results\x18\x02 \x03(\x0b\x32\x1b.payload.v1.Object.DistanceR\x07results\x1a\x46\n\tResponses\x12\x39\n\tresponses\x18\x01 \x03(\x0b\x32\x1b.payload.v1.Search.ResponseR\tresponses\x1a\x84\x01\n\x0eStreamResponse\x12\x39\n\x08response\x18\x01 \x01(\x0b\x32\x1b.payload.v1.Search.ResponseH\x00R\x08response\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\"k\n\x14\x41ggregationAlgorithm\x12\x0b\n\x07Unknown\x10\x00\x12\x13\n\x0f\x43oncurrentQueue\x10\x01\x12\r\n\tSortSlice\x10\x02\x12\x11\n\rSortPoolSlice\x10\x03\x12\x0f\n\x0bPairingHeap\x10\x04\"y\n\x06\x46ilter\x1a\x30\n\x06Target\x12\x12\n\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n\x04port\x18\x02 \x01(\rR\x04port\x1a=\n\x06\x43onfig\x12\x33\n\x07targets\x18\x01 \x03(\x0b\x32\x19.payload.v1.Filter.TargetR\x07targets\"\xe5\x04\n\x06Insert\x1ay\n\x07Request\x12;\n\x06vector\x18\x01 \x01(\x0b\x32\x19.payload.v1.Object.VectorB\x08\xbaH\x05\x92\x01\x02\x08\x02R\x06vector\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Insert.ConfigR\x06\x63onfig\x1a\x46\n\x0cMultiRequest\x12\x36\n\x08requests\x18\x01 \x03(\x0b\x32\x1a.payload.v1.Insert.RequestR\x08requests\x1a\xae\x01\n\rObjectRequest\x12/\n\x06object\x18\x01 \x01(\x0b\x32\x17.payload.v1.Object.BlobR\x06object\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Insert.ConfigR\x06\x63onfig\x12\x39\n\nvectorizer\x18\x03 \x01(\x0b\x32\x19.payload.v1.Filter.TargetR\nvectorizer\x1aR\n\x12MultiObjectRequest\x12<\n\x08requests\x18\x01 \x03(\x0b\x32 .payload.v1.Insert.ObjectRequestR\x08requests\x1a\x92\x01\n\x06\x43onfig\x12\x35\n\x17skip_strict_exist_check\x18\x01 \x01(\x08R\x14skipStrictExistCheck\x12\x33\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\x07\x66ilters\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\x9d\x05\n\x06Update\x1ay\n\x07Request\x12;\n\x06vector\x18\x01 \x01(\x0b\x32\x19.payload.v1.Object.VectorB\x08\xbaH\x05\x92\x01\x02\x08\x02R\x06vector\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Update.ConfigR\x06\x63onfig\x1a\x46\n\x0cMultiRequest\x12\x36\n\x08requests\x18\x01 \x03(\x0b\x32\x1a.payload.v1.Update.RequestR\x08requests\x1a\xae\x01\n\rObjectRequest\x12/\n\x06object\x18\x01 \x01(\x0b\x32\x17.payload.v1.Object.BlobR\x06object\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Update.ConfigR\x06\x63onfig\x12\x39\n\nvectorizer\x18\x03 \x01(\x0b\x32\x19.payload.v1.Filter.TargetR\nvectorizer\x1aR\n\x12MultiObjectRequest\x12<\n\x08requests\x18\x01 \x03(\x0b\x32 .payload.v1.Update.ObjectRequestR\x08requests\x1a\xca\x01\n\x06\x43onfig\x12\x35\n\x17skip_strict_exist_check\x18\x01 \x01(\x08R\x14skipStrictExistCheck\x12\x33\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\x07\x66ilters\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x12\x36\n\x17\x64isable_balanced_update\x18\x04 \x01(\x08R\x15\x64isableBalancedUpdate\"\x9d\x05\n\x06Upsert\x1ay\n\x07Request\x12;\n\x06vector\x18\x01 \x01(\x0b\x32\x19.payload.v1.Object.VectorB\x08\xbaH\x05\x92\x01\x02\x08\x02R\x06vector\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Upsert.ConfigR\x06\x63onfig\x1a\x46\n\x0cMultiRequest\x12\x36\n\x08requests\x18\x01 \x03(\x0b\x32\x1a.payload.v1.Upsert.RequestR\x08requests\x1a\xae\x01\n\rObjectRequest\x12/\n\x06object\x18\x01 \x01(\x0b\x32\x17.payload.v1.Object.BlobR\x06object\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Upsert.ConfigR\x06\x63onfig\x12\x39\n\nvectorizer\x18\x03 \x01(\x0b\x32\x19.payload.v1.Filter.TargetR\nvectorizer\x1aR\n\x12MultiObjectRequest\x12<\n\x08requests\x18\x01 \x03(\x0b\x32 .payload.v1.Upsert.ObjectRequestR\x08requests\x1a\xca\x01\n\x06\x43onfig\x12\x35\n\x17skip_strict_exist_check\x18\x01 \x01(\x08R\x14skipStrictExistCheck\x12\x33\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\x07\x66ilters\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x12\x36\n\x17\x64isable_balanced_update\x18\x04 \x01(\x08R\x15\x64isableBalancedUpdate\"\x91\x04\n\x06Remove\x1a\x63\n\x07Request\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x15.payload.v1.Object.IDR\x02id\x12\x31\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x19.payload.v1.Remove.ConfigR\x06\x63onfig\x1a\x46\n\x0cMultiRequest\x12\x36\n\x08requests\x18\x01 \x03(\x0b\x32\x1a.payload.v1.Remove.RequestR\x08requests\x1aP\n\x10TimestampRequest\x12<\n\ntimestamps\x18\x01 \x03(\x0b\x32\x1c.payload.v1.Remove.TimestampR\ntimestamps\x1a\xa8\x01\n\tTimestamp\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x41\n\x08operator\x18\x02 \x01(\x0e\x32%.payload.v1.Remove.Timestamp.OperatorR\x08operator\":\n\x08Operator\x12\x06\n\x02\x45q\x10\x00\x12\x06\n\x02Ne\x10\x01\x12\x06\n\x02Ge\x10\x02\x12\x06\n\x02Gt\x10\x03\x12\x06\n\x02Le\x10\x04\x12\x06\n\x02Lt\x10\x05\x1a]\n\x06\x43onfig\x12\x35\n\x17skip_strict_exist_check\x18\x01 \x01(\x08R\x14skipStrictExistCheck\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\xb4\x0b\n\x06Object\x1au\n\rVectorRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x15.payload.v1.Object.IDB\x08\xbaH\x05\x92\x01\x02\x08\x02R\x02id\x12\x33\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x19.payload.v1.Filter.ConfigR\x07\x66ilters\x1a\x36\n\x08\x44istance\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n\x08\x64istance\x18\x02 \x01(\x02R\x08\x64istance\x1a\x84\x01\n\x0eStreamDistance\x12\x39\n\x08\x64istance\x18\x01 \x01(\x0b\x32\x1b.payload.v1.Object.DistanceH\x00R\x08\x64istance\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\x1a\x1d\n\x02ID\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x1a\x17\n\x03IDs\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x61\n\x06Vector\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12 \n\x06vector\x18\x02 \x03(\x02\x42\x08\xbaH\x05\x92\x01\x02\x08\x02R\x06vector\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x1a\x46\n\x13GetTimestampRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x15.payload.v1.Object.IDB\x08\xbaH\x05\x92\x01\x02\x08\x02R\x02id\x1a\x42\n\tTimestamp\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12\x1c\n\ttimestamp\x18\x02 \x01(\x03R\ttimestamp\x1a>\n\x07Vectors\x12\x33\n\x07vectors\x18\x01 \x03(\x0b\x32\x19.payload.v1.Object.VectorR\x07vectors\x1a|\n\x0cStreamVector\x12\x33\n\x06vector\x18\x01 \x01(\x0b\x32\x19.payload.v1.Object.VectorH\x00R\x06vector\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\x1a=\n\rReshapeVector\x12\x16\n\x06object\x18\x01 \x01(\x0cR\x06object\x12\x14\n\x05shape\x18\x02 \x03(\x05R\x05shape\x1a\x37\n\x04\x42lob\x12\x17\n\x02id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x02id\x12\x16\n\x06object\x18\x02 \x01(\x0cR\x06object\x1at\n\nStreamBlob\x12-\n\x04\x62lob\x18\x01 \x01(\x0b\x32\x17.payload.v1.Object.BlobH\x00R\x04\x62lob\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\x1a\x44\n\x08Location\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04uuid\x18\x02 \x01(\tR\x04uuid\x12\x10\n\x03ips\x18\x03 \x03(\tR\x03ips\x1a\x84\x01\n\x0eStreamLocation\x12\x39\n\x08location\x18\x01 \x01(\x0b\x32\x1b.payload.v1.Object.LocationH\x00R\x08location\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\x1a\x46\n\tLocations\x12\x39\n\tlocations\x18\x01 \x03(\x0b\x32\x1b.payload.v1.Object.LocationR\tlocations\x1a\x8b\x01\n\x04List\x1a\t\n\x07Request\x1ax\n\x08Response\x12\x33\n\x06vector\x18\x01 \x01(\x0b\x32\x19.payload.v1.Object.VectorH\x00R\x06vector\x12,\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00R\x06statusB\t\n\x07payload\"E\n\x07\x43ontrol\x1a:\n\x12\x43reateIndexRequest\x12$\n\tpool_size\x18\x01 \x01(\rB\x07\xbaH\x04*\x02(\x00R\x08poolSize\"f\n\nDiscoverer\x1aX\n\x07Request\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x12\n\x04node\x18\x03 \x01(\tR\x04node\"\x8c\r\n\x04Info\x1a\xca\x01\n\x05Index\x1au\n\x05\x43ount\x12\x16\n\x06stored\x18\x01 \x01(\rR\x06stored\x12 \n\x0buncommitted\x18\x02 \x01(\rR\x0buncommitted\x12\x1a\n\x08indexing\x18\x03 \x01(\x08R\x08indexing\x12\x16\n\x06saving\x18\x04 \x01(\x08R\x06saving\x1aJ\n\x04UUID\x1a\x1f\n\tCommitted\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x1a!\n\x0bUncommitted\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x1a\xef\x01\n\x03Pod\x12\x19\n\x08\x61pp_name\x18\x01 \x01(\tR\x07\x61ppName\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x17\n\x02ip\x18\x04 \x01(\tB\x07\xbaH\x04r\x02x\x01R\x02ip\x12&\n\x03\x63pu\x18\x05 \x01(\x0b\x32\x14.payload.v1.Info.CPUR\x03\x63pu\x12/\n\x06memory\x18\x06 \x01(\x0b\x32\x17.payload.v1.Info.MemoryR\x06memory\x12)\n\x04node\x18\x07 \x01(\x0b\x32\x15.payload.v1.Info.NodeR\x04node\x1a\xe8\x01\n\x04Node\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12#\n\rinternal_addr\x18\x02 \x01(\tR\x0cinternalAddr\x12#\n\rexternal_addr\x18\x03 \x01(\tR\x0c\x65xternalAddr\x12&\n\x03\x63pu\x18\x04 \x01(\x0b\x32\x14.payload.v1.Info.CPUR\x03\x63pu\x12/\n\x06memory\x18\x05 \x01(\x0b\x32\x17.payload.v1.Info.MemoryR\x06memory\x12)\n\x04Pods\x18\x06 \x01(\x0b\x32\x15.payload.v1.Info.PodsR\x04Pods\x1a\x82\x02\n\x07Service\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n\ncluster_ip\x18\x02 \x01(\tR\tclusterIp\x12\x1f\n\x0b\x63luster_ips\x18\x03 \x03(\tR\nclusterIps\x12\x32\n\x05ports\x18\x04 \x03(\x0b\x32\x1c.payload.v1.Info.ServicePortR\x05ports\x12/\n\x06labels\x18\x05 \x01(\x0b\x32\x17.payload.v1.Info.LabelsR\x06labels\x12>\n\x0b\x61nnotations\x18\x06 \x01(\x0b\x32\x1c.payload.v1.Info.AnnotationsR\x0b\x61nnotations\x1a\x35\n\x0bServicePort\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04port\x18\x02 \x01(\x05R\x04port\x1a\x80\x01\n\x06Labels\x12;\n\x06labels\x18\x01 \x03(\x0b\x32#.payload.v1.Info.Labels.LabelsEntryR\x06labels\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a\x9e\x01\n\x0b\x41nnotations\x12O\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32-.payload.v1.Info.Annotations.AnnotationsEntryR\x0b\x61nnotations\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aK\n\x03\x43PU\x12\x14\n\x05limit\x18\x01 \x01(\x01R\x05limit\x12\x18\n\x07request\x18\x02 \x01(\x01R\x07request\x12\x14\n\x05usage\x18\x03 \x01(\x01R\x05usage\x1aN\n\x06Memory\x12\x14\n\x05limit\x18\x01 \x01(\x01R\x05limit\x12\x18\n\x07request\x18\x02 \x01(\x01R\x07request\x12\x14\n\x05usage\x18\x03 \x01(\x01R\x05usage\x1a:\n\x04Pods\x12\x32\n\x04pods\x18\x01 \x03(\x0b\x32\x14.payload.v1.Info.PodB\x08\xbaH\x05\x92\x01\x02\x08\x01R\x04pods\x1a>\n\x05Nodes\x12\x35\n\x05nodes\x18\x01 \x03(\x0b\x32\x15.payload.v1.Info.NodeB\x08\xbaH\x05\x92\x01\x02\x08\x01R\x05nodes\x1aJ\n\x08Services\x12>\n\x08services\x18\x01 \x03(\x0b\x32\x18.payload.v1.Info.ServiceB\x08\xbaH\x05\x92\x01\x02\x08\x01R\x08services\x1a\x15\n\x03IPs\x12\x0e\n\x02ip\x18\x01 \x03(\tR\x02ip\"z\n\x06Mirror\x1a\x30\n\x06Target\x12\x12\n\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n\x04port\x18\x02 \x01(\rR\x04port\x1a>\n\x07Targets\x12\x33\n\x07targets\x18\x01 \x03(\x0b\x32\x19.payload.v1.Mirror.TargetR\x07targets\"\x07\n\x05\x45mptyBd\n\x1dorg.vdaas.vald.api.v1.payloadB\x0bValdPayloadP\x01Z*github.com/vdaas/vald/apis/grpc/v1/payload\xa2\x02\x07Payloadb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.payload.payload_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\035org.vdaas.vald.api.v1.payloadB\013ValdPayloadP\001Z*github.com/vdaas/vald/apis/grpc/v1/payload\242\002\007Payload' + _globals['_SEARCH_REQUEST'].fields_by_name['vector']._options = None + _globals['_SEARCH_REQUEST'].fields_by_name['vector']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_SEARCH_CONFIG'].fields_by_name['num']._options = None + _globals['_SEARCH_CONFIG'].fields_by_name['num']._serialized_options = b'\272H\004*\002(\001' + _globals['_SEARCH_CONFIG'].fields_by_name['min_num']._options = None + _globals['_SEARCH_CONFIG'].fields_by_name['min_num']._serialized_options = b'\272H\004*\002(\000' + _globals['_INSERT_REQUEST'].fields_by_name['vector']._options = None + _globals['_INSERT_REQUEST'].fields_by_name['vector']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_UPDATE_REQUEST'].fields_by_name['vector']._options = None + _globals['_UPDATE_REQUEST'].fields_by_name['vector']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_UPSERT_REQUEST'].fields_by_name['vector']._options = None + _globals['_UPSERT_REQUEST'].fields_by_name['vector']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_OBJECT_VECTORREQUEST'].fields_by_name['id']._options = None + _globals['_OBJECT_VECTORREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_OBJECT_ID'].fields_by_name['id']._options = None + _globals['_OBJECT_ID'].fields_by_name['id']._serialized_options = b'\272H\004r\002\020\001' + _globals['_OBJECT_VECTOR'].fields_by_name['id']._options = None + _globals['_OBJECT_VECTOR'].fields_by_name['id']._serialized_options = b'\272H\004r\002\020\001' + _globals['_OBJECT_VECTOR'].fields_by_name['vector']._options = None + _globals['_OBJECT_VECTOR'].fields_by_name['vector']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_OBJECT_GETTIMESTAMPREQUEST'].fields_by_name['id']._options = None + _globals['_OBJECT_GETTIMESTAMPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\005\222\001\002\010\002' + _globals['_OBJECT_TIMESTAMP'].fields_by_name['id']._options = None + _globals['_OBJECT_TIMESTAMP'].fields_by_name['id']._serialized_options = b'\272H\004r\002\020\001' + _globals['_OBJECT_BLOB'].fields_by_name['id']._options = None + _globals['_OBJECT_BLOB'].fields_by_name['id']._serialized_options = b'\272H\004r\002\020\001' + _globals['_CONTROL_CREATEINDEXREQUEST'].fields_by_name['pool_size']._options = None + _globals['_CONTROL_CREATEINDEXREQUEST'].fields_by_name['pool_size']._serialized_options = b'\272H\004*\002(\000' + _globals['_DISCOVERER_REQUEST'].fields_by_name['name']._options = None + _globals['_DISCOVERER_REQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001' + _globals['_INFO_POD'].fields_by_name['ip']._options = None + _globals['_INFO_POD'].fields_by_name['ip']._serialized_options = b'\272H\004r\002x\001' + _globals['_INFO_LABELS_LABELSENTRY']._options = None + _globals['_INFO_LABELS_LABELSENTRY']._serialized_options = b'8\001' + _globals['_INFO_ANNOTATIONS_ANNOTATIONSENTRY']._options = None + _globals['_INFO_ANNOTATIONS_ANNOTATIONSENTRY']._serialized_options = b'8\001' + _globals['_INFO_PODS'].fields_by_name['pods']._options = None + _globals['_INFO_PODS'].fields_by_name['pods']._serialized_options = b'\272H\005\222\001\002\010\001' + _globals['_INFO_NODES'].fields_by_name['nodes']._options = None + _globals['_INFO_NODES'].fields_by_name['nodes']._serialized_options = b'\272H\005\222\001\002\010\001' + _globals['_INFO_SERVICES'].fields_by_name['services']._options = None + _globals['_INFO_SERVICES'].fields_by_name['services']._serialized_options = b'\272H\005\222\001\002\010\001' + _globals['_SEARCH']._serialized_start=100 + _globals['_SEARCH']._serialized_end=1489 + _globals['_SEARCH_REQUEST']._serialized_start=110 + _globals['_SEARCH_REQUEST']._serialized_end=204 + _globals['_SEARCH_MULTIREQUEST']._serialized_start=206 + _globals['_SEARCH_MULTIREQUEST']._serialized_end=276 + _globals['_SEARCH_IDREQUEST']._serialized_start=278 + _globals['_SEARCH_IDREQUEST']._serialized_end=356 + _globals['_SEARCH_MULTIIDREQUEST']._serialized_start=358 + _globals['_SEARCH_MULTIIDREQUEST']._serialized_end=432 + _globals['_SEARCH_OBJECTREQUEST']._serialized_start=435 + _globals['_SEARCH_OBJECTREQUEST']._serialized_end=584 + _globals['_SEARCH_MULTIOBJECTREQUEST']._serialized_start=586 + _globals['_SEARCH_MULTIOBJECTREQUEST']._serialized_end=668 + _globals['_SEARCH_CONFIG']._serialized_start=671 + _globals['_SEARCH_CONFIG']._serialized_end=1075 + _globals['_SEARCH_RESPONSE']._serialized_start=1077 + _globals['_SEARCH_RESPONSE']._serialized_end=1173 + _globals['_SEARCH_RESPONSES']._serialized_start=1175 + _globals['_SEARCH_RESPONSES']._serialized_end=1245 + _globals['_SEARCH_STREAMRESPONSE']._serialized_start=1248 + _globals['_SEARCH_STREAMRESPONSE']._serialized_end=1380 + _globals['_SEARCH_AGGREGATIONALGORITHM']._serialized_start=1382 + _globals['_SEARCH_AGGREGATIONALGORITHM']._serialized_end=1489 + _globals['_FILTER']._serialized_start=1491 + _globals['_FILTER']._serialized_end=1612 + _globals['_FILTER_TARGET']._serialized_start=1501 + _globals['_FILTER_TARGET']._serialized_end=1549 + _globals['_FILTER_CONFIG']._serialized_start=1551 + _globals['_FILTER_CONFIG']._serialized_end=1612 + _globals['_INSERT']._serialized_start=1615 + _globals['_INSERT']._serialized_end=2228 + _globals['_INSERT_REQUEST']._serialized_start=1625 + _globals['_INSERT_REQUEST']._serialized_end=1746 + _globals['_INSERT_MULTIREQUEST']._serialized_start=1748 + _globals['_INSERT_MULTIREQUEST']._serialized_end=1818 + _globals['_INSERT_OBJECTREQUEST']._serialized_start=1821 + _globals['_INSERT_OBJECTREQUEST']._serialized_end=1995 + _globals['_INSERT_MULTIOBJECTREQUEST']._serialized_start=1997 + _globals['_INSERT_MULTIOBJECTREQUEST']._serialized_end=2079 + _globals['_INSERT_CONFIG']._serialized_start=2082 + _globals['_INSERT_CONFIG']._serialized_end=2228 + _globals['_UPDATE']._serialized_start=2231 + _globals['_UPDATE']._serialized_end=2900 + _globals['_UPDATE_REQUEST']._serialized_start=2241 + _globals['_UPDATE_REQUEST']._serialized_end=2362 + _globals['_UPDATE_MULTIREQUEST']._serialized_start=2364 + _globals['_UPDATE_MULTIREQUEST']._serialized_end=2434 + _globals['_UPDATE_OBJECTREQUEST']._serialized_start=2437 + _globals['_UPDATE_OBJECTREQUEST']._serialized_end=2611 + _globals['_UPDATE_MULTIOBJECTREQUEST']._serialized_start=2613 + _globals['_UPDATE_MULTIOBJECTREQUEST']._serialized_end=2695 + _globals['_UPDATE_CONFIG']._serialized_start=2698 + _globals['_UPDATE_CONFIG']._serialized_end=2900 + _globals['_UPSERT']._serialized_start=2903 + _globals['_UPSERT']._serialized_end=3572 + _globals['_UPSERT_REQUEST']._serialized_start=2913 + _globals['_UPSERT_REQUEST']._serialized_end=3034 + _globals['_UPSERT_MULTIREQUEST']._serialized_start=3036 + _globals['_UPSERT_MULTIREQUEST']._serialized_end=3106 + _globals['_UPSERT_OBJECTREQUEST']._serialized_start=3109 + _globals['_UPSERT_OBJECTREQUEST']._serialized_end=3283 + _globals['_UPSERT_MULTIOBJECTREQUEST']._serialized_start=3285 + _globals['_UPSERT_MULTIOBJECTREQUEST']._serialized_end=3367 + _globals['_UPSERT_CONFIG']._serialized_start=2698 + _globals['_UPSERT_CONFIG']._serialized_end=2900 + _globals['_REMOVE']._serialized_start=3575 + _globals['_REMOVE']._serialized_end=4104 + _globals['_REMOVE_REQUEST']._serialized_start=3585 + _globals['_REMOVE_REQUEST']._serialized_end=3684 + _globals['_REMOVE_MULTIREQUEST']._serialized_start=3686 + _globals['_REMOVE_MULTIREQUEST']._serialized_end=3756 + _globals['_REMOVE_TIMESTAMPREQUEST']._serialized_start=3758 + _globals['_REMOVE_TIMESTAMPREQUEST']._serialized_end=3838 + _globals['_REMOVE_TIMESTAMP']._serialized_start=3841 + _globals['_REMOVE_TIMESTAMP']._serialized_end=4009 + _globals['_REMOVE_TIMESTAMP_OPERATOR']._serialized_start=3951 + _globals['_REMOVE_TIMESTAMP_OPERATOR']._serialized_end=4009 + _globals['_REMOVE_CONFIG']._serialized_start=4011 + _globals['_REMOVE_CONFIG']._serialized_end=4104 + _globals['_OBJECT']._serialized_start=4107 + _globals['_OBJECT']._serialized_end=5567 + _globals['_OBJECT_VECTORREQUEST']._serialized_start=4117 + _globals['_OBJECT_VECTORREQUEST']._serialized_end=4234 + _globals['_OBJECT_DISTANCE']._serialized_start=4236 + _globals['_OBJECT_DISTANCE']._serialized_end=4290 + _globals['_OBJECT_STREAMDISTANCE']._serialized_start=4293 + _globals['_OBJECT_STREAMDISTANCE']._serialized_end=4425 + _globals['_OBJECT_ID']._serialized_start=4427 + _globals['_OBJECT_ID']._serialized_end=4456 + _globals['_OBJECT_IDS']._serialized_start=4458 + _globals['_OBJECT_IDS']._serialized_end=4481 + _globals['_OBJECT_VECTOR']._serialized_start=4483 + _globals['_OBJECT_VECTOR']._serialized_end=4580 + _globals['_OBJECT_GETTIMESTAMPREQUEST']._serialized_start=4582 + _globals['_OBJECT_GETTIMESTAMPREQUEST']._serialized_end=4652 + _globals['_OBJECT_TIMESTAMP']._serialized_start=4654 + _globals['_OBJECT_TIMESTAMP']._serialized_end=4720 + _globals['_OBJECT_VECTORS']._serialized_start=4722 + _globals['_OBJECT_VECTORS']._serialized_end=4784 + _globals['_OBJECT_STREAMVECTOR']._serialized_start=4786 + _globals['_OBJECT_STREAMVECTOR']._serialized_end=4910 + _globals['_OBJECT_RESHAPEVECTOR']._serialized_start=4912 + _globals['_OBJECT_RESHAPEVECTOR']._serialized_end=4973 + _globals['_OBJECT_BLOB']._serialized_start=4975 + _globals['_OBJECT_BLOB']._serialized_end=5030 + _globals['_OBJECT_STREAMBLOB']._serialized_start=5032 + _globals['_OBJECT_STREAMBLOB']._serialized_end=5148 + _globals['_OBJECT_LOCATION']._serialized_start=5150 + _globals['_OBJECT_LOCATION']._serialized_end=5218 + _globals['_OBJECT_STREAMLOCATION']._serialized_start=5221 + _globals['_OBJECT_STREAMLOCATION']._serialized_end=5353 + _globals['_OBJECT_LOCATIONS']._serialized_start=5355 + _globals['_OBJECT_LOCATIONS']._serialized_end=5425 + _globals['_OBJECT_LIST']._serialized_start=5428 + _globals['_OBJECT_LIST']._serialized_end=5567 + _globals['_OBJECT_LIST_REQUEST']._serialized_start=110 + _globals['_OBJECT_LIST_REQUEST']._serialized_end=119 + _globals['_OBJECT_LIST_RESPONSE']._serialized_start=5447 + _globals['_OBJECT_LIST_RESPONSE']._serialized_end=5567 + _globals['_CONTROL']._serialized_start=5569 + _globals['_CONTROL']._serialized_end=5638 + _globals['_CONTROL_CREATEINDEXREQUEST']._serialized_start=5580 + _globals['_CONTROL_CREATEINDEXREQUEST']._serialized_end=5638 + _globals['_DISCOVERER']._serialized_start=5640 + _globals['_DISCOVERER']._serialized_end=5742 + _globals['_DISCOVERER_REQUEST']._serialized_start=5654 + _globals['_DISCOVERER_REQUEST']._serialized_end=5742 + _globals['_INFO']._serialized_start=5745 + _globals['_INFO']._serialized_end=7421 + _globals['_INFO_INDEX']._serialized_start=5754 + _globals['_INFO_INDEX']._serialized_end=5956 + _globals['_INFO_INDEX_COUNT']._serialized_start=5763 + _globals['_INFO_INDEX_COUNT']._serialized_end=5880 + _globals['_INFO_INDEX_UUID']._serialized_start=5882 + _globals['_INFO_INDEX_UUID']._serialized_end=5956 + _globals['_INFO_INDEX_UUID_COMMITTED']._serialized_start=5890 + _globals['_INFO_INDEX_UUID_COMMITTED']._serialized_end=5921 + _globals['_INFO_INDEX_UUID_UNCOMMITTED']._serialized_start=5923 + _globals['_INFO_INDEX_UUID_UNCOMMITTED']._serialized_end=5956 + _globals['_INFO_POD']._serialized_start=5959 + _globals['_INFO_POD']._serialized_end=6198 + _globals['_INFO_NODE']._serialized_start=6201 + _globals['_INFO_NODE']._serialized_end=6433 + _globals['_INFO_SERVICE']._serialized_start=6436 + _globals['_INFO_SERVICE']._serialized_end=6694 + _globals['_INFO_SERVICEPORT']._serialized_start=6696 + _globals['_INFO_SERVICEPORT']._serialized_end=6749 + _globals['_INFO_LABELS']._serialized_start=6752 + _globals['_INFO_LABELS']._serialized_end=6880 + _globals['_INFO_LABELS_LABELSENTRY']._serialized_start=6823 + _globals['_INFO_LABELS_LABELSENTRY']._serialized_end=6880 + _globals['_INFO_ANNOTATIONS']._serialized_start=6883 + _globals['_INFO_ANNOTATIONS']._serialized_end=7041 + _globals['_INFO_ANNOTATIONS_ANNOTATIONSENTRY']._serialized_start=6979 + _globals['_INFO_ANNOTATIONS_ANNOTATIONSENTRY']._serialized_end=7041 + _globals['_INFO_CPU']._serialized_start=7043 + _globals['_INFO_CPU']._serialized_end=7118 + _globals['_INFO_MEMORY']._serialized_start=7120 + _globals['_INFO_MEMORY']._serialized_end=7198 + _globals['_INFO_PODS']._serialized_start=7200 + _globals['_INFO_PODS']._serialized_end=7258 + _globals['_INFO_NODES']._serialized_start=7260 + _globals['_INFO_NODES']._serialized_end=7322 + _globals['_INFO_SERVICES']._serialized_start=7324 + _globals['_INFO_SERVICES']._serialized_end=7398 + _globals['_INFO_IPS']._serialized_start=7400 + _globals['_INFO_IPS']._serialized_end=7421 + _globals['_MIRROR']._serialized_start=7423 + _globals['_MIRROR']._serialized_end=7545 + _globals['_MIRROR_TARGET']._serialized_start=1501 + _globals['_MIRROR_TARGET']._serialized_end=1549 + _globals['_MIRROR_TARGETS']._serialized_start=7483 + _globals['_MIRROR_TARGETS']._serialized_end=7545 + _globals['_EMPTY']._serialized_start=7547 + _globals['_EMPTY']._serialized_end=7554 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/payload/payload_pb2_grpc.py b/src/vald/v1/payload/payload_pb2_grpc.py new file mode 100644 index 00000000..2daafffe --- /dev/null +++ b/src/vald/v1/payload/payload_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/src/vald/v1/vald/filter_pb.d.ts b/src/vald/v1/vald/filter_pb.d.ts deleted file mode 100644 index 1639bc83..00000000 --- a/src/vald/v1/vald/filter_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Filter - */ -export declare const Filter: any; diff --git a/src/vald/v1/vald/filter_pb.grpc-client.d.ts b/src/vald/v1/vald/filter_pb.grpc-client.d.ts deleted file mode 100644 index 5695b15a..00000000 --- a/src/vald/v1/vald/filter_pb.grpc-client.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Upsert_MultiObjectRequest } from "../payload/payload_pb"; -import type { Upsert_ObjectRequest } from "../payload/payload_pb"; -import type { Update_MultiObjectRequest } from "../payload/payload_pb"; -import type { Update_ObjectRequest } from "../payload/payload_pb"; -import type { Object_Locations } from "../payload/payload_pb"; -import type { Insert_MultiObjectRequest } from "../payload/payload_pb"; -import type { Object_StreamLocation } from "../payload/payload_pb"; -import type { Object_Location } from "../payload/payload_pb"; -import type { Insert_ObjectRequest } from "../payload/payload_pb"; -import type { Search_StreamResponse } from "../payload/payload_pb"; -import type { Search_Responses } from "../payload/payload_pb"; -import type { Search_MultiObjectRequest } from "../payload/payload_pb"; -import type { Search_Response } from "../payload/payload_pb"; -import type { Search_ObjectRequest } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Filter service provides ways to connect to Vald through filter. - * - * @generated from protobuf service vald.v1.Filter - */ -export interface IFilterClient { - /** - * A method to search object. - * - * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); - */ - searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchObject(input: Search_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchObject(input: Search_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - /** - * A method to search multiple objects. - * - * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); - */ - multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchObject(input: Search_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchObject(input: Search_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - /** - * A method to search object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamSearchObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method insert object. - * - * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); - */ - insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insertObject(input: Insert_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insertObject(input: Insert_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * Represent the streaming RPC to insert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsertObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamInsertObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to insert multiple objects. - * - * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsertObject(input: Insert_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsertObject(input: Insert_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - /** - * A method to update object. - * - * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); - */ - updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - updateObject(input: Update_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - updateObject(input: Update_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to update object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdateObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamUpdateObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to update multiple objects. - * - * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdateObject(input: Update_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdateObject(input: Update_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - /** - * A method to upsert object. - * - * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); - */ - upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsertObject(input: Upsert_ObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsertObject(input: Upsert_ObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to upsert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsertObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamUpsertObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to upsert multiple objects. - * - * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsertObject(input: Upsert_MultiObjectRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsertObject(input: Upsert_MultiObjectRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; -} -/** - * Filter service provides ways to connect to Vald through filter. - * - * @generated from protobuf service vald.v1.Filter - */ -export declare class FilterClient extends grpc.Client implements IFilterClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to search object. - * - * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); - */ - searchObject(input: Search_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; - /** - * A method to search multiple objects. - * - * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); - */ - multiSearchObject(input: Search_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; - /** - * A method to search object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method insert object. - * - * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); - */ - insertObject(input: Insert_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * Represent the streaming RPC to insert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsertObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to insert multiple objects. - * - * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiInsertObject(input: Insert_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; - /** - * A method to update object. - * - * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); - */ - updateObject(input: Update_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to update object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdateObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to update multiple objects. - * - * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpdateObject(input: Update_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; - /** - * A method to upsert object. - * - * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); - */ - upsertObject(input: Upsert_ObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to upsert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsertObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to upsert multiple objects. - * - * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpsertObject(input: Upsert_MultiObjectRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/filter_pb.grpc-client.js b/src/vald/v1/vald/filter_pb.grpc-client.js deleted file mode 100644 index 36ed27bd..00000000 --- a/src/vald/v1/vald/filter_pb.grpc-client.js +++ /dev/null @@ -1,169 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FilterClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const filter_pb_1 = require("./filter_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Filter service provides ways to connect to Vald through filter. - * - * @generated from protobuf service vald.v1.Filter - */ -class FilterClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to search object. - * - * @generated from protobuf rpc: SearchObject(payload.v1.Search.ObjectRequest) returns (payload.v1.Search.Response); - */ - searchObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[0]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to search multiple objects. - * - * @generated from protobuf rpc: MultiSearchObject(payload.v1.Search.MultiObjectRequest) returns (payload.v1.Search.Responses); - */ - multiSearchObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[1]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to search object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamSearchObject(stream payload.v1.Search.ObjectRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchObject(metadata, options) { - const method = filter_pb_1.Filter.methods[2]; - return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method insert object. - * - * @generated from protobuf rpc: InsertObject(payload.v1.Insert.ObjectRequest) returns (payload.v1.Object.Location); - */ - insertObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[3]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * Represent the streaming RPC to insert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsertObject(stream payload.v1.Insert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsertObject(metadata, options) { - const method = filter_pb_1.Filter.methods[4]; - return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to insert multiple objects. - * - * @generated from protobuf rpc: MultiInsertObject(payload.v1.Insert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiInsertObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[5]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to update object. - * - * @generated from protobuf rpc: UpdateObject(payload.v1.Update.ObjectRequest) returns (payload.v1.Object.Location); - */ - updateObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[6]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to update object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdateObject(stream payload.v1.Update.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdateObject(metadata, options) { - const method = filter_pb_1.Filter.methods[7]; - return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to update multiple objects. - * - * @generated from protobuf rpc: MultiUpdateObject(payload.v1.Update.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpdateObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[8]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to upsert object. - * - * @generated from protobuf rpc: UpsertObject(payload.v1.Upsert.ObjectRequest) returns (payload.v1.Object.Location); - */ - upsertObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[9]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to upsert object by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsertObject(stream payload.v1.Upsert.ObjectRequest) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsertObject(metadata, options) { - const method = filter_pb_1.Filter.methods[10]; - return this.makeBidiStreamRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to upsert multiple objects. - * - * @generated from protobuf rpc: MultiUpsertObject(payload.v1.Upsert.MultiObjectRequest) returns (payload.v1.Object.Locations); - */ - multiUpsertObject(input, metadata, options, callback) { - const method = filter_pb_1.Filter.methods[11]; - return this.makeUnaryRequest(`/${filter_pb_1.Filter.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.FilterClient = FilterClient; diff --git a/src/vald/v1/vald/filter_pb.js b/src/vald/v1/vald/filter_pb.js deleted file mode 100644 index 6ecf6767..00000000 --- a/src/vald/v1/vald/filter_pb.js +++ /dev/null @@ -1,79 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Filter = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/filter.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const payload_pb_6 = require("../payload/payload_pb"); -const payload_pb_7 = require("../payload/payload_pb"); -const payload_pb_8 = require("../payload/payload_pb"); -const payload_pb_9 = require("../payload/payload_pb"); -const payload_pb_10 = require("../payload/payload_pb"); -const payload_pb_11 = require("../payload/payload_pb"); -const payload_pb_12 = require("../payload/payload_pb"); -const payload_pb_13 = require("../payload/payload_pb"); -const payload_pb_14 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Filter - */ -exports.Filter = new runtime_rpc_1.ServiceType("vald.v1.Filter", [ - { name: "SearchObject", options: { "google.api.http": { post: "/search/object", body: "*" } }, I: payload_pb_14.Search_ObjectRequest, O: payload_pb_13.Search_Response }, - { name: "MultiSearchObject", options: { "google.api.http": { post: "/search/object/multiple", body: "*" } }, I: payload_pb_12.Search_MultiObjectRequest, O: payload_pb_11.Search_Responses }, - { name: "StreamSearchObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_14.Search_ObjectRequest, O: payload_pb_10.Search_StreamResponse }, - { name: "InsertObject", options: { "google.api.http": { post: "/insert/object", body: "*" } }, I: payload_pb_9.Insert_ObjectRequest, O: payload_pb_8.Object_Location }, - { name: "StreamInsertObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_9.Insert_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, - { name: "MultiInsertObject", options: { "google.api.http": { post: "/insert/object/multiple", body: "*" } }, I: payload_pb_6.Insert_MultiObjectRequest, O: payload_pb_5.Object_Locations }, - { name: "UpdateObject", options: { "google.api.http": { post: "/update/object", body: "*" } }, I: payload_pb_4.Update_ObjectRequest, O: payload_pb_8.Object_Location }, - { name: "StreamUpdateObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_4.Update_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, - { name: "MultiUpdateObject", options: { "google.api.http": { post: "/update/object/multiple", body: "*" } }, I: payload_pb_3.Update_MultiObjectRequest, O: payload_pb_5.Object_Locations }, - { name: "UpsertObject", options: { "google.api.http": { post: "/upsert/object", body: "*" } }, I: payload_pb_2.Upsert_ObjectRequest, O: payload_pb_8.Object_Location }, - { name: "StreamUpsertObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_2.Upsert_ObjectRequest, O: payload_pb_7.Object_StreamLocation }, - { name: "MultiUpsertObject", options: { "google.api.http": { post: "/upsert/object/multiple", body: "*" } }, I: payload_pb_1.Upsert_MultiObjectRequest, O: payload_pb_5.Object_Locations } -]); diff --git a/src/vald/v1/vald/filter_pb2.py b/src/vald/v1/vald/filter_pb2.py new file mode 100644 index 00000000..1ccd4a26 --- /dev/null +++ b/src/vald/v1/vald/filter_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/filter.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/filter.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\xac\n\n\x06\x46ilter\x12h\n\x0cSearchObject\x12 .payload.v1.Search.ObjectRequest\x1a\x1b.payload.v1.Search.Response\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/search/object:\x01*\x12|\n\x11MultiSearchObject\x12%.payload.v1.Search.MultiObjectRequest\x1a\x1c.payload.v1.Search.Responses\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/search/object/multiple:\x01*\x12_\n\x12StreamSearchObject\x12 .payload.v1.Search.ObjectRequest\x1a!.payload.v1.Search.StreamResponse\"\x00(\x01\x30\x01\x12h\n\x0cInsertObject\x12 .payload.v1.Insert.ObjectRequest\x1a\x1b.payload.v1.Object.Location\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/insert/object:\x01*\x12_\n\x12StreamInsertObject\x12 .payload.v1.Insert.ObjectRequest\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12|\n\x11MultiInsertObject\x12%.payload.v1.Insert.MultiObjectRequest\x1a\x1c.payload.v1.Object.Locations\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/insert/object/multiple:\x01*\x12h\n\x0cUpdateObject\x12 .payload.v1.Update.ObjectRequest\x1a\x1b.payload.v1.Object.Location\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/update/object:\x01*\x12_\n\x12StreamUpdateObject\x12 .payload.v1.Update.ObjectRequest\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12|\n\x11MultiUpdateObject\x12%.payload.v1.Update.MultiObjectRequest\x1a\x1c.payload.v1.Object.Locations\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/update/object/multiple:\x01*\x12h\n\x0cUpsertObject\x12 .payload.v1.Upsert.ObjectRequest\x1a\x1b.payload.v1.Object.Location\"\x19\x82\xd3\xe4\x93\x02\x13\"\x0e/upsert/object:\x01*\x12_\n\x12StreamUpsertObject\x12 .payload.v1.Upsert.ObjectRequest\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12|\n\x11MultiUpsertObject\x12%.payload.v1.Upsert.MultiObjectRequest\x1a\x1c.payload.v1.Object.Locations\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/upsert/object/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdFilterP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.filter_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdFilterP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_FILTER'].methods_by_name['SearchObject']._options = None + _globals['_FILTER'].methods_by_name['SearchObject']._serialized_options = b'\202\323\344\223\002\023\"\016/search/object:\001*' + _globals['_FILTER'].methods_by_name['MultiSearchObject']._options = None + _globals['_FILTER'].methods_by_name['MultiSearchObject']._serialized_options = b'\202\323\344\223\002\034\"\027/search/object/multiple:\001*' + _globals['_FILTER'].methods_by_name['InsertObject']._options = None + _globals['_FILTER'].methods_by_name['InsertObject']._serialized_options = b'\202\323\344\223\002\023\"\016/insert/object:\001*' + _globals['_FILTER'].methods_by_name['MultiInsertObject']._options = None + _globals['_FILTER'].methods_by_name['MultiInsertObject']._serialized_options = b'\202\323\344\223\002\034\"\027/insert/object/multiple:\001*' + _globals['_FILTER'].methods_by_name['UpdateObject']._options = None + _globals['_FILTER'].methods_by_name['UpdateObject']._serialized_options = b'\202\323\344\223\002\023\"\016/update/object:\001*' + _globals['_FILTER'].methods_by_name['MultiUpdateObject']._options = None + _globals['_FILTER'].methods_by_name['MultiUpdateObject']._serialized_options = b'\202\323\344\223\002\034\"\027/update/object/multiple:\001*' + _globals['_FILTER'].methods_by_name['UpsertObject']._options = None + _globals['_FILTER'].methods_by_name['UpsertObject']._serialized_options = b'\202\323\344\223\002\023\"\016/upsert/object:\001*' + _globals['_FILTER'].methods_by_name['MultiUpsertObject']._options = None + _globals['_FILTER'].methods_by_name['MultiUpsertObject']._serialized_options = b'\202\323\344\223\002\034\"\027/upsert/object/multiple:\001*' + _globals['_FILTER']._serialized_start=100 + _globals['_FILTER']._serialized_end=1424 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/filter_pb2_grpc.py b/src/vald/v1/vald/filter_pb2_grpc.py new file mode 100644 index 00000000..e9a9c47b --- /dev/null +++ b/src/vald/v1/vald/filter_pb2_grpc.py @@ -0,0 +1,444 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class FilterStub(object): + """Filter service provides ways to connect to Vald through filter. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.SearchObject = channel.unary_unary( + '/vald.v1.Filter/SearchObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + ) + self.MultiSearchObject = channel.unary_unary( + '/vald.v1.Filter/MultiSearchObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + ) + self.StreamSearchObject = channel.stream_stream( + '/vald.v1.Filter/StreamSearchObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + ) + self.InsertObject = channel.unary_unary( + '/vald.v1.Filter/InsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamInsertObject = channel.stream_stream( + '/vald.v1.Filter/StreamInsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiInsertObject = channel.unary_unary( + '/vald.v1.Filter/MultiInsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + self.UpdateObject = channel.unary_unary( + '/vald.v1.Filter/UpdateObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamUpdateObject = channel.stream_stream( + '/vald.v1.Filter/StreamUpdateObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiUpdateObject = channel.unary_unary( + '/vald.v1.Filter/MultiUpdateObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + self.UpsertObject = channel.unary_unary( + '/vald.v1.Filter/UpsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamUpsertObject = channel.stream_stream( + '/vald.v1.Filter/StreamUpsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiUpsertObject = channel.unary_unary( + '/vald.v1.Filter/MultiUpsertObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiObjectRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + + +class FilterServicer(object): + """Filter service provides ways to connect to Vald through filter. + """ + + def SearchObject(self, request, context): + """A method to search object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiSearchObject(self, request, context): + """A method to search multiple objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamSearchObject(self, request_iterator, context): + """A method to search object by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InsertObject(self, request, context): + """A method insert object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamInsertObject(self, request_iterator, context): + """Represent the streaming RPC to insert object by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiInsertObject(self, request, context): + """A method to insert multiple objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateObject(self, request, context): + """A method to update object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamUpdateObject(self, request_iterator, context): + """A method to update object by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiUpdateObject(self, request, context): + """A method to update multiple objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpsertObject(self, request, context): + """A method to upsert object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamUpsertObject(self, request_iterator, context): + """A method to upsert object by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiUpsertObject(self, request, context): + """A method to upsert multiple objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FilterServicer_to_server(servicer, server): + rpc_method_handlers = { + 'SearchObject': grpc.unary_unary_rpc_method_handler( + servicer.SearchObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.SerializeToString, + ), + 'MultiSearchObject': grpc.unary_unary_rpc_method_handler( + servicer.MultiSearchObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.SerializeToString, + ), + 'StreamSearchObject': grpc.stream_stream_rpc_method_handler( + servicer.StreamSearchObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.SerializeToString, + ), + 'InsertObject': grpc.unary_unary_rpc_method_handler( + servicer.InsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamInsertObject': grpc.stream_stream_rpc_method_handler( + servicer.StreamInsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiInsertObject': grpc.unary_unary_rpc_method_handler( + servicer.MultiInsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + 'UpdateObject': grpc.unary_unary_rpc_method_handler( + servicer.UpdateObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamUpdateObject': grpc.stream_stream_rpc_method_handler( + servicer.StreamUpdateObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiUpdateObject': grpc.unary_unary_rpc_method_handler( + servicer.MultiUpdateObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + 'UpsertObject': grpc.unary_unary_rpc_method_handler( + servicer.UpsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamUpsertObject': grpc.stream_stream_rpc_method_handler( + servicer.StreamUpsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiUpsertObject': grpc.unary_unary_rpc_method_handler( + servicer.MultiUpsertObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiObjectRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Filter', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Filter(object): + """Filter service provides ways to connect to Vald through filter. + """ + + @staticmethod + def SearchObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/SearchObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiSearchObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/MultiSearchObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamSearchObject(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Filter/StreamSearchObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InsertObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/InsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamInsertObject(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Filter/StreamInsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiInsertObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/MultiInsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/UpdateObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamUpdateObject(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Filter/StreamUpdateObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiUpdateObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/MultiUpdateObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpsertObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/UpsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamUpsertObject(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Filter/StreamUpsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.ObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiUpsertObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Filter/MultiUpsertObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiObjectRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/index.d.ts b/src/vald/v1/vald/index.d.ts deleted file mode 100644 index 20ed65f3..00000000 --- a/src/vald/v1/vald/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import filter = require("./filter_pb"); -import filter_grpc = require("./filter_pb.grpc-client"); -import insert = require("./insert_pb"); -import insert_grpc = require("./insert_pb.grpc-client"); -import object = require("./object_pb"); -import object_grpc = require("./object_pb.grpc-client"); -import remove = require("./remove_pb"); -import remove_grpc = require("./remove_pb.grpc-client"); -import search = require("./search_pb"); -import search_grpc = require("./search_pb.grpc-client"); -import update = require("./update_pb"); -import update_grpc = require("./update_pb.grpc-client"); -import upsert = require("./upsert_pb"); -import upsert_grpc = require("./upsert_pb.grpc-client"); -declare const _default: { - filter: typeof filter, - filter_grpc: typeof filter_grpc, - insert: typeof insert, - insert_grpc: typeof insert_grpc, - object: typeof object, - object_grpc: typeof object_grpc, - remove: typeof remove, - remove_grpc: typeof remove_grpc, - search: typeof search, - search_grpc: typeof search_grpc, - update: typeof update, - update_grpc: typeof update_grpc, - upsert: typeof upsert, - upsert_grpc: typeof upsert_grpc, -}; -export = _default; diff --git a/src/vald/v1/vald/index.js b/src/vald/v1/vald/index.js deleted file mode 100644 index 30533d5a..00000000 --- a/src/vald/v1/vald/index.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports.filter = require("./filter_pb"); -module.exports.filter_grpc = require("./filter_pb.grpc-client"); -module.exports.insert = require("./insert_pb"); -module.exports.insert_grpc = require("./insert_pb.grpc-client"); -module.exports.object = require("./object_pb"); -module.exports.object_grpc = require("./object_pb.grpc-client"); -module.exports.remove = require("./remove_pb"); -module.exports.remove_grpc = require("./remove_pb.grpc-client"); -module.exports.search = require("./search_pb"); -module.exports.search_grpc = require("./search_pb.grpc-client"); -module.exports.update = require("./update_pb"); -module.exports.update_grpc = require("./update_pb.grpc-client"); -module.exports.upsert = require("./upsert_pb"); -module.exports.upsert_grpc = require("./upsert_pb.grpc-client"); diff --git a/src/vald/v1/vald/insert_pb.d.ts b/src/vald/v1/vald/insert_pb.d.ts deleted file mode 100644 index 3c439559..00000000 --- a/src/vald/v1/vald/insert_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Insert - */ -export declare const Insert: any; diff --git a/src/vald/v1/vald/insert_pb.grpc-client.d.ts b/src/vald/v1/vald/insert_pb.grpc-client.d.ts deleted file mode 100644 index 108d793e..00000000 --- a/src/vald/v1/vald/insert_pb.grpc-client.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Object_Locations } from "../payload/payload_pb"; -import type { Insert_MultiRequest } from "../payload/payload_pb"; -import type { Object_StreamLocation } from "../payload/payload_pb"; -import type { Object_Location } from "../payload/payload_pb"; -import type { Insert_Request } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Insert service provides ways to add new vectors. - * - * @generated from protobuf service vald.v1.Insert - */ -export interface IInsertClient { - /** - * A method to add a new single vector. - * - * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); - */ - insert(input: Insert_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insert(input: Insert_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insert(input: Insert_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - insert(input: Insert_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to add new multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsert(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamInsert(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to add new multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsert(input: Insert_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiInsert(input: Insert_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; -} -/** - * Insert service provides ways to add new vectors. - * - * @generated from protobuf service vald.v1.Insert - */ -export declare class InsertClient extends grpc.Client implements IInsertClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to add a new single vector. - * - * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); - */ - insert(input: Insert_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to add new multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsert(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to add new multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiInsert(input: Insert_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/insert_pb.grpc-client.js b/src/vald/v1/vald/insert_pb.grpc-client.js deleted file mode 100644 index 2dbaad6a..00000000 --- a/src/vald/v1/vald/insert_pb.grpc-client.js +++ /dev/null @@ -1,88 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InsertClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const insert_pb_1 = require("./insert_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Insert service provides ways to add new vectors. - * - * @generated from protobuf service vald.v1.Insert - */ -class InsertClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to add a new single vector. - * - * @generated from protobuf rpc: Insert(payload.v1.Insert.Request) returns (payload.v1.Object.Location); - */ - insert(input, metadata, options, callback) { - const method = insert_pb_1.Insert.methods[0]; - return this.makeUnaryRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to add new multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamInsert(stream payload.v1.Insert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamInsert(metadata, options) { - const method = insert_pb_1.Insert.methods[1]; - return this.makeBidiStreamRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to add new multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiInsert(payload.v1.Insert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiInsert(input, metadata, options, callback) { - const method = insert_pb_1.Insert.methods[2]; - return this.makeUnaryRequest(`/${insert_pb_1.Insert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.InsertClient = InsertClient; diff --git a/src/vald/v1/vald/insert_pb.js b/src/vald/v1/vald/insert_pb.js deleted file mode 100644 index 6d7bb55b..00000000 --- a/src/vald/v1/vald/insert_pb.js +++ /dev/null @@ -1,61 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Insert = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/insert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Insert - */ -exports.Insert = new runtime_rpc_1.ServiceType("vald.v1.Insert", [ - { name: "Insert", options: { "google.api.http": { post: "/insert", body: "*" } }, I: payload_pb_5.Insert_Request, O: payload_pb_4.Object_Location }, - { name: "StreamInsert", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Insert_Request, O: payload_pb_3.Object_StreamLocation }, - { name: "MultiInsert", options: { "google.api.http": { post: "/insert/multiple", body: "*" } }, I: payload_pb_2.Insert_MultiRequest, O: payload_pb_1.Object_Locations } -]); diff --git a/src/vald/v1/vald/insert_pb2.py b/src/vald/v1/vald/insert_pb2.py new file mode 100644 index 00000000..710694ae --- /dev/null +++ b/src/vald/v1/vald/insert_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/insert.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/insert.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\x9f\x02\n\x06Insert\x12U\n\x06Insert\x12\x1a.payload.v1.Insert.Request\x1a\x1b.payload.v1.Object.Location\"\x12\x82\xd3\xe4\x93\x02\x0c\"\x07/insert:\x01*\x12S\n\x0cStreamInsert\x12\x1a.payload.v1.Insert.Request\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12i\n\x0bMultiInsert\x12\x1f.payload.v1.Insert.MultiRequest\x1a\x1c.payload.v1.Object.Locations\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/insert/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdInsertP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.insert_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdInsertP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_INSERT'].methods_by_name['Insert']._options = None + _globals['_INSERT'].methods_by_name['Insert']._serialized_options = b'\202\323\344\223\002\014\"\007/insert:\001*' + _globals['_INSERT'].methods_by_name['MultiInsert']._options = None + _globals['_INSERT'].methods_by_name['MultiInsert']._serialized_options = b'\202\323\344\223\002\025\"\020/insert/multiple:\001*' + _globals['_INSERT']._serialized_start=100 + _globals['_INSERT']._serialized_end=387 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/insert_pb2_grpc.py b/src/vald/v1/vald/insert_pb2_grpc.py new file mode 100644 index 00000000..1755ea36 --- /dev/null +++ b/src/vald/v1/vald/insert_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class InsertStub(object): + """Insert service provides ways to add new vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Insert = channel.unary_unary( + '/vald.v1.Insert/Insert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamInsert = channel.stream_stream( + '/vald.v1.Insert/StreamInsert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiInsert = channel.unary_unary( + '/vald.v1.Insert/MultiInsert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + + +class InsertServicer(object): + """Insert service provides ways to add new vectors. + """ + + def Insert(self, request, context): + """A method to add a new single vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamInsert(self, request_iterator, context): + """A method to add new multiple vectors by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiInsert(self, request, context): + """A method to add new multiple vectors in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_InsertServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Insert': grpc.unary_unary_rpc_method_handler( + servicer.Insert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamInsert': grpc.stream_stream_rpc_method_handler( + servicer.StreamInsert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiInsert': grpc.unary_unary_rpc_method_handler( + servicer.MultiInsert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Insert', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Insert(object): + """Insert service provides ways to add new vectors. + """ + + @staticmethod + def Insert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Insert/Insert', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamInsert(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Insert/StreamInsert', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiInsert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Insert/MultiInsert', + vald_dot_v1_dot_payload_dot_payload__pb2.Insert.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/object_pb.d.ts b/src/vald/v1/vald/object_pb.d.ts deleted file mode 100644 index d2ea7008..00000000 --- a/src/vald/v1/vald/object_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Object - */ -export declare const Object: any; diff --git a/src/vald/v1/vald/object_pb.grpc-client.d.ts b/src/vald/v1/vald/object_pb.grpc-client.d.ts deleted file mode 100644 index bd5d7914..00000000 --- a/src/vald/v1/vald/object_pb.grpc-client.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Object_List_Response } from "../payload/payload_pb"; -import type { Object_List_Request } from "../payload/payload_pb"; -import type { Object_StreamVector } from "../payload/payload_pb"; -import type { Object_Vector } from "../payload/payload_pb"; -import type { Object_VectorRequest } from "../payload/payload_pb"; -import type { Object_ID } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Object service provides ways to fetch indexed vectors. - * - * @generated from protobuf service vald.v1.Object - */ -export interface IObjectClient { - /** - * A method to check whether a specified ID is indexed or not. - * - * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); - */ - exists(input: Object_ID, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; - exists(input: Object_ID, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; - exists(input: Object_ID, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; - exists(input: Object_ID, callback: (err: grpc.ServiceError | null, value?: Object_ID) => void): grpc.ClientUnaryCall; - /** - * A method to fetch a vector. - * - * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); - */ - getObject(input: Object_VectorRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; - getObject(input: Object_VectorRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; - getObject(input: Object_VectorRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; - getObject(input: Object_VectorRequest, callback: (err: grpc.ServiceError | null, value?: Object_Vector) => void): grpc.ClientUnaryCall; - /** - * A method to fetch vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); - */ - streamGetObject(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamGetObject(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to get all the vectors with server streaming - * - * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); - */ - streamListObject(input: Object_List_Request, metadata?: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream; - streamListObject(input: Object_List_Request, options?: grpc.CallOptions): grpc.ClientReadableStream; -} -/** - * Object service provides ways to fetch indexed vectors. - * - * @generated from protobuf service vald.v1.Object - */ -export declare class ObjectClient extends grpc.Client implements IObjectClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to check whether a specified ID is indexed or not. - * - * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); - */ - exists(input: Object_ID, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_ID) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_ID) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_ID) => void)): grpc.ClientUnaryCall; - /** - * A method to fetch a vector. - * - * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); - */ - getObject(input: Object_VectorRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Vector) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Vector) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Vector) => void)): grpc.ClientUnaryCall; - /** - * A method to fetch vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); - */ - streamGetObject(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to get all the vectors with server streaming - * - * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); - */ - streamListObject(input: Object_List_Request, metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientReadableStream; -} diff --git a/src/vald/v1/vald/object_pb.grpc-client.js b/src/vald/v1/vald/object_pb.grpc-client.js deleted file mode 100644 index 1f80ef53..00000000 --- a/src/vald/v1/vald/object_pb.grpc-client.js +++ /dev/null @@ -1,97 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ObjectClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const object_pb_1 = require("./object_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Object service provides ways to fetch indexed vectors. - * - * @generated from protobuf service vald.v1.Object - */ -class ObjectClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to check whether a specified ID is indexed or not. - * - * @generated from protobuf rpc: Exists(payload.v1.Object.ID) returns (payload.v1.Object.ID); - */ - exists(input, metadata, options, callback) { - const method = object_pb_1.Object.methods[0]; - return this.makeUnaryRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to fetch a vector. - * - * @generated from protobuf rpc: GetObject(payload.v1.Object.VectorRequest) returns (payload.v1.Object.Vector); - */ - getObject(input, metadata, options, callback) { - const method = object_pb_1.Object.methods[1]; - return this.makeUnaryRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to fetch vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamGetObject(stream payload.v1.Object.VectorRequest) returns (stream payload.v1.Object.StreamVector); - */ - streamGetObject(metadata, options) { - const method = object_pb_1.Object.methods[2]; - return this.makeBidiStreamRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to get all the vectors with server streaming - * - * @generated from protobuf rpc: StreamListObject(payload.v1.Object.List.Request) returns (stream payload.v1.Object.List.Response); - */ - streamListObject(input, metadata, options) { - const method = object_pb_1.Object.methods[3]; - return this.makeServerStreamRequest(`/${object_pb_1.Object.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options); - } -} -exports.ObjectClient = ObjectClient; diff --git a/src/vald/v1/vald/object_pb.js b/src/vald/v1/vald/object_pb.js deleted file mode 100644 index dfc2d47c..00000000 --- a/src/vald/v1/vald/object_pb.js +++ /dev/null @@ -1,63 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Object = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/object.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const payload_pb_6 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Object - */ -exports.Object = new runtime_rpc_1.ServiceType("vald.v1.Object", [ - { name: "Exists", options: { "google.api.http": { get: "/exists/{id}" } }, I: payload_pb_6.Object_ID, O: payload_pb_6.Object_ID }, - { name: "GetObject", options: { "google.api.http": { get: "/object/{id.id}" } }, I: payload_pb_5.Object_VectorRequest, O: payload_pb_4.Object_Vector }, - { name: "StreamGetObject", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Object_VectorRequest, O: payload_pb_3.Object_StreamVector }, - { name: "StreamListObject", serverStreaming: true, options: { "google.api.http": { get: "/object/list" } }, I: payload_pb_2.Object_List_Request, O: payload_pb_1.Object_List_Response } -]); diff --git a/src/vald/v1/vald/object_pb2.py b/src/vald/v1/vald/object_pb2.py new file mode 100644 index 00000000..016005f3 --- /dev/null +++ b/src/vald/v1/vald/object_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/object.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/object.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\x84\x03\n\x06Object\x12L\n\x06\x45xists\x12\x15.payload.v1.Object.ID\x1a\x15.payload.v1.Object.ID\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/exists/{id}\x12\x61\n\tGetObject\x12 .payload.v1.Object.VectorRequest\x1a\x19.payload.v1.Object.Vector\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/object/{id.id}\x12Z\n\x0fStreamGetObject\x12 .payload.v1.Object.VectorRequest\x1a\x1f.payload.v1.Object.StreamVector\"\x00(\x01\x30\x01\x12m\n\x10StreamListObject\x12\x1f.payload.v1.Object.List.Request\x1a .payload.v1.Object.List.Response\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/object/list0\x01\x42S\n\x1aorg.vdaas.vald.api.v1.valdB\nValdObjectP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.object_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdObjectP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_OBJECT'].methods_by_name['Exists']._options = None + _globals['_OBJECT'].methods_by_name['Exists']._serialized_options = b'\202\323\344\223\002\016\022\014/exists/{id}' + _globals['_OBJECT'].methods_by_name['GetObject']._options = None + _globals['_OBJECT'].methods_by_name['GetObject']._serialized_options = b'\202\323\344\223\002\021\022\017/object/{id.id}' + _globals['_OBJECT'].methods_by_name['StreamListObject']._options = None + _globals['_OBJECT'].methods_by_name['StreamListObject']._serialized_options = b'\202\323\344\223\002\016\022\014/object/list' + _globals['_OBJECT']._serialized_start=100 + _globals['_OBJECT']._serialized_end=488 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/object_pb2_grpc.py b/src/vald/v1/vald/object_pb2_grpc.py new file mode 100644 index 00000000..073689df --- /dev/null +++ b/src/vald/v1/vald/object_pb2_grpc.py @@ -0,0 +1,172 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class ObjectStub(object): + """Object service provides ways to fetch indexed vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Exists = channel.unary_unary( + '/vald.v1.Object/Exists', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.FromString, + ) + self.GetObject = channel.unary_unary( + '/vald.v1.Object/GetObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + ) + self.StreamGetObject = channel.stream_stream( + '/vald.v1.Object/StreamGetObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamVector.FromString, + ) + self.StreamListObject = channel.unary_stream( + '/vald.v1.Object/StreamListObject', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Response.FromString, + ) + + +class ObjectServicer(object): + """Object service provides ways to fetch indexed vectors. + """ + + def Exists(self, request, context): + """A method to check whether a specified ID is indexed or not. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetObject(self, request, context): + """A method to fetch a vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamGetObject(self, request_iterator, context): + """A method to fetch vectors by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamListObject(self, request, context): + """A method to get all the vectors with server streaming + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ObjectServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Exists': grpc.unary_unary_rpc_method_handler( + servicer.Exists, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.SerializeToString, + ), + 'GetObject': grpc.unary_unary_rpc_method_handler( + servicer.GetObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.SerializeToString, + ), + 'StreamGetObject': grpc.stream_stream_rpc_method_handler( + servicer.StreamGetObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamVector.SerializeToString, + ), + 'StreamListObject': grpc.unary_stream_rpc_method_handler( + servicer.StreamListObject, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Response.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Object', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Object(object): + """Object service provides ways to fetch indexed vectors. + """ + + @staticmethod + def Exists(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Object/Exists', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.ID.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Object/GetObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Vector.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamGetObject(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Object/StreamGetObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.VectorRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamVector.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamListObject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/vald.v1.Object/StreamListObject', + vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.List.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/remove_pb.d.ts b/src/vald/v1/vald/remove_pb.d.ts deleted file mode 100644 index 9fe41918..00000000 --- a/src/vald/v1/vald/remove_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Remove - */ -export declare const Remove: any; diff --git a/src/vald/v1/vald/remove_pb.grpc-client.d.ts b/src/vald/v1/vald/remove_pb.grpc-client.d.ts deleted file mode 100644 index 2c72d463..00000000 --- a/src/vald/v1/vald/remove_pb.grpc-client.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Remove_MultiRequest } from "../payload/payload_pb"; -import type { Object_StreamLocation } from "../payload/payload_pb"; -import type { Object_Locations } from "../payload/payload_pb"; -import type { Remove_TimestampRequest } from "../payload/payload_pb"; -import type { Object_Location } from "../payload/payload_pb"; -import type { Remove_Request } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Remove service provides ways to remove indexed vectors. - * - * @generated from protobuf service vald.v1.Remove - */ -export interface IRemoveClient { - /** - * A method to remove an indexed vector. - * - * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); - */ - remove(input: Remove_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - remove(input: Remove_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - remove(input: Remove_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - remove(input: Remove_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to remove an indexed vector based on timestamp. - * - * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); - */ - removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - removeByTimestamp(input: Remove_TimestampRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - removeByTimestamp(input: Remove_TimestampRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - /** - * A method to remove multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamRemove(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamRemove(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to remove multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiRemove(input: Remove_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiRemove(input: Remove_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; -} -/** - * Remove service provides ways to remove indexed vectors. - * - * @generated from protobuf service vald.v1.Remove - */ -export declare class RemoveClient extends grpc.Client implements IRemoveClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to remove an indexed vector. - * - * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); - */ - remove(input: Remove_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to remove an indexed vector based on timestamp. - * - * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); - */ - removeByTimestamp(input: Remove_TimestampRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; - /** - * A method to remove multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamRemove(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to remove multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiRemove(input: Remove_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/remove_pb.grpc-client.js b/src/vald/v1/vald/remove_pb.grpc-client.js deleted file mode 100644 index 0a061d80..00000000 --- a/src/vald/v1/vald/remove_pb.grpc-client.js +++ /dev/null @@ -1,97 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RemoveClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const remove_pb_1 = require("./remove_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Remove service provides ways to remove indexed vectors. - * - * @generated from protobuf service vald.v1.Remove - */ -class RemoveClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to remove an indexed vector. - * - * @generated from protobuf rpc: Remove(payload.v1.Remove.Request) returns (payload.v1.Object.Location); - */ - remove(input, metadata, options, callback) { - const method = remove_pb_1.Remove.methods[0]; - return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to remove an indexed vector based on timestamp. - * - * @generated from protobuf rpc: RemoveByTimestamp(payload.v1.Remove.TimestampRequest) returns (payload.v1.Object.Locations); - */ - removeByTimestamp(input, metadata, options, callback) { - const method = remove_pb_1.Remove.methods[1]; - return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to remove multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamRemove(stream payload.v1.Remove.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamRemove(metadata, options) { - const method = remove_pb_1.Remove.methods[2]; - return this.makeBidiStreamRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to remove multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiRemove(payload.v1.Remove.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiRemove(input, metadata, options, callback) { - const method = remove_pb_1.Remove.methods[3]; - return this.makeUnaryRequest(`/${remove_pb_1.Remove.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.RemoveClient = RemoveClient; diff --git a/src/vald/v1/vald/remove_pb.js b/src/vald/v1/vald/remove_pb.js deleted file mode 100644 index f2968f86..00000000 --- a/src/vald/v1/vald/remove_pb.js +++ /dev/null @@ -1,63 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Remove = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/remove.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const payload_pb_6 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Remove - */ -exports.Remove = new runtime_rpc_1.ServiceType("vald.v1.Remove", [ - { name: "Remove", options: { "google.api.http": { post: "/remove", body: "*" } }, I: payload_pb_6.Remove_Request, O: payload_pb_5.Object_Location }, - { name: "RemoveByTimestamp", options: { "google.api.http": { post: "/remove/timestamp", body: "*" } }, I: payload_pb_4.Remove_TimestampRequest, O: payload_pb_3.Object_Locations }, - { name: "StreamRemove", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_6.Remove_Request, O: payload_pb_2.Object_StreamLocation }, - { name: "MultiRemove", options: { "google.api.http": { post: "/remove/multiple", body: "*" } }, I: payload_pb_1.Remove_MultiRequest, O: payload_pb_3.Object_Locations } -]); diff --git a/src/vald/v1/vald/remove_pb2.py b/src/vald/v1/vald/remove_pb2.py new file mode 100644 index 00000000..87e7a57b --- /dev/null +++ b/src/vald/v1/vald/remove_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/remove.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/remove.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\x95\x03\n\x06Remove\x12U\n\x06Remove\x12\x1a.payload.v1.Remove.Request\x1a\x1b.payload.v1.Object.Location\"\x12\x82\xd3\xe4\x93\x02\x0c\"\x07/remove:\x01*\x12t\n\x11RemoveByTimestamp\x12#.payload.v1.Remove.TimestampRequest\x1a\x1c.payload.v1.Object.Locations\"\x1c\x82\xd3\xe4\x93\x02\x16\"\x11/remove/timestamp:\x01*\x12S\n\x0cStreamRemove\x12\x1a.payload.v1.Remove.Request\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12i\n\x0bMultiRemove\x12\x1f.payload.v1.Remove.MultiRequest\x1a\x1c.payload.v1.Object.Locations\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/remove/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdRemoveP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.remove_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdRemoveP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_REMOVE'].methods_by_name['Remove']._options = None + _globals['_REMOVE'].methods_by_name['Remove']._serialized_options = b'\202\323\344\223\002\014\"\007/remove:\001*' + _globals['_REMOVE'].methods_by_name['RemoveByTimestamp']._options = None + _globals['_REMOVE'].methods_by_name['RemoveByTimestamp']._serialized_options = b'\202\323\344\223\002\026\"\021/remove/timestamp:\001*' + _globals['_REMOVE'].methods_by_name['MultiRemove']._options = None + _globals['_REMOVE'].methods_by_name['MultiRemove']._serialized_options = b'\202\323\344\223\002\025\"\020/remove/multiple:\001*' + _globals['_REMOVE']._serialized_start=100 + _globals['_REMOVE']._serialized_end=505 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/remove_pb2_grpc.py b/src/vald/v1/vald/remove_pb2_grpc.py new file mode 100644 index 00000000..ac04efe7 --- /dev/null +++ b/src/vald/v1/vald/remove_pb2_grpc.py @@ -0,0 +1,172 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class RemoveStub(object): + """Remove service provides ways to remove indexed vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Remove = channel.unary_unary( + '/vald.v1.Remove/Remove', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.RemoveByTimestamp = channel.unary_unary( + '/vald.v1.Remove/RemoveByTimestamp', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.TimestampRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + self.StreamRemove = channel.stream_stream( + '/vald.v1.Remove/StreamRemove', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiRemove = channel.unary_unary( + '/vald.v1.Remove/MultiRemove', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + + +class RemoveServicer(object): + """Remove service provides ways to remove indexed vectors. + """ + + def Remove(self, request, context): + """A method to remove an indexed vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RemoveByTimestamp(self, request, context): + """A method to remove an indexed vector based on timestamp. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamRemove(self, request_iterator, context): + """A method to remove multiple indexed vectors by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiRemove(self, request, context): + """A method to remove multiple indexed vectors in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RemoveServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Remove': grpc.unary_unary_rpc_method_handler( + servicer.Remove, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'RemoveByTimestamp': grpc.unary_unary_rpc_method_handler( + servicer.RemoveByTimestamp, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.TimestampRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + 'StreamRemove': grpc.stream_stream_rpc_method_handler( + servicer.StreamRemove, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiRemove': grpc.unary_unary_rpc_method_handler( + servicer.MultiRemove, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Remove.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Remove', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Remove(object): + """Remove service provides ways to remove indexed vectors. + """ + + @staticmethod + def Remove(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Remove/Remove', + vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RemoveByTimestamp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Remove/RemoveByTimestamp', + vald_dot_v1_dot_payload_dot_payload__pb2.Remove.TimestampRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamRemove(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Remove/StreamRemove', + vald_dot_v1_dot_payload_dot_payload__pb2.Remove.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiRemove(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Remove/MultiRemove', + vald_dot_v1_dot_payload_dot_payload__pb2.Remove.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/search_pb.d.ts b/src/vald/v1/vald/search_pb.d.ts deleted file mode 100644 index d9b99ddd..00000000 --- a/src/vald/v1/vald/search_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Search - */ -export declare const Search: any; diff --git a/src/vald/v1/vald/search_pb.grpc-client.d.ts b/src/vald/v1/vald/search_pb.grpc-client.d.ts deleted file mode 100644 index 6e80b786..00000000 --- a/src/vald/v1/vald/search_pb.grpc-client.d.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Search_MultiIDRequest } from "../payload/payload_pb"; -import type { Search_Responses } from "../payload/payload_pb"; -import type { Search_MultiRequest } from "../payload/payload_pb"; -import type { Search_StreamResponse } from "../payload/payload_pb"; -import type { Search_IDRequest } from "../payload/payload_pb"; -import type { Search_Response } from "../payload/payload_pb"; -import type { Search_Request } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Search service provides ways to search indexed vectors. - * - * @generated from protobuf service vald.v1.Search - */ -export interface ISearchClient { - /** - * A method to search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - search(input: Search_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - search(input: Search_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - search(input: Search_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - search(input: Search_Request, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by ID. - * - * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - searchByID(input: Search_IDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchByID(input: Search_IDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchByID(input: Search_IDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - searchByID(input: Search_IDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearch(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamSearch(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchByID(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamSearchByID(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to search indexed vectors by multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearch(input: Search_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearch(input: Search_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by multiple IDs in a single request. - * - * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchByID(input: Search_MultiIDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiSearchByID(input: Search_MultiIDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - linearSearch(input: Search_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearch(input: Search_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearch(input: Search_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearch(input: Search_Request, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by ID. - * - * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearchByID(input: Search_IDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - linearSearchByID(input: Search_IDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Response) => void): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearch(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamLinearSearch(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to linear search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearchByID(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamLinearSearchByID(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to linear search indexed vectors by multiple vectors in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearch(input: Search_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearch(input: Search_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by multiple IDs in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearchByID(input: Search_MultiIDRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; - multiLinearSearchByID(input: Search_MultiIDRequest, callback: (err: grpc.ServiceError | null, value?: Search_Responses) => void): grpc.ClientUnaryCall; -} -/** - * Search service provides ways to search indexed vectors. - * - * @generated from protobuf service vald.v1.Search - */ -export declare class SearchClient extends grpc.Client implements ISearchClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - search(input: Search_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by ID. - * - * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - searchByID(input: Search_IDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearch(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchByID(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to search indexed vectors by multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiSearch(input: Search_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; - /** - * A method to search indexed vectors by multiple IDs in a single request. - * - * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - linearSearch(input: Search_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by ID. - * - * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - linearSearchByID(input: Search_IDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Response) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Response) => void)): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearch(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to linear search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearchByID(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to linear search indexed vectors by multiple vectors in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearch(input: Search_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; - /** - * A method to linear search indexed vectors by multiple IDs in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearchByID(input: Search_MultiIDRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Search_Responses) => void), callback?: ((err: grpc.ServiceError | null, value?: Search_Responses) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/search_pb.grpc-client.js b/src/vald/v1/vald/search_pb.grpc-client.js deleted file mode 100644 index 29b2530e..00000000 --- a/src/vald/v1/vald/search_pb.grpc-client.js +++ /dev/null @@ -1,171 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SearchClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const search_pb_1 = require("./search_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Search service provides ways to search indexed vectors. - * - * @generated from protobuf service vald.v1.Search - */ -class SearchClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: Search(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - search(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[0]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to search indexed vectors by ID. - * - * @generated from protobuf rpc: SearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - searchByID(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[1]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearch(metadata, options) { - const method = search_pb_1.Search.methods[2]; - return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamSearchByID(metadata, options) { - const method = search_pb_1.Search.methods[3]; - return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to search indexed vectors by multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiSearch(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[4]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to search indexed vectors by multiple IDs in a single request. - * - * @generated from protobuf rpc: MultiSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiSearchByID(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[5]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to linear search indexed vectors by a raw vector. - * - * @generated from protobuf rpc: LinearSearch(payload.v1.Search.Request) returns (payload.v1.Search.Response); - */ - linearSearch(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[6]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to linear search indexed vectors by ID. - * - * @generated from protobuf rpc: LinearSearchByID(payload.v1.Search.IDRequest) returns (payload.v1.Search.Response); - */ - linearSearchByID(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[7]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to linear search indexed vectors by multiple vectors. - * - * @generated from protobuf rpc: StreamLinearSearch(stream payload.v1.Search.Request) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearch(metadata, options) { - const method = search_pb_1.Search.methods[8]; - return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to linear search indexed vectors by multiple IDs. - * - * @generated from protobuf rpc: StreamLinearSearchByID(stream payload.v1.Search.IDRequest) returns (stream payload.v1.Search.StreamResponse); - */ - streamLinearSearchByID(metadata, options) { - const method = search_pb_1.Search.methods[9]; - return this.makeBidiStreamRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to linear search indexed vectors by multiple vectors in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearch(payload.v1.Search.MultiRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearch(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[10]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to linear search indexed vectors by multiple IDs in a single - * request. - * - * @generated from protobuf rpc: MultiLinearSearchByID(payload.v1.Search.MultiIDRequest) returns (payload.v1.Search.Responses); - */ - multiLinearSearchByID(input, metadata, options, callback) { - const method = search_pb_1.Search.methods[11]; - return this.makeUnaryRequest(`/${search_pb_1.Search.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.SearchClient = SearchClient; diff --git a/src/vald/v1/vald/search_pb.js b/src/vald/v1/vald/search_pb.js deleted file mode 100644 index 05375054..00000000 --- a/src/vald/v1/vald/search_pb.js +++ /dev/null @@ -1,72 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Search = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/search.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const payload_pb_6 = require("../payload/payload_pb"); -const payload_pb_7 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Search - */ -exports.Search = new runtime_rpc_1.ServiceType("vald.v1.Search", [ - { name: "Search", options: { "google.api.http": { post: "/search", body: "*" } }, I: payload_pb_7.Search_Request, O: payload_pb_6.Search_Response }, - { name: "SearchByID", options: { "google.api.http": { post: "/search/id", body: "*" } }, I: payload_pb_5.Search_IDRequest, O: payload_pb_6.Search_Response }, - { name: "StreamSearch", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_7.Search_Request, O: payload_pb_4.Search_StreamResponse }, - { name: "StreamSearchByID", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Search_IDRequest, O: payload_pb_4.Search_StreamResponse }, - { name: "MultiSearch", options: { "google.api.http": { post: "/search/multiple", body: "*" } }, I: payload_pb_3.Search_MultiRequest, O: payload_pb_2.Search_Responses }, - { name: "MultiSearchByID", options: { "google.api.http": { post: "/search/id/multiple", body: "*" } }, I: payload_pb_1.Search_MultiIDRequest, O: payload_pb_2.Search_Responses }, - { name: "LinearSearch", options: { "google.api.http": { post: "/linearsearch", body: "*" } }, I: payload_pb_7.Search_Request, O: payload_pb_6.Search_Response }, - { name: "LinearSearchByID", options: { "google.api.http": { post: "/linearsearch/id", body: "*" } }, I: payload_pb_5.Search_IDRequest, O: payload_pb_6.Search_Response }, - { name: "StreamLinearSearch", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_7.Search_Request, O: payload_pb_4.Search_StreamResponse }, - { name: "StreamLinearSearchByID", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Search_IDRequest, O: payload_pb_4.Search_StreamResponse }, - { name: "MultiLinearSearch", options: { "google.api.http": { post: "/linearsearch/multiple", body: "*" } }, I: payload_pb_3.Search_MultiRequest, O: payload_pb_2.Search_Responses }, - { name: "MultiLinearSearchByID", options: { "google.api.http": { post: "/linearsearch/id/multiple", body: "*" } }, I: payload_pb_1.Search_MultiIDRequest, O: payload_pb_2.Search_Responses } -]); diff --git a/src/vald/v1/vald/search_pb2.py b/src/vald/v1/vald/search_pb2.py new file mode 100644 index 00000000..a84c2645 --- /dev/null +++ b/src/vald/v1/vald/search_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/search.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/search.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\xd0\t\n\x06Search\x12U\n\x06Search\x12\x1a.payload.v1.Search.Request\x1a\x1b.payload.v1.Search.Response\"\x12\x82\xd3\xe4\x93\x02\x0c\"\x07/search:\x01*\x12^\n\nSearchByID\x12\x1c.payload.v1.Search.IDRequest\x1a\x1b.payload.v1.Search.Response\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/search/id:\x01*\x12S\n\x0cStreamSearch\x12\x1a.payload.v1.Search.Request\x1a!.payload.v1.Search.StreamResponse\"\x00(\x01\x30\x01\x12Y\n\x10StreamSearchByID\x12\x1c.payload.v1.Search.IDRequest\x1a!.payload.v1.Search.StreamResponse\"\x00(\x01\x30\x01\x12i\n\x0bMultiSearch\x12\x1f.payload.v1.Search.MultiRequest\x1a\x1c.payload.v1.Search.Responses\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/search/multiple:\x01*\x12r\n\x0fMultiSearchByID\x12!.payload.v1.Search.MultiIDRequest\x1a\x1c.payload.v1.Search.Responses\"\x1e\x82\xd3\xe4\x93\x02\x18\"\x13/search/id/multiple:\x01*\x12\x61\n\x0cLinearSearch\x12\x1a.payload.v1.Search.Request\x1a\x1b.payload.v1.Search.Response\"\x18\x82\xd3\xe4\x93\x02\x12\"\r/linearsearch:\x01*\x12j\n\x10LinearSearchByID\x12\x1c.payload.v1.Search.IDRequest\x1a\x1b.payload.v1.Search.Response\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/linearsearch/id:\x01*\x12Y\n\x12StreamLinearSearch\x12\x1a.payload.v1.Search.Request\x1a!.payload.v1.Search.StreamResponse\"\x00(\x01\x30\x01\x12_\n\x16StreamLinearSearchByID\x12\x1c.payload.v1.Search.IDRequest\x1a!.payload.v1.Search.StreamResponse\"\x00(\x01\x30\x01\x12u\n\x11MultiLinearSearch\x12\x1f.payload.v1.Search.MultiRequest\x1a\x1c.payload.v1.Search.Responses\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/linearsearch/multiple:\x01*\x12~\n\x15MultiLinearSearchByID\x12!.payload.v1.Search.MultiIDRequest\x1a\x1c.payload.v1.Search.Responses\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/linearsearch/id/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdSearchP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.search_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdSearchP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_SEARCH'].methods_by_name['Search']._options = None + _globals['_SEARCH'].methods_by_name['Search']._serialized_options = b'\202\323\344\223\002\014\"\007/search:\001*' + _globals['_SEARCH'].methods_by_name['SearchByID']._options = None + _globals['_SEARCH'].methods_by_name['SearchByID']._serialized_options = b'\202\323\344\223\002\017\"\n/search/id:\001*' + _globals['_SEARCH'].methods_by_name['MultiSearch']._options = None + _globals['_SEARCH'].methods_by_name['MultiSearch']._serialized_options = b'\202\323\344\223\002\025\"\020/search/multiple:\001*' + _globals['_SEARCH'].methods_by_name['MultiSearchByID']._options = None + _globals['_SEARCH'].methods_by_name['MultiSearchByID']._serialized_options = b'\202\323\344\223\002\030\"\023/search/id/multiple:\001*' + _globals['_SEARCH'].methods_by_name['LinearSearch']._options = None + _globals['_SEARCH'].methods_by_name['LinearSearch']._serialized_options = b'\202\323\344\223\002\022\"\r/linearsearch:\001*' + _globals['_SEARCH'].methods_by_name['LinearSearchByID']._options = None + _globals['_SEARCH'].methods_by_name['LinearSearchByID']._serialized_options = b'\202\323\344\223\002\025\"\020/linearsearch/id:\001*' + _globals['_SEARCH'].methods_by_name['MultiLinearSearch']._options = None + _globals['_SEARCH'].methods_by_name['MultiLinearSearch']._serialized_options = b'\202\323\344\223\002\033\"\026/linearsearch/multiple:\001*' + _globals['_SEARCH'].methods_by_name['MultiLinearSearchByID']._options = None + _globals['_SEARCH'].methods_by_name['MultiLinearSearchByID']._serialized_options = b'\202\323\344\223\002\036\"\031/linearsearch/id/multiple:\001*' + _globals['_SEARCH']._serialized_start=100 + _globals['_SEARCH']._serialized_end=1332 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/search_pb2_grpc.py b/src/vald/v1/vald/search_pb2_grpc.py new file mode 100644 index 00000000..40038e2d --- /dev/null +++ b/src/vald/v1/vald/search_pb2_grpc.py @@ -0,0 +1,446 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class SearchStub(object): + """Search service provides ways to search indexed vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Search = channel.unary_unary( + '/vald.v1.Search/Search', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + ) + self.SearchByID = channel.unary_unary( + '/vald.v1.Search/SearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + ) + self.StreamSearch = channel.stream_stream( + '/vald.v1.Search/StreamSearch', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + ) + self.StreamSearchByID = channel.stream_stream( + '/vald.v1.Search/StreamSearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + ) + self.MultiSearch = channel.unary_unary( + '/vald.v1.Search/MultiSearch', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + ) + self.MultiSearchByID = channel.unary_unary( + '/vald.v1.Search/MultiSearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + ) + self.LinearSearch = channel.unary_unary( + '/vald.v1.Search/LinearSearch', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + ) + self.LinearSearchByID = channel.unary_unary( + '/vald.v1.Search/LinearSearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + ) + self.StreamLinearSearch = channel.stream_stream( + '/vald.v1.Search/StreamLinearSearch', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + ) + self.StreamLinearSearchByID = channel.stream_stream( + '/vald.v1.Search/StreamLinearSearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + ) + self.MultiLinearSearch = channel.unary_unary( + '/vald.v1.Search/MultiLinearSearch', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + ) + self.MultiLinearSearchByID = channel.unary_unary( + '/vald.v1.Search/MultiLinearSearchByID', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + ) + + +class SearchServicer(object): + """Search service provides ways to search indexed vectors. + """ + + def Search(self, request, context): + """A method to search indexed vectors by a raw vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SearchByID(self, request, context): + """A method to search indexed vectors by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamSearch(self, request_iterator, context): + """A method to search indexed vectors by multiple vectors. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamSearchByID(self, request_iterator, context): + """A method to search indexed vectors by multiple IDs. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiSearch(self, request, context): + """A method to search indexed vectors by multiple vectors in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiSearchByID(self, request, context): + """A method to search indexed vectors by multiple IDs in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LinearSearch(self, request, context): + """A method to linear search indexed vectors by a raw vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LinearSearchByID(self, request, context): + """A method to linear search indexed vectors by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamLinearSearch(self, request_iterator, context): + """A method to linear search indexed vectors by multiple vectors. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamLinearSearchByID(self, request_iterator, context): + """A method to linear search indexed vectors by multiple IDs. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiLinearSearch(self, request, context): + """A method to linear search indexed vectors by multiple vectors in a single + request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiLinearSearchByID(self, request, context): + """A method to linear search indexed vectors by multiple IDs in a single + request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SearchServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Search': grpc.unary_unary_rpc_method_handler( + servicer.Search, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.SerializeToString, + ), + 'SearchByID': grpc.unary_unary_rpc_method_handler( + servicer.SearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.SerializeToString, + ), + 'StreamSearch': grpc.stream_stream_rpc_method_handler( + servicer.StreamSearch, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.SerializeToString, + ), + 'StreamSearchByID': grpc.stream_stream_rpc_method_handler( + servicer.StreamSearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.SerializeToString, + ), + 'MultiSearch': grpc.unary_unary_rpc_method_handler( + servicer.MultiSearch, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.SerializeToString, + ), + 'MultiSearchByID': grpc.unary_unary_rpc_method_handler( + servicer.MultiSearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.SerializeToString, + ), + 'LinearSearch': grpc.unary_unary_rpc_method_handler( + servicer.LinearSearch, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.SerializeToString, + ), + 'LinearSearchByID': grpc.unary_unary_rpc_method_handler( + servicer.LinearSearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.SerializeToString, + ), + 'StreamLinearSearch': grpc.stream_stream_rpc_method_handler( + servicer.StreamLinearSearch, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.SerializeToString, + ), + 'StreamLinearSearchByID': grpc.stream_stream_rpc_method_handler( + servicer.StreamLinearSearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.SerializeToString, + ), + 'MultiLinearSearch': grpc.unary_unary_rpc_method_handler( + servicer.MultiLinearSearch, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.SerializeToString, + ), + 'MultiLinearSearchByID': grpc.unary_unary_rpc_method_handler( + servicer.MultiLinearSearchByID, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Search', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Search(object): + """Search service provides ways to search indexed vectors. + """ + + @staticmethod + def Search(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/Search', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SearchByID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/SearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamSearch(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Search/StreamSearch', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamSearchByID(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Search/StreamSearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiSearch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/MultiSearch', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiSearchByID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/MultiSearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LinearSearch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/LinearSearch', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LinearSearchByID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/LinearSearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamLinearSearch(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Search/StreamLinearSearch', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamLinearSearchByID(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Search/StreamLinearSearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.IDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.StreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiLinearSearch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/MultiLinearSearch', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiLinearSearchByID(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Search/MultiLinearSearchByID', + vald_dot_v1_dot_payload_dot_payload__pb2.Search.MultiIDRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Search.Responses.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/update_pb.d.ts b/src/vald/v1/vald/update_pb.d.ts deleted file mode 100644 index f88fc9aa..00000000 --- a/src/vald/v1/vald/update_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Update - */ -export declare const Update: any; diff --git a/src/vald/v1/vald/update_pb.grpc-client.d.ts b/src/vald/v1/vald/update_pb.grpc-client.d.ts deleted file mode 100644 index dc20ab00..00000000 --- a/src/vald/v1/vald/update_pb.grpc-client.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Object_Locations } from "../payload/payload_pb"; -import type { Update_MultiRequest } from "../payload/payload_pb"; -import type { Object_StreamLocation } from "../payload/payload_pb"; -import type { Object_Location } from "../payload/payload_pb"; -import type { Update_Request } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Update service provides ways to update indexed vectors. - * - * @generated from protobuf service vald.v1.Update - */ -export interface IUpdateClient { - /** - * A method to update an indexed vector. - * - * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); - */ - update(input: Update_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - update(input: Update_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - update(input: Update_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - update(input: Update_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to update multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdate(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamUpdate(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to update multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdate(input: Update_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpdate(input: Update_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; -} -/** - * Update service provides ways to update indexed vectors. - * - * @generated from protobuf service vald.v1.Update - */ -export declare class UpdateClient extends grpc.Client implements IUpdateClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to update an indexed vector. - * - * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); - */ - update(input: Update_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to update multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdate(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to update multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpdate(input: Update_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/update_pb.grpc-client.js b/src/vald/v1/vald/update_pb.grpc-client.js deleted file mode 100644 index f4c4c022..00000000 --- a/src/vald/v1/vald/update_pb.grpc-client.js +++ /dev/null @@ -1,88 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const update_pb_1 = require("./update_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Update service provides ways to update indexed vectors. - * - * @generated from protobuf service vald.v1.Update - */ -class UpdateClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to update an indexed vector. - * - * @generated from protobuf rpc: Update(payload.v1.Update.Request) returns (payload.v1.Object.Location); - */ - update(input, metadata, options, callback) { - const method = update_pb_1.Update.methods[0]; - return this.makeUnaryRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to update multiple indexed vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpdate(stream payload.v1.Update.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpdate(metadata, options) { - const method = update_pb_1.Update.methods[1]; - return this.makeBidiStreamRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to update multiple indexed vectors in a single request. - * - * @generated from protobuf rpc: MultiUpdate(payload.v1.Update.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpdate(input, metadata, options, callback) { - const method = update_pb_1.Update.methods[2]; - return this.makeUnaryRequest(`/${update_pb_1.Update.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.UpdateClient = UpdateClient; diff --git a/src/vald/v1/vald/update_pb.js b/src/vald/v1/vald/update_pb.js deleted file mode 100644 index 5f0edb1b..00000000 --- a/src/vald/v1/vald/update_pb.js +++ /dev/null @@ -1,61 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Update = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/update.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Update - */ -exports.Update = new runtime_rpc_1.ServiceType("vald.v1.Update", [ - { name: "Update", options: { "google.api.http": { post: "/update", body: "*" } }, I: payload_pb_5.Update_Request, O: payload_pb_4.Object_Location }, - { name: "StreamUpdate", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Update_Request, O: payload_pb_3.Object_StreamLocation }, - { name: "MultiUpdate", options: { "google.api.http": { post: "/update/multiple", body: "*" } }, I: payload_pb_2.Update_MultiRequest, O: payload_pb_1.Object_Locations } -]); diff --git a/src/vald/v1/vald/update_pb2.py b/src/vald/v1/vald/update_pb2.py new file mode 100644 index 00000000..f552da4a --- /dev/null +++ b/src/vald/v1/vald/update_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/update.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/update.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\x9f\x02\n\x06Update\x12U\n\x06Update\x12\x1a.payload.v1.Update.Request\x1a\x1b.payload.v1.Object.Location\"\x12\x82\xd3\xe4\x93\x02\x0c\"\x07/update:\x01*\x12S\n\x0cStreamUpdate\x12\x1a.payload.v1.Update.Request\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12i\n\x0bMultiUpdate\x12\x1f.payload.v1.Update.MultiRequest\x1a\x1c.payload.v1.Object.Locations\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/update/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdUpdateP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.update_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdUpdateP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_UPDATE'].methods_by_name['Update']._options = None + _globals['_UPDATE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\014\"\007/update:\001*' + _globals['_UPDATE'].methods_by_name['MultiUpdate']._options = None + _globals['_UPDATE'].methods_by_name['MultiUpdate']._serialized_options = b'\202\323\344\223\002\025\"\020/update/multiple:\001*' + _globals['_UPDATE']._serialized_start=100 + _globals['_UPDATE']._serialized_end=387 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/update_pb2_grpc.py b/src/vald/v1/vald/update_pb2_grpc.py new file mode 100644 index 00000000..bac296b1 --- /dev/null +++ b/src/vald/v1/vald/update_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class UpdateStub(object): + """Update service provides ways to update indexed vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Update = channel.unary_unary( + '/vald.v1.Update/Update', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamUpdate = channel.stream_stream( + '/vald.v1.Update/StreamUpdate', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiUpdate = channel.unary_unary( + '/vald.v1.Update/MultiUpdate', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + + +class UpdateServicer(object): + """Update service provides ways to update indexed vectors. + """ + + def Update(self, request, context): + """A method to update an indexed vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamUpdate(self, request_iterator, context): + """A method to update multiple indexed vectors by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiUpdate(self, request, context): + """A method to update multiple indexed vectors in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UpdateServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Update': grpc.unary_unary_rpc_method_handler( + servicer.Update, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamUpdate': grpc.stream_stream_rpc_method_handler( + servicer.StreamUpdate, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiUpdate': grpc.unary_unary_rpc_method_handler( + servicer.MultiUpdate, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Update', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Update(object): + """Update service provides ways to update indexed vectors. + """ + + @staticmethod + def Update(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Update/Update', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamUpdate(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Update/StreamUpdate', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiUpdate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Update/MultiUpdate', + vald_dot_v1_dot_payload_dot_payload__pb2.Update.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/vald/v1/vald/upsert_pb.d.ts b/src/vald/v1/vald/upsert_pb.d.ts deleted file mode 100644 index a8e8dd74..00000000 --- a/src/vald/v1/vald/upsert_pb.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -/** - * @generated ServiceType for protobuf service vald.v1.Upsert - */ -export declare const Upsert: any; diff --git a/src/vald/v1/vald/upsert_pb.grpc-client.d.ts b/src/vald/v1/vald/upsert_pb.grpc-client.d.ts deleted file mode 100644 index 24ee9c74..00000000 --- a/src/vald/v1/vald/upsert_pb.grpc-client.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { Object_Locations } from "../payload/payload_pb"; -import type { Upsert_MultiRequest } from "../payload/payload_pb"; -import type { Object_StreamLocation } from "../payload/payload_pb"; -import type { Object_Location } from "../payload/payload_pb"; -import type { Upsert_Request } from "../payload/payload_pb"; -import * as grpc from "@grpc/grpc-js"; -/** - * Upsert service provides ways to insert/update vectors. - * - * @generated from protobuf service vald.v1.Upsert - */ -export interface IUpsertClient { - /** - * A method to insert/update a vector. - * - * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); - */ - upsert(input: Upsert_Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsert(input: Upsert_Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsert(input: Upsert_Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - upsert(input: Upsert_Request, callback: (err: grpc.ServiceError | null, value?: Object_Location) => void): grpc.ClientUnaryCall; - /** - * A method to insert/update multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsert(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream; - streamUpsert(options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to insert/update multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsert(input: Upsert_MultiRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; - multiUpsert(input: Upsert_MultiRequest, callback: (err: grpc.ServiceError | null, value?: Object_Locations) => void): grpc.ClientUnaryCall; -} -/** - * Upsert service provides ways to insert/update vectors. - * - * @generated from protobuf service vald.v1.Upsert - */ -export declare class UpsertClient extends grpc.Client implements IUpsertClient { - private readonly _binaryOptions; - constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial); - /** - * A method to insert/update a vector. - * - * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); - */ - upsert(input: Upsert_Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Location) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Location) => void)): grpc.ClientUnaryCall; - /** - * A method to insert/update multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsert(metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientDuplexStream; - /** - * A method to insert/update multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpsert(input: Upsert_MultiRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: Object_Locations) => void), callback?: ((err: grpc.ServiceError | null, value?: Object_Locations) => void)): grpc.ClientUnaryCall; -} diff --git a/src/vald/v1/vald/upsert_pb.grpc-client.js b/src/vald/v1/vald/upsert_pb.grpc-client.js deleted file mode 100644 index ef3cbcfd..00000000 --- a/src/vald/v1/vald/upsert_pb.grpc-client.js +++ /dev/null @@ -1,88 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpsertClient = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const upsert_pb_1 = require("./upsert_pb"); -const grpc = require("@grpc/grpc-js"); -/** - * Upsert service provides ways to insert/update vectors. - * - * @generated from protobuf service vald.v1.Upsert - */ -class UpsertClient extends grpc.Client { - constructor(address, credentials, options = {}, binaryOptions = {}) { - super(address, credentials, options); - this._binaryOptions = binaryOptions; - } - /** - * A method to insert/update a vector. - * - * @generated from protobuf rpc: Upsert(payload.v1.Upsert.Request) returns (payload.v1.Object.Location); - */ - upsert(input, metadata, options, callback) { - const method = upsert_pb_1.Upsert.methods[0]; - return this.makeUnaryRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } - /** - * A method to insert/update multiple vectors by bidirectional streaming. - * - * @generated from protobuf rpc: StreamUpsert(stream payload.v1.Upsert.Request) returns (stream payload.v1.Object.StreamLocation); - */ - streamUpsert(metadata, options) { - const method = upsert_pb_1.Upsert.methods[1]; - return this.makeBidiStreamRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), metadata, options); - } - /** - * A method to insert/update multiple vectors in a single request. - * - * @generated from protobuf rpc: MultiUpsert(payload.v1.Upsert.MultiRequest) returns (payload.v1.Object.Locations); - */ - multiUpsert(input, metadata, options, callback) { - const method = upsert_pb_1.Upsert.methods[2]; - return this.makeUnaryRequest(`/${upsert_pb_1.Upsert.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback); - } -} -exports.UpsertClient = UpsertClient; diff --git a/src/vald/v1/vald/upsert_pb.js b/src/vald/v1/vald/upsert_pb.js deleted file mode 100644 index c3239297..00000000 --- a/src/vald/v1/vald/upsert_pb.js +++ /dev/null @@ -1,61 +0,0 @@ -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Upsert = void 0; -/* eslint-disable */ -// @generated by protobuf-ts 2.9.3 with parameter add_pb_suffix,client_grpc1,generate_dependencies,keep_enum_prefix,ts_nocheck,use_proto_field_name,output_javascript,output_legacy_commonjs,eslint_disable -// @generated from protobuf file "vald/v1/vald/upsert.proto" (package "vald.v1", syntax proto3) -// tslint:disable -// @ts-nocheck -// -// -// Copyright (C) 2019-2024 vdaas.org vald 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 -// -// https://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. -// -// -const payload_pb_1 = require("../payload/payload_pb"); -const payload_pb_2 = require("../payload/payload_pb"); -const payload_pb_3 = require("../payload/payload_pb"); -const payload_pb_4 = require("../payload/payload_pb"); -const payload_pb_5 = require("../payload/payload_pb"); -const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc"); -/** - * @generated ServiceType for protobuf service vald.v1.Upsert - */ -exports.Upsert = new runtime_rpc_1.ServiceType("vald.v1.Upsert", [ - { name: "Upsert", options: { "google.api.http": { post: "/upsert", body: "*" } }, I: payload_pb_5.Upsert_Request, O: payload_pb_4.Object_Location }, - { name: "StreamUpsert", serverStreaming: true, clientStreaming: true, options: {}, I: payload_pb_5.Upsert_Request, O: payload_pb_3.Object_StreamLocation }, - { name: "MultiUpsert", options: { "google.api.http": { post: "/upsert/multiple", body: "*" } }, I: payload_pb_2.Upsert_MultiRequest, O: payload_pb_1.Object_Locations } -]); diff --git a/src/vald/v1/vald/upsert_pb2.py b/src/vald/v1/vald/upsert_pb2.py new file mode 100644 index 00000000..3beb4256 --- /dev/null +++ b/src/vald/v1/vald/upsert_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: vald/v1/vald/upsert.proto +# Protobuf Python Version: 4.25.3 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19vald/v1/vald/upsert.proto\x12\x07vald.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dvald/v1/payload/payload.proto2\x9f\x02\n\x06Upsert\x12U\n\x06Upsert\x12\x1a.payload.v1.Upsert.Request\x1a\x1b.payload.v1.Object.Location\"\x12\x82\xd3\xe4\x93\x02\x0c\"\x07/upsert:\x01*\x12S\n\x0cStreamUpsert\x12\x1a.payload.v1.Upsert.Request\x1a!.payload.v1.Object.StreamLocation\"\x00(\x01\x30\x01\x12i\n\x0bMultiUpsert\x12\x1f.payload.v1.Upsert.MultiRequest\x1a\x1c.payload.v1.Object.Locations\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/upsert/multiple:\x01*BS\n\x1aorg.vdaas.vald.api.v1.valdB\nValdUpsertP\x01Z\'github.com/vdaas/vald/apis/grpc/v1/valdb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vald.v1.vald.upsert_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\032org.vdaas.vald.api.v1.valdB\nValdUpsertP\001Z\'github.com/vdaas/vald/apis/grpc/v1/vald' + _globals['_UPSERT'].methods_by_name['Upsert']._options = None + _globals['_UPSERT'].methods_by_name['Upsert']._serialized_options = b'\202\323\344\223\002\014\"\007/upsert:\001*' + _globals['_UPSERT'].methods_by_name['MultiUpsert']._options = None + _globals['_UPSERT'].methods_by_name['MultiUpsert']._serialized_options = b'\202\323\344\223\002\025\"\020/upsert/multiple:\001*' + _globals['_UPSERT']._serialized_start=100 + _globals['_UPSERT']._serialized_end=387 +# @@protoc_insertion_point(module_scope) diff --git a/src/vald/v1/vald/upsert_pb2_grpc.py b/src/vald/v1/vald/upsert_pb2_grpc.py new file mode 100644 index 00000000..e080a1e1 --- /dev/null +++ b/src/vald/v1/vald/upsert_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from vald.v1.payload import payload_pb2 as vald_dot_v1_dot_payload_dot_payload__pb2 + + +class UpsertStub(object): + """Upsert service provides ways to insert/update vectors. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Upsert = channel.unary_unary( + '/vald.v1.Upsert/Upsert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + ) + self.StreamUpsert = channel.stream_stream( + '/vald.v1.Upsert/StreamUpsert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + ) + self.MultiUpsert = channel.unary_unary( + '/vald.v1.Upsert/MultiUpsert', + request_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiRequest.SerializeToString, + response_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + ) + + +class UpsertServicer(object): + """Upsert service provides ways to insert/update vectors. + """ + + def Upsert(self, request, context): + """A method to insert/update a vector. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamUpsert(self, request_iterator, context): + """A method to insert/update multiple vectors by bidirectional streaming. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultiUpsert(self, request, context): + """A method to insert/update multiple vectors in a single request. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UpsertServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Upsert': grpc.unary_unary_rpc_method_handler( + servicer.Upsert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.SerializeToString, + ), + 'StreamUpsert': grpc.stream_stream_rpc_method_handler( + servicer.StreamUpsert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.SerializeToString, + ), + 'MultiUpsert': grpc.unary_unary_rpc_method_handler( + servicer.MultiUpsert, + request_deserializer=vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiRequest.FromString, + response_serializer=vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'vald.v1.Upsert', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Upsert(object): + """Upsert service provides ways to insert/update vectors. + """ + + @staticmethod + def Upsert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Upsert/Upsert', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Location.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamUpsert(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/vald.v1.Upsert/StreamUpsert', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.Request.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.StreamLocation.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultiUpsert(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/vald.v1.Upsert/MultiUpsert', + vald_dot_v1_dot_payload_dot_payload__pb2.Upsert.MultiRequest.SerializeToString, + vald_dot_v1_dot_payload_dot_payload__pb2.Object.Locations.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/tests/e2e.test.ts b/tests/e2e.test.ts deleted file mode 100644 index 2bfdb222..00000000 --- a/tests/e2e.test.ts +++ /dev/null @@ -1,901 +0,0 @@ -import grpc = require("@grpc/grpc-js"); -import { - insert_grpc, - search_grpc, - update_grpc, - upsert_grpc, - remove_grpc, - object_grpc, -} from "../src/vald/v1/vald"; -import { agent_grpc } from "../src/vald/v1/agent/core"; -import { payload } from "../src/vald/v1/payload"; -import { InsertClient } from "../src/vald/v1/vald/insert_pb.grpc-client"; -import { RemoveClient } from "../src/vald/v1/vald/remove_pb.grpc-client"; -import { SearchClient } from "../src/vald/v1/vald/search_pb.grpc-client"; -import { UpdateClient } from "../src/vald/v1/vald/update_pb.grpc-client"; -import { UpsertClient } from "../src/vald/v1/vald/upsert_pb.grpc-client"; -import { ObjectClient } from "../src/vald/v1/vald/object_pb.grpc-client"; -import { AgentClient } from "../src/vald/v1/agent/core/agent_pb.grpc-client"; -import data = require("./wordvecs1000.json"); - -const address = "localhost:8081"; -const connectDeadlineMs = 10000; - -jest.setTimeout(120000); - -describe("Tests for node client", () => { - describe("Tests for insert operations", () => { - let client: InsertClient; - - beforeAll((done) => { - client = new insert_grpc.InsertClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - console.log(data); - - test("Insert", (done) => { - const vec = payload.Object_Vector.create({ - id: data[0].id, - vector: data[0].vector, - }); - - const cfg = payload.Insert_Config?.create({ - skip_strict_exist_check: true, - }); - - const req = payload.Insert_Request?.create({ - vector: vec, - config: cfg, - }); - - client.insert(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Location.is(resp)).toBe(true); - - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiInsert", (done) => { - const requests: Array = []; - const cfg = payload.Insert_Config?.create({ - skip_strict_exist_check: true, - }); - - for (let i = 1; i < 11; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i].vector, - }); - - const r = payload.Insert_Request?.create({ - vector: vec, - config: cfg, - }); - - requests.push(r); - } - - const req = payload.Insert_MultiRequest?.create({ - requests: requests, - }); - - client.multiInsert(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Locations.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamInsert", (done) => { - const cfg = payload.Insert_Config?.create({ - skip_strict_exist_check: true, - }); - - const channel = client.streamInsert(); - channel.on("data", (message) => { - try { - expect(payload.Object_StreamLocation.is(message)).toBe(true); - const cloneRes = payload.Object_StreamLocation.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 101; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i].vector, - }); - - const r = payload.Insert_Request?.create({ - vector: vec, - config: cfg, - }); - channel.write(r); - } - - channel.end(); - }); - }); - - describe("Tests for creating indices operations", () => { - let client: AgentClient; - - beforeAll((done) => { - client = new agent_grpc.AgentClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("CreateIndex", (done) => { - const req = payload.Control_CreateIndexRequest?.create({ - pool_size: 10000, - }); - - client?.createIndex(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Empty.is(resp)).toBe(true) - done(); - } catch (e) { - done(e); - } - }); - }); - - test("SaveIndex", (done) => { - const req = payload.Empty?.create(); - - client.saveIndex(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Empty.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("IndexInfo", (done) => { - const req = payload.Empty?.create(); - - client.indexInfo(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Info_Index_Count.is(resp)).toBe(true); - expect(resp?.stored).toEqual(101); - expect(resp?.uncommitted).toEqual(0); - done(); - } catch (e) { - done(e); - } - }); - }); - }); - - describe("Test for object operations", () => { - let client: ObjectClient; - - beforeAll((done) => { - client = new object_grpc.ObjectClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("Exists", (done) => { - const req = payload.Object_ID?.create({ - id: data[0].id, - }); - - client.exists(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_ID.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("GetObject", (done) => { - const id = payload.Object_ID?.create({ - id: data[0].id, - }); - - const req = payload.Object_VectorRequest?.create({ - id: id, - }); - - client.getObject(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Vector.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamGetObject", (done) => { - const channel = client.streamGetObject(); - channel.on("data", (message) => { - try { - expect(payload.Object_StreamVector.is(message)).toBe(true); - const cloneRes = payload.Object_StreamVector.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 0; i < 11; i++) { - const id = payload.Object_ID?.create({ - id: data[i].id, - }); - - const req = payload.Object_VectorRequest?.create({ - id: id, - }); - - channel.write(req); - } - - channel.end(); - }); - }); - - describe("Tests for search operations", () => { - let client: SearchClient; - - beforeAll((done) => { - client = new search_grpc.SearchClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("Search", (done) => { - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - const req = payload.Search_Request?.create({ - vector: data[0].vector, - config: cfg, - }); - - client.search(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Search_Response.is(resp)).toBe(true); - expect(resp?.results.length).toEqual(3); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiSearch", (done) => { - const requests: Array = []; - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - for (let i = 1; i < 11; i++) { - const r = payload.Search_Request?.create({ - vector: data[i].vector, - config: cfg, - }); - requests.push(r); - } - - const req = payload.Search_MultiRequest?.create({ - requests: requests, - }); - - client.multiSearch(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Search_Responses.is(resp)).toBe(true); - for (const response of resp?.responses ?? []) { - expect(payload.Search_Response.is(response)).toBe(true); - expect(response.results.length).toEqual(3); - } - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamSearch", (done) => { - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - const channel = client.streamSearch(); - channel.on("data", (message) => { - try { - expect(payload.Search_StreamResponse.is(message)).toBe(true); - const cloneRes = payload.Search_StreamResponse.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 21; i++) { - const r = payload.Search_Request?.create({ - vector: data[i].vector, - config: cfg, - }); - - channel.write(r); - } - - channel.end(); - }); - - test("SearchByID", (done) => { - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - const req = payload.Search_IDRequest?.create({ - id: data[0].id, - config: cfg, - }); - - client.searchByID(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Search_Response.is(resp)).toBe(true); - expect(resp?.results.length).toEqual(3); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiSearchByID", (done) => { - const requests: Array = []; - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - for (let i = 1; i < 11; i++) { - const r = payload.Search_IDRequest?.create({ - id: data[i].id, - config: cfg, - }); - - requests.push(r); - } - - const req = payload.Search_MultiIDRequest?.create({ - requests: requests, - }); - - client.multiSearchByID(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Search_Responses.is(resp)).toBe(true); - for (const response of resp?.responses ?? []) { - expect(payload.Search_Response.is(response)).toBe(true); - expect(response.results.length).toEqual(3); - } - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamSearchByID", (done) => { - const cfg = payload.Search_Config?.create({ - num: 3, - radius: -1.0, - epsilon: 0.1, - timeout: BigInt(3000000000), - }); - - const channel = client.streamSearchByID(); - channel.on("data", (message) => { - try { - expect(payload.Search_StreamResponse.is(message)).toBe(true); - const cloneRes = payload.Search_StreamResponse.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 21; i++) { - const r = payload.Search_IDRequest?.create({ - id: data[i].id, - config: cfg, - }); - channel.write(r); - } - - channel.end(); - }); - }); - - describe("Tests for update operations", () => { - let client: UpdateClient; - - beforeAll((done) => { - client = new update_grpc.UpdateClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("Update", (done) => { - const vec = payload.Object_Vector?.create({ - id: data[0].id, - vector: data[1].vector, - }); - const cfg = payload.Update_Config?.create({ - skip_strict_exist_check: true, - }); - - const req = payload.Update_Request?.create({ - vector: vec, - config: cfg, - }); - - client.update(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Location.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiUpdate", (done) => { - const requests: Array = []; - const cfg = payload.Update_Config?.create({ - skip_strict_exist_check: true, - }); - - for (let i = 1; i < 11; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i + 1].vector, - }); - - const r = payload.Update_Request?.create({ - vector: vec, - config: cfg, - }); - - requests.push(r); - } - - const req = payload.Update_MultiRequest?.create({ - requests: requests, - }); - - client.multiUpdate(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Locations.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamUpdate", (done) => { - const cfg = payload.Update_Config?.create({ - skip_strict_exist_check: true, - }); - - const channel = client.streamUpdate(); - channel.on("data", (message) => { - try { - expect(payload.Object_StreamLocation.is(message)).toBe(true); - const cloneRes = payload.Object_StreamLocation.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 21; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i + 1].vector, - }); - - const r = payload.Update_Request?.create({ - vector: vec, - config: cfg, - }); - channel.write(r); - } - - channel.end(); - }); - }); - - describe("Tests for upsert operations", () => { - let client: UpsertClient; - - beforeAll((done) => { - client = new upsert_grpc.UpsertClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("Upsert", (done) => { - const vec = payload.Object_Vector?.create({ - id: data[0].id, - vector: data[0].vector, - }); - - const cfg = payload.Upsert_Config?.create({ - skip_strict_exist_check: true, - }); - - const req = payload.Upsert_Request?.create({ - vector: vec, - config: cfg - }); - - client.upsert(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Location.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiUpsert", (done) => { - const requests: Array = []; - const cfg = payload.Upsert_Config?.create({ - skip_strict_exist_check: true, - }); - - for (let i = 1; i < 11; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i].vector, - }); - - const r = payload.Upsert_Request?.create({ - vector: vec, - config: cfg, - }); - - requests.push(r); - } - - const req = payload.Upsert_MultiRequest?.create({ - requests: requests, - }); - - client.multiUpsert(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Locations.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamUpsert", (done) => { - const cfg = payload.Upsert_Config?.create({ - skip_strict_exist_check: true, - }); - - const channel = client.streamUpsert(); - channel.on("data", (message) => { - try { - expect(payload.Object_StreamLocation.is(message)).toBe(true); - const cloneRes = payload.Object_StreamLocation.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 21; i++) { - const vec = payload.Object_Vector?.create({ - id: data[i].id, - vector: data[i].vector, - }); - const r = payload.Upsert_Request?.create({ - vector: vec, - config: cfg, - }); - - channel.write(r); - } - - channel.end(); - }); - }); - - describe("Tests for remove operations", () => { - let client: RemoveClient; - - beforeAll((done) => { - client = new remove_grpc.RemoveClient( - address, - grpc.credentials?.createInsecure(), - ); - client.waitForReady(Date.now() + connectDeadlineMs, (e) => { - if (e) { - done(e); - } else { - done(); - } - }); - }); - - afterAll(() => { - client.close(); - }); - - test("Remove", (done) => { - const id = payload.Object_ID?.create({ - id: data[0].id, - }); - - const cfg = payload.Remove_Config?.create({ - skip_strict_exist_check: true, - }); - - const req = payload.Remove_Request?.create({ - id: id, - config: cfg, - }); - - client.remove(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Location.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("MultiRemove", (done) => { - const requests: Array = []; - const cfg = payload.Insert_Config?.create({ - skip_strict_exist_check: true, - }); - - for (let i = 1; i < 11; i++) { - const id = payload.Object_ID?.create({ - id: data[i].id, - }); - - const r = payload.Remove_Request?.create({ - id: id, - config: cfg, - }); - - requests.push(r); - } - - const req = payload.Remove_MultiRequest?.create({ - requests: requests, - }); - - client.multiRemove(req, (err, resp) => { - try { - expect(err).toBeFalsy(); - expect(payload.Object_Locations.is(resp)).toBe(true); - done(); - } catch (e) { - done(e); - } - }); - }); - - test("StreamRemove", (done) => { - const cfg = payload.Remove_Config?.create({ - skip_strict_exist_check: true, - }); - - const channel = client.streamRemove(); - channel.on("data", (message) => { - try { - expect(payload.Object_StreamLocation.is(message)).toBe(true); - const cloneRes = payload.Object_StreamLocation.clone(message); - if (cloneRes.payload.oneofKind === "status") { - expect(cloneRes.payload.status.code).toEqual(0); - } - } catch (e) { - done(e); - } - }); - channel.on("end", () => { - done(); - }); - channel.on("error", (e) => { - done(e); - }); - - for (let i = 11; i < 21; i++) { - const id = payload.Object_ID?.create({ - id: data[i].id, - }); - - const r = payload.Remove_Request?.create({ - id: id, - config: cfg, - }); - - channel.write(r); - } - - channel.end(); - }); - }); -}); diff --git a/tests/wordvecs1000.d.ts b/tests/wordvecs1000.d.ts deleted file mode 100644 index 71f3e7ef..00000000 --- a/tests/wordvecs1000.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare module '*/wordvecs1000.json' { - interface VectorDatum { - id: string; - vector: number[]; - } - - const data: VectorDatum[]; - export default data; -} diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 574e785c..00000000 --- a/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compilerOptions": { - "target": "es2020", - "module": "commonjs", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, - "resolveJsonModule": true - } -}